From patchwork Mon Nov 28 07:36:13 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sandor Yu X-Patchwork-Id: 26568 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp5492050wrr; Sun, 27 Nov 2022 23:40:15 -0800 (PST) X-Google-Smtp-Source: AA0mqf7zo5R8dIupDYGfEjWgItXXUaaM2wLCZ5PxNWNRtLAATvTpRCWkyEW+D9FOUcANula6nlay X-Received: by 2002:a05:6402:b8e:b0:46a:f256:491b with SMTP id cf14-20020a0564020b8e00b0046af256491bmr7735472edb.161.1669621215790; Sun, 27 Nov 2022 23:40:15 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1669621215; cv=pass; d=google.com; s=arc-20160816; b=JEtExhPWzNAuI8EVKSYDjTQz7Mwg8ypYfUztPqd1wzjClbCP5Bf0Ov+lUUiCK7aCC0 KuAHaLl11Cb6wencl9g0QqmsVX0Qz8Zw1zraWZbxIDWgGSpYSRwkdfhmWlNQodjHJAlj 8Ic68vOyt1DlXWGll0heYze1tGD58ACgxVGHAm2f5S4uhISLLsbPh7lIYG+M2ZGYi5gm X50DH6IC+QvJAW3Ab/47cKGxRbrNicRYX1LEqQM59NtvKs582xxDjsc0fK/KrJY+1D/F YIe+3bQiH9vHyvx5VE/zM5KoR2HKfX3xgcXFlZoP6o1xy0ZfALO9cW6l7xmSaEZ7zONT aVjQ== 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=diwjDJdmoLaEguwErnznmHAENyeZFTmaHBzXJvZMBNk=; b=0TZaabWcHY+KlCDbN1k/ssGpXFtj3eBhxO0rRv2Hs0+SRB98R77ihJzvNNJNzqwak3 spA2zXmTiv5/hnxcPNv5YJANs2SEO6UZi7fpd5QrEoaX8IVHPWunTGfxP4lKgZ/qQCn7 CHXYRHYnu8mliGeSzteJ3nnaNN/mZo1hrjsqLRh1hw7miSZTbJDY+e2bcWzz2kit56Pc ylY1yg444PPdZZVoFiEOk6vlBy7QJoswN0JsLDJnX8xX4FhItTtWO8jvyvvqenuWlUAz 3/+SxO9HeqWIr3g2/qc4DXRULtm/rmh43tOsSGA3hMyiAiFV63naWr9Vso+oGja77uTv xDcA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@nxp.com header.s=selector2 header.b=S0ZSzDmU; 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 hg2-20020a1709072cc200b007ae9abf1994si9775993ejc.837.2022.11.27.23.39.49; Sun, 27 Nov 2022 23:40:15 -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=S0ZSzDmU; 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 S230030AbiK1Hi5 (ORCPT + 99 others); Mon, 28 Nov 2022 02:38:57 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42896 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229998AbiK1Hi1 (ORCPT ); Mon, 28 Nov 2022 02:38:27 -0500 Received: from EUR04-VI1-obe.outbound.protection.outlook.com (mail-vi1eur04on2053.outbound.protection.outlook.com [40.107.8.53]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E148813D05; Sun, 27 Nov 2022 23:38:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=eH0V71n9Ja7xKlUM3DwouQxVX9eS3O1c5U/4SbA+MySNTcKAq0DTkvu3MRZk54ye0bIbWtPH8Xu/LgFOUFBuleuQjcy0aw+yKVVcVtLJQ7IqUyiOYxJj18u62vgeU0kzt4UFPnagjoWbWQpb0AHa/XsTz7pwrlSyLwU7A+ixM35FMiT4o/4iEOeZKp/EDcOaGMBh/EH6a2lSiMhIuPmSFyhMahd3LulBVF+PDki9UoZZjo7dav/+z9zmT/H7rNriu4xZu2DhoLBzMWj29bo11OxSNaY5BeSXZWivUMCurkkDIqUCxKj55SU+iCK0zo0qpuxxLrh31NvFxYnwD3QruA== 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=diwjDJdmoLaEguwErnznmHAENyeZFTmaHBzXJvZMBNk=; b=RT2kJCL+biLx5VPaDSsUhoi2B5i6CTg9Cvcz7FxSBGn5DPChvCIJxdmAQHYPoR2SebT46lFZyzR5bshx82jMP0d1ENiQJb6l/NbMhX3GxlR/+j4QyqQutSXdy/1NREvpK+yhDrilv0zNVdCFe1exwF0GBFcMIKRnreYIwBw08105Jbf4od8h5bcWYDnibHzh8O5/WKannpHk4NdMYhQqdFinLLXcWjXLnfGtutRdORbMHke2yFsV7KZaww/BUKS9+D0iW41TT6DDcHyZzIwb8uHONYTUdpBEu7ob/HOwmUmjqraTtpaemkU5sa7uVNmkQKPKyI9V+Y+h0/rKX7NtRQ== 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=diwjDJdmoLaEguwErnznmHAENyeZFTmaHBzXJvZMBNk=; b=S0ZSzDmUCG6xux1DoHBuBrTGu+atnQccDoDts8NhBZBvmW/eevGW2lNV06T6bK6lzyyWX8uAhM0kiQqsrLluAdO9HLw9KoJK5yQFlhor2tRgqlyymRodQRh06x4mcmQCpbHGDccfSXnWlH670XNMAW/t2+7K34P9quQgsaanVJI= 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 AS8PR04MB9511.eurprd04.prod.outlook.com (2603:10a6:20b:44b::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5813.15; Mon, 28 Nov 2022 07:38:22 +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:22 +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 05/10] dt-bindings: display: bridge: Add MHDP HDMI for i.MX8MQ Date: Mon, 28 Nov 2022 15:36:13 +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_|AS8PR04MB9511:EE_ X-MS-Office365-Filtering-Correlation-Id: 897d9387-3491-4c2c-ba63-08dad11386c3 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: KVRovZD0FSc7Z7UvaD0TPRokidX1zY+D++JhToVA6yBOAyoOIQfgBAaMtKUt0n00FgT7/PSAU6+Fg4OssyNICAW0PNmeEsC79+EuRCxMFqcuAkJ1LG6cr80y/hciu4LM5iuXChb7kzwRu3sdorm6/gXa6aBPUzd1+C8SsVYnqSZ08okRg3DNUpmOt7JUzxq3GvLnpocMmb8DegeMtUKukmFn6UBkP/Ysblzb9rim/rHIuCDUc0GnYRSCsVAolYj+sCNYRy/MVfBhEv/rJZ60NBGDno/5La/1kFZwlTxlwkWu25qNVSZeDVtv39SqAvPRWllSmD+qHGFT2tj8EZPHAyslXaftMucYKZ/hEk/pA3QJiwcucIUrSoSE+OINTw+zI66zoqI14r/3oLN0JzmbVciICilL/zGodlh406D8jJflaleDenxz41a+tdesm9p1z7ZJnRib0s2nln7W9tHcdD2xkq9nnw6kKJTTiwfnzjuD1s2bTsuFR9XxHd1LhN0Y52P1+tLWOvXSPPB7dFCvmatJcKPiriRZUCen+Oz95eqKo0Yfg1qEgwZb/mQ5CTQV22RftpqkGme4stYhLAsZCz6944SNg5CgdE9REfZx9TZBzspLikQ9n3FWvGs4tCzzip23RqbZDoXMraeJ6VX+SpcnamGNCOAnwXWDZjXHZsvGJvk5HMtZB+oSZbLgBM8bD1btUGSk0h5KrZIloAyA9VAlakr8GsoeDf6xAZFiz3VOSXADi7T4nMUz/po2/D3EUN1CT4C8ZRaEwf49bYwzYyluV/k2e+a3DLuluXLEW5U= 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)(136003)(366004)(376002)(346002)(39860400002)(396003)(451199015)(26005)(66556008)(921005)(38350700002)(86362001)(38100700002)(5660300002)(8936002)(8676002)(4326008)(7416002)(186003)(316002)(2616005)(66946007)(66476007)(2906002)(83380400001)(478600001)(6666004)(52116002)(966005)(6506007)(6486002)(41300700001)(6512007)(36756003);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: F0pw+NqjdrDLPrM6mZq93+JzSksfQCFUsuKeUKfyBSzundAGB0JcG2sBFnip9q4nCwmTgoUD93AlGRZfchvh4khgdu9lPGuZDaOPcPS2Jj2A0WRPJbtPLtHCsmHYNii7FDv+RoyJPXxQf76W0OCFF3pCkCfaxSxz/W7xQuMVMZAydnIwXUQ3zkIPAPS/b8eVNuIMVmKZ1XEe3ueGz1BWWl8p3Y4xWMiYRr+eMQRSUebrT5tScZVrpxGf8r41mxfAGmtKEmVP0SvF3GbCkM+SYji0kdRM8TqSrBObIw8mY5YJ+HofeCIvRpiH69A8PF2lz/YIw7do5J6xjNkSX4Au8QIwyDrBdqtEcLtg95qMv/HanJ6SUWx8NhWhtfsB0F49pQ4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B9TKiJoebpr7rMBjC7xR6xyDHJZKsKQxqzxsCUwpOV8bGtXj7BHj+eYMV6vyHu4VpS8cjXafUwzp+oiqd+efjRlvSQAXNgzHAn7ZDDtD6FQ5sR+PE16l7yk/IVi X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 897d9387-3491-4c2c-ba63-08dad11386c3 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:22.3622 (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: VMsbUjpwD4ELHw+7mHmE/J0l63/Od39jLI+l75+2AltER09r+R/XOO/2TGUldcF/d1RpH3Ep/n6bG8uDp6ZD3Q== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS8PR04MB9511 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?1750724736064874742?= X-GMAIL-MSGID: =?utf-8?q?1750724736064874742?= Add bindings for i.MX8MQ MHDP HDMI. Signed-off-by: Sandor Yu --- .../display/bridge/cdns,mhdp-imx8mq-hdmi.yaml | 102 ++++++++++++++++++ 1 file changed, 102 insertions(+) create mode 100644 Documentation/devicetree/bindings/display/bridge/cdns,mhdp-imx8mq-hdmi.yaml diff --git a/Documentation/devicetree/bindings/display/bridge/cdns,mhdp-imx8mq-hdmi.yaml b/Documentation/devicetree/bindings/display/bridge/cdns,mhdp-imx8mq-hdmi.yaml new file mode 100644 index 000000000000..cca6954a84ff --- /dev/null +++ b/Documentation/devicetree/bindings/display/bridge/cdns,mhdp-imx8mq-hdmi.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-hdmi.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Cadence MHDP HDMI bridge + +maintainers: + - Sandor Yu + +description: + The Cadence MHDP TX HDMI interface. + +properties: + compatible: + enum: + - cdns,mhdp-imx8mq-hdmi + + reg: + maxItems: 1 + + clocks: + maxItems: 1 + description: MHDP HDMI 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 HDMI connector. + + required: + - port@0 + - port@1 + +required: + - compatible + - reg + - clocks + - interrupts + - interrupt-names + - phys + - ports + +additionalProperties: false + +examples: + - | + #include + #include + mhdp_hdmi: hdmi-bridge@32c00000 { + compatible = "cdns,mhdp-imx8mq-hdmi"; + reg = <0x32c00000 0x100000>; + interrupts = , + ; + interrupt-names = "plug_in", "plug_out"; + clocks = <&clk IMX8MQ_CLK_DISP_APB_ROOT>; + phys = <&hdmi_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 = <&hdmi_con>; + }; + }; + }; + };