From patchwork Wed Mar 10 09:55:32 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Liu Ying X-Patchwork-Id: 12127539 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=-18.7 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,MSGID_FROM_MTA_HEADER,SPF_HELO_NONE, SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=unavailable 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 F0236C43333 for ; Wed, 10 Mar 2021 10:10:45 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 694E76500E for ; Wed, 10 Mar 2021 10:10:45 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232632AbhCJKKP (ORCPT ); Wed, 10 Mar 2021 05:10:15 -0500 Received: from mail-eopbgr30063.outbound.protection.outlook.com ([40.107.3.63]:14054 "EHLO EUR03-AM5-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S232611AbhCJKJw (ORCPT ); Wed, 10 Mar 2021 05:09:52 -0500 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=U1BkNUsJHgy360PU8luNxuZUbMZFU9puSIYz1CgMOPdPZG9HyefQbjdDHK+ZXZhQjYGPpqjidoiXVRTvK8pgswXXll08iPco7hk1mZPu1OfFub9TBRi4hSZl0spiS0gd2AWMI1XS9zaInu6cJx9WG9EFgOW9atk+/8DFh9kuk6jbyMelsDi0rooeUDXh2pB2hLPnAaAQZRg95jbemVQm1rifpWU2Q81DPhiJFNxuHqQqoHyMsDeGds7qIate+pFyVYiHNzrHc3nfbQ+OMKecm5pVfjkovkC7DOMiL10XJdyQQ9l8f7sSzI0RpyECdqi995e0OD2eSbhOe9WIcfd8og== 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=UdKhDbmlg5Za0j6h1Gnm33l4N/AIyHSMNJq5P72b+jo=; b=kR2uqAZs92/1L+d9ABwwBeZQnqqve1R1ElXIWhSwY0nw82alMxxNBDxRkM6Qaa3uJXBXVyfZQyLxH/gYj3kRwJuCNiJAerDJlwrsmcthvZ2wM86pn8GWWYRcbG0DIIwbJ9x/Pa5TpFN5dBXdIPP0WW8P7O6M3HxIknHVcR62YADfchWFNghmQ/aLbIHP2IrgJocjspy7kUEhURChDcM4IioUJxmXVpzZvcnQmdld+zMa7FF7esyedR7PJaCthfyPKSFQuCxMx0sLZ3DYd3dN4saHNKm9c2NZB/EbPoxUoiecw5Q7rE3+kOpX6jgJkh8gDfB7+8MfXdquoHsaSR515Q== 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=UdKhDbmlg5Za0j6h1Gnm33l4N/AIyHSMNJq5P72b+jo=; b=iFP8D2k0iHt2BVu63QpCDep2V7dQmeTAeQjxTseqtAdXBbc9Ni3+UeNnt1HKyjmD5usWU/n5pqBwDDxYGAec/MiDmz/1vUGHOsnKed8ay0hj/Hj4oqxSAWbqlcsu25UQd4SCKzlUzTiSCW3b94dPKPeYKO9O2fDIGIpxpqwGql8= 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 VI1PR0402MB2813.eurprd04.prod.outlook.com (2603:10a6:800:b1::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3890.23; Wed, 10 Mar 2021 10:09:49 +0000 Received: from VI1PR04MB3983.eurprd04.prod.outlook.com ([fe80::2564:cacc:2da5:52d0]) by VI1PR04MB3983.eurprd04.prod.outlook.com ([fe80::2564:cacc:2da5:52d0%5]) with mapi id 15.20.3912.028; Wed, 10 Mar 2021 10:09:49 +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 Cc: airlied@linux.ie, daniel@ffwll.ch, robh+dt@kernel.org, shawnguo@kernel.org, s.hauer@pengutronix.de, kernel@pengutronix.de, festevam@gmail.com, linux-imx@nxp.com, mchehab@kernel.org, a.hajda@samsung.com, narmstrong@baylibre.com, Laurent.pinchart@ideasonboard.com, jonas@kwiboo.se, jernej.skrabec@siol.net, kishon@ti.com, vkoul@kernel.org, robert.foss@linaro.org, lee.jones@linaro.org Subject: [PATCH v5 08/14] dt-bindings: display: bridge: Add i.MX8qxp pixel link to DPI binding Date: Wed, 10 Mar 2021 17:55:32 +0800 Message-Id: <1615370138-5673-9-git-send-email-victor.liu@nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1615370138-5673-1-git-send-email-victor.liu@nxp.com> References: <1615370138-5673-1-git-send-email-victor.liu@nxp.com> X-Originating-IP: [119.31.174.66] X-ClientProxiedBy: HK2PR06CA0010.apcprd06.prod.outlook.com (2603:1096:202:2e::22) 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 HK2PR06CA0010.apcprd06.prod.outlook.com (2603:1096:202:2e::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256) id 15.20.3912.17 via Frontend Transport; Wed, 10 Mar 2021 10:09:43 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: 5e19c7a1-646f-467d-6e4f-08d8e3aca3b3 X-MS-TrafficTypeDiagnostic: VI1PR0402MB2813: 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: 5fX+QTWDAthLxY9Zk8HxACuRx148niDOVy3CJIHY4gvnr+3j9hkbiyQB9bRkUWW+NW0j5p/VvObCgzxAXKA3S7uw4e5XGCO/b4XR/11/STfyQpDOnKRpA+bZUiDqsTNGTpr8bWM8frZPvXVgA554d2wpqhx7dO7IOB/WvwEI2EWdNW2FqDL05Ru+hhNmN11l9mrFgI8pjnM5W6LGPaXLz9iXrPmcE/bR7GW/UX7We1WrBbn4QVPIvkfz358LrbtoROkCZEMWDC9frXNepVioEiObZugFY/243vz8Xv6qETxleJmOU5WMmC+djG+UXsEXCufqJHDudBc7w+ieDUogZqVW0Ji+F8g5SsIf0tsNQm4BaHlnB0MzcR9RAwZ/gPMU2v9lKh+fkRAMEbuNGZ3L8Pl8h0aX8m0LCQiES30XvSYYYsvVQTdl4fKYjyuD0GM4eC6ZG1L6liC9zSYrR8P97AdgTzymkt5xUGREYBHt0J6j+R5Mfb429/JMyqOTARirc+wwxStfQfZ77NQWwlWvwL4Stm7kRu6J60QxUF9f493B6N4wY+i8iDd25cIxQMEZcV5YIAU9SQwtHh27M25zRA== 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)(376002)(346002)(39860400002)(396003)(136003)(8936002)(6512007)(6666004)(26005)(36756003)(6506007)(956004)(8676002)(2616005)(5660300002)(52116002)(6486002)(316002)(7416002)(478600001)(966005)(186003)(66946007)(2906002)(66476007)(66556008)(16526019)(86362001)(4326008);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData: =?utf-8?q?Kz1p8aWkXkMiauE3EN9KXF9Zff/700?= =?utf-8?q?HK8Rowwr9RRXe85jRJQmawXc1jmJRz4yv0viChCT+u9CgRXuFBP9JW4D9jrxcMfEz?= =?utf-8?q?efeuUmTQi7x+K+ttT6B8Dz5FbODeh+n5L0OjWQkr6UZk+ux3iwjLPOOaw2UVNopfA?= =?utf-8?q?3BcgLGAovRAU3Uu4dv524ZNdP5JqQ+rUmS4pWVHKMmNebTbOa35zTNB5+s2NNa7fK?= =?utf-8?q?leiH23dOJ1F7rY/IzrgJipRkmLmuB0rsq9e16qZDDtxc9aJZ1V5jEeDvt+HfXVJaH?= =?utf-8?q?Xgh1y2UQ7zjr/yFPGbhN+8ZqGO8g/KJNBMhrAwzwr71cRvUoO98VnswPNZ8bRb3h2?= =?utf-8?q?/+qPkLw4IBJH5fKalhj2wKo5sZmH2L286mv/vemcj475ChSepwSn4HLNAhF9g+JxG?= =?utf-8?q?wVuh/lSr4ImMAR3fUFL7BNbEZjECT5172CDmprqiLK8/mU2mJq62REoq7Y+P9cSZL?= =?utf-8?q?WBQQ6bOQY1lfXf7p5f1l1rwnowJK3YX38X5HbxElB522CYN121vS4pj7xkDuOtUXj?= =?utf-8?q?hetPN/bdKYLCMabpzKvFhdymq0sLm+KUFFzltEjjkitQAHcSLmx3qhd+LoJGCZxkf?= =?utf-8?q?YM7E68SmBfdC4RKPysxo1TKb2jy483g2aqylBj9+xfiyBqlFlD9nMrGCYg41fcwV2?= =?utf-8?q?uyet6vKdr1/CPNO5JorFdvDi60r83ZgGeYQG6y0i56xgm5GpvThNbcYll0kZckUnK?= =?utf-8?q?yjjdaXNQSddoTKTokJZO1dfpmSkga1c0Lq56nTLhVqlkkJHwIFHBTHRremKwCNTwR?= =?utf-8?q?8XynO6Eh16kL3F6sjOUgbTXOjnPTdFFxU9Cs+TFRuifCZR41jo5+MrG2Cg+K5xzX4?= =?utf-8?q?5nYhOCyatZjn8HR+oYexrDK+nOAV7XSG/vcWQ4wDXIAO+6HgXg8J78MWr8a5D00Ag?= =?utf-8?q?uSNwQF8K1/WrxYA268iV1O0EikGJYx4JfFo/GI2pWl81UptefgYA2DZn0z+12/K5D?= =?utf-8?q?XwmYbMoXDLBYze54GaAOGlM599+mpqcGyR5Vwtv6gG56eX0LInIJJaAtzoYlYgPM3?= =?utf-8?q?9TXqXwDjkXPJemVa+Tfq+a5omJbHv1xsKcmmakShDekAQR19n0bURpE6+eDOguuTP?= =?utf-8?q?gFIwYamxE06SboTRoKiGyYbz6F9JjFEVUDxdFmEajAiPE/YHEA9VqEHLD5iC1IXMl?= =?utf-8?q?icbkUyLKEsDWSwt+/vqZifQ1Gdzegvx0Xfe4gvQ36IwYdRHY520nY5mdUbZPrfYBR?= =?utf-8?q?nlcG84iWqtFeV6ebV8lmhr5eMNLlSglyMtE8HmID5v1qwuCk49fzASxzOowR2c2mM?= =?utf-8?q?n7skQah4YeQFkc?= X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 5e19c7a1-646f-467d-6e4f-08d8e3aca3b3 X-MS-Exchange-CrossTenant-AuthSource: VI1PR04MB3983.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 10 Mar 2021 10:09:49.5909 (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: iVZ+ESb6F/tG2Wtl5Eb2Naqjl5+N3xgrhQiLsSJazq+Jq6/b3csYAKTV1kKCDuCSmGl5eRjLDDWRFPqb7pHeVA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR0402MB2813 Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org This patch adds bindings for i.MX8qxp pixel link to DPI(PXL2DPI). Signed-off-by: Liu Ying Reviewed-by: Rob Herring --- 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>; + }; + }; + }; + };