Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp128352pxf; Wed, 10 Mar 2021 02:12:02 -0800 (PST) X-Google-Smtp-Source: ABdhPJwRKsh+p9h8z8PGwVsB9vIqBL7bZvDYWXJj2064mOiuW2MnrG3YKlAWv/dL4j/1y4slghX0 X-Received: by 2002:aa7:dc15:: with SMTP id b21mr2398915edu.350.1615371121839; Wed, 10 Mar 2021 02:12:01 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1615371121; cv=pass; d=google.com; s=arc-20160816; b=u80Vexv31mewKo5KCLC963SLJdNzO3BNQZR6km3NEeqblHPTZ0ofI8/v3vW6V9T2aX ohrHpfpYVNX1NnAuMN7cUUG9RxzbQlOpENYbzR41HKEdvQ5SDHWrm8ZqZPvB2NkO/8dI tmFzfCT57kQXo+cQqUexziU/HzF7Cm7qcN52SEXociA9AbrDbQckX43h3V7qognpHPqb i5QMmMJM5wE98rp5Rj+2U3xJ5jAPyHyFW7IfHD5vnAeD3XTh8kLnl2iMfm/wHpFzFws4 k4F0NRfKf+HAb0B7Mhw7CKIG/HITazxNPIfpclQZmf8WpxCcL6LQmeaBNwtoa6ku/+Yk IDvQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=cPaF5b8X7N45kdAHMx4gPk/1keyfewyj7WPwY3+3sHM=; b=is/iVhMWgWqYeasqdU5yMOHwygqJDBVHvHE1JXHHYmDSAvG/zZB7sTbtsWCzNXxfbO ek4oyAlBAiqmxr6NtbciZ6iqxkYd0JtG/ZsiRpApjDg/U2q5dZfqpnhllaWEWRC1+6iK wKMT4vObDw60MMDoOrQh729SmnwgttEZUUlE+jjiOOmA5IIBphmaL4wkgSXSqzq88BxP 4v4YU532fpyRQJSaeMXizbTlikaD5NYzhs9Q1mD4GfXuGlJgTFx0UT+W7cXjvdV57Bl/ N9aBKujqjR7yzFdZ0v3h6xSPVwHbgWROgJLYM34ZPHYRNs9Yad232cR1DcDgIKSEFpNp YmoA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@nxp.com header.s=selector2 header.b=Gef5CbAO; arc=pass (i=1 spf=pass spfdomain=nxp.com dkim=pass dkdomain=nxp.com dmarc=pass fromdomain=nxp.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nxp.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id jz19si3735231ejb.169.2021.03.10.02.11.39; Wed, 10 Mar 2021 02:12:01 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@nxp.com header.s=selector2 header.b=Gef5CbAO; arc=pass (i=1 spf=pass spfdomain=nxp.com dkim=pass dkdomain=nxp.com dmarc=pass fromdomain=nxp.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232642AbhCJKKo (ORCPT + 99 others); Wed, 10 Mar 2021 05:10:44 -0500 Received: from mail-eopbgr140058.outbound.protection.outlook.com ([40.107.14.58]:42116 "EHLO EUR01-VE1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S232579AbhCJKKO (ORCPT ); Wed, 10 Mar 2021 05:10:14 -0500 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=BE0bxrtHPesx95teEj4Khsu9mSj3XzG55VUY3hgrbKBXs0gvO21vzbyXVbMIwXiylNQDf9f3Tav7yna7voyJrXxgbdTxUD/rugjZAHdY3RTgtmo8bJ39h/MJSkBHvruzQfkatDxTQeh/Gen93bUqPeGlkBYCVIuyGYapuAE+iRvSTzsVEt7qffT2XZTLHTe2XTbXa9+tYo1xJXNdsZmrpAZ3rab504j2oHB0qetUzaV3iX5vbl2n0jGpYM/QfhaPASajCg2pBBvqPGlzvW3FyHwCw4KEHHjQP2PA4agcZiWqLg1qXJhSYhp/B0T5xCrPGXk2L6fn9a6cHm2BmXjdTw== 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=cPaF5b8X7N45kdAHMx4gPk/1keyfewyj7WPwY3+3sHM=; b=nYOGBD3GEfP6ELqHwI4pBLckbwJNco0uykEOTLYYt5FL9YtkIvuDpNlVkGBi6FvQ33hQo0q5KEbJxEg5O8rtRjCxky8ZNldyXJQTnKBCgIzV0kw1bkjy2s3iFEsq6VAcy/ZUQgSrSyXLYh3fLcbx3PJLVP65WqgqnRMXnnUx7dGlWuGeRIN+RJ8DyRaG90xaAvnDIz17KM5tWqB60dnLotQEU0ymvlf7rAjJ/aytwmLkQIUCnkOGuuoanoouwYgs0GY61SVrafk98Y529kvgWYYFMIprnwzEDcje1vVBJ7Tbx3YoBh4qQlVKOizlL1hxA50bAAZsNZMXPXXJ3nFiVA== 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=cPaF5b8X7N45kdAHMx4gPk/1keyfewyj7WPwY3+3sHM=; b=Gef5CbAOzIgLxFYY7zdAHmE3PLNZvjVq5nw5NFBVJj0njBkbSY20JMcBJ9ArdMtVwHLciIkLxA0scHSZlZMvO+cMXCkF6AmodYxSqu85AH1cvncihhBqsmTa04XlAvRQ54/oCQTIfVwIHV79yJBhRBiDyL907I5nTS925ouN29s= 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 VI1PR0402MB3952.eurprd04.prod.outlook.com (2603:10a6:803:1c::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3912.17; Wed, 10 Mar 2021 10:10:08 +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:10:08 +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 11/14] dt-bindings: display: bridge: Add i.MX8qm/qxp LVDS display bridge binding Date: Wed, 10 Mar 2021 17:55:35 +0800 Message-Id: <1615370138-5673-12-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> Content-Type: text/plain 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:10:02 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: 33cc9f4a-c804-4bbf-61f6-08d8e3acaf20 X-MS-TrafficTypeDiagnostic: VI1PR0402MB3952: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:7691; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: h6DGt9VNjaJxLQfVPqrNo40beSQyo4F504p8Gm1PsZeLut9xjoko/gly21NcOmZHYCiMu2ocBQTe+HsnhMuw5O3PO0BrsbXlP7/fJpGGIIn6+iktEMz+gPED38ptOOB3Iam+zEYJ4/ByDzvPNyjzh5CS+cGNdvyWJHNUbPfT7makny8Xhzfjcx2GffQ821xJNk6U1/KD+Xf/MbXOSckUBZnlhYUiGI8YHc306i+fDYk2tX1AlPCynN6Lu6Gg9O6eYcVZPou30IDnWoBhAifrlLJwI6T49uArdN3LbcmzrRfUj0wzTzvItaYG4yPXgxAkUDKzDnI8Wsp0UcDcX7OVz0XYajbES+ifZJkQavTQFP/s2G9njk8WWv6lcq+xL5NGv02xfWhabBtGo2+jju4C3J37BAyi1Uh+9BqIgXaz6AKTGofd1f/gUrgMH5N98pYPJ52l+ZkDURpivOGgnkZNHlVz2PnM3SN20EJBtRoSdtgBBK9AI6q7zxBr1qMYGIEqa/S3qyPs76DOdQoWjhuySGZ/DzIH7Dc3BL+b5REwyN2sGpXecGQ0IvEHQpOJwal/ksfbOecp1ydfhwaRLVUTYh+ADJwIqLAxbNzeGLdLpGBGWVxjoD+QirYGMUlVQabdgXxu7ZmnP4byA+9KSRQGuA== 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)(346002)(39860400002)(376002)(396003)(136003)(478600001)(6666004)(2906002)(66476007)(966005)(66946007)(66556008)(956004)(7416002)(16526019)(2616005)(83380400001)(316002)(8936002)(5660300002)(26005)(6486002)(52116002)(6512007)(36756003)(86362001)(186003)(69590400012)(6506007)(8676002)(4326008);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData: =?us-ascii?Q?olYcVkrJktIG9q9o99I0X27lYWhVlVjNMsnaFi/Xmpc5Ehse9SzN3gDXok8J?= =?us-ascii?Q?xED7AHUWJXA6kv67nHOVWLlow9wY085BkY2OYACrF2emiS09v/e/OVfixo/b?= =?us-ascii?Q?EYsIOisrhjWU3ov28Gjk74gvGSU3nytrfsq042vRhpaY1S9ChJM/+zjNlv8a?= =?us-ascii?Q?gCzM2HdZbt8asKl+/EpGaavQPz6w/fw0G84lUPg9E9yb/jWitJoVgTCk0O44?= =?us-ascii?Q?PzhGY0TEkxE2eCxRZEa2HE4eOBOyiq2CmhBJj/0II3p6FYEeTUSbTKwFVDko?= =?us-ascii?Q?87VDwgaIdh3k5In1/I8AL9q3ljZqtyddA5philBqs0Vz0hfuqr6fpSyhmI1q?= =?us-ascii?Q?qXgb5Yun6dS3Axrl+8VEeRKNhGLKEf9kvGbX9jh8Ai+QoTmOv4HcL4TnPJcQ?= =?us-ascii?Q?FR2eKCwfYbh6ik3Uxv88Qw3Jnbx09w4VJn9SNRV5rnGA+VXcI6goNO5F6m52?= =?us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o?= X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 33cc9f4a-c804-4bbf-61f6-08d8e3acaf20 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:10:08.6799 (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: POb8TErakqYjE1ZobnubdXsJJwmwjRqM0jtWG6j6W7Bb3v/ieUsUaLMR+rPpyC/xK0kshpKtJwv6UzqOy+tk2g== X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR0402MB3952 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This patch adds bindings for i.MX8qm/qxp LVDS display bridge(LDB). Reviewed-by: Rob Herring Signed-off-by: Liu Ying --- v4->v5: * No change. v3->v4: * Add Rob's R-b tag. v2->v3: * Drop 'fsl,syscon' property. (Rob) * Mention the CSR module controls LDB. v1->v2: * Use graph schema. (Laurent) * Side note i.MX8qxp LDB official name 'pixel mapper'. (Laurent) .../bindings/display/bridge/fsl,imx8qxp-ldb.yaml | 173 +++++++++++++++++++++ 1 file changed, 173 insertions(+) create mode 100644 Documentation/devicetree/bindings/display/bridge/fsl,imx8qxp-ldb.yaml diff --git a/Documentation/devicetree/bindings/display/bridge/fsl,imx8qxp-ldb.yaml b/Documentation/devicetree/bindings/display/bridge/fsl,imx8qxp-ldb.yaml new file mode 100644 index 00000000..9454300 --- /dev/null +++ b/Documentation/devicetree/bindings/display/bridge/fsl,imx8qxp-ldb.yaml @@ -0,0 +1,173 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/display/bridge/fsl,imx8qxp-ldb.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Freescale i.MX8qm/qxp LVDS Display Bridge + +maintainers: + - Liu Ying + +description: | + The Freescale i.MX8qm/qxp LVDS Display Bridge(LDB) has two channels. + + The i.MX8qm/qxp LDB is controlled by Control and Status Registers(CSR) module. + The CSR module, as a system controller, contains the LDB's configuration + registers. + + For i.MX8qxp LDB, each channel supports up to 24bpp parallel input color + format and can map the input to VESA or JEIDA standards. The two channels + cannot be used simultaneously, that is to say, the user should pick one of + them to use. Two LDB channels from two LDB instances can work together in + LDB split mode to support a dual link LVDS display. The channel indexes + have to be different. Channel0 outputs odd pixels and channel1 outputs + even pixels. + + For i.MX8qm LDB, each channel additionally supports up to 30bpp parallel + input color format. The two channels can be used simultaneously, either + in dual mode or split mode. In dual mode, the two channels output identical + data. In split mode, channel0 outputs odd pixels and channel1 outputs even + pixels. + + A side note is that i.MX8qm/qxp LDB is officially called pixel mapper in + the SoC reference manuals. The pixel mapper uses logic of LDBs embedded in + i.MX6qdl/sx SoCs, i.e., it is essentially based on them. To keep the naming + consistency, this binding calls it LDB. + +properties: + compatible: + enum: + - fsl,imx8qm-ldb + - fsl,imx8qxp-ldb + + "#address-cells": + const: 1 + + "#size-cells": + const: 0 + + clocks: + items: + - description: pixel clock + - description: bypass clock + + clock-names: + items: + - const: pixel + - const: bypass + + power-domains: + maxItems: 1 + + fsl,companion-ldb: + $ref: /schemas/types.yaml#/definitions/phandle + description: | + A phandle which points to companion LDB which is used in LDB split mode. + +patternProperties: + "^channel@[0-1]$": + type: object + description: Represents a channel of LDB. + + properties: + "#address-cells": + const: 1 + + "#size-cells": + const: 0 + + reg: + description: The channel index. + enum: [ 0, 1 ] + + phys: + description: A phandle to the phy module representing the LVDS PHY. + maxItems: 1 + + phy-names: + const: lvds_phy + + port@0: + $ref: /schemas/graph.yaml#/properties/port + description: Input port of the channel. + + port@1: + $ref: /schemas/graph.yaml#/properties/port + description: Output port of the channel. + + required: + - "#address-cells" + - "#size-cells" + - reg + - phys + - phy-names + + additionalProperties: false + +required: + - compatible + - "#address-cells" + - "#size-cells" + - clocks + - clock-names + - power-domains + - channel@0 + - channel@1 + +allOf: + - if: + properties: + compatible: + contains: + const: fsl,imx8qm-ldb + then: + properties: + fsl,companion-ldb: false + +additionalProperties: false + +examples: + - | + #include + ldb { + #address-cells = <1>; + #size-cells = <0>; + compatible = "fsl,imx8qxp-ldb"; + clocks = <&clk IMX_SC_R_LVDS_0 IMX_SC_PM_CLK_MISC2>, + <&clk IMX_SC_R_LVDS_0 IMX_SC_PM_CLK_BYPASS>; + clock-names = "pixel", "bypass"; + power-domains = <&pd IMX_SC_R_LVDS_0>; + + channel@0 { + #address-cells = <1>; + #size-cells = <0>; + reg = <0>; + phys = <&mipi_lvds_0_phy>; + phy-names = "lvds_phy"; + + port@0 { + reg = <0>; + + mipi_lvds_0_ldb_ch0_mipi_lvds_0_pxl2dpi: endpoint { + remote-endpoint = <&mipi_lvds_0_pxl2dpi_mipi_lvds_0_ldb_ch0>; + }; + }; + }; + + channel@1 { + #address-cells = <1>; + #size-cells = <0>; + reg = <1>; + phys = <&mipi_lvds_0_phy>; + phy-names = "lvds_phy"; + + port@0 { + reg = <0>; + + mipi_lvds_0_ldb_ch1_mipi_lvds_0_pxl2dpi: endpoint { + remote-endpoint = <&mipi_lvds_0_pxl2dpi_mipi_lvds_0_ldb_ch1>; + }; + }; + }; + }; -- 2.7.4