From patchwork Tue Sep 24 07:36:48 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sandor Yu X-Patchwork-Id: 13810407 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id F2D16CF9C6B for ; Tue, 24 Sep 2024 07:38:36 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 6378C10E5DA; Tue, 24 Sep 2024 07:38:36 +0000 (UTC) Authentication-Results: gabe.freedesktop.org; dkim=pass (2048-bit key; unprotected) header.d=nxp.com header.i=@nxp.com header.b="QlAC5z9m"; dkim-atps=neutral Received: from DUZPR83CU001.outbound.protection.outlook.com (mail-northeuropeazon11013070.outbound.protection.outlook.com [52.101.67.70]) by gabe.freedesktop.org (Postfix) with ESMTPS id 2D44F10E5DA for ; Tue, 24 Sep 2024 07:38:35 +0000 (UTC) ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=I/t1dwHP7bUEZDGmZaaSVshtsHYVdr6Z1VXC94kTEk8Dg61K+M/rVoIJ5d89ErrcU+EUpEQWQXIgnYC8euR2nyRqVlegcn5yllygSeMOmBNo9rAF4aUwuu528yTRnHkAYhamjmf2qz/872buCcZGulh07npQT/5yp2aNDl9ShbkxyD0wbyTw/jylYm75l1xdlq7O4sc3iUcaX/i52uo2VAkNewead2fiKS6bAwdS3yhQBiJiiMHaHDjLNfqAnyT9rMJ/csXdnFq39gm04Zv9uxQ6AuHjliVAAjrP8siaCZgBy07tTmjTiBsixLC9o/RK/h/NLrn+MGVsL2AO3Hg8AA== 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=zhMvV8ZI6om/xAMyPUg6V1q5i/7Rt0cXDmn4F0AbbP0=; b=g+pJ959sYyrX6YwJjbTQtLdNDtx50tFpWQbpgJy3cKyxKlRU3upuoB5szuFHBWwk95pcTF2808kmnJiO0y3T7tjkHb3IPiNegKUDcUhZpuT/vOcsuWUKVdjjP+jipIxGqWi7SvD4ySrOUoLIWS5YIpYmu9Th9SXHBFEw9g7PG8ZWdGmNFm0cKGRKmTprdb/glApvqvQto+KwmYZ+elw7pOf0nnvTcXmi+vY+VDvzUks2WXim4/gqCBylAPwtrbLZ7UOBAXFZHitRYrMR8UCpJZDivqfya6ABkTv01Is6KQfYMVo31pGJLbj7XuFkmoxDHN5NMKPemWTMmYAqv4/mNA== 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=zhMvV8ZI6om/xAMyPUg6V1q5i/7Rt0cXDmn4F0AbbP0=; b=QlAC5z9mRQzJwNt89rCfmCpxhM5bt2iRGET8vWETmvFgckblUyy1He/8xVYnedFNMrRIsNrGs+y1DBhTwSrrtqSvlMXkkJvohwqkd3JdSmH+XquMUz1b79d/KnlHRLcEpZ6qSqZD1H3bmzL8VfQlE3xquxfEhk3u2T+tLME4akOiufzt6mVez1542ffUYI8KOlT7BqQLZAPYNKzWeQzLCm9MIFAvyX231FwiKpLSdedI0JGpkja5UkH4DKNUjlaZjMfluJ8mP+14+XR2PDrWj+CX89YLWUUoKiYgrB7rqvScoeTHxOIT+iWncZ+8fDwmbFmJQjEg4nlFfwRiG77Fkg== Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nxp.com; Received: from PAXPR04MB9448.eurprd04.prod.outlook.com (2603:10a6:102:2b1::21) by AM0PR04MB6881.eurprd04.prod.outlook.com (2603:10a6:208:18b::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7982.27; Tue, 24 Sep 2024 07:38:19 +0000 Received: from PAXPR04MB9448.eurprd04.prod.outlook.com ([fe80::51ae:5f12:9744:1abc]) by PAXPR04MB9448.eurprd04.prod.outlook.com ([fe80::51ae:5f12:9744:1abc%6]) with mapi id 15.20.7982.022; Tue, 24 Sep 2024 07:38:19 +0000 From: Sandor Yu To: dmitry.baryshkov@linaro.org, andrzej.hajda@intel.com, neil.armstrong@linaro.org, Laurent.pinchart@ideasonboard.com, jonas@kwiboo.se, jernej.skrabec@gmail.com, airlied@gmail.com, daniel@ffwll.ch, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, shawnguo@kernel.org, s.hauer@pengutronix.de, festevam@gmail.com, vkoul@kernel.org, dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-phy@lists.infradead.org, mripard@kernel.org Cc: kernel@pengutronix.de, linux-imx@nxp.com, Sandor.yu@nxp.com, oliver.brown@nxp.com, alexander.stein@ew.tq-group.com, sam@ravnborg.org, Krzysztof Kozlowski Subject: [PATCH v17 3/8] dt-bindings: display: bridge: Add Cadence MHDP8501 Date: Tue, 24 Sep 2024 15:36:48 +0800 Message-Id: X-Mailer: git-send-email 2.34.1 In-Reply-To: References: X-ClientProxiedBy: SGBP274CA0008.SGPP274.PROD.OUTLOOK.COM (2603:1096:4:b0::20) To PAXPR04MB9448.eurprd04.prod.outlook.com (2603:10a6:102:2b1::21) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: PAXPR04MB9448:EE_|AM0PR04MB6881:EE_ X-MS-Office365-Filtering-Correlation-Id: d33037ce-613f-41db-ed32-08dcdc6bdc22 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|366016|376014|52116014|7416014|921020|38350700014; X-Microsoft-Antispam-Message-Info: yGBHaJotht/VeSehQE95teb6WOKfI+zkUcNok1ZzGdSWUiAvWj9lvZ0WtdCFVS9abgu5BYdRe1tREy7NXfX6BqQADprbvgMVcLmfDIDqsrStbws0nQfbNsQ2o9G5CdQC9Zj9vNvDLX89dnns1jc1m4Y6Ea85KuQsy1K5DBZHrNbW+xmgCYJieZlUsnh7A5jjpDThCDm+OQwusbnhOiG1v/EOEoaB4Z5V7CSt6s0zbUYC8BQRL5bumqrqTiW36CVXVOHtSg8QJXTeUoOSd3475v6DKy0QIHlGMoL2PgzKV7olZMSeMfjgcT0w7JBkxXosQKA+DKVP46KaP7KyUL9psvIT1XFFuxcjPKviqWaBTFH4nosTMxY5QoG/za9wbC/pbrYJwBGzUsFQjGqChqHs9EzmyQZKytfZGAxG5JX0SZG6GFTfas/TJYfGP3TlCtpYeZFAp1blbIwJS7X/e8nKSnZf5pYiniR74ark+mx7foUS5hgCkZflfshO5WsInbuBOzPrhnD6J7DDANSILOBwzjWgejFq/Y1DHI/HsS6e3mbA3NxW+vjxqkIizCYgsZHIEBcIWOiN+6rp75AwoD1l5vN/wpThkrR2Aii73dmZpKxP1d0eRkzHLpMCplkRrGSWWi0VpqceqmSt8VVEQTnJ2p22JDwTRhPo72Ftv7bbx3N3jNiuS+225IEg27SRkIlF6ZkzX2mNwkN3BzTVFKuN6F2eiKdOAQSSgyO7oazdLgKjwN/W9ETRb0ExRwB6aPnYdUKYXSUIozSblfIVbL2DG1KYa2EiVeF8unlo46cxvwEWrLP8BKA0l43qLhP8yKb7OhOHBTnNYlEDL58ANSiTq56UCBfnn8XhxlZxl0tixRQENba2IZESTtl5Cix3fCgRV17ibp+wHjrboVr/dSAzvob30P+50IimqSZQn4MffbCBmwd2cte5T2DJnzV1wbJoSpr7tSnaZWw0/oFNzDywQtIgGj7ftjOg8LF0AASORoQR24DRJAdEOUKZwBFqpt6Q5+OhCIxr80P0l19F+X2vzGjODtQNu7oFXnAnOy/EleYoApiY337/F/nfnVxoXY4GVnXSLANeJQwKKLrMiYQQJa1MMJVjeZq42CWTyPn+UdTB4ZcQOXaRQmYfvo+EkhQTVzfj5RiGCjTLwj2GWVdt7uMF2ippZJx8u8g5vpzBIdIVI1YSz/TRis9W3TiqC9zLGkiEVzVWlrC/T1dqI62PeNIYpPzf4L5KqnKc0iKhrMhEchuVRh7tMe8UXdliGVI/Ysm3fIky+usGjVGn1mw8ArYblJ88wF/1zZNXUvfJPTcuUuProUI3R0e74UVHJ3fDOG8ucDztmvf8VfN6oUY22GgHTXk4onOihoNp/wVBTSJxI5aE2pZ7nH6d9J7YyGnI X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:PAXPR04MB9448.eurprd04.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230040)(1800799024)(366016)(376014)(52116014)(7416014)(921020)(38350700014); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: riIdd8Q+1gn1wfyhAh++hdNVy9SuAIXmzAkCyt/wkZjOyxY5uU07ur0lW3zJfpWvdk0WwfUcGaFX7F9HlEYpa/E21eLiiFewE7TrucIlRqsuiCRLvMnGItC/ai+RYJ+LVw3K6aLERFcQERorN8xCI+QR6yK2UEsBR2YXsfqkXIA2TILHPn285Cm6gHFnPzqJUZ1J78BiLUZFqBojHhXLzBSmbxCr4u7WF/aNRpWBovVRROF4Njq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zHfuZSyqHKVzZrRXHpuS3i0Z9QyI1mP/yryc9V99Sz8fy71u6Lw6LTDoCACHZehkhqsxL0Fg2QLZ01c15OGNMkrXhjIzEQ5BbD45jdQ00NlhPOGA7uGZSYySX6GMp87iPc2FZ6//fOZBozDCMVIuFWcijpm1P6zRwQeFPhgY8cRNgyvCXuil+3/Xf66kKL/vxCoAniRcCfNFBHbsXFYxV3jk1PzDEqQGZAd1aBM3VFRaGKo6xhkgLfodxYtVQpbYgJBeX1LYhQFzTNiL9RSPjUiV4 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: d33037ce-613f-41db-ed32-08dcdc6bdc22 X-MS-Exchange-CrossTenant-AuthSource: PAXPR04MB9448.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 24 Sep 2024 07:38:19.4713 (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: 5UMNevjtTNxPfDh8vxNoqW+pMP7koXGC5w+ziYtHWbNJD3GrDHLVKuYu99l618b4LX2Cet//SfVgpTcL6ROGJg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM0PR04MB6881 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" Add bindings for Cadence MHDP8501 DisplayPort/HDMI bridge. Signed-off-by: Sandor Yu Reviewed-by: Krzysztof Kozlowski --- v16->v17: - Add lane-mapping property v9->v16: *No change .../display/bridge/cdns,mhdp8501.yaml | 109 ++++++++++++++++++ 1 file changed, 109 insertions(+) create mode 100644 Documentation/devicetree/bindings/display/bridge/cdns,mhdp8501.yaml diff --git a/Documentation/devicetree/bindings/display/bridge/cdns,mhdp8501.yaml b/Documentation/devicetree/bindings/display/bridge/cdns,mhdp8501.yaml new file mode 100644 index 0000000000000..3f79f328c7425 --- /dev/null +++ b/Documentation/devicetree/bindings/display/bridge/cdns,mhdp8501.yaml @@ -0,0 +1,109 @@ +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/display/bridge/cdns,mhdp8501.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Cadence MHDP8501 DP/HDMI bridge + +maintainers: + - Sandor Yu + +description: + Cadence MHDP8501 DisplayPort/HDMI interface. + +properties: + compatible: + enum: + - fsl,imx8mq-mhdp8501 + + reg: + maxItems: 1 + + clocks: + maxItems: 1 + description: MHDP8501 DP/HDMI APB clock. + + phys: + maxItems: 1 + description: + phandle to the DP/HDMI PHY + + interrupts: + items: + - description: Hotplug cable plugin. + - description: Hotplug cable plugout. + + interrupt-names: + items: + - const: plug_in + - const: plug_out + + lane-mapping: + description: lane mapping for HDMI or DisplayPort interface. + + ports: + $ref: /schemas/graph.yaml#/properties/ports + + properties: + port@0: + $ref: /schemas/graph.yaml#/properties/port + description: + Input port from display controller output. + port@1: + $ref: /schemas/graph.yaml#/properties/port + description: + Output port to DisplayPort or HDMI connector. + + required: + - port@0 + - port@1 + +required: + - compatible + - reg + - clocks + - interrupts + - interrupt-names + - phys + - lane-mapping + - ports + +additionalProperties: false + +examples: + - | + #include + #include + + mhdp: display-bridge@32c00000 { + compatible = "fsl,imx8mq-mhdp8501"; + reg = <0x32c00000 0x100000>; + interrupts = , + ; + interrupt-names = "plug_in", "plug_out"; + clocks = <&clk IMX8MQ_CLK_DISP_APB_ROOT>; + phys = <&mdhp_phy>; + lane-mapping = <0xe4>; + + ports { + #address-cells = <1>; + #size-cells = <0>; + + port@0 { + reg = <0>; + + mhdp_in: endpoint { + remote-endpoint = <&dcss_out>; + }; + }; + + port@1 { + reg = <1>; + + mhdp_out: endpoint { + remote-endpoint = <&dp_connector>; + }; + }; + }; + };