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=1796204079; b=2WZCSaKZ/SMjGBsUwcM7sOk5jmogkmnS9HGTy4aGzDSoH+rdw0y5lJlS7BDTL2pHuCmQ Z8weyevtlHUtlqUKzdo1ym0E7drJAtChQ3zKXFHdCu7BHdp5UxCDr3+1rD5/qLuR7QY9w CrTMAcp2BQ+ppe6BjBUe51vnpsM9ZD4ulkNfq7O/gYPIpdjnc9+IqOulvyknz1eKmhlay E+V6PfIM409Q5jodE5D0TMXtG5+bjJwxQEGmYi2ZO8/mtfifuQiMHbndES71sBYTkQyxh LimK8D3GfU8j7cjpaxmKtLcb0SbKPrTFncfWv0spaTQNj2UMoU+eebftI9iahV3jIpQ== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796204079; 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-Authority-Analysis:X-Proofpoint-GUID: X-Proofpoint-ORIG-GUID:X-Proofpoint-Spam-Info: X-Proofpoint-Spam-Details-Enc:X-Proofpoint-Virus-Version: X-Proofpoint-Spam-Details; bh=KEsL9Le3A+qQU3h96df0lfgiRmAP8H/Qncw3pqVFsIg=; b=jFdHBSOtZ/r+kK4hU6v0b1vqF99z8y46sdPo/69+4t5tuMc69+BOe3up/13Dp4QEwlSY F4Hn9mIbQQxtBpyDcXntEMRv5druohIsdap0hjfRjNbVr4rMURFyEvH8FvpZziH+VS6rJ sYc7PRMmzK//CFVYp+pUaA7FSe0yrKWHac10obQPOU2hXyr5RCyihvr5lF6y9lhsL8pm3 KbU9urSf8IAnn9QN4YxOuQl+a7sQwUCDi2DV5Au4VerNzc4+oc86BZRDFS16NY4UCMJW1 1gxiVj7eZIMFTJFduFT1lc4dASnYBosSx7C2qvZAFIIPcaFsAQwqBFo4v3+B6z1CW1g== 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=EsxHg5i1; dkim=pass header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.a=rsa-sha256 header.s=google header.b=Sz4KziY4; 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 51A1C606A31A for ; Wed, 2 Dec 2026 09:34:39 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 51A1C606A31A 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=EsxHg5i1; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.a=rsa-sha256 header.s=google header.b=Sz4KziY4 Received: from pps.filterd (m0279862.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 6B26p8I33576314 for ; Wed, 2 Dec 2026 09:34:38 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= KEsL9Le3A+qQU3h96df0lfgiRmAP8H/Qncw3pqVFsIg=; b=EsxHg5i1I+0g+sGK zw2pybHlVTBdNKJRySIN0tTaa/b8JcGnP/ZsQU6/ZtQpcMq0VJ1EnJrK5CrTp2aV x5915GAdJQfG+/sS3tqpD6UWcLfl53ShBZCNUGiJKD4Vyu263U1eghLG2rTcvb1q DeadOUzOv2ECqlGKEyRYGzsK6oeA3eaHJ4nrY02oSy11t/Kejok28sIZawQq0fJX MHCdedWbI6z998bP2imPW9eUNntMe46VtwmYDRKo57wLq7Eyv55fiw+lImOCUrUC scczvt/64Y12jzP9gGe/N8v5j/JL0md/BlDT/AQMhtb9pmU19CcOGNDB8/zC2T4W vcTJsw== Received: from mail-pg1-f200.google.com (mail-pg1-f200.google.com [209.85.215.200]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4ja3aj37ab-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Wed, 02 Dec 2026 09:34:38 +0000 (GMT) Received: by mail-pg1-f200.google.com with SMTP id 41be03b00d2f7-cdea3a64d1bso6968121a12.1 for ; Wed, 02 Dec 2026 01:34:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1796204077; x=1796808877; 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=KEsL9Le3A+qQU3h96df0lfgiRmAP8H/Qncw3pqVFsIg=; b=Sz4KziY4YIq9FxDN/p4p+ITMSiNlDJdQ9oJbcRw7FX8DgEP6TvARWp/RA+QDjR89ew Z3ysgqHgx2Pi5F7tkumhy7XGNpBgBhc5nPSEk1rTXkxqGovLIumpu06MdvyP/KlhDKUA 2Wo8kcKnH6WFOQbMkLOf1QLsHGWANhD8E4Nsfb0/wNXOGijFcdgFLJmrrhH4n4VoRpnz 90iicnJJllAfj5P9VC2onOEIjqi9uJ4uyJU/NzaZxNXEvQco6mI4vUDWzZM+nKa7it6V o3nN9DGNCadaG0ToiVnH2FrsrqKPDj43r6MZ/I1bnkT8mHTBS1aAVbrmi0MA9Ad2yFp4 SXZg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1796204077; x=1796808877; 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=KEsL9Le3A+qQU3h96df0lfgiRmAP8H/Qncw3pqVFsIg=; b=lqU6Qzc2Gq1RyXjveERR4MRLDnORlMa4M8TrDmp3HMAUqL8N12p8+kpqjX9h58NcpQ lv1v4/PHW/cNEljhoM8T9jmABXd1hXGOASmgwthmiSwomCrZ2KgeyhOsHIBut9z4euFy i66cniSAXN50W8h4rWsjhx6J1j7d8XVptvPj+HUq1ZLFmO0cPD3HviyPvJ3nETxggqRR DOG4D4heweAAH2VzIGloXVsJkTV6GS7J86/nwGYkpzgeymy7mA7zVB/Zt8dlpGeZmd5e RFCuF2olyvRaBkYxY/wq6TqZ54mgR6Fs6NY+7ZWKtywGgDa60Bv6AKr5Ubc6QLbohiDQ DTyA== X-Forwarded-Encrypted: i=1; AL+hErEun/Nao15mop8rqK9kPwzP/cg2yytbev1WcTg0dWn+twkBYP9fuSGThhig9Zcy8p0jK71sVEMFWSQ3/2Y=@vger.kernel.org X-Gm-Message-State: APuU4Z/E0ci9EcRH1fd8Q2Bc69b9sFSjoI7K6J/DmKDF5BmX38d35tOo 4IW2/XLBbVzMvkTH3qUsJMeTwc5Nfa+nbXkwXVPTZ6ERWIMI19r/splmIUw04YR4S/cLrxaOwlz dY1EYcXdblKRZ9WPPYKiRgZLa5K1V+ugQNhmFY2spLGJY+HHiprolp8Vekre4KkFc44o= X-Gm-Gg: AZFdTZe2gE4ZE5hsOUw+z2vdffVQueliaTPV+QwDogP/+uDl78VKhGXn8aVDI+tmZ3L isaNUJ/0XAAoZLCdSEBRJRuv/t/89LTq0O8FH6G4yqSt33UDuNu7TevsPJ+4gC4BpzPJyiTpuWi mhNrt42WLfQg4Egpz4//sSvxK+FPqxtS5qthrqDqZbNgKxoNN706yNaDV07YFKcNHYwmXtqSFqI 7TZHFoKkP/FTzOLFpOzuDdZb5F+fMRhZTPFElVXt0UElrTwjGSg4AKfYWJ+TMmXz0A2yKZfpWEc 7JVsKqCN1pPKwfYcQ5/NVQOjmHs6JU5p1y5JPw3nY0sIq92WboTbPymKlrBusDVchDd5UgHuJoB cM+a+9YKtPwX4nTUvOiE3WTx2vHIB1fxcIyalD9mQATxr6KJjaiN5tebn4s2nksTsqOTwqiQNEP tA7fbiRQ== X-Received: by 2002:a17:90b:224e:b0:3b4:a63:d57a with SMTP id 98e67ed59e1d1-3b41c85306cmr41925583a91.1.1796204077241; Wed, 02 Dec 2026 01:34:37 -0800 (PST) X-Received: by 2002:a17:90b:224e:b0:3b4:a63:d57a with SMTP id 98e67ed59e1d1-3b41c85306cmr41925527a91.1.1796204076615; Wed, 02 Dec 2026 01:34:36 -0800 (PST) Received: from [10.204.79.28] ([202.46.23.25]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-3b44b703530sm27926396a91.1.2026.12.02.01.34.27 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 02 Dec 2026 01:34:36 -0800 (PST) From: Jayant Shekhar X-Google-Original-From: Jayant Shekhar Message-ID: <7bda5e3c-84eb-422f-b53b-9438fabe559d@oss.qualcomm.com> Date: Wed, 2 Dec 2026 15:04:25 +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: Dmitry Baryshkov , Jayant Shekhar , "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> Content-Language: en-US In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Authority-Analysis: v=2.4 cv=Y7xtIReN c=1 sm=1 tr=0 ts=6b0fe62e cx=c_pps a=oF/VQ+ItUULfLr/lQ2/icg==:117 a=ZePRamnt/+rB5gQjfz0u9A==:17 a=IkcTkHD0fZMA:10 a=pUM-KoujPXoA:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=_K5XuSEh1TEqbUxoQ0s3:22 a=gEfo2CItAAAA:8 a=EUspDBNiAAAA:8 a=nuahrcV-02s8C_Qr8rIA:9 a=3ZKOabzyN94A:10 a=QEXdDO2ut3YA:10 a=3WC7DwWrALyhR5TkjVHa:22 a=sptkURWiP4Gy88Gu7hUp:22 X-Proofpoint-GUID: RalDF7vkd1wopUCMDDNlR8rSmSnwiECt X-Proofpoint-ORIG-GUID: RalDF7vkd1wopUCMDDNlR8rSmSnwiECt X-Proofpoint-Spam-Info: AW1haW4tMjYxMjAyMDAzNyBTYWx0ZWRfX2IHM+wBQhc8i xt3CItg3BoYVyQdlIj/uYgZOL8dLgvkvVXVzO30c2gGxgUQnceEWoQdQKFhACFJ1PlCBlGsVByw npu38NX8QB92erv1WfWjvhjFlrFYd6k= X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYxMjAyMDAzNyBTYWx0ZWRfX/JMkpq7j6bXj mgKnqcL5DA6ZLr8EhjNTjW89xYJ/W/H0kgvWsdUZU9vVxqVZ3uKYdyOii7Z4ING/AOVVQDteYMm Q0uQSqGL+dx55YpOvqIzmEvfokVOBAbE6V8YLurNxjdAelgRcgYsqGYc10gwSpkv73uFyWq7tVw V5zKakaVysaEpxf028+4ZMa6/Dm2SVvnKxlAIdMW4n1XUtCFT7EXt0Epz1ULahrjYabN3dGLohq gSi1kOZEZM0zvZnkLiyoc4wACodGYahgxeeMayaK5cJYUzbPAcn3JgDzRIUfNJOLc2WNG6vCwl+ Li8HQIcAbj4SlRonNOH/1rnBUSWkTaIHAuq0UNVR3FOe45UctjMpOs+OKWcnLyJC46UX24oMAOG 7BJZqXhxeQ2gGfeLRAS3r9St7EnUzEFLabNnE3dX+6YgZpQyTynbblX3c9TCG0gy8VN6QQ+lv/7 kwNg8D3qxrqVzWpZ8eg== 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-02_02,2026-12-01_01,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 lowpriorityscore=0 suspectscore=0 malwarescore=0 clxscore=1015 spamscore=0 phishscore=0 priorityscore=1501 impostorscore=0 adultscore=0 bulkscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2611040001 definitions=main-2612020037 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>;                     };                 };             };         };     };