From patchwork Wed Mar 31 06:33:19 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Ying Liu X-Patchwork-Id: 12174421 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-16.6 required=3.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,MSGID_FROM_MTA_HEADER,SPF_HELO_NONE,SPF_PASS, USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 55CCFC433C1 for ; Wed, 31 Mar 2021 06:49:29 +0000 (UTC) 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 mail.kernel.org (Postfix) with ESMTPS id 0E57B614A7 for ; Wed, 31 Mar 2021 06:49:29 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 0E57B614A7 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=nxp.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 823C16E9EC; Wed, 31 Mar 2021 06:49:28 +0000 (UTC) Received: from EUR05-VI1-obe.outbound.protection.outlook.com (mail-vi1eur05on2081.outbound.protection.outlook.com [40.107.21.81]) by gabe.freedesktop.org (Postfix) with ESMTPS id E3E226E9EC for ; Wed, 31 Mar 2021 06:49:26 +0000 (UTC) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=FOFBBsx93Nr5lKrGAmM5Vd0RSs621s0hq0PAAJ01xG7kav62mJcUhao6wpQ9lBZFFG7R2UlXj2Pux/+gsPup04YsMrunyNU4n+c3wKkDGcU4+Q7WOaOFMDwxqwImwYr9kUcXRFH1WU28PoMieFDqcwr62cxSFD/alH3UJFJEWw1VW/n6r2m06EduHD48RUcCGEOwVRy8xDeZXHV+4XH1nSmA6l9X6X1aJ6IUOgyfG1upaYnUNAen/SDQOJ78Z9CmlQSrc5xrUV8szh/oDa2h4d+KLrhYoU+nYiB1YVlz/x0fkM87pTWrOCtWxO3W8lmP04jEY6MPExpqX4nSSTVl7A== 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-SenderADCheck; bh=iLTGvSsFUIGytzOZ+vKY3syhSDxCzbKula7lrr7jotQ=; b=mrTu04HBI5LmT7XgY4Apwe47+fHvQAqTZF/WDvRjRwlN2roQeYgaVx3ZJtoqDFoOv66zZEiA3lcl0EOi1ZTrX8u9DZu3laZvEtj2DWyksm+BpKfpPh+cSX1xfS/PVrSUZ1KqOtsSZMGHdImrTO6gECG/GkbrIg4Bmes0LOmAV+7+Cv7xVKteNkn55U/sdAgFi/Ub5P4um3v4Coj4inaZnuKwiojOiXczyVEQMzFgw8BnpKEypMwrw/VA7xxgeyyNGFS9bsHh6zpscbdwoRqST3YA33NuGr1obrhlpsexB7X3jWhUsqDFzuF+UZYsUEnase7ydQGijh2sSqGGVIFj8Q== 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=iLTGvSsFUIGytzOZ+vKY3syhSDxCzbKula7lrr7jotQ=; b=jbWPJZraLroZ9ZOX+4lwCHPk5h7PfiDdZAxI+VG/YjNR2eCtOxG2yRy5ma950CVSPZt+i7zHFvQ/zC1jzh8ZVOc73VWdmE8ePvFmRnJb5oyVVstOOhmM3xaVI2DwEtdK5HN8oEsMjuAuz6Gw4CrDpI7ffFF/+L1G8n/2hhOLXPY= Authentication-Results: lists.freedesktop.org; dkim=none (message not signed) header.d=none; lists.freedesktop.org; dmarc=none action=none header.from=nxp.com; Received: from VI1PR04MB3983.eurprd04.prod.outlook.com (2603:10a6:803:4c::16) by VE1PR04MB6349.eurprd04.prod.outlook.com (2603:10a6:803:126::26) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3977.30; Wed, 31 Mar 2021 06:49:22 +0000 Received: from VI1PR04MB3983.eurprd04.prod.outlook.com ([fe80::3ce1:4759:5c33:514c]) by VI1PR04MB3983.eurprd04.prod.outlook.com ([fe80::3ce1:4759:5c33:514c%5]) with mapi id 15.20.3977.033; Wed, 31 Mar 2021 06:49:22 +0000 From: Liu Ying To: dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-media@vger.kernel.org Subject: [PATCH v7 08/14] dt-bindings: display: bridge: Add i.MX8qxp pixel link to DPI binding Date: Wed, 31 Mar 2021 14:33:19 +0800 Message-Id: <1617172405-12962-9-git-send-email-victor.liu@nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1617172405-12962-1-git-send-email-victor.liu@nxp.com> References: <1617172405-12962-1-git-send-email-victor.liu@nxp.com> X-Originating-IP: [119.31.174.66] X-ClientProxiedBy: MA1PR01CA0105.INDPRD01.PROD.OUTLOOK.COM (2603:1096:a00:1::21) To VI1PR04MB3983.eurprd04.prod.outlook.com (2603:10a6:803:4c::16) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from localhost.localdomain (119.31.174.66) by MA1PR01CA0105.INDPRD01.PROD.OUTLOOK.COM (2603:1096:a00:1::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256) id 15.20.3977.26 via Frontend Transport; Wed, 31 Mar 2021 06:49:15 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: 651f3b43-1337-427b-ee25-08d8f4111d9b X-MS-TrafficTypeDiagnostic: VE1PR04MB6349: X-LD-Processed: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635,ExtAddr X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:6430; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: PATS8ObErPAmE8B6HY8WWIzBsUTADSGsotIwo0PSjHvJw0zgsW4anwgU4S1cSm6pNJl1GHlRJ6E3Pxpn48jgTl5kO30zUSC7kJOb9IqFpcmzAvHSUi7KsbDkOfJ21/FQJLlB8WpzdT6qG848EDnibKgXnk06zYdOtPvGHwJHHXdMgWyN+d3EgHqUR5xuf5mNkDbeBc1iCWilsal4/ganU2v1/mhJXnUUdZIBJ5ZC9+XWzHa4QGqkigdobdoIxKO/zA8kwxDoCAvSaid8SkAyxiRgSyaTAQ8KDW4VE7XbBVmNFa1mbWQTneOZCob1k/fFFlwXAqkO5vxOtelH2fJ3/SvUfemLKLXpxo34GH0wgfsisgNBKCCAP0R/JORmj3MQ3RgajvfMnlW1gwV7guM07NpZ3o8Tmqe/KA+W4/tWYc3NRinoSOL2MUzII1ey7h8Er76vTYhKsZ/bshS8HW1Bqma54eL3XwXCWGN+sNVDK5/Kktz8/4TC8ddpcHmYVuBa2IBZ4MI5wl0D8zdmABuClpEfx35yW3kmKY+YtyOHdRW1vQr/wZ2YJZXWVAi+5F5TIWHiVW0zfe9CjEmWzq/MlFLnMugCdsdGsVkIn6g8uriQnRqBYVa7cN7BVEUq+y8RWOvyL26FGlKnBbUh6y6JQe+2M7B/+TLAjSqtGyFl7tFXhORXp8Xn0c1XCwE3AAb9WEEI76BpX7bLJYkf8z0+fzQnuTxEs/dN1GyIMpHlEYM= X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:VI1PR04MB3983.eurprd04.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(366004)(16526019)(7416002)(52116002)(966005)(86362001)(6512007)(8676002)(6506007)(186003)(66556008)(5660300002)(26005)(498600001)(66476007)(38100700001)(4326008)(2616005)(956004)(36756003)(2906002)(8936002)(6486002)(66946007); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData: =?utf-8?q?4pF3EvHYIBjCP9z+B+EzEkTU/+zPBI?= =?utf-8?q?u/iAt1acOGx2N39pMmSrUb86RaTQyTIL82HSm3S8KZLi3rWs+L4L/1GVVKGst+O+w?= =?utf-8?q?XU3nnX2wrP9D3VlRwEXGAeyFutDeZUxLJ+/DMw0MBTURQRXrkt42yDs8hxKc8WWAT?= =?utf-8?q?PfE3jWN+XtfJlx1jYvu9L8Zqe/E4TBvfOt0bkNJtL7fMqBcX7T+Wogt7SpnjInsHt?= =?utf-8?q?B6EZn3iXRDnYi35LNQ7PXZh1qrNU9oiQqL2l0upF82zjAQ6YrzE6BLvSOf2omijrl?= =?utf-8?q?OnF5WPa3PdO9I5j+CMc1AzCqKTY0OG/3DCUTnRjvhjlnUwhmoqQcxBcqal1kBQ5Te?= =?utf-8?q?P7CvbQzWlexqIgdub0S7c92kZRMX15gBr/wNAv880X+VVJDsrRk9DkffYlEFth5Ic?= =?utf-8?q?hIWtEkOLsPmYV/vFB8tNWtUksBfvbM09yMq5XNUzPYDR4LPGlgWNVfQwl0l1nN6/M?= =?utf-8?q?0wnjNWitH+oyZCBxgOY34e+4dw9W7d44hc3UgusqjxJ5pAC4TrTzTundp+kn+N18J?= =?utf-8?q?Y9FXKz9UQcyNDbVAdFZvH8EY7hwVvlsD0pWAat8LorVaCAPOvARO7l0BthaPK5MCW?= =?utf-8?q?i+aDOaZf4pOpjfNN6JFVMpYblrPs5koF7QVOq3/nmrNMR+FPGGSsbCvVHdy/uTIen?= =?utf-8?q?nzY7Zqz37fIvNLMqxg70kFRVHhy2wWoAPihSnfyRX/TdmhfM6Ac5IhKyJE7Bp45x/?= =?utf-8?q?fG8itaxaaT9MiebXXX2S9g5jn4aLVMp4pR7xDY/6V/tR0/+m5zneu6F62nsCfcp/r?= =?utf-8?q?Mn0RnDyEhmz5Y4T/hG9ZX8oe+7RB3s+DNOKadCZjoNx3hlN7CddRyov/HoO+Ba8QA?= =?utf-8?q?ilQAdtBO5q/mgwhVcWikdBLxFtNqyXwlDBmKvyfaboYse4hvdj4KzR6uSek09qQOh?= =?utf-8?q?afPpJF9SiAmH2GMsKppO6YXNFgfAuiSu3w/2T26Gd14eUbh+RXGw4bvxOiBC8m8Aj?= =?utf-8?q?ZTV8NHzDZ+pAepCkis5bh9L13S1qPdYSHHjLTqryMQKjrFHssHI5vzADi1oic/2Iu?= =?utf-8?q?PZafPqlXwZlH5ubKhrmb/+ZwYVTxMjBFcUxCjal7vi9WwSG9ZiUJ9XX+BzUsCwY7p?= =?utf-8?q?QJa8REiokpLeODga2A5EGsP3gtjk7rwDWMx4Bv5lYU+R5X2bQ5rhsUupsZ9DYqdPe?= =?utf-8?q?HObXqVS+SjrhO4DDVuZJ0LVmRah2MlGmLNK0j8bjPktrbrH47jfK0Eik7WLOjDroK?= =?utf-8?q?k80RMV/EOgqNkX6te1HJq3vIh25+8UHkUH7lucOced0d840rWywyf0amXmGus912z?= =?utf-8?q?fAkDdnjB3UAhPw?= X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 651f3b43-1337-427b-ee25-08d8f4111d9b X-MS-Exchange-CrossTenant-AuthSource: VI1PR04MB3983.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 31 Mar 2021 06:49:22.3643 (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: 78kMQYt902XTwaqUEYmZFVz1uMP9Dzy3z+X8/k6f0eS+usJXex3FcOkfL7PRio0miCqjUiHqjXJtvkN+hilADQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: VE1PR04MB6349 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: jernej.skrabec@siol.net, marcel.ziswiler@toradex.com, narmstrong@baylibre.com, airlied@linux.ie, s.hauer@pengutronix.de, jonas@kwiboo.se, robert.foss@linaro.org, kishon@ti.com, a.hajda@samsung.com, vkoul@kernel.org, robh+dt@kernel.org, linux-imx@nxp.com, kernel@pengutronix.de, lee.jones@linaro.org, mchehab@kernel.org, shawnguo@kernel.org, Laurent.pinchart@ideasonboard.com Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" This patch adds bindings for i.MX8qxp pixel link to DPI(PXL2DPI). Reviewed-by: Rob Herring Signed-off-by: Liu Ying --- v6->v7: * No change. v5->v6: * Add Rob's R-b tag. v4->v5: * No change. v3->v4: * Add 'fsl,sc-resource' property. (Rob) v2->v3: * Drop 'fsl,syscon' property. (Rob) * Mention the CSR module controls PXL2DPI. v1->v2: * Use graph schema. (Laurent) .../display/bridge/fsl,imx8qxp-pxl2dpi.yaml | 108 +++++++++++++++++++++ 1 file changed, 108 insertions(+) create mode 100644 Documentation/devicetree/bindings/display/bridge/fsl,imx8qxp-pxl2dpi.yaml diff --git a/Documentation/devicetree/bindings/display/bridge/fsl,imx8qxp-pxl2dpi.yaml b/Documentation/devicetree/bindings/display/bridge/fsl,imx8qxp-pxl2dpi.yaml new file mode 100644 index 00000000..e4e77fa --- /dev/null +++ b/Documentation/devicetree/bindings/display/bridge/fsl,imx8qxp-pxl2dpi.yaml @@ -0,0 +1,108 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/display/bridge/fsl,imx8qxp-pxl2dpi.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Freescale i.MX8qxp Pixel Link to Display Pixel Interface + +maintainers: + - Liu Ying + +description: | + The Freescale i.MX8qxp Pixel Link to Display Pixel Interface(PXL2DPI) + interfaces the pixel link 36-bit data output and the DSI controller’s + MIPI-DPI 24-bit data input, and inputs of LVDS Display Bridge(LDB) module + used in LVDS mode, to remap the pixel color codings between those modules. + This module is purely combinatorial. + + The i.MX8qxp PXL2DPI is controlled by Control and Status Registers(CSR) module. + The CSR module, as a system controller, contains the PXL2DPI's configuration + register. + +properties: + compatible: + const: fsl,imx8qxp-pxl2dpi + + fsl,sc-resource: + $ref: /schemas/types.yaml#/definitions/uint32 + description: The SCU resource ID associated with this PXL2DPI instance. + + power-domains: + maxItems: 1 + + fsl,companion-pxl2dpi: + $ref: /schemas/types.yaml#/definitions/phandle + description: | + A phandle which points to companion PXL2DPI which is used by downstream + LVDS Display Bridge(LDB) in split mode. + + ports: + $ref: /schemas/graph.yaml#/properties/ports + + properties: + port@0: + $ref: /schemas/graph.yaml#/properties/port + description: The PXL2DPI input port node from pixel link. + + port@1: + $ref: /schemas/graph.yaml#/properties/port + description: The PXL2DPI output port node to downstream bridge. + + required: + - port@0 + - port@1 + +required: + - compatible + - fsl,sc-resource + - power-domains + - ports + +additionalProperties: false + +examples: + - | + #include + pxl2dpi { + compatible = "fsl,imx8qxp-pxl2dpi"; + fsl,sc-resource = ; + power-domains = <&pd IMX_SC_R_MIPI_0>; + + ports { + #address-cells = <1>; + #size-cells = <0>; + + port@0 { + #address-cells = <1>; + #size-cells = <0>; + reg = <0>; + + mipi_lvds_0_pxl2dpi_dc_pixel_link0: endpoint@0 { + reg = <0>; + remote-endpoint = <&dc_pixel_link0_mipi_lvds_0_pxl2dpi>; + }; + + mipi_lvds_0_pxl2dpi_dc_pixel_link1: endpoint@1 { + reg = <1>; + remote-endpoint = <&dc_pixel_link1_mipi_lvds_0_pxl2dpi>; + }; + }; + + port@1 { + #address-cells = <1>; + #size-cells = <0>; + reg = <1>; + + mipi_lvds_0_pxl2dpi_mipi_lvds_0_ldb_ch0: endpoint@0 { + reg = <0>; + remote-endpoint = <&mipi_lvds_0_ldb_ch0_mipi_lvds_0_pxl2dpi>; + }; + + mipi_lvds_0_pxl2dpi_mipi_lvds_0_ldb_ch1: endpoint@1 { + reg = <1>; + remote-endpoint = <&mipi_lvds_0_ldb_ch1_mipi_lvds_0_pxl2dpi>; + }; + }; + }; + };