From patchwork Thu Jun 9 06:49:22 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Liu Ying X-Patchwork-Id: 12874869 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 257C9C43334 for ; Thu, 9 Jun 2022 06:48:49 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236993AbiFIGsr (ORCPT ); Thu, 9 Jun 2022 02:48:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60468 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239347AbiFIGsm (ORCPT ); Thu, 9 Jun 2022 02:48:42 -0400 Received: from EUR03-DBA-obe.outbound.protection.outlook.com (mail-dbaeur03on2075.outbound.protection.outlook.com [40.107.104.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 366BB4B414; Wed, 8 Jun 2022 23:48:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=XOTJ1f3T3YG3EifuL3caI1LPmq0+TCExB0mrMN95pJkgtAynW1xEXnAPxq57CehPMBCFF6LswXLzl1ktMUXHpGsi/5GwUYB3cwKkYi3gDFl8hCU1WwBWE6Nq2rUkS2IeGo5m2rt9mhxWqnPhBpr1375Zfd38wYaGS+SJhQt7IgniyqeqSbVf789ro4UVyWDtdLHKylhwdqnATsoEBBb/3YvZyZLGC/SXU1319EVwGXarvkWtgAu9vyWy60MBbeaiM+B+BKtM0WEjI1yTTAwa0Z08fg0Bt8ICjLIwFi4knm3Sb1IrWNbp2/NDLdDlNXDdCHg4WXhKZmy+VcYMOhrSjA== 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=6DjxV3N7Bt0o3J/KT/FGQPU6HbG721E6s9o0CyqixvQ=; b=RSoUbNZe7hivqWWKkEZmtqzEV7nyZ0cdJPa8YQzbHjRJrebCKta3+DXVNsT3WVhW6E8d2dn68vARVbreEEeGTgWjtAMt3Pu1mCIK2gq2wPREepD7yqxnNjd+bUOjWng30xPgMmAjcCUpeqH53VtpKWrCJIgxYBguomyXipl1hk35Z2K4WnyGmqCHd5g+619+cbBEpzFceR+m0sLliCA6hhP6rm73HyPByORPLM7vz4tfuCbBgugxNPArTD1ciCTwNGlXISGiKnBPciHOdmQmC2q+QPs95e3El7Nj5+JAkBPR6m6c/oe1GP6qUuCS6GvYl6LKoMzMYe8d2nfnM7gj2w== 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=6DjxV3N7Bt0o3J/KT/FGQPU6HbG721E6s9o0CyqixvQ=; b=I7mOS4HPLq56kfgyLPxMj9M9a7dnauWi1PM5qHAYhPqmK2HMVQP0BbVRpn6vwUEApCueCmemMv2hbc3UXB1aZizCIKw2fKjrmnmf0Pxk5hkoD6t0T9+EGo9vJUGeDp8NGqcpSXt/asbjF07fMUyp3xxFdR3wGsHjOLM6/tADBl0= 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 VI1PR0402MB3518.eurprd04.prod.outlook.com (2603:10a6:803:4::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5332.12; Thu, 9 Jun 2022 06:48:38 +0000 Received: from AM7PR04MB7046.eurprd04.prod.outlook.com ([fe80::3c82:f63b:711a:502]) by AM7PR04MB7046.eurprd04.prod.outlook.com ([fe80::3c82:f63b:711a:502%7]) with mapi id 15.20.5332.013; Thu, 9 Jun 2022 06:48:38 +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: andrzej.hajda@intel.com, narmstrong@baylibre.com, robert.foss@linaro.org, Laurent.pinchart@ideasonboard.com, jonas@kwiboo.se, jernej.skrabec@gmail.com, airlied@linux.ie, daniel@ffwll.ch, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, shawnguo@kernel.org, s.hauer@pengutronix.de, kernel@pengutronix.de, festevam@gmail.com, linux-imx@nxp.com, lee.jones@linaro.org, mchehab@kernel.org, marcel.ziswiler@toradex.com, Rob Herring Subject: [PATCH v8 05/14] dt-bindings: display: bridge: Add i.MX8qm/qxp display pixel link binding Date: Thu, 9 Jun 2022 14:49:22 +0800 Message-Id: <20220609064931.3068601-6-victor.liu@nxp.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220609064931.3068601-1-victor.liu@nxp.com> References: <20220609064931.3068601-1-victor.liu@nxp.com> X-ClientProxiedBy: SGXP274CA0008.SGPP274.PROD.OUTLOOK.COM (2603:1096:4:b8::20) To AM7PR04MB7046.eurprd04.prod.outlook.com (2603:10a6:20b:113::22) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 301c3304-93c3-46ed-06c8-08da49e41510 X-MS-TrafficTypeDiagnostic: VI1PR0402MB3518:EE_ X-LD-Processed: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635,ExtAddr X-Microsoft-Antispam-PRVS: X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: YmwBWc3cAWEIBinG2vAAv14OIiibv+Jg8E4FdTR1PuyNSl3bVPhPtIFDrgN2x0rUKNTCWehxwQlm4612pvYlCkXA18XdDRAx29A0iAbvP8EJQKZKA4vqGWa5bjeFLXRMmsvhI6crAt76io4Aaz0u8BhNCFO8Qif0RU7Kz4pq8Bedk4jlzLsuw++LMmSMDAsMS0KCei3Pzlbag9kUSjs/TjBPhdU5J9v5rXRGgCJXwqdsmccoaD/JYm8wMjK2BiDDNNrOKYXuSbtCnMqk/PB+HxmXU3CNepOLLxN0fwRskZq8c4dVhfKovoBbDTb27M45d83eLGAptZgsNWhnfvfq7lxMGa1v17VFx7acpGQ9feVkrwMz2r+9yIo/R6SLgDYvT/C4yz3QNXrKcBe0q4svfr76lh7EImChBNyKxBJiUr1/hhMmy+iYzxmxxcvhnYI/QLTPeXPnc5LckeLicFhqd1U2uuF1+9OUM/SwYQrcJXZoSICMJ47mLTqaoEC62f0l2y6mqk+iKUyRG8RA5rEHkAv9xo9cdJra+NBpZRd/abkrvQ39vf4cLnsQ/OX9WGbuOGFP5yt//+RUDvAc2j1xqx/uSV+NZ/8iLYm8R5YsJ5FiOr7NagL73pZ0XJgt/AScPjka5k9rj133mIRmoA7aQAbBr9Hv1i0VvzctiIEdbo76csNGMEZnBOUp0csclphv1drlL/4B+8Ic+I7Eguh9t4/iC1/I8+fFXQnP4UZe3hNQHovo6BXOq3fsU7rhHJ6oJ9uPQgZLHZc0dhqCIDWqtpciE0bEttQJ2KkCxeMbV1qy8ZQByrBY6P79emOT2TLlFQq5j8FcEHocCx6uFZMZJA== 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:(13230001)(4636009)(366004)(966005)(2616005)(38350700002)(186003)(26005)(38100700002)(6512007)(6486002)(83380400001)(36756003)(316002)(1076003)(7416002)(66946007)(8676002)(8936002)(66556008)(52116002)(6506007)(66476007)(4326008)(86362001)(5660300002)(508600001)(6666004)(2906002);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: no6+aKu4kxu+hG4o/OJhM1vhitFYAN7iXnYhEsrwCv+3ztlMno/b/eoq3K7ADXG79MGDFO9aVPOdLcGMqVQIktxp+4nmOIcjc7kWL4HHI1jmlM29PINwbmcXAMe2AT/syN1lJky4cW6zZ9DH44p98hecj1UrTYHvLKm8S+ia6PYIZ/IY6JYcIrOx8CnTlWtBJvR3WbZMyMoUTiFzKrXzhaiDmDIwERWxjHaelWBgt7IHyo5vZzoljLS8BbzYtIFEfn6FW2JDsdLOEEiGh62nSKNkAtz6t+YCw9T4GNGceGlgIpxGd7yzE+B/oNTdJ73xDIuHPI0cHiNvqnbbcTLQO8QF2H8SOrj5bN5me2O3Ms2ZP3kTrrqlqrILRpAiOCT92Z5FkhafDL/f8h/rQWRSBWgyD+TKsWjJPvFO4wmoSXR5y4qSyQ/LHny4ZYWtbPp0Ke60A6TTBNns6xWigAQbCCTaU2LXwiBIIXEA7Y6+pTDAyauU2M0eLM7H9lpxpEknn3EoNi7wCvpdDYQ8ovCTxj9BRm2YHWGw0OO2A2DiAAIHlvfIyp9nGs8jvtp9tsFen2k34PUIy//SohfwRyIYpN09NluAp0U3QZo5kQAjM3f8pCJzZVpRLBGYuMUIp6Pq+wf6JAxgrHJQN7IpRtGGLZm+tkwyI2Y9zh//NZRVEt1RjPlkLmEzeNbvdqEznOG+YdCgN/Hvm9XfzT6MLijkdr5CpcMl2ISbd2KuuKtt8eKwJzLlAeIPVQwuwomWbdPWC1tBcVrOSlAvg5z/dHYCPuWZfFns5qhTnLUS5yseIONgyddsPZTHy6NupLrjHq6r2Im1y2xxVnVBc4w95LucS176ZLdBeJCdvzn2mYzvjNfU1u/8vEXlleVGqRM3N+MfUnVO4946gfPExMy9lVNIPQqs20wl6/ems9zuP+D7WGDDzpHqdyKf63NiIibI8Hz+p8U+bCtA8hrtrYiuBrRjxBU57KUrleteg14xQkH+J74yUk8TfsLKAYIRbMqImcSEIDytgoEbfJeMzyzSypvgYZpPLUXBlTFWn5MS5j+/7aLXgn7dv0kSnt477ElKEBFIREmvtSScCwDFmPuhTr8iuN3qFaKycLBpvT6s6EXeAtgpicoD1wzAhWxN5Q0Jnwn6pXFKvfnKnJVNKp+/hhqRY3UJRn8OB4HxVstUiOnYy9uagBny1aIiNJYCVzv3xns+xXHVycr+4+gWzwmwIeYfadaSjlTqBPhi4/rP2R4Vf/M0wrbW5L5k225m74D20GyLfUKWxTHIFiv15LMDMcVI8CZh78xiT/oB/1WTwKcBQRGld27R6IUlxS0gil+pE3PlPwU5GfBVhJsgPHshYQJJbQAESWCEX1MwfjNLH+DNBaPSnntOg+FixM8eBns89pjsrBtWFf+woYwFjmJm9Mhjybn3NN8Tgjh0tpju9dhbRYFd+nXpUVlWVJjE9OLeHclqyw8lzUS32eVPs/3LGUkPTR5qEtD4EsG2d06ZzlqrridmH/GgiK9AxoTVOtiqHCxEHHqXewQJeQr/9I4kVvwM8KZ72LXbIAaBe5Yzcsi40/bmonFAqVRJT3HJTxsyv5ifHnVKoq/ERKitWeP6JaohuZTnZ9/OU4jv4OSMMmuN4/tWNk3CmoC/L4V659RVfPDLsAf9JTT9+OFEsGDiOLxak8cM5OZ3Z4to/WAXN/p1h7bazf3BMmDjFNz0PB6A8w6D+OfSYU96FE20nUDklVPsPA== X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 301c3304-93c3-46ed-06c8-08da49e41510 X-MS-Exchange-CrossTenant-AuthSource: AM7PR04MB7046.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 09 Jun 2022 06:48:38.4526 (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: CsczIer9RZhlZWqlYmNbpDMd4NAssyaZ2Whk+zPnjNqlt6qQVao6dqIt4+Ib8nvVpd2IqzJGjnqdus3lmim0tw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR0402MB3518 Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org This patch adds bindings for i.MX8qm/qxp display pixel link. Reviewed-by: Rob Herring Signed-off-by: Liu Ying --- v7->v8: * No change. v6->v7: * No change. v5->v6: * No change. v4->v5: * No change. v3->v4: * No change. v2->v3: * Add Rob's R-b tag. v1->v2: * Use graph schema. (Laurent) * Require all four pixel link output ports. (Laurent) * Mention pixel link is accessed via SCU firmware. (Rob) .../bridge/fsl,imx8qxp-pixel-link.yaml | 106 ++++++++++++++++++ 1 file changed, 106 insertions(+) create mode 100644 Documentation/devicetree/bindings/display/bridge/fsl,imx8qxp-pixel-link.yaml diff --git a/Documentation/devicetree/bindings/display/bridge/fsl,imx8qxp-pixel-link.yaml b/Documentation/devicetree/bindings/display/bridge/fsl,imx8qxp-pixel-link.yaml new file mode 100644 index 000000000000..3af67ccf8db1 --- /dev/null +++ b/Documentation/devicetree/bindings/display/bridge/fsl,imx8qxp-pixel-link.yaml @@ -0,0 +1,106 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/display/bridge/fsl,imx8qxp-pixel-link.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Freescale i.MX8qm/qxp Display Pixel Link + +maintainers: + - Liu Ying + +description: | + The Freescale i.MX8qm/qxp Display Pixel Link(DPL) forms a standard + asynchronous linkage between pixel sources(display controller or + camera module) and pixel consumers(imaging or displays). + It consists of two distinct functions, a pixel transfer function and a + control interface. Multiple pixel channels can exist per one control channel. + This binding documentation is only for pixel links whose pixel sources are + display controllers. + + The i.MX8qm/qxp Display Pixel Link is accessed via System Controller Unit(SCU) + firmware. + +properties: + compatible: + enum: + - fsl,imx8qm-dc-pixel-link + - fsl,imx8qxp-dc-pixel-link + + ports: + $ref: /schemas/graph.yaml#/properties/ports + + properties: + port@0: + $ref: /schemas/graph.yaml#/properties/port + description: The pixel link input port node from upstream video source. + + patternProperties: + "^port@[1-4]$": + $ref: /schemas/graph.yaml#/properties/port + description: The pixel link output port node to downstream bridge. + + required: + - port@0 + - port@1 + - port@2 + - port@3 + - port@4 + +required: + - compatible + - ports + +additionalProperties: false + +examples: + - | + dc0-pixel-link0 { + compatible = "fsl,imx8qxp-dc-pixel-link"; + + ports { + #address-cells = <1>; + #size-cells = <0>; + + /* from dc0 pixel combiner channel0 */ + port@0 { + reg = <0>; + + dc0_pixel_link0_dc0_pixel_combiner_ch0: endpoint { + remote-endpoint = <&dc0_pixel_combiner_ch0_dc0_pixel_link0>; + }; + }; + + /* to PXL2DPIs in MIPI/LVDS combo subsystems */ + port@1 { + #address-cells = <1>; + #size-cells = <0>; + reg = <1>; + + dc0_pixel_link0_mipi_lvds_0_pxl2dpi: endpoint@0 { + reg = <0>; + remote-endpoint = <&mipi_lvds_0_pxl2dpi_dc0_pixel_link0>; + }; + + dc0_pixel_link0_mipi_lvds_1_pxl2dpi: endpoint@1 { + reg = <1>; + remote-endpoint = <&mipi_lvds_1_pxl2dpi_dc0_pixel_link0>; + }; + }; + + /* unused */ + port@2 { + reg = <2>; + }; + + /* unused */ + port@3 { + reg = <3>; + }; + + /* to imaging subsystem */ + port@4 { + reg = <4>; + }; + }; + };