From patchwork Mon Nov 28 07:36:10 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sandor Yu X-Patchwork-Id: 26565 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp5491862wrr; Sun, 27 Nov 2022 23:39:37 -0800 (PST) X-Google-Smtp-Source: AA0mqf5/awMwkNM3/WbHG93eblJt2WEudFoNWESnbZ6o5hcDMAnoeB/TMACHi6j43DfUU7mvwMeD X-Received: by 2002:a17:907:b606:b0:7af:ecf4:61c0 with SMTP id vl6-20020a170907b60600b007afecf461c0mr27738981ejc.178.1669621177596; Sun, 27 Nov 2022 23:39:37 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1669621177; cv=pass; d=google.com; s=arc-20160816; b=G5rguc7LAs5nn1N26znASRPWbN+B4c8yuzTQ8u9EyV/aEbuvFel9MgXmkTMKNpF60c cqwnOhgG9R1XJf84UzAXHCN62WOb2FcPsY0bZ3FsgVC+EqnI3obwUT/JhQ6rM0iSAq2t 92hdtUqZRdvX+vVQoY49LLFvwWGbMaUifwkBbyQfm8WxC54DW8b5sjI4YewDAZBxaAOl dDZcM5jxA+2HEhCzbV9SHlFZSvy13dQpVfdQhIZ1hXNPigBslSekrLm67Y3bzI0tSn5B pijI5OafBJdx4dBMzgiimr/ivOjT6TxdYIPMtI3XPVpr5i9OIZuPxCFzdMy6IMXN+SBM 0jjQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=/vPbOCHYxUdcclMhsWnZCMmCN0Q9mN6cwckXEv40nbY=; b=bKz8eg1046KG6qgdVlzivPDUz7nofZh5G/lbHa2y7xkmqjUzJABYPln7AlliyqtZja JNVDhXpS+PBcXTnVh1yUL3p51sjC73V72bsScjjxr/hvgo3eFmRhpoiwepC7lpgC9nzr twHL3r1Cj87bbkVaJOQW7wPsVAS7TUVEVZbWJjrBiTmiwzMBlASvKqEaNJpqsQ4zPCwV 38vEqz8pgEsmlCnC3xKQGc+MzHCClyGkOWxoqRKpQIcz1Ein7FySt8R4sXUlC+xgW0Ze F5RwY3tL5dGutdDw8FsP/0hAaRZZxBTZwJEqLBV1EC0QqM/87hDXB2llXHQTCLieMDJt dxJA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@nxp.com header.s=selector2 header.b=KzkX7D7E; arc=pass (i=1 spf=pass spfdomain=nxp.com dkim=pass dkdomain=nxp.com dmarc=pass fromdomain=nxp.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ji3-20020a170907980300b007adcee4e54asi10222803ejc.408.2022.11.27.23.39.15; Sun, 27 Nov 2022 23:39:37 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@nxp.com header.s=selector2 header.b=KzkX7D7E; arc=pass (i=1 spf=pass spfdomain=nxp.com dkim=pass dkdomain=nxp.com dmarc=pass fromdomain=nxp.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230056AbiK1HiY (ORCPT + 99 others); Mon, 28 Nov 2022 02:38:24 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42504 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230020AbiK1HiI (ORCPT ); Mon, 28 Nov 2022 02:38:08 -0500 Received: from EUR02-VI1-obe.outbound.protection.outlook.com (mail-vi1eur02on2074.outbound.protection.outlook.com [40.107.241.74]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 28698E0CD; Sun, 27 Nov 2022 23:38:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=K2o0azFO72y9XR8sFtWT4+6hd/Fsz0DboExYVThqDxyTbLrm2sDwDvXD/DBm3BdfZiWRpf5/DupCiG2gQTZvJNP3IMWiUJ71Yfn/qblk4FAVKN5YOXKCk/H+s1yx6Rx7y76UhBraU6hDNj+w7UJH9SxGq3CtYUiOx5fMl2detE0EAdCBDObdjzxZHk2FHk0vXbgY8UFTkkrzGSlf5NVsLN9/p3SIA14QlIK4bnXTHZxqVbxecyJjC5AKyjzwQlKY0oATHYfsiVKDunjHdjzqMlVSv8u5f9yMbDXVZLcuj3A1noVz1Pivc4BoWeKFCZbJOrjuxKzwIPAtByl7isEcBw== 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=/vPbOCHYxUdcclMhsWnZCMmCN0Q9mN6cwckXEv40nbY=; b=kCboZ8X/lRwXPpGlDJ43Hsty7e6rMqCaGAUSFpwCdmo73tPycSbOdZ06t4m+fU7qS+xll/020rtorZswKiZ2Oo5n0Zyn6S2Su+wmuyOYS7nIuLZCyFZ0MXe+1d/xUcHB0hemTsjkC5fqkkmn6G1EVw2Qw1lA+MWmDf9CbWYLRG3PlzDeC95k/RqtGKAmlQHB1VpKLm7C2983XHd5oLwkrH13rRPW1rSMP/7FFWV2aQBr9wA6UaO05VnM32ijX7DL93Dyxwl5xy6KCCm5KncGei4tn4SylgV5RqNIEtzWPIQZ472xKqORo4O4esnroXMXFQssuJ44Q3zTX2weskLIlw== 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=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=/vPbOCHYxUdcclMhsWnZCMmCN0Q9mN6cwckXEv40nbY=; b=KzkX7D7EyNyJMwFh33hJ+rrlsHBb4gSGHpEKt42wna1MiulYEgLABCPpnb87VRyWuvU0ObBwj8wq2NE0/HH2q5HdvdJC+W/Lsurc8/IuhFwT5irDxkorDRLY316D0SILuN9sJRttcPw+VBxyxVEKlmuESKgkfLM3Y30Nn27uEls= 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 DU0PR04MB9249.eurprd04.prod.outlook.com (2603:10a6:10:350::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5857.23; Mon, 28 Nov 2022 07:38:03 +0000 Received: from PAXPR04MB9448.eurprd04.prod.outlook.com ([fe80::d0c6:7b1d:6982:d400]) by PAXPR04MB9448.eurprd04.prod.outlook.com ([fe80::d0c6:7b1d:6982:d400%6]) with mapi id 15.20.5857.022; Mon, 28 Nov 2022 07:38:03 +0000 From: Sandor Yu To: andrzej.hajda@intel.com, neil.armstrong@linaro.org, robert.foss@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 Cc: kernel@pengutronix.de, linux-imx@nxp.com, Sandor.yu@nxp.com, oliver.brown@nxp.com Subject: [PATCH v5 02/10] dt-bindings: display: bridge: Add MHDP DP for i.MX8MQ Date: Mon, 28 Nov 2022 15:36:10 +0800 Message-Id: X-Mailer: git-send-email 2.34.1 In-Reply-To: References: X-ClientProxiedBy: SI1PR02CA0051.apcprd02.prod.outlook.com (2603:1096:4:1f5::6) To PAXPR04MB9448.eurprd04.prod.outlook.com (2603:10a6:102:2b1::21) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: PAXPR04MB9448:EE_|DU0PR04MB9249:EE_ X-MS-Office365-Filtering-Correlation-Id: 6fdceb11-fb10-412d-e5aa-08dad1137b92 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: q7j+FXOBVBYdBcVaES5V8+OrNOhZvzYyYmwb+MDhepTnqkshRp0Xu3F/J1wz0f0w+THW/xgrcIPKuRkKcnHBeTa6due2fdOFHPL4ej1xPsvJiF+m0xleFUPW5Ob12GjUG86lIgHQz1SlfhcAcX6BObZfvWYauudJ6kFoVbkSNKSRI0/bi6avuoLVuDbtcBAhAJQMOjDEpLWIc5hcbpcTnVa1OASvqLrqQaOarxxR+xRinnrynpaeinHq1uEpJd+mN3lKQNB1Ab3zyrCznWhQYExJbc0XBkF/DXwWmKjvClDHJ2UT3ROq3mo7D3rAhBlCMw1crq5OSoZBIBGzMb53czf8hRb7jo+aLnLpxsXSkc3LkLnpRAAh6lynBfXB4nMpQDQdwRpQ3t9QNW2Lt2xdGbG5NSgoRgAwdV+9V2+Xc+3K0eGn9uFt9uV0+V0ulCGMbKvxYL3jxYRaDXLrWrKaJ3TqHlrF0UHWZKT98vMb8auTEOpDsgzAfa4q9hKk0VvuqwN4g59Gz4aCmPoqQKqK651172TvHWsshAjfaw9Hu1henzSEvdE/xSZ8z7HchSY+tmIxwu9ow0hjYXrS4j1t9z1TP1+T53e0o2hvwyFu/FcMmejDbE106q6qoFghCjHad9zJ3OL6gnydJE/VF/eLq4ms9hCunnqTcoGIPZ9EBGbKR3k9XLw2T175Hqeg7o1wvHDf5LMVBcaVVyfz8dm8JpW08yy9dq5O8POT71ESVxO6Hlz5OwyhdJpfDgm5DF65++imISIqkOUi9xUQY9lVF0yg8JZEmCk9It1mHS4kQu8= 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:(13230022)(4636009)(346002)(136003)(366004)(39860400002)(376002)(396003)(451199015)(5660300002)(7416002)(66556008)(66476007)(8676002)(4326008)(8936002)(41300700001)(966005)(66946007)(6486002)(2906002)(316002)(478600001)(36756003)(86362001)(6512007)(6506007)(26005)(52116002)(186003)(2616005)(921005)(83380400001)(38100700002)(6666004)(38350700002);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: j+w1AeKgno6BKLYTKLJMOJ2/80w/L/0udKMj2ZJ8RGeJuG8Ex5Fp1Clcuqf7W6Nk1vBPcydJKddynDFSAtyTRzWs/3QUws/TI5Rb3p6hRTIf2aJodK6/BdilJ9W58lDhng5nGgOwC+h6zzOfgqjNHMqCudsOMkxlKhv4UDgqgP2iasPnNul50Mi6aSVHkXGpI6vPw3RN7g7FRe/deyVkt/fUNkt4nsG1FMM5o75tFhWIuULTLLVCbYg1cwYvauvelQChoeYVl0YOJiXRoOc/oDbGq9GqXBberUaDhwM1r6vA6mjyx+ccH3JJoC6/PiuFuonpkjhTwCLWVfmC/OlIY6Q4pu/naOlccllCIwq49y0QZn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O4D1z2jMgPjddfOi2/EsIfAzsu2V22J05pzkLIurcD/YmAmF7oITPAdyV6gXL8pPoxAwJHL1IM/GmUx+qa9sAPWK2ava3vgRI/AgRfl6XLniCGwlpiS+f9dLrL4EYkhANupVKDlCYCcjWzU7jcIwvy X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 6fdceb11-fb10-412d-e5aa-08dad1137b92 X-MS-Exchange-CrossTenant-AuthSource: PAXPR04MB9448.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 28 Nov 2022 07:38:03.6342 (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: txfIY4L/xc/pAPqNMIKHFSg3eSwOynC7E798Yoh7alZXSuSfkmL6sEr16Avx0d7GJMfwz4L8A0+vV6IkifobsA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DU0PR04MB9249 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1750724696012806911?= X-GMAIL-MSGID: =?utf-8?q?1750724696012806911?= Add bindings for i.MX8MQ MHDP DisplayPort. Signed-off-by: Sandor Yu --- .../display/bridge/cdns,mhdp-imx8mq-dp.yaml | 102 ++++++++++++++++++ 1 file changed, 102 insertions(+) create mode 100644 Documentation/devicetree/bindings/display/bridge/cdns,mhdp-imx8mq-dp.yaml diff --git a/Documentation/devicetree/bindings/display/bridge/cdns,mhdp-imx8mq-dp.yaml b/Documentation/devicetree/bindings/display/bridge/cdns,mhdp-imx8mq-dp.yaml new file mode 100644 index 000000000000..21cf87c79766 --- /dev/null +++ b/Documentation/devicetree/bindings/display/bridge/cdns,mhdp-imx8mq-dp.yaml @@ -0,0 +1,102 @@ +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/display/bridge/cdns,mhdp-imx8mq-dp.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Cadence MHDP Displayport bridge + +maintainers: + - Sandor Yu + +description: + The Cadence MHDP Displayport TX interface. + +properties: + compatible: + enum: + - cdns,mhdp-imx8mq-dp + + reg: + maxItems: 1 + + clocks: + maxItems: 1 + description: MHDP DP APB clock. + + phys: + maxItems: 1 + + 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#/properties/port + description: + Output port to DP connector. + + required: + - port@0 + - port@1 + +required: + - compatible + - reg + - clocks + - interrupts + - interrupt-names + - phys + - ports + +additionalProperties: false + +examples: + - | + #include + #include + + mhdp_dp: dp-bridge@32c00000 { + compatible = "cdns,mhdp-imx8mq-dp"; + reg = <0x32c00000 0x100000>; + interrupts = , + ; + interrupt-names = "plug_in", "plug_out"; + clocks = <&clk IMX8MQ_CLK_DISP_APB_ROOT>; + phys = <&dp_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_con>; + }; + }; + }; + };