From patchwork Mon Aug 21 03:40:07 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Liu Ying X-Patchwork-Id: 13359052 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 78D8BEE4996 for ; Mon, 21 Aug 2023 03:38:10 +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=jFspaEZmRmKQbcAQzuaerccT1FO4/6G5qD5wKEr+OFs=; b=C5iDiCRdI2U+0B bG2ErlY1Qj8OIgzgRF1/JKIXoDn/BqYeGMv8Q6UbaJ2KRVDVB22ttIc3E6kYhfKh59Oz9Pja0tl56 q1drw/BBGSyqptvaucCH7WaSdery+5YlFL6MeDwVV1bwZ8ql897DmdIGTX0nlRgmw0GcL1zlZ9Umg swpqhy7t1E2nMe91yvEKfuVpS3CfyeOvEYrvCI6x49kwOU9l4ddPJsUSB7crkYzweoCdR1e7LLV+w frhWgcTHg+KociiV0UJB7SH0VI2j5x6O5i9AoS1qIwxFtiwW0+0AMgEvsVomBTHodpK8Dt23Opo4J NUeEKxuu3qwjCZ8PQvNg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qXvjg-00D0So-1k; Mon, 21 Aug 2023 03:37:48 +0000 Received: from mail-db3eur04on0631.outbound.protection.outlook.com ([2a01:111:f400:fe0c::631] helo=EUR04-DB3-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qXvjd-00D0QW-0F for linux-arm-kernel@lists.infradead.org; Mon, 21 Aug 2023 03:37:46 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=QdksJzKeCQ+sx2kS/2V2q0UgOisgghdxTJFpIpMQEq4Adj7WtT3TV7BoRzV9GN7o0OvcjlGVLetzeymOaNpaEb/WusTDtuO0Fe+HCe3wJmsUuSGaTyyEkgXVS/EITKXhCinrcm390CV9ppnRaQKo1gIA1+QhmK6qHlATwxh5n9pfGhknsq5i8RBgcEDWg022DrJLwxstfKf2dB8LBrGPneMaCvAjX3tVMqo9Szq/wOn9XavNDuoiw+P3cD0RIagkdPQ/9QgEt/EQvRDguuW3yYZYCArZVvjJ+LtEY3XtMcVF1wWlif8B4y+BVVOIV18WmnyU0cVjNGgnrpf6+r/FjQ== 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=QaSy5Q0CXsysYWOiOideIJmkgVMU5fTcbKDsyETU8EA=; b=Bp61OPv1E59YXBinTpJWpcDQ8pZ06TTqPHSp+70CBmLwnFGOOBMV58EwwtTpj0e1l9YzwQhZQqr32BuyESr9PQXK4yyR1MERpMy2H6T6+kdygAAq8kF4u2IAzNsTJNzLMQgTIH4fyv40pK0c3TggMjln0050quPzb/rdcvcPuNcPONp0dJGvDfteavWPit8X0xUZgeOD3MpoM5bovDW43RXLQZ81j72ui3EOGeubaOrImuvFvo8LMqdEW0mOOpcuJyEsCiZetkVRZxsNgrOKZMXBCD1fOhpJszv6D9Fo3MlZ3NdNFH6rkeVx9Jl/WBnpyO65OpPf+WxmRWZxrwuLBw== 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=QaSy5Q0CXsysYWOiOideIJmkgVMU5fTcbKDsyETU8EA=; b=lnyL61r0OG2JRw2T6W245y+1ZtgTTkfqbyNyJgz3CRkjDV7yqhMwoshthPZQs5u9smQeeODD23/ubX4qfBOqChmVf5Czy5hSaa3ip+xnpZCnziuJTK9pSIU/BRVoR8kMZwnt1m6kpwegY7KNmsRgNsdempaw1YPlNZ9TQ9190Ws= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nxp.com; Received: from AM7PR04MB7046.eurprd04.prod.outlook.com (2603:10a6:20b:113::22) by PA4PR04MB7758.eurprd04.prod.outlook.com (2603:10a6:102:c4::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6699.20; Mon, 21 Aug 2023 03:37:42 +0000 Received: from AM7PR04MB7046.eurprd04.prod.outlook.com ([fe80::9018:e395:332c:e24b]) by AM7PR04MB7046.eurprd04.prod.outlook.com ([fe80::9018:e395:332c:e24b%4]) with mapi id 15.20.6699.022; Mon, 21 Aug 2023 03:37:42 +0000 From: Liu Ying To: dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org Cc: andrzej.hajda@intel.com, neil.armstrong@linaro.org, rfoss@kernel.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, conor+dt@kernel.org, shawnguo@kernel.org, s.hauer@pengutronix.de, kernel@pengutronix.de, festevam@gmail.com, linux-imx@nxp.com, alexander.stein@ew.tq-group.com, sam@ravnborg.org, jagan@amarulasolutions.com, yannick.fertre@foss.st.com, raphael.gallais-pou@foss.st.com, philippe.cornu@foss.st.com, hjc@rock-chips.com, heiko@sntech.de, zyw@rock-chips.com, Rob Herring Subject: [PATCH v3 RESEND 8/9] dt-bindings: display: bridge: Document Freescale i.MX93 MIPI DSI Date: Mon, 21 Aug 2023 11:40:07 +0800 Message-Id: <20230821034008.3876938-9-victor.liu@nxp.com> X-Mailer: git-send-email 2.37.1 In-Reply-To: <20230821034008.3876938-1-victor.liu@nxp.com> References: <20230821034008.3876938-1-victor.liu@nxp.com> X-ClientProxiedBy: SI2P153CA0025.APCP153.PROD.OUTLOOK.COM (2603:1096:4:190::12) To AM7PR04MB7046.eurprd04.prod.outlook.com (2603:10a6:20b:113::22) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: AM7PR04MB7046:EE_|PA4PR04MB7758:EE_ X-MS-Office365-Filtering-Correlation-Id: 1e912c4a-66d5-4884-520f-08dba1f7fa00 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: mLa1p0JUlk7LU4/ZQ2d9vSdssuPL6HSe8ahGEw/3d1XEX9KjhO/E/oPzCyxVHY9VEurHjDIqT9Tr/hB9RlDK/2r+UvD8XpiKc6/Hqui9S0kc+dhK9TaSPYMHpt861jy4Af0EqWEXvi5I0bEAgpsPKsZrOFYZkwXDpuqqeclFGExSIl9pKTPwFY4lr/gKlItWDcNqT9GGN30Ae0ogYV1yvcU8ovubBoCtprxBt35M6nq0kaiSoBa9b5kMmD0O+kmtFtL5j2YvKJfPmKGmD8kgKScGGGvM7ewj4isxysjvZpLKzeE4JEwS94PtbLqypj8LClmWnevvD1bAwlftynrgmmL9lgdmAyZm0LFk0IZi09/ncnwTrYzkQoOQ+ZI79isz6SWux3ksgrZn9Xzl9jl6amNW7H8kgqBJJVAwHGel2i8jX7SOmBVFqm48ZPVExsXB629hLuVLyvrtnhsf2wHAvKq+namCZaSYCayhf+Ev4I9BJD6DYSboJ5xCpEiEzxHbDMnkALSNy2R7BHf6NSkrvwYfYTEb/iO7P5Iwxp3+rJBHMLAgF6GfCX2LAUoCzzCzdvVwUOJuLNnoZBkNqAEPsXgPlhoJTnWh8wKBZsMeiWwhqOqnwtmgohK+erR8p8pTg7iP6OPFgKjd1lDdVBoa8Q== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:AM7PR04MB7046.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230031)(376002)(39860400002)(136003)(396003)(366004)(346002)(186009)(1800799009)(451199024)(1076003)(2616005)(26005)(6512007)(38350700002)(38100700002)(36756003)(86362001)(83380400001)(316002)(8936002)(8676002)(41300700001)(66476007)(66556008)(66946007)(2906002)(4326008)(478600001)(7416002)(6506007)(6486002)(6666004)(52116002)(966005)(5660300002);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: oXWOCZOlm2yjz0G7a+O44/ESCA09E25tFQSMH9cjK7fAqfNChBohYpvlD3GzEyeOgAuCihFkCK8tnkD55iHRJI+I1lZdMoWMMYwvtSRh6W+rOHbavp/IlDzpkq9Ekse4FFF/qVgABDzja9GJqYy5oRa2yR4buyC3B8z/TBev3LBdRVuZUAvWrr7/N9RxmLhLgl/9gYz2oaj9UUxZC6y92Z0Mg1D/N85gG8ZkGasPNj6Ol5imZ6l+pI0wBY3/dUv6bq3igLuO8tYRbxlUTkRZsOzl4I8lQ1IG0UCAs3OlE8eY74Bfmp/V+0+pawopStyqEqBOuwL20eab1xdRKZg2tjdEajrtV1IgTd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DOhidLyX6dmImPALNdp2mtqiy+f7D17o7Nbu9tHVbaqAbc4Rjba5UlvJHkxbGBMabSq22ij5Sd8GgBBXmpJ2To3w9ALOncWnH2FETB8qniJGRwW4ZiREHb5hOEWoqvPv38AjZBVr5pdPJl85Nqjk62WSGaaCXFVYjCAz22DIND7 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 1e912c4a-66d5-4884-520f-08dba1f7fa00 X-MS-Exchange-CrossTenant-AuthSource: AM7PR04MB7046.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 21 Aug 2023 03:37:42.8059 (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: bv9ezjLVLRrLd0cBRx8R5n/cGa5peuKWxQ4d3eyery+jPRYFe9THmH8m5GewstqKhg/AJY4p8ZpW/vcnbP5n/w== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PA4PR04MB7758 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230820_203745_122005_7782AEFC X-CRM114-Status: GOOD ( 12.70 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Freescale i.MX93 SoC embeds a Synopsys Designware MIPI DSI host controller and a Synopsys Designware MIPI DPHY. Some configurations and extensions to them are controlled by i.MX93 media blk-ctrl. Signed-off-by: Liu Ying Reviewed-by: Rob Herring --- v2->v3: * No change. v1->v2: * Add Rob's R-b tag. .../display/bridge/fsl,imx93-mipi-dsi.yaml | 115 ++++++++++++++++++ 1 file changed, 115 insertions(+) create mode 100644 Documentation/devicetree/bindings/display/bridge/fsl,imx93-mipi-dsi.yaml diff --git a/Documentation/devicetree/bindings/display/bridge/fsl,imx93-mipi-dsi.yaml b/Documentation/devicetree/bindings/display/bridge/fsl,imx93-mipi-dsi.yaml new file mode 100644 index 000000000000..d6e51d0cf546 --- /dev/null +++ b/Documentation/devicetree/bindings/display/bridge/fsl,imx93-mipi-dsi.yaml @@ -0,0 +1,115 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/display/bridge/fsl,imx93-mipi-dsi.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Freescale i.MX93 specific extensions to Synopsys Designware MIPI DSI + +maintainers: + - Liu Ying + +description: | + There is a Synopsys Designware MIPI DSI Host Controller and a Synopsys + Designware MIPI DPHY embedded in Freescale i.MX93 SoC. Some configurations + and extensions to them are controlled by i.MX93 media blk-ctrl. + +allOf: + - $ref: snps,dw-mipi-dsi.yaml# + +properties: + compatible: + const: fsl,imx93-mipi-dsi + + clocks: + items: + - description: apb clock + - description: pixel clock + - description: PHY configuration clock + - description: PHY reference clock + + clock-names: + items: + - const: pclk + - const: pix + - const: phy_cfg + - const: phy_ref + + interrupts: + maxItems: 1 + + fsl,media-blk-ctrl: + $ref: /schemas/types.yaml#/definitions/phandle + description: + i.MX93 media blk-ctrl, as a syscon, controls pixel component bit map + configurations from LCDIF display controller to the MIPI DSI host + controller and MIPI DPHY PLL related configurations through PLL SoC + interface. + + power-domains: + maxItems: 1 + +required: + - compatible + - interrupts + - fsl,media-blk-ctrl + - power-domains + +unevaluatedProperties: false + +examples: + - | + #include + #include + #include + #include + + dsi@4ae10000 { + compatible = "fsl,imx93-mipi-dsi"; + reg = <0x4ae10000 0x10000>; + interrupts = ; + clocks = <&clk IMX93_CLK_MIPI_DSI_GATE>, + <&clk IMX93_CLK_MEDIA_DISP_PIX>, + <&clk IMX93_CLK_MIPI_PHY_CFG>, + <&clk IMX93_CLK_24M>; + clock-names = "pclk", "pix", "phy_cfg", "phy_ref"; + fsl,media-blk-ctrl = <&media_blk_ctrl>; + power-domains = <&media_blk_ctrl IMX93_MEDIABLK_PD_MIPI_DSI>; + #address-cells = <1>; + #size-cells = <0>; + + panel@0 { + compatible = "raydium,rm67191"; + reg = <0>; + reset-gpios = <&adp5585gpio 6 GPIO_ACTIVE_LOW>; + dsi-lanes = <4>; + video-mode = <2>; + + port { + panel_in: endpoint { + remote-endpoint = <&dsi_out>; + }; + }; + }; + + ports { + #address-cells = <1>; + #size-cells = <0>; + + port@0 { + reg = <0>; + + dsi_to_lcdif: endpoint { + remote-endpoint = <&lcdif_to_dsi>; + }; + }; + + port@1 { + reg = <1>; + + dsi_out: endpoint { + remote-endpoint = <&panel_in>; + }; + }; + }; + };