Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp6967675pxb; Wed, 17 Feb 2021 20:02:12 -0800 (PST) X-Google-Smtp-Source: ABdhPJxoin/RAEjPtRtxmO0+z1hjEORykGHYop44//S40RbrkpoDa1fQPR4uBUQVMDa3BWVlj5wg X-Received: by 2002:a17:906:7f95:: with SMTP id f21mr520221ejr.312.1613620932688; Wed, 17 Feb 2021 20:02:12 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1613620932; cv=pass; d=google.com; s=arc-20160816; b=pf8oxQFso+3hsVo9AwgVWf3iGGOq0SK3gF61cuIfT73GfYFnTKJthqvYg+qWGXlrtc XgImMyvx8vWCiP2pJjQTLdf8xCamu2q1VcRJDUqZGuB1kTB8Xz5Rb7/hFNjfyuFj3Fxi VD+Y16st91dHo+0S2H6N9/JJINMFFPaO/J740YEugGvdD+TrBe0/ggoc9YZhH/pHpdli q43RFUqacJksFJ8Wjd7EgUtq5t8gdvphU9p9hBJu1M8+rlvvNjExf3zOVdYAK4asCTWd hXeUSXHZAiTOfdfkyO/uSWZCaTkvvx6R0ca/i+ZdfRCtjnMS3U7EkB6WFJTJJUBx/18o Rv5A== 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=yykqupfIYQO4QHRQPuj28KPN2dZ4+fmhK+GmY2BRm84=; b=Zn4zGS68shvBGBUjN2hrEwSBXg8qDVESHVq+9t+ioi/YjO50PmsT3ulVwV90kKWYOW GqnGQMpu3X5CO6mM+VlldQGDbavwy8h4THZqlT2SbSta8o8NNkMSgOqACxCBmOp5KCEB LaYedBcv4aaYP5W+PvsWl8TqmGPbWizNqJ/WrEOgxa2jGGD4dZaLqUrXt+hdrMZOp2g9 fog8hrwre1/1szLDfKyqYcj+vGEUPutTBRUkiIwM0YQ8ppzqZ7WbSPAe5zFHrDcHfKFU oOCNjT4UIPEAjetrF1PaakcBa/10ziaWwQUwE6zgiTSNZmY/6iSoinffmwYqC/BsWc1L 9gtQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@nxp.com header.s=selector2 header.b="GCf/I5zv"; 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 s16si2811633ejf.641.2021.02.17.20.01.49; Wed, 17 Feb 2021 20:02:12 -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="GCf/I5zv"; 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 S230175AbhBRD75 (ORCPT + 99 others); Wed, 17 Feb 2021 22:59:57 -0500 Received: from mail-vi1eur05on2041.outbound.protection.outlook.com ([40.107.21.41]:33537 "EHLO EUR05-VI1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S230399AbhBRD6R (ORCPT ); Wed, 17 Feb 2021 22:58:17 -0500 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=lYcHytHUcswbJfcdiYtyWdXM6oEuqg0IMszNYIJyn90KAzXd7PRAJ5qZs86KuRJt27JRkIZzQ/HdnDOxDy9RIkZyWFiD6VvWTM8Ba+uQ59+aF4Tu9dORKeny/6UGYaB/Aa4ynN3DVUBwUBhrzWqlWDtRXSztPaOWmpTlGDquAHAZ7Qx6i+3iSkqy7zEtG2meNphG525h2FRrD94vt/mdCq8UdSZRylM2nuduZp4WOmvKgELknKrDV2gpBd/BskAiqEGBiwq/cgvLTqj8SGsUa0bkvW9ZMzy9r/fVcjIqCv99rBuXC34MVqPRHpn5TIFYWsZlm5blqjz462jUA8vwLA== 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=yykqupfIYQO4QHRQPuj28KPN2dZ4+fmhK+GmY2BRm84=; b=BhSuPrkIz6O7h0s8H0UG5NucXIHESrAEBfTOwbVX3BvKGczMJSloIg+IOBsPU5q/ZPRnCZKWGBgccXIiEqapmfY5YuUNVtHGHHAU+p0+j4ykkADQJhhW9g8pk/XfxYwGhFvZO77mjzD436mW+V0hwmqN0cJcL+Fg7aniDWKmOShsK7HbMINUtf4jewe+ZAdGnB+wm0nrAw/OCYj2dZeVk5cb6mgkxHXSiF+Id0OficwMIjZ5Gu+0Fh//SUvYvKmUfAfvbjm5L9TG2lDYyea0lgYAxLIfTIpzfgczheaNkuJZuLIrV1B8uNih7RODJwYINmWxdhYu1usARoo6FrmnHQ== 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=yykqupfIYQO4QHRQPuj28KPN2dZ4+fmhK+GmY2BRm84=; b=GCf/I5zvVxI3oq7Mt0/hOkwidup0MHe5vlLY4RCiujjAbbyIdfLs1GUCxI9IOCTDaBnSp5xk6gE0mhBzif4bsBmGTdu6tWAgEaM04CRRdPTD3v81kOaN6A9R72to+4o/nzc5mTSY5gmDCan343D07gEGdU02A5R4yBs5tyaTano= 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 VI1PR0402MB3421.eurprd04.prod.outlook.com (2603:10a6:803:5::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3846.27; Thu, 18 Feb 2021 03:55:13 +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.3868.027; Thu, 18 Feb 2021 03:55:13 +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 Subject: [PATCH v4 11/14] dt-bindings: display: bridge: Add i.MX8qm/qxp LVDS display bridge binding Date: Thu, 18 Feb 2021 11:41:52 +0800 Message-Id: <1613619715-28785-12-git-send-email-victor.liu@nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1613619715-28785-1-git-send-email-victor.liu@nxp.com> References: <1613619715-28785-1-git-send-email-victor.liu@nxp.com> Content-Type: text/plain X-Originating-IP: [119.31.174.66] X-ClientProxiedBy: SG2PR06CA0144.apcprd06.prod.outlook.com (2603:1096:1:1f::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 SG2PR06CA0144.apcprd06.prod.outlook.com (2603:1096:1:1f::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256) id 15.20.3868.27 via Frontend Transport; Thu, 18 Feb 2021 03:55:07 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: e7c485de-56f8-4b99-4580-08d8d3c0fea4 X-MS-TrafficTypeDiagnostic: VI1PR0402MB3421: 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: YR8xG8f8s2EiW1miujcP+RJxkyZ7HZt9Jcj4VZEPZV24ViHBapOMx4Uxq7kZClGl6WEMrjGycYNqgAJkkaaQFAhF2q1JkxTMDqFAMUU/OOio6NwkNUH/cOW8pV0khWfFBZBx34nj89VztTkjt6NuQNQUYOiRgNldsf3enpND5vQhyFsI0vNQRQvUfjSPz/SHbRzAOwEngm7UKA8ld834AZ6SuIX2Gpzad5oyKrXBOBNuscWpkg/EEUpCQGWddkZjE85lTXhkggj/vBTuJ7ea4CoW2u6fsB1qcBsoLD6YcMPcHjRgeGXQwRzq+f15ovVfuiQW+B9MMJjlJAiRwL8b45RN7IoEos6NhdIEaSVadOVIbxfY9ewyGnq0DuTCvZIdlLMd7J+yZ9vYLFgipheSUqty+HVpDmpzO0WpgQocB9i72LhFp/q0LQ8ZD5iu0/r4CzNEyFfqSVxOe3NvtvSwmTCzZg9wEHnfbLMpHQ0581qbREHucAqvo6WvuM2sIliC4oM2l+SvGZDY8byhjdExPpxnyMQRtALcNqCIa+tc9m/xUm5PkPmsjq26UNNMBD2oYAzLB3VJeqgJfYJJde8eUXH5lmF64GtDlUp27/PfV8/bGXU1tx02zLBazUApr50sZg4SWIHk4WqUWYWfODwkOg== 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)(396003)(39860400002)(136003)(376002)(366004)(346002)(83380400001)(52116002)(478600001)(86362001)(5660300002)(6666004)(69590400012)(6486002)(8936002)(956004)(186003)(26005)(7416002)(6512007)(2906002)(66946007)(2616005)(8676002)(316002)(66476007)(16526019)(36756003)(66556008)(966005)(4326008)(6506007);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData: =?us-ascii?Q?0apNDE0wEcnipESd+sOYXmS6Mvmub4G/p6nwroh8v7ffmqJrdxUziJF7m4bt?= =?us-ascii?Q?/3ZOUrZ1apGYk94AgOhY6ONSAHIAqvtMDs08UyOI6TjUoUAKp7KdAUZlCA4p?= =?us-ascii?Q?/ot8ABL46X7ImbMngae0xZw5K/6StiFDdn4sovoRjGoTwOwGPZ1c9q8432oM?= =?us-ascii?Q?jl2SWAGyxKTn1OIf/w/UpjDU/QNWfh1oWQtCz2FA4zML0dMK4eRSlxMdffhy?= =?us-ascii?Q?T1KjgeK0qdDpDxmPXXIEhfxveHMC3SvWk57qyudv+bJe3ZKS8Mydmbf2dZ5U?= =?us-ascii?Q?jErtj6HmBwZnaNPoOjKiugpgf2xO8FNP5QbiUuk7Cj+CP7lrMYFKzLF6XHu0?= =?us-ascii?Q?SuFsr69DSs0QhJ+XED+gGC0YSPYHw2t3g5RA8I89eV2D3QRhI3KZWvhAs9Qp?= =?us-ascii?Q?hmEdvyAQa5DF6MbTUr/fjKD0TcSWMM7fREKPm+0YtLPUvLecGyxTzD5BE+Iu?= =?us-ascii?Q?ij0u03VFh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Exchange-CrossTenant-Network-Message-Id: e7c485de-56f8-4b99-4580-08d8d3c0fea4 X-MS-Exchange-CrossTenant-AuthSource: VI1PR04MB3983.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 18 Feb 2021 03:55:13.5223 (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: /wBh94GSb+RUTjElsn2lK6W2euUe8rVPyl2nsKKhfVA+KuE6LxwLseNerksb8fW3tlDWs0+IUnmfmtSsSyOSjA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR0402MB3421 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 --- 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