From patchwork Thu Jul 20 07:10:38 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Liu Ying X-Patchwork-Id: 13319881 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 54A80EB64DA for ; Thu, 20 Jul 2023 07:10:44 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 8C55910E56F; Thu, 20 Jul 2023 07:10:43 +0000 (UTC) Received: from EUR04-HE1-obe.outbound.protection.outlook.com (mail-he1eur04on2048.outbound.protection.outlook.com [40.107.7.48]) by gabe.freedesktop.org (Postfix) with ESMTPS id 0342610E56F for ; Thu, 20 Jul 2023 07:10:40 +0000 (UTC) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=ggpUP2JEGMQHR2Z0cu/y/23vps/JwqImy5R3jh+2/amH3lCGyjWlW28s6ftOmu5pn74JoH/+bSWjwLXiud0h9GODfa72cmNNljPULtGWjfPfoR2dx7e9gPFPLzOLHKoU54veVv1OU5vDyTRSVxIF/RBNuTwO9k4c/YiY7PkbQuiXvRkO8Etleg3fgRx8cY8QRUP6YoCcVZtRcZzxh+q6xVueA4x1d5Jrl+u7ZzX+7VUxJOkD5TDe/iD3nmJui2nV91CEgVxndzRL4kWuS/LamtS/hv2i3+VwBG6l079+LXRfMRzapBP5QixOCcTMApcjd4OiHF15ib9xArrqlgg5GA== 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=ht35sNILRuy3JDoTfo8lLosxxMyf2f6Qkc+PxgdkdHs=; b=f4plSjK56AG78fN0D+sulI57wToOLt8dteM6eLjr6m/mKrC9dPGyIqP+1mqjwuPQQTGi8BizzvkXpKn1YO0aonCKhmUsjKp399dZhFvt0joYyj8URFm+Km/qEAzJ7001GcHD5IUtxJ9kuDsaTm9zB78vR3OHPl5xmXVvvzzxMDXl3WVvUC+46OKbMx+W34D6keMQjH16yVjCFYN+xdK123z5ReP3BigY4UiqrIJRkuhqe+ua14RUZM9jaPKtUelzDpODlF6mlRYpKxQ9QchprnqRHPQRsQGlutjPN/L8R9ObeNAB6aIzOAijncU6U8WuGUv+5DzYoxEE3iGDaiuJCg== 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=ht35sNILRuy3JDoTfo8lLosxxMyf2f6Qkc+PxgdkdHs=; b=JzugVVPqp80xdQ2GOJnwptg/NAVBzTQOvNxr8QMBpKQCwSFN6vAlFtqpal4sI3Gi6JM0Vblqv64BYL/OlmHoVTNyQO8mioLzvJoy+Jo/klctT25C6BLLQQSeHE3r9OkpfWF/hUNohv9WJ6YP/vw8xlbDFg3WStPANc/NFLkhTaQ= Received: from AM7PR04MB7046.eurprd04.prod.outlook.com (2603:10a6:20b:113::22) by AM9PR04MB8415.eurprd04.prod.outlook.com (2603:10a6:20b:3b5::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6609.24; Thu, 20 Jul 2023 07:10:38 +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.6609.022; Thu, 20 Jul 2023 07:10:38 +0000 From: Ying Liu To: "dri-devel@lists.freedesktop.org" , "devicetree@vger.kernel.org" , "linux-arm-kernel@lists.infradead.org" Subject: [PATCH v2 8/9] dt-bindings: display: bridge: Document Freescale i.MX93 MIPI DSI Thread-Topic: [PATCH v2 8/9] dt-bindings: display: bridge: Document Freescale i.MX93 MIPI DSI Thread-Index: Adm62UlRadPx1sNHokWiUjk2oOWebA== Date: Thu, 20 Jul 2023 07:10:38 +0000 Message-ID: <20230720071430.259892-9-victor.liu@nxp.com> References: <20230720071430.259892-1-victor.liu@nxp.com> In-Reply-To: <20230720071430.259892-1-victor.liu@nxp.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-clientproxiedby: SI2PR01CA0039.apcprd01.prod.exchangelabs.com (2603:1096:4:193::16) To AM7PR04MB7046.eurprd04.prod.outlook.com (2603:10a6:20b:113::22) x-mailer: git-send-email 2.37.1 authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nxp.com; x-ms-publictraffictype: Email x-ms-traffictypediagnostic: AM7PR04MB7046:EE_|AM9PR04MB8415:EE_ x-ms-office365-filtering-correlation-id: e1cafc19-3a96-4641-dd0c-08db88f06bd1 x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: Zd+iqvl2j3CG8WqjKhjPl6G5oUE2wOY0zrEkr8nVDtMMWMCI0QtyRRgpGlNneVHWwk93ezpRPYgtekLPyDXa+RXEtJfEWRC92f1mKu36jTPIuUAB3K7nkkC7VaGjoUWyGcRu0UwiZ5ifffiBBxsxgQQdzrkbWoG12ChGyCAHLOpWDbPwMJf/I90fxuEPv4phGaWBaILLJ1pYk1b+7jC+ZqQBIoWS3eRWqj8BRKfU3NReubRNTarRZtJw1SXe2vJjO78N0tKNuLAbhbsIPm3HVugRzWsRkoybZ0QV1ePq9c1nIeb9xtLa7OPJyfYHkvj0bnjjYSqrHsBSVK/7ZIwmKezICa7dmmNF/5C7NlOiUMXEFSuPb0xBY/g3dXNMUAblUxncKhYPr9Iurlhmh+lxh8yH9uANN5VLn6tCyUJGEvcY5kAhLfGBwnmKX1tvRgYFtGezni15v/MugdQXNTOeg2WJcLe/UW/mUFEFVxahGfH7uGKDcIcLOkqzTa0gcu+LTUZJXJe2sLOqlGrITSf1YmPkigukTHB+y6pwv3a5gxpd7cIs9jxVlQslYPD3GZHuSviJH9f51Ku/6hk/PnitkgMqPRd5hwilN/R1oBjQIOYIM6hXlFCXNFD3NVJkfUy1VpGa7aNqEzSWUgJGLeNwHg== 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:(13230028)(4636009)(366004)(136003)(376002)(39860400002)(346002)(396003)(451199021)(6506007)(478600001)(1076003)(26005)(6486002)(52116002)(2906002)(6512007)(71200400001)(966005)(4326008)(5660300002)(66556008)(316002)(66946007)(66476007)(83380400001)(66446008)(54906003)(110136005)(64756008)(38350700002)(36756003)(38100700002)(7416002)(8936002)(8676002)(86362001)(186003)(2616005)(41300700001)(122000001); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?iso-8859-1?q?tLqSj8339Ee5LkSEd5UalBW?= =?iso-8859-1?q?BpM73ZB4in1jZic0nHFAvnkIwW1ThiRm6JgFTN5Jy1dZ66PrTx++uogK32TU?= =?iso-8859-1?q?B61cf5lk2r5Ls5WelgGh3OIE0zAT2UXPkWmhBKVfWK9CQ8tSSWQz2fz8Ui4a?= =?iso-8859-1?q?kLpWDRZaqi0zp3Qqi8FOrWJ7dvTNMLBEdsRUk0/oupeS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859-1?q?OJuDyrEShb63r7KZE5hk3th8dHnC9y1dWrYF4slAOXWrIz2VXTEYZSbjeysh?= =?iso-8859-1?q?oxpP0wEjmcCCAmjLVXk0Aj/TQaUgn95yE0qGDoozi59zAB4lzWQOmT7t06sI?= =?iso-8859-1?q?JdelztadF81p7DkC6olyOly/gHaJu06Gkc0HCTDoH806cVc6b11rXZJQkFBZ?= =?iso-8859-1?q?buJ+t+DO2i6TkFfbBsRcB4kEXIj5uytjtienxs1KfiRAfYFjAKhMViXt2inr?= =?iso-8859-1?q?a0Kp5tH5Apu8YuM65PQqAF2sthJJ53Xdsx4vUqhax3OxZ6zuGlpfOqbOxG2y?= =?iso-8859-1?q?GKHKU4p/BTcTqhOIxq3HpQebS9yY4BClnspphB1psjDUaK5ilU4v5oUFc546?= =?iso-8859-1?q?gszEHJvE7NOHlK5gx9p47fln8Kb576RHXzVjdX+hl1fmH4+roZEa47MDmjMM?= =?iso-8859-1?q?/eiEDtptwCMtsk0OI/mVkie2NBGOE9Y03w1ev/ZWl8MZ+gICtHN85QNRlaFf?= =?iso-8859-1?q?Wt9LW3pJo8FdoojIe8JUOW39ZE8MRs4hB9xUBt4Vh0hNpWN3QelrVYZiNo6j?= =?iso-8859-1?q?MOv71ZpOp5G2XK+v3?= MIME-Version: 1.0 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: AM7PR04MB7046.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: e1cafc19-3a96-4641-dd0c-08db88f06bd1 X-MS-Exchange-CrossTenant-originalarrivaltime: 20 Jul 2023 07:10:38.5224 (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: 7N+PbYYv2L4o+fQQdKKtrTZPXI/AxR97Uo1dVVtvS9jwNctGFPWlamW35OsaVQeDR1rGdBhJsUUNIQRVhQk80w== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM9PR04MB8415 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: , Cc: "neil.armstrong@linaro.org" , "conor+dt@kernel.org" , "rfoss@kernel.org" , "krzysztof.kozlowski+dt@linaro.org" , "jonas@kwiboo.se" , "alexander.stein@ew.tq-group.com" , "shawnguo@kernel.org" , "s.hauer@pengutronix.de" , "jernej.skrabec@gmail.com" , "sam@ravnborg.org" , "jagan@amarulasolutions.com" , "robh+dt@kernel.org" , "Laurent.pinchart@ideasonboard.com" , "andrzej.hajda@intel.com" , "kernel@pengutronix.de" , dl-linux-imx Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" 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 --- 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>; + }; + }; + }; + };