From patchwork Fri Jan 10 16:17:32 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Frank Li X-Patchwork-Id: 13935117 Received: from EUR03-VI1-obe.outbound.protection.outlook.com (mail-vi1eur03on2089.outbound.protection.outlook.com [40.107.103.89]) (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 E71C8212D82 for ; Fri, 10 Jan 2025 16:17:55 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.103.89 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1736525878; cv=fail; b=jtgeRQEza9tvN7RBGearbjeJqzewaczJXe0N+nuEGH8eit/h6FAAxVR6QCBnHwp0Ugny6xLdObDvZ59H0EzbxTBohJnN0oXKAKya4nLJsED7mIy6S1GWNFAg3oBa7ZJFId6JQQlk4IjjUcKf5RbElaRlLSrzdODrDGquP1qTsUE= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1736525878; c=relaxed/simple; bh=MJ7eT2yk0niVHQWYnGRMlNDC9sX9K/Keew+HMKXhQ9s=; h=From:To:Cc:Subject:Date:Message-Id:Content-Type:MIME-Version; b=b6VmBPZbYQ8EM4mBrw71pJyXlOlj0C/bkFiRcRfUCEbmvhnjas0QVO2sORV3fddYdb9L5RIRamtRg4DHxoY3EY8r05qAnOsWzXyIWEsSHwKwfBG7FnYgiFhFnJ6lAvorX/dbZYaLBPh83Nd1Lcvl9e8C/rfqVDxBHZoo7RD2esQ= ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=nxp.com; spf=pass smtp.mailfrom=nxp.com; dkim=pass (2048-bit key) header.d=nxp.com header.i=@nxp.com header.b=WViFJV2O; arc=fail smtp.client-ip=40.107.103.89 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=nxp.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=nxp.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=nxp.com header.i=@nxp.com header.b="WViFJV2O" ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=kHFCnEph/LSa47fEcgE132y6o7bBiYRC722gdFZQH54fYyATCUSFh3iiyVo3onLe1qd2DzqMfQjGEkjMNEUutAWrov/qm0Ry0f5uy1j6/93yFUBXdUcAhDibfJd2wITzIP2Y6Ca29oOA4PmRS2+tvWdPnmplLz8TqP9LuXIPRja6z/98AuCN5EGF1QKVHVYIDqLJGxFo1Tcz89bldXKByCcvnBug2v3z5197Tp4mFjjTUHu8GYWHanyXAldR/CWKVYRDex08ZUq/9LyVxCgJ+G058QHf71EDJbcN4FIQd/se+AijDwkAiUscPLQ2T6geWCItNL49F09ZWPyM9HcwkA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; 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=yqacPcDHNsxsK1vX2B7MGShUVZ9yNgouunsr+xQtmTE=; b=rSebzOfbYBe9jC/lS3lVnw9CMezHazS34IukGnLwF2Teu6C7xd6iZ+GKGu7lCcS/0a6FPEZLeUqB7W4de2C+uq8L+n7s9hkfNjqhqRgyxUQUYn0Z0Qv+ABRAgZsWoZjWm8FM+ZcnIcbufDsCHXp2lxcG3AwlslSx3SUFYsneQSgLzMr8JNhYylPAoSoimPDNpro6WDjK6WeHiy3D0ucprUfOqV2Zc2AvMQKPYhFU5GBAZArdWGBT6eUgjrmnKV0np2dSXy1S3e6CCTML4Us94zRXNf1djgyEm0/KL7Xn6ESpBbAusyfVarp7rgJX2tqhuUbEyubIKI50J/nre8D3yQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nxp.com; dmarc=pass action=none header.from=nxp.com; dkim=pass header.d=nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=yqacPcDHNsxsK1vX2B7MGShUVZ9yNgouunsr+xQtmTE=; b=WViFJV2O5Eh4vmH9FQbBgS7sBbG5pqOmASro/SrlS41yx96uD2hSNVuc0LF27HeaxKHME59yfiaBT+gkf1as6eTEGV04MK1oFSQm/dym80Ql/+j0sklNQrTzhw3CoaA6FkBCMv+Ys5+kvXotgpu1cwcpG7TtamKRtHphy+2I6TLDwHkcNsbs3S9DtDsFeoBxMOr+QhCAteSSY2Vlp0en8QkOOdkA2a3Kkd3pD/RmzZYcGLBVWEuoOEYGM0BEOuGHsvZbsMY9rftgxDatYcJISDoOnrAhxfIFCqm/L69LdL1SWftfpROu+p9qNrtgtI1fp0v9E0p1vEeZeUNuvTS23w== Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nxp.com; Received: from PAXPR04MB9642.eurprd04.prod.outlook.com (2603:10a6:102:240::14) by AS8PR04MB9512.eurprd04.prod.outlook.com (2603:10a6:20b:40f::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8335.13; Fri, 10 Jan 2025 16:17:52 +0000 Received: from PAXPR04MB9642.eurprd04.prod.outlook.com ([fe80::9126:a61e:341d:4b06]) by PAXPR04MB9642.eurprd04.prod.outlook.com ([fe80::9126:a61e:341d:4b06%5]) with mapi id 15.20.8335.012; Fri, 10 Jan 2025 16:17:52 +0000 From: Frank Li To: Andrzej Hajda , Neil Armstrong , Robert Foss , Laurent Pinchart , Jonas Karlman , Jernej Skrabec , David Airlie , Simona Vetter , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , Rob Herring , Krzysztof Kozlowski , Conor Dooley , =?utf-8?q?Guido_G=C3=BAnther?= , Robert Chiras , dri-devel@lists.freedesktop.org (open list:DRM DRIVERS), devicetree@vger.kernel.org (open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS), linux-kernel@vger.kernel.org (open list) Cc: imx@lists.linux.dev Subject: [PATCH v2 1/1] dt-bindings: display: nwl-dsi: Allow 'data-lanes' property for port@1 Date: Fri, 10 Jan 2025 11:17:32 -0500 Message-Id: <20250110161733.2515332-1-Frank.Li@nxp.com> X-Mailer: git-send-email 2.34.1 X-ClientProxiedBy: SJ0PR05CA0115.namprd05.prod.outlook.com (2603:10b6:a03:334::30) To PAXPR04MB9642.eurprd04.prod.outlook.com (2603:10a6:102:240::14) Precedence: bulk X-Mailing-List: imx@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: PAXPR04MB9642:EE_|AS8PR04MB9512:EE_ X-MS-Office365-Filtering-Correlation-Id: 77564641-6f49-47f3-f887-08dd31925521 X-LD-Processed: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635,ExtAddr X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|1800799024|376014|52116014|7416014|366016|921020|38350700014; X-Microsoft-Antispam-Message-Info: gPZy18UZvWKH2VB9ftwQGSIoyoKY4P9JuKKFAFXAop8kQc8BymeAFJW4nHGZyqNm/vBdwuw/eEDOaHLQOikd0Tn+nY/N8S/7Gtm6NIjsqPzuxsVfgpscLmcEwZJnPIwvi3jB6eRhFTaL4hSMMAJ8eT5CotMqGLWD4dFvJ5OhHXwyi8aV+8jPYIUQUc7ezoUC/RMePEIIhKxuTXhfbArI3VUzdj0FnKW28CAgbwkT9trqGuNVK+lhTn6GpTox+6UXcmVXBTWMOhfsHzGSonDDb6RZ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vtzLXXqimNRP7GO1nEuT061ejKo/hF9ycBdPd9466YtqSq0RL9/cKpuXFCFt0PXad7wbJEmstGYetJlxJXpl06wePbfktH1AV4/ITsDNLQ7TTquXn3DAy1LsRXc2EJO10B33Uv1gA== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:PAXPR04MB9642.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230040)(1800799024)(376014)(52116014)(7416014)(366016)(921020)(38350700014);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: tEDs8KLHOIXSZsYeJdgVehhNr7Wmuz+e4sWB3MDEPh/uNIX1HPH1+qaH1QxkBWfzzRpVQ9eohKT18yw9i2o5XCDv+Hm9HB7jq+EeVVq4WrAumuQc67eQpCl18zD3C5pS3S+eU+nVY7Jyx7wl+HbUU5doILDCUwan+UWPgzSBAe6+wLV+jnQQLegadwPLz07wC7ozR9I9oZ18ldm1WDr6AsFp52C+5hqFEHT3CPHHz+IdGcHgDn46l7cuZYd1IxwO1urvFq+4JGK+MMFO9l6RQLZdiJLD1gVAFRLs2hwv7etGxPMLL9nDUspaFvor+Fd2Jd12XNDj2Z3eYE0WNnDJ0oZGvjL1hLk5l36OLpakVYJrkEyzbdhjYUL4CsjtlkkKiyuzdbKRVUl7eDXhpGcJdwHVf+ygp5874dcFIxThJQvuT6D1NuusFaEkcPNBPrk774KF7OF0hoSjQUULNxoFwfyiePP7BP5vi/+vxXFzDiPck/ExLu4exYB1uvZ/ruXmOlo2X1Oq48KSQ7KQchCxoom/c4qa6TDVFA6u1RGhlPTfuoKogbN0ZjmTvk4VFexMjIih+hlpLz5NieL7ec8Vu0zDo1+QdU8DEubzW0StCb96HwA9+T3bzrIVYUXHa+SyAArU64rD7p/Dc1H+BBSW53yiHetseSJRn7zt6IVTv20EvWiwx7occw0YqXOMTHAjGtYaYBmVGnVL2lop3UashQV91RruRQkKNLK5dr9D5Iycf7k6WlJ/yrsnIZvQQC9GNV9XOCm2z9dwU3D4K4GNSL1y8UA+a6CJw0wffISBGjt8WTitETntge3+Qxylzy9s48rP+9mVfo+IyVbY1YOx6otSWXvxgu6qtBQi64fupb4pJmzuSSAm6essBNcfIiK5930P5+Sx+zLLUp9vCHfF77b1HtQKsbOEv62tVVthjrLWyl6OaunYMKVyc+tQYA++IYEvCUTpWi0LqX+54TFYmBBPRcyizXYFQsZ7RAMgoJ8CGkW+Q4MGkNYgyk8OTsV7fx+nMpfWioaokXxmB3M9wBN9Cuh9BYIxiWOCMM5A1GZuAJBMHFv5IY+IMyD56kFR6qxxHGkH43dfP/BtBsXnTQkiEIyNpzXNtD75zZUKmDbnpB1SkyChCIhWUBzql1WFD666aU6pmANERrb2NgAtGARzP/XJsdWnm5+UQXpQw8LeqbHe3tgSVg0Kd+oDWqrnbzc7adoTu3g1CTKsJVY2mDjnhO30/b9ad/C3iduhj19kifaLMO8LOAOmlPd463YUJVW1N1p/JqDX4TUfGka0YcwW7R7b8mOEqxzJ8ugBfUTGbkBKpHKFAwoGYueOCRhN3y8ABAc+mfHZWyhqMWJLKQCPmKeUkaabjDgiGlJKS16CUWxCmtX+rSouqc1g4PvxjufWjF7JYVQ+0Ld0WNLBjIQfN0jJI9rCb+i80gGFopW9RkJZxyGy/Zhs3J7JVKkrt2Q4W2S+/14jcfqLHz5tKzQt9dvaWk7knDqOBfJZFdtxPaDvHP3OeSOl966tGnLYLS/edVkdLV3x7vWxdRkDSSawONpXuqqSsq3ydzM3a9hhV1no5uzQ2M5yCfPqTF3o X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 77564641-6f49-47f3-f887-08dd31925521 X-MS-Exchange-CrossTenant-AuthSource: PAXPR04MB9642.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 10 Jan 2025 16:17:52.1216 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: esTwWeHGFVZQGa39FvELmqjKjAJpD8RnY/1suS4yKC+jCrlVfYbCs/eYQwrT2+TZH1IUC1/4NNcUL57OQo+YYw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS8PR04MB9512 This controller support scalable data lanes from 1 to 4. Add the 'data-lanes' property to configure the number of MIPI display panel lanes selected for boards. Change $ref of port@1 from 'port' to 'port-base' and add 'endpoint' property referencing video-interfaces.yaml. Allow 'data-lanes' values 1, 2, 3, and 4 for port@1. Fix below CHECK_DTB warnings: arch/arm64/boot/dts/freescale/imx8mq-tqma8mq-mba8mx-lvds-tm070jvhg33.dtb: dsi@30a00000: ports:port@1:endpoint: Unevaluated properties are not allowed ('data-lanes' was unexpected) Signed-off-by: Frank Li Reviewed-by: Alexander Stein Reviewed-by: Krzysztof Kozlowski --- Change from v1 to v2 - Add the reason why need 'data-lanes' property in commit message. --- .../bindings/display/bridge/nwl-dsi.yaml | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/display/bridge/nwl-dsi.yaml b/Documentation/devicetree/bindings/display/bridge/nwl-dsi.yaml index 350fb8f400f02..5952e6448ed47 100644 --- a/Documentation/devicetree/bindings/display/bridge/nwl-dsi.yaml +++ b/Documentation/devicetree/bindings/display/bridge/nwl-dsi.yaml @@ -111,11 +111,27 @@ properties: unevaluatedProperties: false port@1: - $ref: /schemas/graph.yaml#/properties/port + $ref: /schemas/graph.yaml#/$defs/port-base + unevaluatedProperties: false description: DSI output port node to the panel or the next bridge in the chain + properties: + endpoint: + $ref: /schemas/media/video-interfaces.yaml# + unevaluatedProperties: false + + properties: + data-lanes: + description: array of physical DSI data lane indexes. + minItems: 1 + items: + - const: 1 + - const: 2 + - const: 3 + - const: 4 + required: - port@0 - port@1