From patchwork Wed Mar 17 03:42:43 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Liu Ying X-Patchwork-Id: 12144727 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=-17.0 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,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=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 6E5B5C433E0 for ; Wed, 17 Mar 2021 04:00:04 +0000 (UTC) Received: from desiato.infradead.org (desiato.infradead.org [90.155.92.199]) (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 C1CE264F7F for ; Wed, 17 Mar 2021 04:00:02 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org C1CE264F7F Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=nxp.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=desiato.20200630; 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=btOcBDkkcAnYkEE6Fe+gB6r8MNqRICoyaMcjcpdY258=; b=iKZU4sBV1TWOvMA8INGc+Xa0Z 8Y0g+ptMa3BShS01lQf/QEROyDydSwKFkvNpJbTOKlDF0bYTi2sOv6704uWbao/V5P4+O1GGUrrhF U917JTl0ZwYOiC/ue+jiiQND51L4vct39kjFkbHH+TmTXTWfMTfhJxfDVYe9hHYKyGOkV448qFa2Q U2QtrPjAQ5x/pAQ9nyDZ8N8+OhZ/VLgs4NSS8cgwU7Vdn6N4rhkvp6fozo9DPD5/DC7bNsuSEhyvn lRaAPELphYXosS4tyGc/rjELqmNCGOHN6laZY2pLHgzCJl6YEaJGvgchRpRCUDcc8mM3ASYPNWJRR IsSY3T8ag==; Received: from localhost ([::1] helo=desiato.infradead.org) by desiato.infradead.org with esmtp (Exim 4.94 #2 (Red Hat Linux)) id 1lMNK4-002Njc-EU; Wed, 17 Mar 2021 03:58:16 +0000 Received: from mail-eopbgr60079.outbound.protection.outlook.com ([40.107.6.79] helo=EUR04-DB3-obe.outbound.protection.outlook.com) by desiato.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1lMNJ0-002N8g-35 for linux-arm-kernel@lists.infradead.org; Wed, 17 Mar 2021 03:57:13 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=f0DTVu+UazcDzQMpZk3MGxiwU5NF0LMr5p1M3wvueNeH3H74eLUYuv9wlrhOXRARgxd0HVEZhrclydhi2DCkP3LJ4B16duyuK5mpV9uhGsNyBhIW1qo1SLm48CftNiTkmd+NFKHgRx5wEJom2SNLGugdtuPakmVhP9hjJ1Bg3HSHH0cl0RHNwVhE2MhaJ0oDb4uEeEqHf6D8PuM8cQW8Lklbkvv8ZpXLoOsi04ppDWCD1zjfLmwHEDqOa7xzFA/HFsyroa1W3WBb8qE2nGSGjUwgO/k4ecDTg4OANTytQwkB5A4pHSSmmVBGhMS4DybkFNM87M1jgbK3lPK/Zqdc8g== 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=CTFc8QR234I5rNEHOIn61/RV3xcv8F9EqsBbIWWUCGE=; b=mqOK9DMBoyxXN7qOLC4aEA/vemqWlYfF/4Ihp18+CqGxpfg2pHC+5KOitFFgCvP1uJLxnPL5elLmq8ivZMPz9UKWuNvIa2hUSTIp3ThRHh5j0detviSHCFkf4mDVIx/YjPh8bpJknpIreBjsCAj3f9kEomkJJ2CVhQxwI2FQd1YwCuLEbMg9Y+OcycxzsttXxetC9Fdp4Uti8mhvxG+fBoFP5lgx6xbAqSVZf9QFclKubBxW6Hl9WcJIyFhsuEeqeVGE0o66ex8U3d5jvFAG4AUaxioZNGXuOVy7YfBfrEPLiis33HaHfCsp6wCAybvRew051QmRnQEcMuu3bBqkcQ== 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=CTFc8QR234I5rNEHOIn61/RV3xcv8F9EqsBbIWWUCGE=; b=VRcggj/RxTjfX70aphYsX2WU7SxMf9nYyJxULwbg6O4QM1foVCb2JaTLFU3lDcr6AekqcHy6pDbFL+fhEQC+Vtr1tdglpWBNqAbtry9L3ZPVwlmPpTo+/OxDlZUYBNNRQSdtqu5hJZcI6fQqE+mtSCYVt0w/sL1bFJqiQeM0LWI= 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 VI1PR04MB6141.eurprd04.prod.outlook.com (2603:10a6:803:f9::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3955.18; Wed, 17 Mar 2021 03:57:07 +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.3933.032; Wed, 17 Mar 2021 03:57:07 +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 v6 08/14] dt-bindings: display: bridge: Add i.MX8qxp pixel link to DPI binding Date: Wed, 17 Mar 2021 11:42:43 +0800 Message-Id: <1615952569-4711-9-git-send-email-victor.liu@nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1615952569-4711-1-git-send-email-victor.liu@nxp.com> References: <1615952569-4711-1-git-send-email-victor.liu@nxp.com> X-Originating-IP: [119.31.174.66] X-ClientProxiedBy: HK2PR04CA0090.apcprd04.prod.outlook.com (2603:1096:202:15::34) 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 HK2PR04CA0090.apcprd04.prod.outlook.com (2603:1096:202:15::34) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256) id 15.20.3955.18 via Frontend Transport; Wed, 17 Mar 2021 03:57:01 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: d01ddfbf-714c-46f4-e449-08d8e8f8bbb9 X-MS-TrafficTypeDiagnostic: VI1PR04MB6141: 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: LT4L8HLRfqybUTU8UknpujOyojcPo1oclpSQiVHYVo0eZHBlzhQ/1X+Qyxq+c6G3eBJSSKKwWMZl5JqZ7WI25MuDgmyY4UtWm9Rxfl7bOlyXkcXfwcShF3xi6SpS4KJ8QTegj29jcL9DPI0ptbOZzdCFHOtdxdl7AyH+bGlFFOd0EMSKXDKUyt+T01M7Qxi1/6k4YCERqbspUSI/gB7iN3Jv42sSBd1A4Dsk4ZSCvpW8xcxELTSFLCHv2mpgCVdZg9t/lXCRrBGusFkPd8QRNREhfIKVDZn1KL+WURqTPgMxRJkXRgyq1+Jutg/WWDG5InUb8n5sv3y2atfX52n6GYe1bQQfeC9tUK1m5HG0PntJhh9fuBb2sWvOM+qepUd1Lois2/xSFoPYlPnKnUgUl9knfrTmM0C5wJk5laTVSK7pTWVQkDFqbiqvn4QBNAUyIeF9bDYNYuRqbB4/p0XDVXujc1a/cIGxI/5J77Em675pToT9rOCesjfQQs58ipZysF2ck91ZhSdfajD9u/T/OGSTwmUCwum37hnpJIiB1gzsoiddnEWTGYDg8gP7XEAjxvNV5KC+enwjkTKT/ZiWgBBWuGrK6xnjKd8rkFucdBVNfET4GNJgOTafIUA04Veo 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)(346002)(366004)(396003)(39860400002)(136003)(376002)(8676002)(5660300002)(316002)(36756003)(16526019)(186003)(8936002)(4326008)(956004)(2616005)(2906002)(52116002)(6486002)(6512007)(6666004)(478600001)(966005)(6506007)(66556008)(66476007)(66946007)(7416002)(26005)(86362001); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData: =?utf-8?q?wjRxTU1/zDMbp9CNDKrk7NEc5PQXnK?= =?utf-8?q?YtOtxGLrUTqPYz3pKmngIj/KIDOSoZCg8eDOCNAGbY/odlAEveau0K4C0sCL6MWmM?= =?utf-8?q?StnzhsYyXOGMV1x/ACeSt4TgZqla1nCGggp+tOjkNk69Pb3/+Uoa44z75MJBgytBQ?= =?utf-8?q?v6U1jQ8cXwjbpkivv4TDFUj+uYwtOX4uUCA1/nB9ra8ESTvJzvT7On/846K9AaF7s?= =?utf-8?q?Gn6xXtqLCLq7fh5/bLUUlV0YTW+0hFV5IVH62kFwsb7BTHERhfJGsMsDDJDE7O2uX?= =?utf-8?q?+eCpxplvlBHOLlJCqDBaWXoOSztjOInfYA3LvU+9edE2JtHsPOGcwL0L2ZqehnXc8?= =?utf-8?q?VZ1BrTmnzNvSYd7gHdj07ux/SfE4ltuJZnglZYXq87Nvu5C8GaABhF8oQE28MEUng?= =?utf-8?q?txWx6ev1gD/Il6pGKbGsmWCntLY495IjZ1KHqXnbiclhKNYS/pqiI1hIQowHJXnUj?= =?utf-8?q?ZxwYpZIQouUb4/1SxF0gO46M5asR+5x2uLFJGvPerEuikmycrXwSfNu3QVX93YWzM?= =?utf-8?q?50AhoL6bCysg+GYGXZQ3tu5+zJCxOSdM0g7QRHjrO5qarMMJq11q/jBnMIVcjmCw3?= =?utf-8?q?XhAysxmIolqokweWFPkO6SvhqH04Avj0DStJOgWrLVOlMISJtCCadSQt8a0RbK3PB?= =?utf-8?q?5IhACnfftFCLXSK40G94vToIb1hTgGJyLhIyTPEOR9tIYe0CIaOmYDWBfiDuOoCmG?= =?utf-8?q?l9kmq2UP3Sti2pub/BrqbWresVN462jo6l1FjgQsdAQPj8Frm2UG/H/IKyMyVeAyA?= =?utf-8?q?SVc7zFLhWGf+Sbc/hTw/MnKPpTu2TvcEk3E8t6uP8ya4+hW+n9YWwLLFiRd3DRyAx?= =?utf-8?q?4Wi/6TNvCEGbXdvXWe+1frN8Mi2WrdIjR+ItYKlmAM7EzkNUuFwLflKasd8p+Lb1l?= =?utf-8?q?OesxxRc3b0VO1shHAsWGiVNF9y6VKdKWcAKqmpk7OHMnrtZVbezqjyJ53EzwtUz67?= =?utf-8?q?DEIAc/DAXbdF0Q7AA3+Fi/Lvjdo5jhNhTwLpGZvW9hOw8w+0rnCx+parSWjk1M049?= =?utf-8?q?tcrPjPEcTDklHbkmudvkSwV9Awm5cmdKQb31AW5rAXpOLQsuArX3YsyMgmib4I+4s?= =?utf-8?q?owP/dGOLSIHRaFdXfNoZgFGxr7SzgV0InAAw4d5iij60vNfCjKcuPjfUHdjoL+/QM?= =?utf-8?q?9VS3JH0sJkt3L7y6Bd5UYkTCudTmE6Uhfx29Q/JoDbqRdt3r8QH0/3nYm+qZCV4PB?= =?utf-8?q?l6PdJDt4pvJ4Rdn5i8Lh3kh9spNRoGhPcM8/6CQtFT4TZgUGJWRlAWdkTo/L60yxr?= =?utf-8?q?eKMnNBVA6LmEOp?= X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: d01ddfbf-714c-46f4-e449-08d8e8f8bbb9 X-MS-Exchange-CrossTenant-AuthSource: VI1PR04MB3983.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 17 Mar 2021 03:57:07.4109 (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: 3R8egXubhupK0HD06S40MoIrQLDa3lEXaA173HNbcz6Tz7+GY6B/fm9gqYOtwxx0ORW+PxzO5gFX+P7omDNNJg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR04MB6141 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210317_035710_411933_990F2F9C X-CRM114-Status: GOOD ( 17.38 ) 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 This patch adds bindings for i.MX8qxp pixel link to DPI(PXL2DPI). Reviewed-by: Rob Herring Signed-off-by: Liu Ying --- 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>; + }; + }; + }; + };