From patchwork Tue Dec 17 06:51:46 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sandor Yu X-Patchwork-Id: 13911373 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (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 4BC40E7716A for ; Tue, 17 Dec 2024 08:24:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=09v+0TpoYGEaWo6u5MQdL9d4wPb1ULC2Gp7MCDnw/ec=; b=FPOrH46T0ijyev yNIZ0FfUdxBbrljTlCvwakF2sFObXz3e6uFhZoISbnisW/BRdKHttk7I9hajKe0vUl03tE43yX2gp TFFfS3QdDMVu7RDMmwhNqIL46bP1C3AB4UudGbGMNndeDjJKDbdtT04Hj9Ht9KOXFVHo3Mc4Or+bt xt+HFTYZwcpfjmeaL9RE8IXwCjoUqHQEf4672O8NGOtRPKi9b9CQ3Gfk+qdw3v1etfXdQnzez4vVS 8KA4qgRciMkIOKQiTa4Ri0sRwSrmN/0u0DdUmDI0v1skabh/0eALEgH7krNG5rOqUZeW9g9wJBkki DlDSYhf0yYuUOmaISvTg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1tNSsz-0000000ChNR-1cAF; Tue, 17 Dec 2024 08:24:57 +0000 Received: from mail-dbaeur03on2062e.outbound.protection.outlook.com ([2a01:111:f403:260d::62e] helo=EUR03-DBA-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1tNRSm-0000000CU6M-3L7B; Tue, 17 Dec 2024 06:53:50 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=KHWyAT8C8bWoDvOgrcmobUfTfTv4txYn2a//yw9GVPx5eBNA3IdH8F1sKEQdG4U3d4ZjLq0v3ItVZcKgbvN+ec5Te4xM949ivHBHTOFWEpyxeMfZlejTE5CTSXbyAmQZ1GWfPAfaXZydD2cTDQuBvoVPPji5H51ojeTy6hNmbjg09XrvQYj7uTAfOGXqEJ0vJVBhfKngEP4sC3W6OJtivYh+4mlzvxXspPa1w1qJ1tB31RJ39KzwrKM9WX91uQ3kzCHG2IkFYZxo8iaoW3+ndcJ2UB3sOlO+DDAoAiKdDkwwQmi9VCGnNbtJl0eJQGDtbKg2hXWt4z5nps+E1t0vNQ== 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=bJRZ+bxBzMs8rjogrl9qEflcdJj9tua4H9AFhCHXhLo=; b=Dte3DvUs2lzmAgIeMQiN1TE1TZuQKsan1nioW/7V4ohLgnEMfkNWPcJkAfaIVhyjzD9eGbBS96073/6DThcWGySDqIREbWdyj6iq+FYiy7Hi1t9EKbPi47AEV9Oah+ztZiJTGAtIuKSNB2VugeqscGZ+J7CYUgZF9RE6kxpxtuDqGSkyeXEHhVzFeW1dFnSy6g7jTpD1CG7PFIpEwtVF1R4FBfUqKUMQpgpgWrlAmfk+M7m1acv8KTGmQcjgXmJ6O3VMxVe8Y/jiy72MVTZgQPhfriUmL+AvCudaZUL98QVNwlzNs5d7WDgc8H63O/oNX5aG2sNC82hgUtYAl6XvAA== 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=bJRZ+bxBzMs8rjogrl9qEflcdJj9tua4H9AFhCHXhLo=; b=G4FqX0b4+RCDsIIFSqw/QjC9S/8UjHji6bqTkRh4vihBPpojAHQQrm6mHn6CvXcbZbG5/g6q0u6tm7GCNAMQAOugGo9TfCmWyPMPvF5TS11lEjBJk2SGga+hs8G8WeqVFpyaqIxlY6pRswvpNM62YKbTInlPCt9VJ37zrenhMT7eUKOTeZ78c2TpCSaAHD7YHFXR+JhxtU3F/Uj1f3h0X1cY9ecPHI64zXOQIeCdhLgRwVJ0U/OAhF2ifqLrKbAdLfvQ/RW0XKaWwIR5g2faF4zap+SmtVbai4H5MNaBCGNAHZ6UHd6WxQUR0MUV0/dmOTCWLCX5qhHtc4ZQ3o3vIw== 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 DU2PR04MB9196.eurprd04.prod.outlook.com (2603:10a6:10:2fb::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8251.15; Tue, 17 Dec 2024 06:53:44 +0000 Received: from PAXPR04MB9448.eurprd04.prod.outlook.com ([fe80::51ae:5f12:9744:1abc]) by PAXPR04MB9448.eurprd04.prod.outlook.com ([fe80::51ae:5f12:9744:1abc%2]) with mapi id 15.20.8251.015; Tue, 17 Dec 2024 06:53:44 +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 Subject: [PATCH v20 4/9] dt-bindings: display: bridge: Add Cadence MHDP8501 Date: Tue, 17 Dec 2024 14:51:46 +0800 Message-Id: X-Mailer: git-send-email 2.34.1 In-Reply-To: References: X-ClientProxiedBy: SG2PR04CA0214.apcprd04.prod.outlook.com (2603:1096:4:187::17) To PAXPR04MB9448.eurprd04.prod.outlook.com (2603:10a6:102:2b1::21) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: PAXPR04MB9448:EE_|DU2PR04MB9196:EE_ X-MS-Office365-Filtering-Correlation-Id: 5e95c237-6016-43d5-04ed-08dd1e678c21 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|7416014|376014|52116014|366016|1800799024|921020|38350700014; X-Microsoft-Antispam-Message-Info: kOJxZp1rMICAoT4H19ziUDgZErZtGjq2eVP9NOqJLbZrvWWYbe5eKK/25pV1ZKgCAsRdlk8eH7zgr4YqNokKdA9byCgMWmFM5/BtOOIFV5gnltYS7NH5yCUAiew0glATKcscR0rQ7yEawqixsQB3vxHAO1tBHt3TOcS8ucFYgfnzYSPr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FQJVos/yLioWi10V5TslUdyvF6n8ZWX2yEf7edrUbgtSJkcWsvBZxq5hh/MccQOelwr+GjyUDFrMtDGukuCr03c5Vt5m+E3aSSOoMmrqGsx62vMdn780FpOaFj1W0BuEknm7UGp7sgNcRCRUGZFNK3DqDoBCTRpLlgkM/c4afKhwyn4VNjtKRmSs3S7LYEJFQ== 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)(7416014)(376014)(52116014)(366016)(1800799024)(921020)(38350700014);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: RJyv/qcBR7cgbIY1PYd3K8DmJm35l/ehM+K795L3UY+uzZbH4tdqgZxkLPYF2uF5h2ukdhPMOhmiYEtDsztbEdgBTYvdKh8BGcfUYJKpUj6sGJhq7Q38UuBezQRF4n2HKQcoG0ehpX4J9MvV+ZqIs4A5EPhhzTdL3UYAD8DJfw+Qq3WgpOBSbgnPRNr5xzN70IPBn+voBKNPV4LGvyhfF0sTnudQvC1b0AOqWBXUQsxQkpZ2MSEeWmyZHMRbcMD1WN4sFSrEITBUh2m4/BMxtZlOD3gmIAU1esWrfUAIKPky1O9ekoChO0hy1LRup86SaHHWDMOtsY0xfJmLBJ2eAq5hARdZvdjdVmdW2rWkOOMimOdNIutienuiDuX5OZWW3tJicgDy3mTcBIj+poWfgEy+edteFbEaknHNN1aDLnlNUxxhYcr36fyHGuFQhS6d4BUvGaaoVq4z5cOrJgF1uMGBFsRvEQHlFdcW1XQ/9OD9SRtAKsQlM3eufMPmmBr69cWiI0oQms2DpUBSae2vkEr79zYtVe4FLXcq52/4Olr6vCACswCE8SakmhgzBVLlTEAzXjJh2LW7yUziau5NqFa9WiEH+l4I5WV9qauF2FNyFQ4xr1nyf3tMx56SrJXcLIZKaulzUajfN1cHHizqnGBTg7P8YfEmRD378rpvEQrGDEN+qC8BeccLNWXfDZMfwzvckfioGkATkg5GZlmGmtR4AgMYijqdq6fliMbCt/myjlp70js5jDWoQ8OXq2WVLU/zrHi7f6jV9SzsfBF1tqZhIjKpUBytQiXRYWy7xFpeb4VuKFDNSPkgqhXtuCt3N17y+AAM5/9VdPe7Y0CN+jzCWdPrPb7bkxivpIHmgR8q3m3nx585bAzEiHVt/vxHnK5lHkuRtXhlSkZ6a0AExFpEQcRmO4KzBLz6xjdUS5218zz9tA5MLTxG2vrMD3TMVi5w8KV6r7jDDKqDupSFUwKD1Bhsj47qnOAzRj/CQm31MI8pAlrWaIJR3urjM5bAAxNkTJkuG8av//RONxLVQTMUvjpmskmtDyfqPKRbXfi0F3gLflRn2yf0BTW2q7k/eRrM4Ho4S6EdHR1nNFjVdlWJsA757W9LlxeWm/U7zWQsliWEwR7iHY72HO64P19pCYno31S0UGKdqetgcBxt5vreyCeo4n6gSZbHCV51x6+Ve4s8jE15OA3dR4ZyaxsLN7ajOF25vgEl+OhHNdBdp9AHVvnq6UzEzr6ff36Rfnkt1ReTYD8fG6gAPDyX7VpSebW5NgEaee4UkWawoyWk7YFAy9LW4L9wt3wb2oryUHTVEY0Y2cAJWtPOc5P6mQzjbPEbLy1UxhhFwcVKfXoWO+/HWha9hUSqEB9eCOn8hItNaTNJJNiVZA+7YH8MwjyL04LQ4QxoUBGMZH0AHq4Voj7jL8sar3lOxdurrKZdtBPfuH/YwQP6umnMoOUsUQKl7Lv+JldOgPUGI40fffTH2l2rvS2IoBMXOYHApqck1MtDhPOjyu48dctxaLVSUMWzuNEqy18pLG1bqE3h+Yqig2ZWi2J9Ro6vUj0ePZD6Gscxt3wVA9So6g6kyj1AckIY X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 5e95c237-6016-43d5-04ed-08dd1e678c21 X-MS-Exchange-CrossTenant-AuthSource: PAXPR04MB9448.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 17 Dec 2024 06:53:44.0020 (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: K2NLX/BSHDrrukAn3VCTnknBhBTddIcGIuQRRCdLFb4EqGlMaNvQqYv/gyNLnJL+ikjzmdMXateXtcI5CC6+fA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DU2PR04MB9196 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20241216_225348_830148_DF57D3F0 X-CRM114-Status: GOOD ( 12.42 ) X-BeenThere: linux-phy@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Linux Phy Mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-phy" Errors-To: linux-phy-bounces+linux-phy=archiver.kernel.org@lists.infradead.org Add bindings for Cadence MHDP8501 DisplayPort/HDMI bridge. Signed-off-by: Sandor Yu Reviewed-by: Krzysztof Kozlowski --- v19->v20: - remove data type link of data-lanes. v18->v19: - move data-lanes property to endpoint of port@1 v17->v18: - remove lane-mapping and replace it with data-lanes - remove r-b tag as property changed. v16->v17: - Add lane-mapping property v9->v16: *No change .../display/bridge/cdns,mhdp8501.yaml | 121 ++++++++++++++++++ 1 file changed, 121 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..2417f4038b437 --- /dev/null +++ b/Documentation/devicetree/bindings/display/bridge/cdns,mhdp8501.yaml @@ -0,0 +1,121 @@ +# 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 + + 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#/$defs/port-base + unevaluatedProperties: false + description: + Output port to DisplayPort or HDMI connector. + + properties: + endpoint: + $ref: /schemas/media/video-interfaces.yaml# + unevaluatedProperties: false + + properties: + data-lanes: + description: Lane reordering for HDMI or DisplayPort interface. + minItems: 4 + maxItems: 4 + + required: + - data-lanes + + required: + - port@0 + - port@1 + +required: + - compatible + - reg + - clocks + - interrupts + - interrupt-names + - phys + - 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>; + + 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>; + data-lanes = <2 1 0 3>; + }; + }; + }; + };