Received: by 2002:ab2:3141:0:b0:1ed:23cc:44d1 with SMTP id i1csp22439lqg; Thu, 29 Feb 2024 18:16:06 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCWuc4lJ5RWYa4AvIPnyuMIG/KzpNEKF4ltY8xbWSBrCz/dwDnBZk3+BZb7rrXNMXdLOYRZiSJ2k5SvI2gKO7++2kmRcG30UjviwqCa7ew== X-Google-Smtp-Source: AGHT+IFrw9cvBT4jrYp2o4/nCE2Mwma2+i0LpXQRuCEkgUHGRn5BH286z2lbAYxr7lDIXKwZ3K1m X-Received: by 2002:a54:4705:0:b0:3c1:d11b:7b31 with SMTP id k5-20020a544705000000b003c1d11b7b31mr383827oik.36.1709259366149; Thu, 29 Feb 2024 18:16:06 -0800 (PST) Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id x18-20020a634852000000b005dc4fdcf9b2si2572614pgk.9.2024.02.29.18.16.05 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 29 Feb 2024 18:16:06 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-87817-linux.lists.archive=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-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-87817-linux.lists.archive=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 362D328809D for ; Fri, 1 Mar 2024 02:07:22 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 58E383A1C7; Fri, 1 Mar 2024 02:07:16 +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> Content-Type: text/plain 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: =?us-ascii?Q?QBsNW+krTaFGTyYjPK3sVTigaIrX9YdjL/uX7V3gLlq4YisPPwFHnf4BKztJ?= =?us-ascii?Q?QdzthWWjzhg6nuAHrk+tlNzoKe97BnuEK4gLTKxMXK6rRzjH/W65KL37vEHw?= =?us-ascii?Q?twDjkEVJefWGHQ4DyDRGEnGfpEmX9Dlo4D0XRw3S5e0MpuV0ktDv7whuOFg0?= =?us-ascii?Q?hk/Qrri7bjALEVKHN7ygSVN961MMVW9jnzpZI/Mf/k7/g19FxY1SGRyEdcnt?= =?us-ascii?Q?xH2WuUqZqTguTZYHVw3w6l9HX2TnmZSL3KJdsLGKW6+RnidTFE81lJz/5sFy?= =?us-ascii?Q?fXdFlTIOWVqXQzCNNWHGYNv2l+QRl5pmpp3xGUGvNHKKzHQMzPccmeJ4UoOV?= =?us-ascii?Q?LlOgwBFtdw5WAybAy5Q4hd6CrVPrNQeK2/2xVilUdIONQvdRaKFa0Rej+Lus?= =?us-ascii?Q?ro6OXjHAzcT15R3SSijPTPY/ISyplhzqLCzx2orozMoDYpv5v4El1xa6rsCz?= =?us-ascii?Q?Zr/At7IFutbED360vy2nGDIrHRQPDjnY1xPIAf5Ni5OGZz8xjboh5oN9vG+s?= =?us-ascii?Q?ZT/SPP2bznIrWsy677fSm7spdW8DHRTi5KYtTBjQ8+JKCT0rKB1ua5KIoSVa?= =?us-ascii?Q?3ZGLrECWq8GloF2xZWHNPWy8QicfOlfG7u4vnR9Y+ViuOA0pCgmaKflEH5Lm?= =?us-ascii?Q?UiCp3itOJlX7XK99xHJNZXVXGhu7DSt6uDA0Z6YbK5iSz/e+34SgAI0ltAhS?= =?us-ascii?Q?OZ9qIPj8PTL9IaERJgD7qnKCsNC9pbReY8KfQuesLMOTVzGGEeDfNGQxNyiW?= =?us-ascii?Q?OwOp0pnwGor3u2c4q7PfNWhgRRnhTdR9x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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 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 -- 2.17.1