From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=205.220.168.131 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796296069; b=vgJ7AUgGHSaFI7EPtDDcgvEVg6OtsgUNLlVlSwq680vACCMyGDg/8tg5IA4A0PNAgFy2 Y9wmFcIeTaTMb9OcaELot7yipy7FIUzvo00HiwAQ5CmLUAChB6FKxUMyw5ROkngQoPyQu hz+/KkPA9wy6/G0OPIJjjzCTuYCdeADkXWOhuieoCf9Uhr0hsfKW0Po5T7CyzO4ujDrsA 6zD3wjqlEK2G4mbj+MDU64tHK+0fbeeTNA13AT11hWkNssxANcLLvwF5BKGYIXWk0x+Q6 dT/DyywEroWA6gyz+GNPDIYDDNQtJtShmiz+ccF1tNcnkrBnCNxi27KJe3JaUkTMpDQ== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796296069; h=DMARC-Filter:Received:DKIM-Signature:Received:Received: DKIM-Signature:X-Google-DKIM-Signature:X-Forwarded-Encrypted: X-Gm-Message-State:X-Gm-Gg:X-Received:X-Received:Received:From: X-Google-Original-From:Message-ID:Date:MIME-Version:User-Agent: Subject:To:Cc:References:Content-Language:In-Reply-To:Content-Type: Content-Transfer-Encoding:X-Proofpoint-ORIG-GUID: X-Proofpoint-Spam-Details-Enc:X-Proofpoint-Spam-Info: X-Proofpoint-GUID:X-Authority-Analysis:X-Proofpoint-Virus-Version: X-Proofpoint-Spam-Details; bh=D7iUOAQ5hBUiaYGzTGBfHQQhK4IDtYKmQpBlWZSV6h4=; b=f9hG+mA1m6QYRXs9J/d3hnIvivl8sJhq1YURN9w49olWG8bXKoUMK0O1F16k6AvGQa+k jDVsyuHFuDe2lmc2pgFJYzOs8ZBemIGDS7bCMiB2SM3zzKaOVH8Uev0I5+jT1Ma+uJ5f4 qBalYtNylOpiT1yQqKmaRDcgV3B7SEk91WUH0XhdrSMG/isgSZ5WRHiZ4/AE+73SkAJmg Uz/6kU7yhmWtik9oi1AKGCgt9U8SSSrdHWNYzEAUVAcZF8n27zoIp7FXE9VH8h87MyrOS z8+NN5uiQtwJ2BrCkwzA7ZbVCLyf9wdqmXCBXL3KbiGSLjfV9RyIRupOY91P7xiEtTQ== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=oss.qualcomm.com; spf=pass smtp.mailfrom=oss.qualcomm.com; dkim=pass header.d=qualcomm.com header.i=@qualcomm.com header.a=rsa-sha256 header.s=qcppdkim1 header.b="Q2/xBlwl"; dkim=pass header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.a=rsa-sha256 header.s=google header.b=EGOYTex1; arc=none smtp.remote-ip=205.220.168.131 Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 2AC77606A334 for ; Thu, 3 Dec 2026 11:07:48 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 2AC77606A334 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=oss.qualcomm.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=oss.qualcomm.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=qualcomm.com header.i=@qualcomm.com header.a=rsa-sha256 header.s=qcppdkim1 header.b=Q2/xBlwl; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.a=rsa-sha256 header.s=google header.b=EGOYTex1 Received: from pps.filterd (m0279866.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 6B3AGRWw2692207 for ; Thu, 3 Dec 2026 11:07:47 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= cc:content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=qcppdkim1; bh= D7iUOAQ5hBUiaYGzTGBfHQQhK4IDtYKmQpBlWZSV6h4=; b=Q2/xBlwlCyLo3ORH KbYDEEi9cz5jkhRCm6QyCwzcd7SxC6FkDknllukIyxUxiF+tkPursd0yk2hAvBoj XFYQhg8MJf9cPl6YfbBz+60UgLHuM4oo4iXYy6HtDIHWglTU5M0FCAGTDGnze6wd z6r/fOk0mxD72YAKUjt15/dtvwW/sF54yXC7elF8evmkEv7YYsckXN9aFB+psf7N Yz4wRfGQ5pkgtxrS2u8W5JgGG6gYxNTtZKIoQqfaik3aD/0zRwXhGByc0Bed0KIs Bzwya3xs1v2NZBSgOUqsGFA9iLKYUuZhPcMeYTiHpksbk0Ih4T29THM1OitKEat/ PTBPvg== Received: from mail-pj1-f70.google.com (mail-pj1-f70.google.com [209.85.216.70]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4jb28g9eq8-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Thu, 03 Dec 2026 11:07:47 +0000 (GMT) Received: by mail-pj1-f70.google.com with SMTP id 98e67ed59e1d1-3b574438300so6100747a91.3 for ; Thu, 03 Dec 2026 03:07:47 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1796296067; x=1796900867; darn=vger.kernel.org; h=content-transfer-encoding:content-type:in-reply-to:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :from:from:to:cc:subject:date:message-id:reply-to:content-type; bh=D7iUOAQ5hBUiaYGzTGBfHQQhK4IDtYKmQpBlWZSV6h4=; b=EGOYTex1X4E+86f+7TmsyxWVReyhpVN+Jl2xT8N7HyuK7ZRyuhINjAUbO1su5spPQp LIPmzfYYQpcdzA/EK1vlxtsc8UrwIIzxrOhuWafnxQmFdaThrFzWDGh6XCFKTU+hMhTC 6FRyYYyYbZ1owWoKDPEVZpYWUvgkKhxXL22qbqTuZWf1+rajdc4mOepuHmcOtL0ZzuEm zHapBK3FbgsG+EER+wxwiSQM1mbI9yZc79g1OZJw7AQ0hkdpfJ99W8ghHvnWe0RhNGXe 0YDXzlnfxJFSrxP9Fo5q/b7EcSogUnG7xOd4TrqV++iZNgE4vUNB45i6HpX99DLhCYF8 sveg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1796296067; x=1796900867; h=content-transfer-encoding:content-type:in-reply-to:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :from:x-gm-gg:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to:content-type; bh=D7iUOAQ5hBUiaYGzTGBfHQQhK4IDtYKmQpBlWZSV6h4=; b=XcG/ZdlSr5EPuuG3glrotZMGssxuKR1oEWEicl/vAoOnX8xkXofPGnMUT1bUaz/3Tg XRcSCqPs7gX6Y1eW3W2ZSqIBfxMLVdV5FTYHxXiWpwHuz+5aV5fo71l9csUdq53rtrsi +9ZBUCATResFgqUjPOyKwSAnYIUStF6AvnuQCYcgszMlm3+85DOrwEhnI5go/ux43qhM 9BLQ34wkUHLldJUX7TiiW+7nDsICi1zqpdltksTpT8CnBKggoJS/BeHaniis1Ikg1ul5 +E0EpGVBdlp1heyIcC79f2fnYqY89fPnKLHxQ4dCfJx97RmvV19UvBoR730+WUaBHeT7 AopA== X-Forwarded-Encrypted: i=1; AL+hErEbQYI+JSiBIo15VfaSWuA3ctuvqdNRc0PQm9ZgXnITLRbiLc77lgyi3f25b6fdvoOU4MBm7d1pLyHHFDU=@vger.kernel.org X-Gm-Message-State: APuU4Z/pSEwNI7+yIDnMzP5Fa+WLeyFJALCXno+vQTZH9bdKjbjlOmXT d2RTaKhL5BPdn1GNOz733UAKZ1A+pVeefk6gOCJXF3/9OtuDF3CBewhwhccs2tXF0LZk+0wMLsT xXQUJsveGJQewJiXbySw5R9/4Mf5DRdogJXGDEMJYSaYJXuMNDBjIjoEk/38pDVFKlDI= X-Gm-Gg: AZFdTZfESRDDouISMfBTDZGyDWrU6dYbNLKCo8g+7iir7TjNDbKZC33HP5JWoBVHCVk HGlesMZoWTkop+ALF/DsMWeBm8Wd+LsmQAK7L7qzg70SqvkNIkbJiZGkueKTtqd0+OosmwcPNwc KwRwi5remg5jmVZ5E9Z/i3EMfr+sb1drVH/v+jGTabwypPhsFjIMCOFhxp6RIP0rFwMaQI2qgNt ihlvJAHdsFtvWggQ+d8YaXpNFbOEBXakQMNQOhXu14b1fcHbE6yPXiR7zPJOdN5sF8hCT41rs7t mc+8g39fksfYUlYwEwxuSlM6Dznsh8i/IcV3c8Pve3BrepWthuO5MP4O2WSRkw0iUf3uMWqc13q FUChhARVCofjmvPxX3Cdzy1wKwEOLdSrd5UF6MNEsBNtBQ3Yti/hLn26GSIwyry03akxvdhfpC9 D352OgBw== X-Received: by 2002:a17:90b:2e47:b0:3b4:a63:d56d with SMTP id 98e67ed59e1d1-3b41c7e119bmr44161751a91.1.1796296066453; Thu, 03 Dec 2026 03:07:46 -0800 (PST) X-Received: by 2002:a17:90b:2e47:b0:3b4:a63:d56d with SMTP id 98e67ed59e1d1-3b41c7e119bmr44161713a91.1.1796296065835; Thu, 03 Dec 2026 03:07:45 -0800 (PST) Received: from [10.204.79.28] ([202.46.23.25]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-3b5c7d32fe5sm3998121a91.7.2026.12.03.03.07.36 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 03 Dec 2026 03:07:45 -0800 (PST) From: Jayant Shekhar X-Google-Original-From: Jayant Shekhar Message-ID: Date: Thu, 3 Dec 2026 16:37:35 +0530 X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH 01/13] dt-bindings: display: msm: Add Qualcomm DCP bindings To: Jayant Shekhar , Dmitry Baryshkov , "Michael S. Tsirkin" Cc: Rob Clark , Dmitry Baryshkov , Abhinav Kumar , Jessica Zhang , Sean Paul , Marijn Suijten , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Simona Vetter , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Sumit Semwal , =?UTF-8?Q?Christian_K=C3=B6nig?= , Philipp Stanner , Bjorn Andersson , Konrad Dybcio , Abel Vesa , "Joerg Roedel (AMD)" , Will Deacon , Robin Murphy , linux-arm-msm@vger.kernel.org, dri-devel@lists.freedesktop.org, freedreno@lists.freedesktop.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-media@vger.kernel.org, linaro-mm-sig@lists.linaro.org, iommu@lists.linux.dev References: <20261015-jshekhar-drm-msm-dcp-v1-v1-0-48aad0fe4f72@oss.qualcomm.com> <20261015-jshekhar-drm-msm-dcp-v1-v1-1-48aad0fe4f72@oss.qualcomm.com> <7bda5e3c-84eb-422f-b53b-9438fabe559d@oss.qualcomm.com> Content-Language: en-US In-Reply-To: <7bda5e3c-84eb-422f-b53b-9438fabe559d@oss.qualcomm.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Proofpoint-ORIG-GUID: 7iFh3SkP_xvvb1HfledzT8u_D_GNbafg X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYxMjAzMDA0NCBTYWx0ZWRfX89R3xFzYSUd8 bRbiCmGzQw4nYfUjf4lpU7O5Zz+0hL+6W02qPdB+gYpLbvs5cXCN89rGalRd6I3cmmvD45egHeq VUSbLvZ0PNb2zJLU5hdHC388usjoE+0R8VoNcZymu4bvMFO9zs9AKWxeqXfGCrVk6mLxHq96IaW ZqsvoGeMvkt8YxCy7Z4SkRkM0bhzTbFQ1QyDB1ncRvxCA5vMi0aB+p5An8WIWC5uv7IwtaAcwt+ wai0v86YsHelQxiJpqvvDzZzoh4iLM2btabUfaF1/bJIqT/EAjTX3P45WJrL2jjYTLWOca+iRFS L0vQ6O+20+CaJBCw7uKTW2TFgUco7+jjFoNHE+Xkjer8Caf23KfiUy12XA+fcJEAzS12CNavO3k 15K4PWoZKKD1oX7vF7UHOw/qOK2+ZJOD/8odzgYKE87U91oXAzLWwOz1XSjTG47P1lxlFey7m4B eBbL8AFnUi2hshKvgBw== X-Proofpoint-Spam-Info: AW1haW4tMjYxMjAzMDA0NCBTYWx0ZWRfXz47ASgmQEErL g135lYVjp70xbC9DGOKQsW66WjqDTkgx12t7UwM3AbwWEVSAg/Zge1b4PSW2ZpJwVyL14Dyf+Za cBfGtnMChk2K4wxLgCVNiZqPrlS/8hM= X-Proofpoint-GUID: 7iFh3SkP_xvvb1HfledzT8u_D_GNbafg X-Authority-Analysis: v=2.4 cv=Za+IpcVA c=1 sm=1 tr=0 ts=6b114d83 cx=c_pps a=0uOsjrqzRL749jD1oC5vDA==:117 a=ZePRamnt/+rB5gQjfz0u9A==:17 a=IkcTkHD0fZMA:10 a=pUM-KoujPXoA:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=YMgV9FUhrdKAYTUUvYB2:22 a=gEfo2CItAAAA:8 a=EUspDBNiAAAA:8 a=IFJ9y-M9WCi1uIdVt7wA:9 a=3ZKOabzyN94A:10 a=QEXdDO2ut3YA:10 a=mQ_c8vxmzFEMiUWkPHU9:22 a=sptkURWiP4Gy88Gu7hUp:22 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1176,Hydra:6.1.138,FMLib:17.12.100.49 definitions=2026-12-03_03,2026-12-02_07,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 suspectscore=0 phishscore=0 spamscore=0 bulkscore=0 clxscore=1015 impostorscore=0 priorityscore=1501 lowpriorityscore=0 malwarescore=0 adultscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2611040001 definitions=main-2612030044 On 02-12-2026 15:04, Jayant Shekhar wrote: > > On 22-10-2026 18:25, Dmitry Baryshkov wrote: >> On Wed, Oct 21, 2026 at 05:09:15PM +0530, Jayant Shekhar wrote: >>> On 21-10-2026 14:15, Jayant Shekhar wrote: >>>> On 15-10-2026 17:47, Dmitry Baryshkov wrote: >>>>> On Thu, Oct 15, 2026 at 01:08:21PM +0530, Jayant Shekhar wrote: >>>>>> DCP platforms place the display pipeline under firmware control, >>>>>> so Linux >>>>>> cannot discover display resources through direct register >>>>>> access. The DRM >>>>>> driver therefore needs device-tree descriptions of the firmware >>>>>> transport, >>>>>> display topology, IOMMU contexts, and panel connections. >>>>>> >>>>>> Add bindings for the Qualcomm DCP VirtIO display function, >>>>>> including the >>>>>> INTF graph and DSI host outputs. Document the framebuffer IOMMU >>>>>> context, >>>>>> IPCC power-notify mailbox and interrupts, firmware display >>>>>> topology, and >>>>>> firmware-visible IOVA window supplied by the parent VirtIO-MMIO >>>>>> transport. >>>>>> >>>>>> Signed-off-by: Jayant Shekhar >>>>>> Assisted-by: LLM >>>>>> --- >>>>>>    .../bindings/display/msm/qcom,dcp-dsi.yaml         | 75 >>>>>> +++++++++++++ >>>>>>    .../bindings/display/msm/qcom,dcp-virtio.yaml      | 113 >>>>>> +++++++++++++++++++ >>>>>>    .../devicetree/bindings/display/msm/qcom,dcp.yaml  | 119 >>>>>> +++++++++++++++++++++ >>>>>>    3 files changed, 307 insertions(+) >>>>>> >>>>>> diff --git >>>>>> a/Documentation/devicetree/bindings/display/msm/qcom,dcp-dsi.yaml >>>>>> b/Documentation/devicetree/bindings/display/msm/qcom,dcp-dsi.yaml >>>>>> new file mode 100644 >>>>>> index 000000000000..f7178c66c09e >>>>>> --- /dev/null >>>>>> +++ >>>>>> b/Documentation/devicetree/bindings/display/msm/qcom,dcp-dsi.yaml >>>>>> @@ -0,0 +1,75 @@ >>>>>> +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause >>>>>> +%YAML 1.2 >>>>>> +--- >>>>>> +$id: http://devicetree.org/schemas/display/msm/qcom,dcp-dsi.yaml# >>>>>> +$schema: http://devicetree.org/meta-schemas/core.yaml# >>>>>> + >>>>>> +title: Qualcomm DCP DSI host >>>>>> + >>>>>> +maintainers: >>>>>> +  - Jayant Shekhar >>>>>> + >>>>>> +description: | >>>>>> +  A MIPI DSI host exposed by the Qualcomm DCP VirtIO device (see >>>>>> +  qcom,dcp.yaml). DCP is a firmware protocol shared across multiple >>>>>> +  Qualcomm SoCs, not specific to any one of them; Hawi is its first >>>>>> +  platform. The DSI host and its connection to a panel are >>>>>> described >>>>>> +  using the standard DSI controller and OF graph properties. >>>>>> + >>>>>> +allOf: >>>>>> +  - $ref: /schemas/display/dsi-controller.yaml# >>>>>> + >>>>>> +properties: >>>>>> +  reg: >>>>>> +    maxItems: 1 >>>>>> +    description: Index of this DSI host among its siblings. >>>>>> + >>>>>> +  status: true >>>>>> + >>>>>> +  ports: >>>>>> +    $ref: /schemas/graph.yaml#/properties/ports >>>>>> +    description: | >>>>>> +      port@0: Input from the DCP virtio device's DPU INTF output >>>>>> port. >>>>>> +      port@1: Output to the attached panel. >>>>>> +    properties: >>>>>> +      port@0: >>>>>> +        $ref: /schemas/graph.yaml#/properties/port >>>>>> +      port@1: >>>>>> +        $ref: /schemas/graph.yaml#/$defs/port-base >>>>>> +        unevaluatedProperties: false >>>>>> +        properties: >>>>>> +          endpoint: >>>>>> +            $ref: /schemas/media/video-interfaces.yaml# >>>>>> +            unevaluatedProperties: false >>>>> Why do we need OF graph here? Would it be enough to link one of the >>>>> ports of the root node with the panel's input? >>>>> >>>>>> + >>>>>> +required: >>>>>> +  - reg >>>>>> +  - ports >>>>>> + >>>>>> +unevaluatedProperties: false >>>>>> + >>>>>> +examples: >>>>>> +  - | >>>>>> +    dcp-subsystem { >>>>>> +        #address-cells = <1>; >>>>>> +        #size-cells = <0>; >>>>>> + >>>>>> +        dsi@0 { >>>>>> +            reg = <0>; >>>>>> +            #address-cells = <1>; >>>>>> +            #size-cells = <0>; >>>>>> + >>>>>> +            ports { >>>>>> +                #address-cells = <1>; >>>>>> +                #size-cells = <0>; >>>>>> + >>>>>> +                port@0 { >>>>>> +                    reg = <0>; >>>>>> +                    dcp_dsi0_in: endpoint { >>>>>> +                        remote-endpoint = <&dcp_intf1_out>; >>>>>> +                    }; >>>>>> +                }; >>>>>> + >>>>>> +            }; >>>>>> +        }; >>>>>> +    }; >>>>>> diff --git >>>>>> a/Documentation/devicetree/bindings/display/msm/qcom,dcp-virtio.yaml >>>>>> b/Documentation/devicetree/bindings/display/msm/qcom,dcp-virtio.yaml >>>>>> new file mode 100644 >>>>>> index 000000000000..018694310dfb >>>>>> --- /dev/null >>>>>> +++ >>>>>> b/Documentation/devicetree/bindings/display/msm/qcom,dcp-virtio.yaml >>>>>> @@ -0,0 +1,113 @@ >>>>>> +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) >>>>>> +%YAML 1.2 >>>>>> +--- >>>>>> +$id: >>>>>> http://devicetree.org/schemas/display/msm/qcom,dcp-virtio.yaml# >>>>>> +$schema: http://devicetree.org/meta-schemas/core.yaml# >>>>>> + >>>>>> +title: Qualcomm DCP VirtIO host >>>>>> + >>>>>> +maintainers: >>>>>> +  - Jayant Shekhar >>>>>> + >>>>>> +description: | >>>>>> +  Qualcomm's DCP VirtIO host provides the generic VirtIO-MMIO >>>>>> transport and >>>>>> +  the host-side IPCC channel used to wake the DCP firmware. >>>>>> + >>>>>> +properties: >>>>>> +  compatible: >>>>>> +    contains: >>>>>> +      const: qcom,dcp-virtio >>>>>> + >>>>>> +  reg: >>>>>> +    maxItems: 1 >>>>>> + >>>>>> +  iommus: >>>>>> +    maxItems: 1 >>>>>> + >>>>>> +  iommu-ranges: >>>>>> +    $ref: /schemas/types.yaml#/definitions/uint32-array >>>>>> + >>>>>> +  interrupts-extended: >>>>>> +    minItems: 2 >>>>>> + >>>>>> +  interrupt-names: >>>>>> +    items: >>>>>> +      - const: virtio >>>>>> +      - const: dcp_power_notify_irq >>>>>> + >>>>>> +  dma-coherent: true >>>>>> + >>>>>> +  mboxes: >>>>>> +    maxItems: 1 >>>>>> + >>>>>> +  mbox-names: >>>>>> +    const: dcp-power-tx >>>>>> + >>>>>> +  dcp-subsystem: >>>>>> +    $ref: qcom,dcp.yaml# >>>>>> + >>>>>> +required: >>>>>> +  - compatible >>>>>> +  - reg >>>>>> +  - interrupts-extended >>>>>> +  - interrupt-names >>>>>> +  - iommus >>>>>> +  - dcp-subsystem >>>>>> + >>>>>> +additionalProperties: false >>>>>> + >>>>>> +examples: >>>>>> +  - | >>>>>> +    #include >>>>>> +    #include >>>>>> + >>>>>> +    virtio@9be8000 { >>>>>> +        compatible = "qcom,dcp-virtio", "virtio,mmio"; >>>>> Is it really compatible with virtio,mmio? Can it be handled >>>>> completely >>>>> by virtio,mmio? >>>> >>>> There are two possible approaches: >>>> >>>> Option 1 — Use the standard VirtIO-MMIO parent (preferred) >>>> >>>> Keep the parent as: >>>> >>>> compatible = "virtio,mmio"; >>>> reg = <...>; >>>> interrupts = <...>; >>>> iommus = <...>; >>>> iommu-ranges = <...>; >>>> dma-coherent; >>>> >>>> The generic virtio/mmio.yaml binding would be extended only to >>>> document >>>> the generic iommu-ranges property. >>>> >>>> The DCP-specific resources would be placed on the virtio,deviceXX >>>> child: >>>> >>>> dcp-subsystem { >>>>      compatible = "virtio,deviceXX"; >>>>      iommus = <...>; >>>>      interrupts-extended = <&ipcc ...>; >>>>      mboxes = <&ipcc ...>; >>>>      mbox-names = "dcp-power-tx"; >>>> }; >>>> >>>> The parent uses the standard VirtIO-MMIO interrupts property. The >>>> child >>>> has one DCP-specific interrupt, so interrupt-names is unnecessary and >>>> the driver uses interrupt index 0. >>>> >>>> Option 2 — Add a Qualcomm-specific VirtIO-MMIO parent binding >>>> >>>> Keep a Qualcomm-specific compatible such as: >>>> >>>> compatible = "qcom,dcp-virtio", "virtio,mmio"; >>>> >>>> and extend the parent binding to describe iommu-ranges, the additional >>>> IPCC interrupt, mailbox, and related DCP resources. >>>> >>>> However, this approach duplicates the generic VirtIO-MMIO binding >>>> and is >>>> only justified if the transport requires Qualcomm-specific handling. >>>> Since the DCP transport is handled completely by the standard >>>> VirtIO-MMIO driver. >>>> >>>> Which one do you prefer? >>>> >>>> I will be addressing other comments in v2. >>>> >>>> >>>> Thanks >>>> >>>> Jayant >>>> >>>> >>> I think Option 1 is not suitable because the IPCC power-notify >>> sequence is >>> required before the first VirtIO-MMIO register access. The standard >>> VirtIO-MMIO driver would otherwise probe the DT node directly and >>> access the >>> registers before Qualcomm-specific initialization is complete. >>> >>>    Would the following Qualcomm-specific transport approach be >>> acceptable? >>> >>>    - qcom,dcp-virtio is the DT-compatible Qualcomm wrapper. It >>> initializes >>> IPCC and sends the required power notification before creating a >>> synthetic >>> virtio-mmio platform device. >>>    - The unchanged generic VirtIO-MMIO driver probes the synthetic >>> child, >>> accesses the MMIO registers, creates the VirtIO queues, and >>> registers the >>> VirtIO device. >>>    - The DCP VirtIO driver binds to the resulting VirtIO device >>> through its >>> VirtIO device/vendor ID table and initializes HFI, firmware >>> capabilities, >>> and DRM/KMS. >>>    - The virtio,deviceXX DT child is discovered by the VirtIO core and >>> describes the DCP-specific IOMMU context, DSI hosts, display graph, and >>> panels. >> Anyway, for the next iteration of the patches please be sure to CC >> VirtIO maintainers and virtio-related mailing lists. >> >>>    The flow is: >>> >>>    qcom,dcp-virtio >>>        → IPCC power-up >>>        → synthetic virtio-mmio device >>>        → generic VirtIO-MMIO driver >>>        → virtio,deviceXX DT child >>>        → DCP HFI/DRM driver >>> >>>    Since the Qualcomm wrapper creates and owns the synthetic >>> VirtIO-MMIO >>> device, the parent node uses only: >>> >>>    compatible = "qcom,dcp-virtio"; >>> >>>    It should not also advertise "virtio,mmio", because the generic >>> driver >>> must not probe the parent directly before IPCC initialization. > > > Dmitry, what do you think about this. This way, we won't need a custom > transport. > > Do you see any issue? > > > dcp: dcp-power { > >         compatible = "qcom,dcp-power"; > >         #power-domain-cells = <0>; > >         #address-cells = <2>; > >         #size-cells = <2>; > >         ranges; > >         mboxes = <&ipcc 13 5>; > >         mbox-names = "dcp-power-tx"; > >         interrupts-extended = <&ipcc 13 5 IRQ_TYPE_EDGE_RISING>; > >         interrupt-names = "dcp-power-rx"; > >         dcp_virtio: virtio@9be8000 { > >             compatible = "virtio,mmio"; > >             reg = <0x0 0x09be8000 0x0 0x1000>; > >             interrupts = ; > >             power-domains = <&dcp>; > >             iommus = <&apps_smmu 0x15a3 0x0>; > >             iommu-ranges = <0x0 0x84000000 0x0 0x04000000>; > >             dma-coherent; > >             display-subsystem { > >                 compatible = "virtio,device34"; > >                 iommus = <&apps_smmu 0x400 0x2>; > >                 #address-cells = <1>; > >                 #size-cells = <0>; > >                 ports { > >                     #address-cells = <1>; > >                     #size-cells = <0>; > >                     port@1 { > >                         reg = <1>; > >                         dcp_intf1_out: endpoint { > >                         }; > >                     }; > >                 }; > >                 interface@1 { > >                     reg = <1>; > >                     #address-cells = <1>; > >                     #size-cells = <0>; > >                     dcp_dsi0: dsi@0 { > >                         reg = <0>; > >                         #address-cells = <1>; > >                         #size-cells = <0>; > >                     }; > >                 }; > >             }; > >         }; > >     }; Hi Dmitry, Thinking in a directionto move away from custom transport. The DT describes the host as compatible = "virtio,mmio". The upstream virtio_mmio driver handles MMIO registers, feature negotiation, virtqueues, and the GIC interrupt. The DCP DRM driver is the VirtIO function driver. It discovers the virtio,device34 function node and uses standard VirtIO APIs to set up its HFI queues. The qcom,dcp-power parent provides the Qualcomm-specific glue: its power-domain callback sends the IPCC wake notification before the child’s MMIO probe, and its IPCC callback notifies the HFI response queue.  So DCP-specific IPCC handling remains, but the MMIO VirtIO transport itself is standard. The registration-order hunk makes the function driver available before the power provider creates the virtio-mmio child, allowing it to bind as soon as the standard host registers the VirtIO device. VM will have IPCC access. All VMs have independent IPCC access through its own dedicated APPS NS client interfaces since IPCC HW has virtualization friendly support. So in our case IPCC can be considered as part of guest interface as well. Call flow like below: SUSPEND - child first, parent last   virtio-mmio child     virtio_mmio_freeze()       → virtio_device_freeze()         → dcp_virtio_freeze()           → stop HFI   dcp-power parent     dcp_power_suspend()       → enable IPCC IRQ wake       → send suspend notification and wait for acknowledgement       → set system_suspended on success   genpd suspend     → mark the domain off   RESUME  - genpd phase, then parent, then child   genpd resume (no-IRQ phase)     → call dcp_power_domain_on() if the domain is off       → see system_suspended and return without sending IPCC   dcp-power parent     dcp_power_resume()       → send resume notification and wait for acknowledgement       → clear system_suspended       → disable IPCC IRQ wake   virtio-mmio child     virtio_mmio_restore()       → restore VirtIO-MMIO state       → virtio_device_restore()         → dcp_virtio_restore()           → recreate HFI queues and restore HFI queue state What is your opinion? Thanks, Jayant