From patchwork Fri Mar 1 01:52:21 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Shengyang Chen X-Patchwork-Id: 208602 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7301:2097:b0:108:e6aa:91d0 with SMTP id gs23csp811104dyb; Thu, 29 Feb 2024 18:16:32 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCVH2Pkp2zK2jDVhbxmvyHezo8HWBxfg0yTkt1gcHzufgYrptXPmB5X553cZKKZMnhMrvvq3p8a3TiGTR3zEX4z4GZsASw== X-Google-Smtp-Source: AGHT+IE9GWyxsln5X3OYB78G/Y/u5R+CRozngHrDR58LG2v8BQKn0ZGkhquxz6bctDi1/T+tYCLF X-Received: by 2002:a05:6a20:244c:b0:1a1:3218:7784 with SMTP id t12-20020a056a20244c00b001a132187784mr288605pzc.30.1709259392647; Thu, 29 Feb 2024 18:16:32 -0800 (PST) Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id 2-20020a17090a0a8200b0029901e7381dsi4656519pjw.135.2024.02.29.18.16.32 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 29 Feb 2024 18:16:32 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-87817-ouuuleilei=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; arc=fail (signature failed); spf=pass (google.com: domain of linux-kernel+bounces-87817-ouuuleilei=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-87817-ouuuleilei=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 2093C2882F9 for ; Fri, 1 Mar 2024 02:07:30 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 1751C3A292; Fri, 1 Mar 2024 02:07:18 +0000 (UTC) Received: from CHN02-SH0-obe.outbound.protection.partner.outlook.cn (mail-sh0chn02on2095.outbound.protection.partner.outlook.cn [139.219.146.95]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id E324739FC4; Fri, 1 Mar 2024 02:07:11 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=139.219.146.95 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709258835; cv=fail; b=IUDRnpkj00zLGCF35KzJon9ajc07YESe3/xc67tylyufwYZeP/Kl9YcDhCC0g9QXbSvefRZ1G9lhYHaVcxxOnsJVrbuVAhSNn/5idmEbEiFMeDzssdniSfltyAtRkD4WQvlc/cD8L3s0UTV5bO6tmYd1SORyeqZLDhR247+x3x4= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709258835; c=relaxed/simple; bh=YwVo/j5oEis0leZTgibuisB0AhAszqBm0vy4AE2Dqcw=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: Content-Type:MIME-Version; b=dPfiP7jf/jlW5jAlOwpBkE+MsBrOCk+JbrjDuje34YHEAMFXET0WOvKPuCptRppQKPLamp2zak3/Sj/PokcO29ppTvNGaxrRvpF4+I5l2ZrLUsxy4d8plXRcnSpME6iXeOYSQFIBVDGRYD1Qsln5ZLEXWaLm/mMbOD36NUFwtp8= ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=starfivetech.com; spf=pass smtp.mailfrom=starfivetech.com; arc=fail smtp.client-ip=139.219.146.95 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=starfivetech.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=starfivetech.com ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=mt/X4djuyGUbP1ZWoMDfYQWz8TXHyAoa/03G9plBTqRNcSde2JfcWBtD1vzl19O8wq1KlZYnWMDuTQMHYZ9YoHOUBpBUgpljWU/GXe5Th/iG9fdGLHU4Sb+ljsEzrdNz7WVLucpeW0N9f0hdlnm1XYAFRTiYhyfxbc9AeyWyRt5cTR0NjNte7FgdIcu4y9QZ6z0UYt59lPtYQw6ka0PfEhWVdqHjFP3VzSeTjiD3YRp/cjD1+H2yllAMDawi0U+Ai9nzjU655vdC6WYtWeuv6FZ3g6pEy0qY2p/eQcdMD3zZmZ6HAAUHrOwnG09hutuW2wje8M0kyurHxN7iMUvM3w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=+CsItaiRtcDrr5m+mPBBE6xQE7X2FghlT3x++laDxxQ=; b=mfLXOSgKK48od7w1V66UvG4KDroeWTiBkgO5I05c0ShQeQrEwN5IwrcgXTu5aim3Ve5XhoUcKYPWwjdtDenjtPPp3oonoPQLlS8weXvqGJJXBvtWLVM2p9AyaL6sPGYgcFj+8u2rl/rAdnopISn3poLHUnbachRuK9Miww/W8pzKQeqafL29CDa3oMaul38MAKSUGb5LExJVHbfTcqxmgAgX6ISohIpxwN2jMCe3H5hvR9e8HNojwdIowCszDH33jEBCg7JM6xcwgvax7rIJUlj1U+JnoYJeyfay3CVB3L7E/6z2TSBM9VK9uUQJKs8ztPeO8p1alXbDqy0YMzN5OQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=starfivetech.com; dmarc=pass action=none header.from=starfivetech.com; dkim=pass header.d=starfivetech.com; arc=none Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=starfivetech.com; Received: from NT0PR01MB1070.CHNPR01.prod.partner.outlook.cn (2406:e500:c510:3::6) by NT0PR01MB1102.CHNPR01.prod.partner.outlook.cn (2406:e500:c510:7::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7316.39; Fri, 1 Mar 2024 01:52:43 +0000 Received: from NT0PR01MB1070.CHNPR01.prod.partner.outlook.cn ([fe80::db9a:cc7:56ae:de5a]) by NT0PR01MB1070.CHNPR01.prod.partner.outlook.cn ([fe80::db9a:cc7:56ae:de5a%3]) with mapi id 15.20.7316.037; Fri, 1 Mar 2024 01:52:43 +0000 From: Shengyang Chen To: devicetree@vger.kernel.org, dri-devel@lists.freedesktop.org Cc: andrzej.hajda@intel.com, neil.armstrong@linaro.org, rfoss@kernel.org, Laurent.pinchart@ideasonboard.com, jonas@kwiboo.se, jernej.skrabec@gmail.com, maarten.lankhorst@linux.intel.com, mripard@kernel.org, tzimmermann@suse.de, airlied@gmail.com, daniel@ffwll.ch, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, p.zabel@pengutronix.de, aford173@gmail.com, agx@sigxcpu.org, rdunlap@infradead.org, u.kleine-koenig@pengutronix.de, sam@ravnborg.org, steven.price@arm.com, bbrezillon@kernel.org, changhuang.liang@starfivetech.com, keith.zhao@starfivetech.com, shengyang.chen@starfivetech.com, jack.zhu@starfivetech.com, linux-kernel@vger.kernel.org Subject: [PATCH v4 1/2] dt-bindings: display: bridge: cdns: Add display bridge support for dsi on StarFive JH7110 SoC Date: Fri, 1 Mar 2024 09:52:21 +0800 Message-Id: <20240301015222.93114-2-shengyang.chen@starfivetech.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20240301015222.93114-1-shengyang.chen@starfivetech.com> References: <20240301015222.93114-1-shengyang.chen@starfivetech.com> X-ClientProxiedBy: ZQ0PR01CA0026.CHNPR01.prod.partner.outlook.cn (2406:e500:c550:2::13) To NT0PR01MB1070.CHNPR01.prod.partner.outlook.cn (2406:e500:c510:3::6) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: NT0PR01MB1070:EE_|NT0PR01MB1102:EE_ X-MS-Office365-Filtering-Correlation-Id: ebb63d4e-82ea-4036-75c8-08dc399248cc X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: na6sNGayxUZ2bOIuRThxFbkVl6BGOyZChfG0eFfbvP8P1jzbkU6HmD4iNAZZGnCVr1M9kZggN7QroUh9BOR6FhwVTL/3+fjyjOusmoWs6JwYg7kpx0Dgfcg9HC/asdHHpAXQZa2I3IGjfnpPnb+gbsL+r1GdRSnDmERi2hmONYgcA132hh+Jiq0Sdi9jCNbccbh03HrrB0vqdNyBp+SWsc/xfgw2c8H7VtrIkjoA0M5Mw2tuwVvvRg+PMA19hGgsiuT4DjqAUMYOsp4z4J513clTg+7FmvERkwO1QQ+GvS1bGQFPu5PTSkgXiAdWTU9Wltqwn5owClO/gBQjLybUukSXYUTQNCpYPAL8gd1WSFX7njYQd4hBbVkj4MfgFNeM2ikgl+J8TW/oVnZdxYYkc8zsjJB3fljwz8p5EtHE4lz13BJ7MdjS+bu8CzwriSj67xkkkH86kH78zNE7K8+FXhGYaZ6a4aqTChJI3SBpM7aJJALON4FvMVv8ZwahR0BQPgqfViUpu2BYFGhTb23ELq+Ysrv8SwRVhYpSsvvfXyULq64++RmhZ/aPybRc5eOWXd1eyyY4e6xXthTPIovin4/8z65KMsWa6HHCfMmmv4AvpT4JUDnC7w7VFuP71I25 X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:NT0PR01MB1070.CHNPR01.prod.partner.outlook.cn;PTR:;CAT:NONE;SFS:(13230031)(41320700004)(38350700005);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: QBsNW+krTaFGTyYjPK3sVTigaIrX9YdjL/uX7V3gLlq4YisPPwFHnf4BKztJQdzthWWjzhg6nuAHrk+tlNzoKe97BnuEK4gLTKxMXK6rRzjH/W65KL37vEHwtwDjkEVJefWGHQ4DyDRGEnGfpEmX9Dlo4D0XRw3S5e0MpuV0ktDv7whuOFg0hk/Qrri7bjALEVKHN7ygSVN961MMVW9jnzpZI/Mf/k7/g19FxY1SGRyEdcntxH2WuUqZqTguTZYHVw3w6l9HX2TnmZSL3KJdsLGKW6+RnidTFE81lJz/5sFyfXdFlTIOWVqXQzCNNWHGYNv2l+QRl5pmpp3xGUGvNHKKzHQMzPccmeJ4UoOVLlOgwBFtdw5WAybAy5Q4hd6CrVPrNQeK2/2xVilUdIONQvdRaKFa0Rej+Lusro6OXjHAzcT15R3SSijPTPY/ISyplhzqLCzx2orozMoDYpv5v4El1xa6rsCzZr/At7IFutbED360vy2nGDIrHRQPDjnY1xPIAf5Ni5OGZz8xjboh5oN9vG+sZT/SPP2bznIrWsy677fSm7spdW8DHRTi5KYtTBjQ8+JKCT0rKB1ua5KIoSVa3ZGLrECWq8GloF2xZWHNPWy8QicfOlfG7u4vnR9Y+ViuOA0pCgmaKflEH5LmUiCp3itOJlX7XK99xHJNZXVXGhu7DSt6uDA0Z6YbK5iSz/e+34SgAI0ltAhSOZ9qIPj8PTL9IaERJgD7qnKCsNC9pbReY8KfQuesLMOTVzGGEeDfNGQxNyiWOwOp0pnwGor3u2c4q7PfNWhgRRnhTdR9x9tjambMKmWXoWrJtA1ifYjrnRQQx2MBdiSW6lwqj+QtkxQ9sTI2zBuXHZ2tDBah3vVPk6Bc4Tmt+Aqur3oHIjBGbhllPuXHFrMQI5Gm63TMwbTWMdptPKij/6RCQCT4tHv/BVk9tEUa0FeKi4yjlwBe6ICKqNAUa2F/Kk1KMkMRV4/MP9y+jZuQR4H1bGU8HxkuiqkRNSdri9axyEsFVbkFLhLK0jgIfrxPVdo3GkushLeI/nX8BsR0AvdVnc8t4soEOVQHMzqgW2HYXH01/OQiSGcLO6MAceicg9dL0IHIbhwGB7e9T+LuCuVc/uWw+UXa1IfzgIgWurVk6+kmjiOyrNAhRUzzYAUI+yh0Yokm3p8LA3R9Qdpy+kMkOkMN+cCeNrruQLFV+CnMiq1XvjOMOHXiAUqsOwGjmIniLdv/ryHvpXEWbdxpLBY0SmzJzoUYolw7LFTUfibetwhC4vSPXt81KeZ8jA6wOkqYag0xNSjgsjVRIXy/fG7MI5fXRrlydrPuqFK7BwA+2gdLbwRW2l8n15gRTE2JMqSSB3PuTBj9WsOAfGWycRURsejSdPYma6oy4s/JxvOqpphBhuRFICUxumukNJRH6MMjJIzMUTe+umiy+AlkFtsGnGvZZxFD0bNKWCpCrTf83s01LVYEGHLKAT4Yz9X9jbVFPl2mPqqp3Mvv46VkDwQ57u6YzdKowzOJiSx2qAZz5v8zrM05Ybwsjk9JM/OJ2TqSh+p2EIqfUxEB2Wsw84qnCiPQDyeOcz84ll2abWSvFYM+0gf3ZzYnovJ2Ojzd2UynKlYMJwDaSHkDNSZGfXPw0KM= X-OriginatorOrg: starfivetech.com X-MS-Exchange-CrossTenant-Network-Message-Id: ebb63d4e-82ea-4036-75c8-08dc399248cc X-MS-Exchange-CrossTenant-AuthSource: NT0PR01MB1070.CHNPR01.prod.partner.outlook.cn X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 01 Mar 2024 01:52:43.0719 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 06fe3fa3-1221-43d3-861b-5a4ee687a85c X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: tWJy/IrJLn7176XrOgvnuBCPVjOuSnC3SJnke+V/tn/dRDpjM66PpknflMfFYjUISRFhgdFMa+UybUq87uaO/xDAMPgBKR15rxhi1A+dvug= X-MS-Exchange-Transport-CrossTenantHeadersStamped: NT0PR01MB1102 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1792288376955720702 X-GMAIL-MSGID: 1792288376955720702 From: Keith Zhao Add compatible to support dsi bridge on StarFive JH7110 SoC Signed-off-by: Keith Zhao Signed-off-by: Shengyang Chen Reviewed-by: Conor Dooley --- .../bindings/display/bridge/cdns,dsi.yaml | 56 ++++++++++++++++++- 1 file changed, 54 insertions(+), 2 deletions(-) diff --git a/Documentation/devicetree/bindings/display/bridge/cdns,dsi.yaml b/Documentation/devicetree/bindings/display/bridge/cdns,dsi.yaml index 23060324d16e..4ad0ecaacaae 100644 --- a/Documentation/devicetree/bindings/display/bridge/cdns,dsi.yaml +++ b/Documentation/devicetree/bindings/display/bridge/cdns,dsi.yaml @@ -16,6 +16,7 @@ properties: compatible: enum: - cdns,dsi + - starfive,jh7110-dsi - ti,j721e-dsi reg: @@ -27,14 +28,20 @@ properties: Register block for wrapper settings registers in case of TI J7 SoCs. clocks: + minItems: 2 items: - description: PSM clock, used by the IP - description: sys clock, used by the IP + - description: dpi clock, used by the IP + - description: txesc clock, used by the IP clock-names: + minItems: 2 items: - const: dsi_p_clk - const: dsi_sys_clk + - const: dpi + - const: txesc phys: maxItems: 1 @@ -46,10 +53,22 @@ properties: maxItems: 1 resets: - maxItems: 1 + minItems: 1 + items: + - description: apb reset, associated to dsi_p_clk + - description: sys reset, associated to sys clock + - description: dpi reset, associated to dpi clock + - description: txesc reset, associated to txesc clock + - description: txbytehs reset, associated to txbytehs clock reset-names: - const: dsi_p_rst + minItems: 1 + items: + - const: dsi_p_rst + - const: sys + - const: dpi + - const: txesc + - const: txbytehs ports: $ref: /schemas/graph.yaml#/properties/ports @@ -90,6 +109,39 @@ allOf: reg: maxItems: 1 + - if: + properties: + compatible: + contains: + const: starfive,jh7110-dsi + then: + properties: + clocks: + minItems: 4 + maxItems: 4 + clock-names: + minItems: 4 + maxItems: 4 + resets: + minItems: 5 + maxItems: 5 + reset-names: + minItems: 5 + maxItems: 5 + required: + - resets + - reset-names + else: + properties: + clocks: + maxItems: 2 + clock-names: + maxItems: 2 + resets: + maxItems: 1 + reset-names: + maxItems: 1 + required: - compatible - reg