From patchwork Wed Mar 31 06:33:18 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Liu Ying X-Patchwork-Id: 413205 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=-18.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, 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 BDE15C433EA for ; Wed, 31 Mar 2021 06:50:05 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id A7D3E619D8 for ; Wed, 31 Mar 2021 06:50:05 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233928AbhCaGth (ORCPT ); Wed, 31 Mar 2021 02:49:37 -0400 Received: from mail-vi1eur05on2058.outbound.protection.outlook.com ([40.107.21.58]:10337 "EHLO EUR05-VI1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S233762AbhCaGtT (ORCPT ); Wed, 31 Mar 2021 02:49:19 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=mm3HguuodfPb4x4w2oCFYS8U6wpiMx1Ipv02Mewn14xtq9cXeVv96MER4zX0e/qpTJMSYMCjE0Pa+b5/IcNyC1uTKTLwmzWhA+GUBdYvgxZNXuwnkvQ3QpPLDYy4XtCpAey1s0bjQuACAi3qULzsIziwEVF96dhRCFVH+iFVA0ZREnnoFTu7MP/xVUcW4dG2sPJDP7PT2W5FZnTh+LuMTrUz/fUxgxhOkVXNF489KpaC8tvpjxsV1XmhNDlp63MI6xsmMLH6ZOjr1LmOBuf8C1b/DIdgcpmy5pwy+E0oq0mtUUwN1Dg+7NC0jOF/XIz2XNHXZXI4B8ag1YUXn2Zvcg== 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=1eWm4JZlqv4rFyeApcpbnQveIqn7YBMJJvZQNJnEf38=; b=jQ44dkxZZ733MFqTglMIzXfSeD5Dxe4FmAlYP7WqTf76pXPx4CWsEioHISKT0p0cvyrzx4psAFqE87RO2qlmnlKDUM0Hcq7vCGVBFkzK8q3owHsKZ0Ud+VKv25nPT0YS+csDrp7MK/z73mtTG36P1fAUuVe7D6WUHPhKRp4xqj3A5pcgSfoVJZBXjoCl/RpOebbemTRCl0qSKKqxU3KRuzXIXr/k86DpSOoMfFcpJPF2ZNN9cV+L1v8Yh9+E7x3zxruUNc8VfSz49W84GrVtGrjAzGyf4SKLiTyuV32Z0k3IqzcWQfBSN3d+i/2wi5ovdiOgscVcLvGWhboGa1046w== 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=1eWm4JZlqv4rFyeApcpbnQveIqn7YBMJJvZQNJnEf38=; b=gR/McfiX9QzZRE6AXahPgKn7dRQQ0R15RrlnYi/v22rVlrngCxHmLZjJD8tKjupw3f4Qs5z5tZGPSrR+bZ4l9IIlMHdWbTtFMLlLwomVBZ3FxbkIxkX1+/cTRN668rgFozvhXSlekQGrEkELieu6/GWhorN4L9O27DfPFtXz1S4= 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 VE1PR04MB6349.eurprd04.prod.outlook.com (2603:10a6:803:126::26) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3977.30; Wed, 31 Mar 2021 06:49:15 +0000 Received: from VI1PR04MB3983.eurprd04.prod.outlook.com ([fe80::3ce1:4759:5c33:514c]) by VI1PR04MB3983.eurprd04.prod.outlook.com ([fe80::3ce1:4759:5c33:514c%5]) with mapi id 15.20.3977.033; Wed, 31 Mar 2021 06:49:15 +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, marcel.ziswiler@toradex.com Subject: [PATCH v7 07/14] dt-bindings: mfd: Add i.MX8qm/qxp Control and Status Registers module binding Date: Wed, 31 Mar 2021 14:33:18 +0800 Message-Id: <1617172405-12962-8-git-send-email-victor.liu@nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1617172405-12962-1-git-send-email-victor.liu@nxp.com> References: <1617172405-12962-1-git-send-email-victor.liu@nxp.com> X-Originating-IP: [119.31.174.66] X-ClientProxiedBy: MA1PR01CA0105.INDPRD01.PROD.OUTLOOK.COM (2603:1096:a00:1::21) 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 MA1PR01CA0105.INDPRD01.PROD.OUTLOOK.COM (2603:1096:a00:1::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256) id 15.20.3977.26 via Frontend Transport; Wed, 31 Mar 2021 06:49:08 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: a9030067-a03c-46f7-4796-08d8f4111967 X-MS-TrafficTypeDiagnostic: VE1PR04MB6349: X-LD-Processed: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635,ExtAddr X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:2150; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: et23n0cKrgjNG23PMqfC6WTW863TFsmRyzh9WSiBfNkiDWjtlC0KtGle6ADr5d3IYq6YgmHMgEw9UD5Gq0lz+i/f/PKb2R+T8ADnPk2ZYlP149bxAp2IBdnqXfR3bsvMDCeTj8AitErrhN3x7AQzk7gS0u+wrPCZPjGcaU8kJ2af2Cws8PaQkvbjhNL7F3nddaZkPj3qlxHOfyeJSpnfqrpM4RWIMZnXPN6kBFxFsN5obTgrKKUyQiHQQiKg6gEuR2Ztiu7mtyCGJu1ZvtSTKBfYCZPnAb30a/SNorBQ/R8+WQV8eZVoqKjg6l1kiqQKt0ynQzXqr0PTkKyP4yeHiZf1UqGTPYSuRBt6r81NuHDvTAf7zJ0qlp69hXHWLdWfmPw1kPbTGG8OSDQdXn3V28KqzmBh4tJsLjCjuYo/ZvZduHIErKcWothuF/4GNi1vgcIOcJDyfHNK1L+sZt3oyCGfNcrR/ms4UtjuQQxsmZEMAsCVpaLQcOFcdIZYy1TzdZBbGDZpe0wW9qoBscqYysZlIpY0wyAkPJoRNVkathRv100ioOmqlgxAAcxIJM4mqYFRzIp/C8FjfBnAuHwryCoCeHYdaXtMuglI0zjlpWXllHrdjkwOu5CYqIjDNSnO7cIny0z9fXwc5aUuUJCN9KHeggFX5vKLQyrl25b9RqfaPWdjac6Wtya/mFOcuUQdNlEnUbYEaJ1IgS9t40cJ0JENvuQKhngDRKKvH21+NxQ9PISFqUPURegTjbg+74CO 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)(16526019)(7416002)(52116002)(966005)(86362001)(6512007)(8676002)(6506007)(69590400012)(186003)(66556008)(5660300002)(26005)(498600001)(66476007)(38100700001)(4326008)(2616005)(956004)(83380400001)(36756003)(2906002)(6666004)(8936002)(6486002)(66946007); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData: ZAAZyaZ+sNUPB8BhUzqNWMZjXXUld283hBTG//CadEFiM+qDMoXqaRKDyS+kP3tnSkgc0RDtpi7jOcbsbA+G8CUf1/OZ657wT2zivckynG+rvm32DiLG4ROs377PkSEPuHrDqiYOeHywxntnPnkgLMVJquAPCx3l8zELR+F6erDpRFNMyX7DvmDV6Qghl8os3W5Wr5fqN4wzLnKJglxJnu/0jrMqlqkhAfRR6y+/FZaBePiij9KG/UhAnYhyn2+6K9qUR4sNd9bU8WSWFKPyiurvqVYfOQTaz1RZWhF+5q5mQEfKuzUGc5DEleeF2+hOTTfkb3cgpHYUUFmCMuDpUtWMaCw6f8QhtG6xGxGqdmwDCdc2rJBCd3pPcUAqhb+yPXcoa0uCkAS0wAxskZylgKmE7m8/zIpOTFvYOTdpcdvmcQDveqysg6UTzL53/RDzEgW1oKOIhbMo+s3cmDU3OpRuLkgijF8ARJy9hWcUcUQ2rO9LwgeQI4lrmvrwW7wDQkos6XmGyO/rvsClpOQ8zn6zJd6D36g0IlzIodU5i3+PkOggbT8/v6dgZwhQ5OQDKkqPx2+omy/Is8e7Aj8gRHKnWY4NLblWmCwPm2qxF1WLOdME8c9tWiB2AJXWgKR/bpbZ7plu1IaKdx3tpMXPjuAyYZnxYqnFFHPeOZG0Z2OTUQa7xHnBIFwP65E50iXaBte7XxqdHrDZuDPCxNoFE+TOElp/Kk76wVQb+RP2R/OM8h4r9274zapLNP3Njcen2iwdodmFCSEv4ny3q1bn74b6nDP/DBaFWtf/sCRUxyckDHOYEfMAmdL7vTAjOmltZG4W2+9YrScQKICvxyvz/9+k74Aqdeca8djiEgzrDIGyAaxGMkRTY3MQi/xvUA03oY7MdT+q4jUS6lQunogPdHLirWwLKEZ4icr51AeLbOAegqa8mZYxM5NWMiofAFgorvW0MP8IIhkaSOywPyrkrAF2dfzJuPacsbvvWDIsCVzHwUGqX3LL8y+E/QFwTCAdFpFKWPQ9fChSZ18u61olC7d2w9M7eN0jX5WAKBYHMMTIdYIIFUcILalWaDlM6gDm61pUdHzON+cZXjrzvLb1vNOlKFpVYYgFhKJhHeyprLMoN38seweVw/CdffFnxBxlf6Ydi/31K58OREjieAfhelDSXRj6eK2YghrJkVFS5uGB6sIE4Qs5i1WBGm5RZtOJ8MEpBjAQN1cxileGnz8Nq/GIfmcRu+8Yp4CoP4r9hamaxKxmx4gt6VtlYmhy8AhmZxFCqmW0MtSTHyslrz+UK0ck7akUH5go28QLZ0Ngsfr3gOIyOZmdMSlmuks2ppXC X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: a9030067-a03c-46f7-4796-08d8f4111967 X-MS-Exchange-CrossTenant-AuthSource: VI1PR04MB3983.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 31 Mar 2021 06:49:15.3284 (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: /ein9F7T8wcGugqmkBRZSFB+tJvJfz4s6NBxiU6snc1CVix2wQy9RGZrJrmQ3ftlVqhrzotg4H5tbh3RjGcuNg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: VE1PR04MB6349 Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org This patch adds bindings for i.MX8qm/qxp Control and Status Registers module. Reviewed-by: Rob Herring Signed-off-by: Liu Ying --- v6->v7: * Add Rob's R-b tag. v5->v6: * Drop 'select' schema. (Rob) v4->v5: * Newly introduced in v5. (Rob) .../devicetree/bindings/mfd/fsl,imx8qxp-csr.yaml | 192 +++++++++++++++++++++ 1 file changed, 192 insertions(+) create mode 100644 Documentation/devicetree/bindings/mfd/fsl,imx8qxp-csr.yaml diff --git a/Documentation/devicetree/bindings/mfd/fsl,imx8qxp-csr.yaml b/Documentation/devicetree/bindings/mfd/fsl,imx8qxp-csr.yaml new file mode 100644 index 00000000..f095771 --- /dev/null +++ b/Documentation/devicetree/bindings/mfd/fsl,imx8qxp-csr.yaml @@ -0,0 +1,192 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/mfd/fsl,imx8qxp-csr.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Freescale i.MX8qm/qxp Control and Status Registers Module Bindings + +maintainers: + - Liu Ying + +description: | + As a system controller, the Freescale i.MX8qm/qxp Control and Status + Registers(CSR) module represents a set of miscellaneous registers of a + specific subsystem. It may provide control and/or status report interfaces + to a mix of standalone hardware devices within that subsystem. One typical + use-case is for some other nodes to acquire a reference to the syscon node + by phandle, and the other typical use-case is that the operating system + should consider all subnodes of the CSR module as separate child devices. + +properties: + $nodename: + pattern: "^syscon@[0-9a-f]+$" + + compatible: + items: + - enum: + - fsl,imx8qxp-mipi-lvds-csr + - fsl,imx8qm-lvds-csr + - const: syscon + - const: simple-mfd + + reg: + maxItems: 1 + + clocks: + maxItems: 1 + + clock-names: + const: ipg + +patternProperties: + "^(ldb|phy|pxl2dpi)$": + type: object + description: The possible child devices of the CSR module. + +required: + - compatible + - reg + - clocks + - clock-names + +allOf: + - if: + properties: + compatible: + contains: + const: fsl,imx8qxp-mipi-lvds-csr + then: + required: + - pxl2dpi + - ldb + + - if: + properties: + compatible: + contains: + const: fsl,imx8qm-lvds-csr + then: + required: + - phy + - ldb + +additionalProperties: false + +examples: + - | + #include + #include + mipi_lvds_0_csr: syscon@56221000 { + compatible = "fsl,imx8qxp-mipi-lvds-csr", "syscon", "simple-mfd"; + reg = <0x56221000 0x1000>; + clocks = <&mipi_lvds_0_di_mipi_lvds_regs_lpcg IMX_LPCG_CLK_4>; + clock-names = "ipg"; + + mipi_lvds_0_pxl2dpi: 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_dc0_pixel_link0: endpoint@0 { + reg = <0>; + remote-endpoint = <&dc0_pixel_link0_mipi_lvds_0_pxl2dpi>; + }; + + mipi_lvds_0_pxl2dpi_dc0_pixel_link1: endpoint@1 { + reg = <1>; + remote-endpoint = <&dc0_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>; + }; + }; + }; + }; + + mipi_lvds_0_ldb: 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>; + }; + }; + + port@1 { + reg = <1>; + + /* ... */ + }; + }; + + 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>; + }; + }; + + port@1 { + reg = <1>; + + /* ... */ + }; + }; + }; + }; + + mipi_lvds_0_phy: phy@56228300 { + compatible = "fsl,imx8qxp-mipi-dphy"; + reg = <0x56228300 0x100>; + clocks = <&clk IMX_SC_R_LVDS_0 IMX_SC_PM_CLK_PHY>; + clock-names = "phy_ref"; + #phy-cells = <0>; + fsl,syscon = <&mipi_lvds_0_csr>; + power-domains = <&pd IMX_SC_R_MIPI_0>; + };