Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp30814pxf; Tue, 16 Mar 2021 21:11:00 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyia+Zap9mzvk2pZ+owOon3ty7lxUy/P3lterVgQYby0ZWEz1bwfHcm27Ev+nu1dKu5XJXp X-Received: by 2002:a05:6402:1157:: with SMTP id g23mr39677476edw.303.1615954260094; Tue, 16 Mar 2021 21:11:00 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1615954260; cv=pass; d=google.com; s=arc-20160816; b=TTawD+Sw1GqkiCd+2pesAHH8I3aIJ9psLM082g4flNY1WH0R9AMiy2x0Sa27CqV8jg R+IngiP39c79MRgAd+sBM7VXPD4m4llkWhfvHgBJkGMRozmpxwEr4MxfuGYSXZsN/rT3 e/cnEwcRKxqvj3MRa++dTdePCm8frEPGMs/6mo/18NyLAtiegAhSBhhNToHYcmsLdL10 tZaCom5Jbev535hskujbqBEsRcd3mioXPc+lvzNjVvFcidzWgw2v3GhpGtUu5oMiGO0z uJnQfPHG8frbKASFObQfbFZJ5UVzH4ngHiBwvAl/qj4AThHfGSb48IIBDT61xFARymY+ NDwA== 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=6kexj0hq6BIA1Zj3NRevbvorsRSzQ1UslaIr2gjzADo=; b=LB/3xMCYWu96nAhbB+L4ANMIkVIWvWfxiJhGtHUpxNFn/xsQusfwtDJ2bXMFWnBDJZ jR7P6eLYTlXAP5fpkwIlJ6tOTHDxYBvwi3j5BA7T57Cbwt23WRdF3eQ0LuNMZWBgx5QG zFQ2UUtf1xBlI3IkQC5SodO4vtX5puOfKQ1UdHnAYmvZtirp2Qvwc+F+HlYHTjfELDk4 x9hZn/F+nFd9Obt8exCdGidzuIXEWUG8LXNTYZt47clI6A9rMtYtbtU8nXufgGj9wLxw OuDU1DJfDR/bQgqQhZkkLBoGIGI5MiLCpiZo6KM9gweAGAN/vQbwulq6/3k58RihOyG3 rOhQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@nxp.com header.s=selector2 header.b=ovhYUVg3; 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 m17si10568760edd.122.2021.03.16.21.10.37; Tue, 16 Mar 2021 21:11:00 -0700 (PDT) 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=ovhYUVg3; 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 S230434AbhCQD5x (ORCPT + 99 others); Tue, 16 Mar 2021 23:57:53 -0400 Received: from mail-eopbgr80041.outbound.protection.outlook.com ([40.107.8.41]:5698 "EHLO EUR04-VI1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S230353AbhCQD52 (ORCPT ); Tue, 16 Mar 2021 23:57:28 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=lk2MjsRlfiC3EiR9bW6HvYNHuaHB+yT/321Id/Z9/49jGMD7dqh/ifNqSSypDQy4EQqU7uDL0rCF168phPfsxgh8HK7ZsTKZkPjeQMLGlG0Zfi743e5Zo0mgsDNtAlr1YlL9+WjMLK+BQ5WtCteqm6CXMNHyn6qBjRnkGe6kH2hbc8mMMeKGB5dX9bHME4UXDmWqvYE377tSKUifyIaxqDqWe92rQ2V7LD/AwSdV7+6oKiFykadrEsRJCUSdL1xUhs1eALyY98DbJT7r6zVAlzSo5eA1jHVKLzGEvLxYzawH4plmuj4+8JHlT/lcYVuFgduTdYsqoxNatLEpZK2KaQ== 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=6kexj0hq6BIA1Zj3NRevbvorsRSzQ1UslaIr2gjzADo=; b=lo4JZu0lbk39WyCItNtPMCA29+9QIRRftzd1ZNnb5pLBp50n2JwKbogxgyksjH4A0u1kTlroWp/ZW09sZHFf60WqTe9NlCeK5x0dalhPSp2XA91eti4bEcUjHjIeHBfCOvEhk7Zm2033oLKXL3Xyrk/DIiJfTvBMVF6yhYQUZQmcfBqYiw5C7BNSokrDngJex5TmfiKBFQTAGRGBlAcEn5Kte9eubBnPrl6PGAPYul0OLnXxuyNjnNWXAZ4v8QIrXNlzUrdhrH4M322NGdVteF3YNg9CGq5WTEYQoebQ1fYFpS7+pybSCk1k38YHoRB1QryN/FH3HGFZzhSJE/SfOQ== 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=6kexj0hq6BIA1Zj3NRevbvorsRSzQ1UslaIr2gjzADo=; b=ovhYUVg3CtzrEDLYPlwN+3r/xCT9Uh7IojnPm3Hz8MtIixOZ5q7vi2Wr1KRdUdz/OULfbLE/CtS1Tfmr1OoGExXUq4VBHX7IZgXw4rBv+gHOV8PYciA3GCxyulVZPFH6iSa7Z5Yrs/2edWgzRnKiwkmWw55toYBl7vU0OyaJqg8= 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:26 +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:26 +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 11/14] dt-bindings: display: bridge: Add i.MX8qm/qxp LVDS display bridge binding Date: Wed, 17 Mar 2021 11:42:46 +0800 Message-Id: <1615952569-4711-12-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> Content-Type: text/plain 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:20 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: 56bab68b-cc85-4e45-b6a2-08d8e8f8c712 X-MS-TrafficTypeDiagnostic: VI1PR04MB6141: 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: lyaq1LqBJqkKyn1pMSKn5OVVN4cqZrj8qI+vkpDe4zltc/CH4HfcTGzHHAJp7qlIafzCn3+W7s8CMfbe9WoKnauNhfNMyiahpTgEOujLs+I4+cHqRRzhxY6QR1ciZ1/FRX4wV2i+XhE8DUxNwbOsGEwCjZqxwATfAqz6Iw826gkWGGEZlRcZgWMbIDRPpRH8yitn+eCPtdJOfyDgKc23NfdTTr0mjSlZ31jXogitCL2KE0oRlb2HfDer+neD/Kl11Rew1R7gRoYUub4U70Et1d48yjxFJ8mhZRWe7l7dacQ2tpFAzNkl2XtCyanNzyhdUmzBVutaVhK8wHyrsvCXIntdu9G1qC6n4xUZMDj7dk2NEjXNEIwaa8Uuig3MSPT35bdDR/UJl7QQMemOT5T/Pq65tpfe03M1GSqFz+3xsTdHSNjG3xryVGkhTJFPwVXA/mOxBjkl3lvf9UATiOsO+X0RyWVVgDLNUEz0UL+hvq3Bln25+IBXYfCLw9JMmRFOOWzsAhUyik7WRHnP/SPr1vjVbusJi1LMcjBiN5TCraS+i2ePlfHMjQOD7Yg5jHdTqIFU5IfU5k02DyA7y2GhFPyFkwaiRYmLDLbMLdoxHqD2F3Cum/INH3J7OblK9+jPvI15y2z15BzqgH5yqPzkxWQx/CuHnPYWX31jQt0z7Xw9oNx/+KtuFIx0F/Rq8p// 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)(69590400012)(83380400001)(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: =?us-ascii?Q?Eb8OVGUNyxsFk0gkfBJIy2mjZWdLBugtYTrw9+eis8p5D20BPBhiOpsh5g1+?= =?us-ascii?Q?+ryx6qZytWs/d6vkTQX1sYslRrKPYhHpes0QqQoB3vt16FtIGwuq8z49nvro?= =?us-ascii?Q?R68di0VCc6U9IQvXu38iDzDtQUsDgxX/uAyvwO/jXG2H3snO90p3xgiBfJs3?= =?us-ascii?Q?8cd0wlVdSY8sldZRiDIS+fFc02QBOyy9fj0BOs4n93mOszLVBOJzBVhxBd6C?= =?us-ascii?Q?FZhiKGDy8Ii37zVO4Gikp9lmwillYb9uFomxQpa5dphRQdGEl0/2++xk4cSk?= =?us-ascii?Q?kbamUE4s5ISqFxTGV0PvLtEWkgLWEeVzDtIRCMfRQbXi46Ix1NbOoMZS02Ue?= =?us-ascii?Q?JywfNCtgAarhVsEQgwjXkPEEu9W8udc/9N0UeUf70GOMw/uYU7FS7Hw5gDTX?= =?us-ascii?Q?RMu1MstLtXEcDaeg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C?= =?us-ascii?Q?itVkUNQFphziGWrdruDSAkcZ?= X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 56bab68b-cc85-4e45-b6a2-08d8e8f8c712 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:26.4249 (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: ZtsobAQLvEJk/fD7CmjlaprQNYV6AKVgT8FsPzbKimDXsthif83SJczJcQVX7FnzHfw3AFzlMJO5ztEjrlufZw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR04MB6141 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 --- v5->v6: * No change. 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