From patchwork Tue Oct 29 06:02:11 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sandor Yu X-Patchwork-Id: 13854382 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 8726DD5B874 for ; Tue, 29 Oct 2024 06:04:47 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id C0C0D10E59F; Tue, 29 Oct 2024 06:04:46 +0000 (UTC) Authentication-Results: gabe.freedesktop.org; dkim=pass (2048-bit key; unprotected) header.d=nxp.com header.i=@nxp.com header.b="KdepZIxg"; dkim-atps=neutral Received: from EUR05-AM6-obe.outbound.protection.outlook.com (mail-am6eur05on2045.outbound.protection.outlook.com [40.107.22.45]) by gabe.freedesktop.org (Postfix) with ESMTPS id 1270010E59F for ; Tue, 29 Oct 2024 06:04:45 +0000 (UTC) ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=DfqC4TQx8msDr0RTjGJKQwGMaPQyvPBhtSi+oiGbWOxW/HqUiJLlHc/4ZYCct/VD889qX6Ava11RNUsqgbeHjjKRcoLrXX1x9Kj14OSSEcPqN7J6wQAykzYTGhInOEhqvNLtKf9INyvknRQpTVlDYw8L5/u9MoNVM5rzHDrtHK9Mjm5WsH/m/sGM1jvUafCpTLAo3LQPQ2lur8lv731VZKF6aOKb37KgNJqC4Y4GuOUSH4Ls4/yCdIjjYEJcg7WM9Tp15S/f0gMKDs7xUeyePm/GcWN74JMjZQ2vnLBY1A+B4nEOzaCDy2q+GeQ1CYGGWu6Z5g+xyxvKwrvUN9gLsQ== 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=0n76L3OPNHqO2xGzcIIM5DY99F3ucKEx6P6cCU+XKYg=; b=WPsVly+05jqU1x5dHqmuU2ino+bohfXMqB2lBZJm8Befb5uy1Gv997PnLcFVc5nb3ek3YCZ5kzOyCD6XQElU/FQC/btqadx44TDrka5DxnR2BIGd8GhfIkaLBDBRlP6veuSZizD0ABLsPHXZ5PRIyolQl1UihB6r5rJjPKKKvLKa5wp4maVKrutPkmjoYYlspacW9xftGFGQ1RjohZHEWyiL4kutz7M2qXWR8BHHvuwoRMvheJfO2WHNYf9KWCY3/+yeBm2qtZvh9kH03OMOdBKtNm4Mncw6mbXRv5bo9lx+iCgJfWs0iiqr/ENtYizfIz4epYIv7RAGVUKmg6LWMA== 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=0n76L3OPNHqO2xGzcIIM5DY99F3ucKEx6P6cCU+XKYg=; b=KdepZIxg2uGNi+D++MIZYm7Elpc9T5Ek/yo+RbsXwjV0PYTjEFPVbHZvjBzhroMzVb+9ZZajVnwjwMxNNPdoVCLLNMdB+bvMYeelBhsFXzoo60RJ8rkqvgJ6uCjOfrTRZEugl7Y5nUHcSMXNpfF4fy1hqkUkTUBJH8eJr7Vr5OIqH5YDCiRsAHqx2LtlgdMEYATpwhSmVKOqmOds7G4shqcui0v2XkDIK3unjrN0+54yidcClHpXp+yy0rDnCMbk2VAtS8+zonRgGFV75y9y0ZxGJWl0ps0DeKH9XgTlp8O7PaNSxlY9fcMtD2SbqN230DMMYd7wkB/42WRt4L7YLQ== 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 AM0PR04MB7172.eurprd04.prod.outlook.com (2603:10a6:208:192::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8093.27; Tue, 29 Oct 2024 06:04:42 +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.8093.018; Tue, 29 Oct 2024 06:04:42 +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 v18 3/8] dt-bindings: display: bridge: Add Cadence MHDP8501 Date: Tue, 29 Oct 2024 14:02:11 +0800 Message-Id: X-Mailer: git-send-email 2.34.1 In-Reply-To: References: X-ClientProxiedBy: SI2P153CA0003.APCP153.PROD.OUTLOOK.COM (2603:1096:4:140::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_|AM0PR04MB7172:EE_ X-MS-Office365-Filtering-Correlation-Id: 200794ef-a466-4b44-b323-08dcf7df9471 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|366016|1800799024|7416014|52116014|376014|38350700014|921020; X-Microsoft-Antispam-Message-Info: PWvhJysa0jSM+IV2exp05m+PoWau6tkdPOKYpe5h2gMqV4k8wjimFHPFwJgGL/wIfClSp0BTkhjtGqih/aGHEfM3g3CkZ9jlsmSlBvzohyV9SSz8Xci96YsqobWNUXu+Hrl7PEnMg7dFp1TUsZoRS1w2V65o4jKtW0RrIoaKn8MnEkycRzCZJvCA+mk91JgTEgFUwm0bwywns83+503R+G0AIXt3CaDsy5eLxs0nyt27W/sGNu/IFoV5AVptbLzrfMSMfURRsBKI8mMycMSz5z21o2P4g+M3N1jc5/OjmodlWJa1w6cjyzhwdG9fhEpYlAV9sctH3PkZ0t3htYHHHPvbmt9Fg951rTMmMkKldy5Hw9gJcGG1vq93YynyCjUTuAb7Qk0DOkBbiSDKvnkA2mV6LlOJ0GLQVvC0r9kq/SUmr7Y0VerkaS+xvp+3ybJU8KfFqB1L942bC8we77aNA5ekT6EjIga/CDvdFifxvT7SRMlaA81HH9OJo/mHKn3zWAHWFL0zIsLLDqZE4qSjXf9D0imU13z61ls+0Wzxh1ie/iEj7a86QQ6bFTHz9e+GuNfDEuyccTHeeliRrxDEsXK7AERL1USbhFqrKhbbImhSkSzihnR9d35UZwahpr9MGkjbDxfwPBxtyjWyz9ke9Ea/+brGLOUuUhAnf3uru4KV2KxdSfqawgOrfyrFcA7DMdF7E50x/CimOp3OmzF0EXLKJSzPEL/74NyXT3Z4U7gO9/+cyCwbqFaix3Yp3ol3s4YQn+KhL/Fg7TDWlEeaXdQnm4864+VWzpl12mYAynPR+XM0SPW2ZcFW8HVKpU581WU9TRoZOvnGR1MEuuIet4G69mC31vrk7Q54ic5JSH4sTcmDjadTd7BUcW+azc+LxZ9n515vMzStKjksb8KaagTuAWLKBJLgsfcv6m4ljsb23C5/atpUOJ0Euetlf/6BE43dEUahA+9Y6W66J5+7mKnfjNF/8Pokj1pLiaV0CAkAPOLauGtgF0tKt/sF2fbYew8W6PQqXWr4Uqy2UDYIjdGit7ChwBQu2qCtbRVQ/2XwMDHLlNEq41d4cgDMSlXMQmUAleeSCEOqsWeVqWsaloJMnUrPBs9CkU5h1XSrtUUNmTk44/TV8ojKCsQhq3ojXGQnmWRGz50uCGby06NUkuRgYNYnCRe3HCe3Z4Fa+YiUJi+1kSgSmQhBYwwTVT1UfWpeSESVq01xQbdGoOmbOfFAcBqy/OG6uQScO2ka4hpBRxlDiGjFpVus3ao9BM9sutuSj9kifYtGT+jAkA1jhXMQrUN+T0hzkDBYaF8+KbzuNu6+ePPXG0tCTxxhLqQnHjjNtW98c0I+Tu64+HD1bQ== 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)(366016)(1800799024)(7416014)(52116014)(376014)(38350700014)(921020); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: XU2mKXiI6XnDIukK/WoJvKtqTTwiCuCgyJLAZJ4UfCVplDP8S10tNSaB3vbCjD4UoeL+n5XUv7TcIrkJds2L2z5QdWDGFFlIciwqJM3lqL92mJSQsas5bVJRCGfgQ7GhwFMJasVH5YigEACeCcnDNbUKzio/Nx0a8fN70JSysQez/e7TxmHKi1x8aLw8zy1bPYsvpn7bFui9c9i2y0mVmnJeU29oEJXoweGV57Mupm8VMt8p5cVe+YsiZ/1pbKauCSlGkXaTB2OB7UEOx2RN+PU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ew6nQu5EB78SAk0uApv6b2MRaKQT6wi4cPzBKNmrFmKSL/M8je68w+EjoKS3yEj3WnojDFmMfW+7OhKvMPxsL9QOOFDhqjTuX72f8YXKsVFPR3BWoxTGLRYMHL4wrIwn2p5zMqCZx+BqklJ2mmEjuf0fDf/IUvdqzqeDv+oKhaGYWhj5O7O0wxx0H+h3jqGCMG++UvZBCpWNy40W4HUAynCW8snD X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 200794ef-a466-4b44-b323-08dcf7df9471 X-MS-Exchange-CrossTenant-AuthSource: PAXPR04MB9448.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 29 Oct 2024 06:04:42.2565 (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: 4KgQv9vkBEiXOuhJTHnBc1BiXQpRolnBxQoKB94jmsNgGU4CO+50N24GRU6sSRej6HMLo1WEC6Yij4PEU+jSZQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM0PR04MB7172 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 --- 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 | 112 ++++++++++++++++++ 1 file changed, 112 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..e4b900ecf1ac9 --- /dev/null +++ b/Documentation/devicetree/bindings/display/bridge/cdns,mhdp8501.yaml @@ -0,0 +1,112 @@ +# 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 + + data-lanes: + $ref: /schemas/media/video-interfaces.yaml#/properties/data-lanes + minItems: 4 + maxItems: 4 + description: Lane reordering 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 + - data-lanes + - 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>; + data-lanes = <1 2 3 4>; + + 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>; + }; + }; + }; + };