From patchwork Thu Jul 15 08:25:31 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Aisheng Dong X-Patchwork-Id: 477618 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=ham 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 6AD26C07E96 for ; Thu, 15 Jul 2021 08:26:39 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 562FD61380 for ; Thu, 15 Jul 2021 08:26:39 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239233AbhGOI3b (ORCPT ); Thu, 15 Jul 2021 04:29:31 -0400 Received: from mail-eopbgr10045.outbound.protection.outlook.com ([40.107.1.45]:50144 "EHLO EUR02-HE1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S230310AbhGOI3b (ORCPT ); Thu, 15 Jul 2021 04:29:31 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=YPHzaKtiApogPvMq5DJP+A8TymVoyO4AFeQ7MfEsrMCKqSHmNpa9DjH47qGTMa2o+HeODHLK4g7gkWphlc3QGla6lcEzNQEingYM6Zvqn4dhUbdPLj1deU5HSQuFiiGeaPc8o/aEAnfaUyZFhJjV3sQkKqW+0GTIMrzeTBizr2yIYt/Bz6J6ldNwt6B0G1LIp3IBYVEeubrdgvX2uG89l0SmbYPaoQJl4Ejx2T1hLCZqmx7TyRyamEpKXpv/ztfuzHHR7ccV+HjtkRDXXkSlRHkheu0B+SnJregOy9RMlCGFMU9/LuxWlmNrctFtVvdVNlfx0izrfKu55NN8sUIIXA== 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=G3lpX/RWIy5F5UJ6qX8uNxAj4FWBw9yGLlvE13rIhew=; b=XkRhH57gAEgc7uMB3wJFBwm2XXG4f4O7bk/uoqSgbDWn9bn9MAb2rdbTxKae6qclNti1tXtZwycHQQAdyiIMhdHYP8nEFDkbgtvsFuyhV+vaKXoO3ZHl0ZxOT1fdCIf44+bu+KDMSiCzO2vpxwvboeu/WOSS009jH3VXC8rEgRKPLKQDVZllXn+Qj6uNSDmwejV0aAT8K9ExS5sfQMBU6YALCY6dJIhWRJNoBcTJ+1v35Ho8qvWSbVbD7nCHTAOLIfyWFOGvtHOPTViXC0lzG6xLbl4aG9I4W6WiCMaiOubbYBfmx3rUh3V915qjPkanoTLYPEYDyDNSyDIC2fNfHA== 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=G3lpX/RWIy5F5UJ6qX8uNxAj4FWBw9yGLlvE13rIhew=; b=TLD7HafHi2A/pbJsmDqFopU60yI3qZbnSgVtu2eWbY8V3dAjjrDB1DRK09kandiCySps5REJt0lfA99IdTllACL53IaXa5IId3QbBZ2jKJMhd3NL4iodbvX5zhpHxGrEHloxSh1ItQMFv+BU4F1PTydQTxlLYmFxk78uIER0onk= Authentication-Results: vger.kernel.org; dkim=none (message not signed) header.d=none; vger.kernel.org; dmarc=none action=none header.from=nxp.com; Received: from DB9PR04MB8477.eurprd04.prod.outlook.com (2603:10a6:10:2c3::11) by DU2PR04MB8680.eurprd04.prod.outlook.com (2603:10a6:10:2df::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4308.23; Thu, 15 Jul 2021 08:26:36 +0000 Received: from DB9PR04MB8477.eurprd04.prod.outlook.com ([fe80::9daa:ab21:f749:36d2]) by DB9PR04MB8477.eurprd04.prod.outlook.com ([fe80::9daa:ab21:f749:36d2%9]) with mapi id 15.20.4308.027; Thu, 15 Jul 2021 08:26:36 +0000 From: Dong Aisheng To: devicetree@vger.kernel.org Cc: linux-arm-kernel@lists.infradead.org, linux-imx@nxp.com, kernel@pengutronix.de, aisheng.dong@nxp.com, dongas86@gmail.com, robh+dt@kernel.org, shawnguo@kernel.org, Ashish Kumar , Yogesh Gaur , Mark Brown , linux-spi@vger.kernel.org Subject: [PATCH 2/7] dt-bindings: spi: flexspi: convert to json schema Date: Thu, 15 Jul 2021 16:25:31 +0800 Message-Id: <20210715082536.1882077-3-aisheng.dong@nxp.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210715082536.1882077-1-aisheng.dong@nxp.com> References: <20210715082536.1882077-1-aisheng.dong@nxp.com> X-ClientProxiedBy: SG2PR02CA0083.apcprd02.prod.outlook.com (2603:1096:4:90::23) To DB9PR04MB8477.eurprd04.prod.outlook.com (2603:10a6:10:2c3::11) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from localhost.localdomain (119.31.174.66) by SG2PR02CA0083.apcprd02.prod.outlook.com (2603:1096:4:90::23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4331.22 via Frontend Transport; Thu, 15 Jul 2021 08:26:32 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 85b05327-02b8-4192-d5a4-08d9476a4289 X-MS-TrafficTypeDiagnostic: DU2PR04MB8680: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:5516; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: zO7wTOaWqW9BzmBFeGq0pTysN5ha5bqgzgY16ON+d36Xf2GQBScTJF4UkmXM7VReV9+sdgaBmosi/1PMUEyOQ+cOTmeGflCtummTwDJMPPEdQB8CjqqFG8VU79LsjN2RDkyDJxjf+OpKCtsHoaoufQKbIaObrihD9L13TIhqXGnd8p8UyWTpBHcBwtFZMS0RC3IDC8PpXzDXEuy8T3MV4+XFERH/+5870BfFDgDrHViedADSOp2oXTWtDxMJF3tTZt8loK6GC5NsUTcNVaHDrG2M0g4npHBYzeTnDbuhigji485qhb6hZ0FEiHr3dcR9s1/ZeG7ZJDI899wYGEOUO0oP14tgz7tZuyffYDxaG9n/pgkWwDdC1uzAJBsyz7YIcRy1yq9vaDG502rTERqf6c/GyA7a73Ba4VpAmMX57iIS9MUCogowFByAt3VXuQ0reighHsbEyGB9+RnNIitWjYr9ZivtaQoCTW8GEuSyImEeAw8z0dneb+zQzHSLlArc1I+eOhMwN1mjYAh1MEiSk8DTsu+vcINFr6VqeYmH6yrvKXzG0bP2oRtZ5aNhET0hyjjGA/PkHGkdydm42KMhW5WM3kXL96XZ1x2wnjwXrUgxW1ye+t0UqsBjWjnt6v6NcxIQAC37HGqrFzYVshrJ9ZAXkMLxjc+L9mDJQE9fDl5oIto4sgsaT+egN139GyXCsozq242P8o9Q3nmTW4vgtusCD/ANc/Dq7un/UTqh+Ezy1BIIXHYI5VFiAbkFG9XQSv2lEg2BPG3t2BuvHmDStArQME4plCXlW3Zheg/mMWblUO51BD1QilAbl6SL3uM9 X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DB9PR04MB8477.eurprd04.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(346002)(136003)(39860400002)(376002)(366004)(396003)(6506007)(2906002)(52116002)(186003)(5660300002)(6916009)(4326008)(6512007)(8936002)(1076003)(36756003)(8676002)(38350700002)(478600001)(2616005)(6486002)(966005)(956004)(26005)(38100700002)(54906003)(316002)(66476007)(86362001)(83380400001)(66556008)(66946007); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: IFuVmS+FntrGu600t5oiZ+NPKhgI4mxGFf0gVH3BTPr/irDzs00ByaCbd4btzUsU3iTqheVwL+DbnvZqcFfJwyevtIYp01trd2rYO6JE0gFCROBdoLVbFBAmYtuedDTP20ifLV5k18lkbsZHq6OaOeVrclSZUvHupDlZk3OqDocDj5SmdoFX55SBv2MF2PJ413AuUKfF+rCTks3KYmGnpTfsEukIhlHzuYCpN1WKhC4bc3f4idhE9FvASvWdF/A6wCwFI+Ko6qv0g12X3NcmibiNFFm+XMZdAdpDUpcFK9dBZTS2wlIhS51uhkH+yFCFlODLcOUrRtN73Fr/uJIxRMW4Q4npK3bdXGa1DfRGroWsa2jx4Y/h61ll0p1PLOJs5IB7cInhpj3+6RG6409dzpZRB311xfwD95pcSKbD39Jk7TO8W7IjmPWh795Sj9kqlWDLBGVBPpc3L0Chtds0VzgKueSnK3iGWmzxMdqTIgBqEns/TN504+l+nDYPLQ9YQUuZ3yUwsr6HYTIhr+BtnomkFnLW6dasoyjYyL20TI/sCPqs5N+ztklOSMOF/V4HPuuJ4u3ePs5Y/w1bV9DFr5sfEF9b99bB3WrHeOGwnswd7j9MatbfnAIh3cWSUbmvBRvr3HSRenZkE+pjByzBy9LI/bpn9+ZGoZXA3D2ZYZdbzMl2tDARNNI8Jeksr91Ylb+Q0nqvogB5h4Vid3ypECYuMdpearGSCXFpsbae2nVg0kzJyhQzxlsqi8CUulFHyHKkXVFv+2N9cYhB550n2T3D56Q/Tq09B4LLShhtD6wkNWfcujLeeiRmtVTbbfNdnXlQLYUhqyWdQMock6KRfNlkZzwgR3FQVyFvy+ZkmCqElc3O3bWZ7M7yf3qHrlNpNcKe/rq74JCwfGXlXcUBWnDJY7nUPRVQnmA8ZNSFoqsjSPrSFXt/Yi4X+T5nznI4+bumemeWIS56MUSrx7ReXT8sasgHDCGIgrATJSbMDpVwl8nU2/HKSkeoDqt0DgTcgpET79GZqkjMUQBJUQ20KCzAPlVQBQbahDpqTA09FcLNpBf/xCB0oYFr1xprwFlTcQpVuhz49UicmfI8j13C5HwjRfOgEiIDftLBDHwhAmOHnqPzvN+rrHSL9bS9i8doMp9f4L8iM33/a9StptDu0YBduqeXknWecXWcSgnKyNNvuhfIFuHENIM/zXkg0RnY2SMv3Td02IfoeowVlY48VdLtxKflYxnVVaDdUg1zwphGU0i5CJ7QNxEdlUT0IWVMZUJdMTnMjRyokEpKuNXrLOddSeb+xLjziXyShijq0HTck5sV2J3P5cTm/ae+rSFv X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 85b05327-02b8-4192-d5a4-08d9476a4289 X-MS-Exchange-CrossTenant-AuthSource: DB9PR04MB8477.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 15 Jul 2021 08:26:35.9852 (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: 0tH+vBsWdCEtgRZhJjnd1n1vckbd9VW/Gq/jhLVMEPRz0YCGTjGw3TvWOJOJLhqHIGv5zwWxaUQqKDOjpyJsVA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DU2PR04MB8680 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Besides the conversion work, also added the missing clock property in the original binding doc according to the current dts and driver implementation. Otherwise, make dtbs_check will fail. Also fixed example according to new jason schema. Cc: Ashish Kumar Cc: Yogesh Gaur Cc: Mark Brown Cc: Rob Herring Cc: linux-spi@vger.kernel.org Signed-off-by: Dong Aisheng --- .../devicetree/bindings/spi/spi-nxp-fspi.txt | 44 ---------- .../devicetree/bindings/spi/spi-nxp-fspi.yaml | 87 +++++++++++++++++++ 2 files changed, 87 insertions(+), 44 deletions(-) delete mode 100644 Documentation/devicetree/bindings/spi/spi-nxp-fspi.txt create mode 100644 Documentation/devicetree/bindings/spi/spi-nxp-fspi.yaml diff --git a/Documentation/devicetree/bindings/spi/spi-nxp-fspi.txt b/Documentation/devicetree/bindings/spi/spi-nxp-fspi.txt deleted file mode 100644 index 8f34a7c7d8b8..000000000000 --- a/Documentation/devicetree/bindings/spi/spi-nxp-fspi.txt +++ /dev/null @@ -1,44 +0,0 @@ -* NXP Flex Serial Peripheral Interface (FSPI) - -Required properties: - - compatible : Should be "nxp,lx2160a-fspi" - "nxp,imx8qxp-fspi" - "nxp,imx8mm-fspi" - "nxp,imx8mp-fspi" - "nxp,imx8dxl-fspi" - - - reg : First contains the register location and length, - Second contains the memory mapping address and length - - reg-names : Should contain the resource reg names: - - fspi_base: configuration register address space - - fspi_mmap: memory mapped address space - - interrupts : Should contain the interrupt for the device - -Required SPI slave node properties: - - reg : There are two buses (A and B) with two chip selects each. - This encodes to which bus and CS the flash is connected: - - <0>: Bus A, CS 0 - - <1>: Bus A, CS 1 - - <2>: Bus B, CS 0 - - <3>: Bus B, CS 1 - -Example showing the usage of two SPI NOR slave devices on bus A: - -fspi0: spi@20c0000 { - compatible = "nxp,lx2160a-fspi"; - reg = <0x0 0x20c0000 0x0 0x10000>, <0x0 0x20000000 0x0 0x10000000>; - reg-names = "fspi_base", "fspi_mmap"; - interrupts = <0 25 0x4>; /* Level high type */ - clocks = <&clockgen 4 3>, <&clockgen 4 3>; - clock-names = "fspi_en", "fspi"; - - mt35xu512aba0: flash@0 { - reg = <0>; - .... - }; - - mt35xu512aba1: flash@1 { - reg = <1>; - .... - }; -}; diff --git a/Documentation/devicetree/bindings/spi/spi-nxp-fspi.yaml b/Documentation/devicetree/bindings/spi/spi-nxp-fspi.yaml new file mode 100644 index 000000000000..ca43583947ea --- /dev/null +++ b/Documentation/devicetree/bindings/spi/spi-nxp-fspi.yaml @@ -0,0 +1,87 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/spi/spi-nxp-fspi.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: NXP Flex Serial Peripheral Interface (FSPI) + +maintainers: + - Ashish Kumar + +allOf: + - $ref: "/schemas/spi/spi-controller.yaml#" + +properties: + compatible: + enum: + - nxp,lx2160a-fspi + - nxp,imx8mm-fspi + - nxp,imx8mp-fspi + - nxp,imx8qxp-fspi + - nxp,imx8dxl-fspi + + reg: + items: + - description: register location and length + - description: memory mapping address and length + + reg-names: + items: + - const: fspi_base + - const: fspi_mmap + + interrupts: + maxItems: 1 + + clocks: + items: + - description: SPI Bus clock + - description: SPI Serial clock + + clock-names: + items: + - const: fspi_en + - const: fspi + +required: + - compatible + - reg + - reg-names + - interrupts + - clocks + - clock-names + +unevaluatedProperties: false + +examples: + - | + #include + #include + + soc { + #address-cells = <2>; + #size-cells = <2>; + + fspi0: spi@20c0000 { + compatible = "nxp,lx2160a-fspi"; + reg = <0x0 0x20c0000 0x0 0x10000>, + <0x0 0x20000000 0x0 0x10000000>; + reg-names = "fspi_base", "fspi_mmap"; + interrupts = <0 25 0x4>; /* Level high type */ + clocks = <&clockgen 4 3>, <&clockgen 4 3>; + clock-names = "fspi_en", "fspi"; + #address-cells = <1>; + #size-cells = <0>; + + mt35xu512aba0: flash@0 { + compatible = "jedec,spi-nor"; + reg = <0>; + }; + + mt35xu512aba1: flash@1 { + compatible = "jedec,spi-nor"; + reg = <1>; + }; + }; + }; From patchwork Thu Jul 15 08:25:33 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Aisheng Dong X-Patchwork-Id: 477617 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=ham 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 BD7C3C1B08C for ; Thu, 15 Jul 2021 08:26:47 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id A75906120A for ; Thu, 15 Jul 2021 08:26:47 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240239AbhGOI3j (ORCPT ); Thu, 15 Jul 2021 04:29:39 -0400 Received: from mail-eopbgr50073.outbound.protection.outlook.com ([40.107.5.73]:23792 "EHLO EUR03-VE1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S239431AbhGOI3j (ORCPT ); Thu, 15 Jul 2021 04:29:39 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=YZ4wFkwfEsqImOJKI7sGcCqFFVLMvTy6ibWPftOJEua7NEntGcv/l7mLA1Hcj4jON1BaYjWvrZy4sZcWAJ8ZGX1JgzcRn33yfAhCimxQub809K4ZZ2QkcLaX3yZDGgwRNI/EY0u8LrDCPT91pnATMF9WboHwE08BuflcG53QOUNOkXdSmxUW84Y+SSCj2fXGqrW3sxBkBpLg47KiSA9khwCl3wLOGcKw8uWnOtHKPHxr8FPGwsw0do0OziXm926mpSdiAqVu9mVhoeF2ypDLz55CRkfwBNlXGo2tnaCD855t79TiuHgK7Z3KgbwFIuzNOdcfZzGeiXZQDRtCy21Yaw== 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=5DIDt7yPQ2gDUawmSqmWb3PstRR2PrLiPs+oEMEc8ZI=; b=fsi8QeNbOHifhcZUDHHHEWnHsXkxh+gXPW2i0CaKdwXRZ340/4Kcezya8Gv/YoyCtyzxKVLfVAZiw/rtEvIPj/2UAvJozrP0L4t2lw6C8anBJ0omA7uUSrohm971wB4cH0yXrhygUEnffLHs8pUEtdzZXNaV5JSc6I8E/3H36gt3+E48ldcml3Qf9hmpZkx02Owkbkcf7gEog/Z+RcRQZNtHKTpeiXB1KiJV1Wc244ty4yM7Mlpioz7RLvI4CoOGaACd22S5cnX52vkIYG96+3d4zGhugQxSD8CEYSJWO6heVT1RL54uDAy7jQCjR1fZmj4Z9SOsGF1lUWrh1HF5IA== 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=5DIDt7yPQ2gDUawmSqmWb3PstRR2PrLiPs+oEMEc8ZI=; b=rUTXRFl/rR3e8K/6XUcRo4qswv0bii/NJTfDeyVaQTcGKANFVLKKiva8UuOsBgm0TmIi4v6CEuu8xNauY67jAjgu2cu9bwqz2cmWccpUsUtcEza8z9dqmIY5riYiGnu7Dhx6Qm9sqm1RNlM6yIJIottH9837tCVrc1WuyfgnWRQ= Authentication-Results: vger.kernel.org; dkim=none (message not signed) header.d=none; vger.kernel.org; dmarc=none action=none header.from=nxp.com; Received: from DB9PR04MB8477.eurprd04.prod.outlook.com (2603:10a6:10:2c3::11) by DU2PR04MB8582.eurprd04.prod.outlook.com (2603:10a6:10:2d9::24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4331.23; Thu, 15 Jul 2021 08:26:44 +0000 Received: from DB9PR04MB8477.eurprd04.prod.outlook.com ([fe80::9daa:ab21:f749:36d2]) by DB9PR04MB8477.eurprd04.prod.outlook.com ([fe80::9daa:ab21:f749:36d2%9]) with mapi id 15.20.4308.027; Thu, 15 Jul 2021 08:26:44 +0000 From: Dong Aisheng To: devicetree@vger.kernel.org Cc: linux-arm-kernel@lists.infradead.org, linux-imx@nxp.com, kernel@pengutronix.de, aisheng.dong@nxp.com, dongas86@gmail.com, robh+dt@kernel.org, shawnguo@kernel.org, Kishon Vijay Abraham I , Vinod Koul , Li Jun , linux-phy@lists.infradead.org Subject: [PATCH 4/7] dt-bindings: phy: imx8mq-usb-phy: convert to json schema Date: Thu, 15 Jul 2021 16:25:33 +0800 Message-Id: <20210715082536.1882077-5-aisheng.dong@nxp.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210715082536.1882077-1-aisheng.dong@nxp.com> References: <20210715082536.1882077-1-aisheng.dong@nxp.com> X-ClientProxiedBy: SG2PR02CA0083.apcprd02.prod.outlook.com (2603:1096:4:90::23) To DB9PR04MB8477.eurprd04.prod.outlook.com (2603:10a6:10:2c3::11) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from localhost.localdomain (119.31.174.66) by SG2PR02CA0083.apcprd02.prod.outlook.com (2603:1096:4:90::23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4331.22 via Frontend Transport; Thu, 15 Jul 2021 08:26:40 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: d38cd31f-b0f9-4b2d-a65c-08d9476a4768 X-MS-TrafficTypeDiagnostic: DU2PR04MB8582: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:6108; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 4uA82xEDPpVxspEDFD3EEg9Ep19CS08iMrmX/pwZQE5Wg5rIydH/gDQHTgZ8ihXHZRek/Qwt6eq1sw7T6zBtu2RZBO9hrXyKmEUBHque4IfgXuGbv4ZTn3TOlJH/j3oMcsuuJiONAitsHwR66bw9GkoY8VwssssLn2fwl0jGEr5RGO3GKkAn3+nv5YygULg0r8Zgk8Y8NYK8bqhtOtNbvQrX2N9QcgWfoZbpPHaDIqP1pQ50e3WGPT8ZWYV4HACSTtU8+uXhzw0sxH4SLYeaY6LFw0XrSQYccGPdht6UgzTXuFEmuFv3LQ2/J71nmPJJ5scIYjUa1f99m66jVxSeT/A82MGkxxRzWXqfJNbNikTmragdsMOUZ44/a3n5XCirSUcyd9LEqS1Awx23FJ7MudrJjqmzdC5xSojjoRmKpWq/O90lmegnFBCNSozMlnlNpJAQJD8TA5xsYWm32jYaSZfqzQAsdFznNDK8KvY6uOQvK1onKrsj7tgGK4rmlPPXBB/vp10Wx6m+9MFqynJ+VvwuhE0Rwqi8FvTlM25EcYiDADi+z4KO3DYl0N51pDgKwMD/ST1+dLyeO5db3jyQY21qxkX43LyHX1aeebLQuw0vZ1RXnUtsSyr20r01X8RqPx84sJ+7sPlZ/oywgUb5Dudzn9fQ9p9ACrK9qNQEaxZc/XQtvkHpOdno53GuRPiM44ZdRP5UkWx30AwabjMJzrUqNpH2nesgPyfO8W2P8y2fn0v92tItWjBb/RGTqwEagX7jTrsObyxXgI3PkXgwIcXGeGlt+1bm6jk0Z+oNKqCJVtV1gXkyeggiWlxx5UihMcftap+ixLHClq5H1mSTv22/VQ8hzJayOnwt+U5MTCw= X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DB9PR04MB8477.eurprd04.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(366004)(54906003)(66556008)(5660300002)(66476007)(966005)(36756003)(478600001)(1076003)(8676002)(66946007)(26005)(186003)(6486002)(956004)(316002)(8936002)(52116002)(2616005)(4326008)(38350700002)(6512007)(38100700002)(86362001)(6666004)(83380400001)(6916009)(2906002)(6506007)(32563001); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: eFYobmR1QS/Ra+P4gLNcZxQAhHmDVhPQxOQWZxaptcGUlEpKe7TsNujDzpzCUvejoB5/kIFtin6VKcwoHs8fCw7rfTtgTsieKy4qY5Dmx+wH35ulcA9lTO3Cur5lc/j/mpKsVfnPUyQcWuFNcXgwW9l23rjtJ/0K7z6T3ckbJTA90qyagMxpQqSJUa1oiCY1PiEycTLoXfhpuOyOXDJFtwe6IsNdBqhO1hiYyYjdsF396sCxLL9LyCLr5E3ym1NknMg9kQRfQ7JgEDvABeRlLgRkDYmGgG0LfNiO+Lqd1pZxTsCVoIEl9FOqISBH8wR2y2G/OFSmYQRjrm833IwqCg3PSZp5jaexWyEId+9wZAAo7hXwvsFkJahUmwRfHI0s5LoJGswTNfDroWccKEGFC8kISwC0S7nYSfnwQbC7BbKbJNAj+WmVN4x21bYMDc3pMsb9jVBJz6LXnUUDMJFai1+DacNIIAtUiJ3E7XILDyd2r9tpvQlJJEEyT1Vlu7ZuFYYonUNbq9FhrtegnPtRVIFAL75t+PF7EBFuQRMrJEnv1xOENUX+MyjFFhbzos+MEetzgWp50N5sJNoKmUi0BbBZclgPA7kCi1ECSn3TXb+87i1u0LOu8nqIA9h2jHH2v9SKdCDO0e9fl2FubMZ4TrxkxVkH8bMnTZIsGUTIEsvV4TGZqXrx+FDAj5vsoX6ZWHdqXDQHCU7kDIejkLkQcKdAf+/o++kQNtt8bwUSCFLtsP8xESxfHjcAKbAaewRcpb5gWVjq0jgkwyGHLICKIE6TrIhFMqifmQRUhWzXV78JXOXcCQK5oGe4vUtHIUDSTLBFBwis3U6O4Fbx8GoB1Q/z14J4cfkdY8LM1Em7Aey2sC7cCn5QzMnurC3XjVF6VFI0h0dIT6t6rvFTSQ3GGoDq3HT9g9EbiyLi2EfL7EidcRQnBwgKlTRojLE9xR6c5eF0NAFg4zJTVqwXvcSMvkgjInBQwKx7f78fq0Up4So9Uf4+f/le+gpPyqpc6D4h+HQtqLlMM5UDz5owzBex1rKGJRTHUlc4jTMH2OciuSxQCyYLds9Cc6O0Fi6aVSFpzt0KYl617whOWHk+d2/owGru7nfKzjFmHJjULD4FH1DlUDhgL6mBJodns25XP1RtFiCtRHN4LQNAwFszrFCS7l4M7Wg1e0IsdVH/E5ir5ccNqvHa52LH9h5RcBzs7PF10zZxytEiqcKVx+879ewGJ79pCynIVt9njKZzi5D7RJj3KAX1MvpiLSeolvLB8IMZpn78oPgH8BjuNxqK4GykX6QzeS6WaZd53rlsZy7nfzmwQJT1IETWt1PhYgbEa8j5 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: d38cd31f-b0f9-4b2d-a65c-08d9476a4768 X-MS-Exchange-CrossTenant-AuthSource: DB9PR04MB8477.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 15 Jul 2021 08:26:44.1484 (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: VKk8na2Gpdeu9J5FKME1kT0aTpV8pOkS+tN+O2UI3cfcrRNCNn++72/5TdGBKFfFSeizSnhIRL8Gtd3yVVi4aw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DU2PR04MB8582 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Convert to jason schema. Cc: Kishon Vijay Abraham I Cc: Vinod Koul Cc: Rob Herring Cc: Li Jun Cc: linux-phy@lists.infradead.org Signed-off-by: Dong Aisheng Reviewed-by: Rob Herring --- .../bindings/phy/fsl,imx8mq-usb-phy.txt | 20 ------- .../bindings/phy/fsl,imx8mq-usb-phy.yaml | 53 +++++++++++++++++++ 2 files changed, 53 insertions(+), 20 deletions(-) delete mode 100644 Documentation/devicetree/bindings/phy/fsl,imx8mq-usb-phy.txt create mode 100644 Documentation/devicetree/bindings/phy/fsl,imx8mq-usb-phy.yaml diff --git a/Documentation/devicetree/bindings/phy/fsl,imx8mq-usb-phy.txt b/Documentation/devicetree/bindings/phy/fsl,imx8mq-usb-phy.txt deleted file mode 100644 index 7c70f2ad9942..000000000000 --- a/Documentation/devicetree/bindings/phy/fsl,imx8mq-usb-phy.txt +++ /dev/null @@ -1,20 +0,0 @@ -* Freescale i.MX8MQ USB3 PHY binding - -Required properties: -- compatible: Should be "fsl,imx8mq-usb-phy" or "fsl,imx8mp-usb-phy" -- #phys-cells: must be 0 (see phy-bindings.txt in this directory) -- reg: The base address and length of the registers -- clocks: phandles to the clocks for each clock listed in clock-names -- clock-names: must contain "phy" - -Optional properties: -- vbus-supply: A phandle to the regulator for USB VBUS. - -Example: - usb3_phy0: phy@381f0040 { - compatible = "fsl,imx8mq-usb-phy"; - reg = <0x381f0040 0x40>; - clocks = <&clk IMX8MQ_CLK_USB1_PHY_ROOT>; - clock-names = "phy"; - #phy-cells = <0>; - }; diff --git a/Documentation/devicetree/bindings/phy/fsl,imx8mq-usb-phy.yaml b/Documentation/devicetree/bindings/phy/fsl,imx8mq-usb-phy.yaml new file mode 100644 index 000000000000..2936f3510a6a --- /dev/null +++ b/Documentation/devicetree/bindings/phy/fsl,imx8mq-usb-phy.yaml @@ -0,0 +1,53 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/phy/fsl,imx8mq-usb-phy.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Freescale i.MX8MQ USB3 PHY binding + +maintainers: + - Li Jun + +properties: + compatible: + enum: + - fsl,imx8mq-usb-phy + - fsl,imx8mp-usb-phy + + reg: + maxItems: 1 + + "#phy-cells": + const: 0 + + clocks: + maxItems: 1 + + clock-names: + items: + - const: phy + + vbus-supply: + description: + A phandle to the regulator for USB VBUS. + +required: + - compatible + - reg + - "#phy-cells" + - clocks + - clock-names + +additionalProperties: false + +examples: + - | + #include + usb3_phy0: phy@381f0040 { + compatible = "fsl,imx8mq-usb-phy"; + reg = <0x381f0040 0x40>; + clocks = <&clk IMX8MQ_CLK_USB1_PHY_ROOT>; + clock-names = "phy"; + #phy-cells = <0>; + }; From patchwork Thu Jul 15 08:25:35 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Aisheng Dong X-Patchwork-Id: 477616 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=ham 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 68E80C07E96 for ; Thu, 15 Jul 2021 08:26:53 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 545626120A for ; Thu, 15 Jul 2021 08:26:53 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240257AbhGOI3p (ORCPT ); Thu, 15 Jul 2021 04:29:45 -0400 Received: from mail-eopbgr50083.outbound.protection.outlook.com ([40.107.5.83]:2323 "EHLO EUR03-VE1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S236350AbhGOI3o (ORCPT ); Thu, 15 Jul 2021 04:29:44 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=N0GeyV9LHuLNf3rjbVk6KtiqrGuAuVKFSyUjxnLMrvdreXFld3dwIBxS3KvtRdljI+gczf8nwvLkNnIsnFSjHRABAWtJSI00F8/SPeaSiE1ce0HRXpDW2bnczctfguhEsInlDaZA2ILWr+TW1/ix9WIJ13zFXg/yiRFQjkEhmgiUdcWWaiCEnVUL45H03SNQYctPd6YPusUKxVvIYBzvp2TlC4cRcg/DOhyv4MuR8zmhv9QqAwIlfONWiy9IrKSBBmuWOLw/TREC3BwWzIHGHnMc2cSsVQICJZT4iNAA5MBkJIJ88FXdzE/PN5ks4m23PHncz3+E2aMdO0++cr++Nw== 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=F2v0scO4WWCTThQHk4e8mITe7syS9BubUzmhViTKhoU=; b=BcJdWDEYtEiKe9sa6kVjPeI+sFO1HUUbjNrgu9r3n8tpQbt/Lns4O03qn3mUJN0xS6mA5MFUXUelPeFwoOItsg7YrSGGhtUDRwM1SYnZUj69NlJ/JYSTelf3Dq/zWSXldY8I7RtK0IcLa7L6SEPK5qEY6vuFHreSYvZony3QJPKRwyZmYCfHW2SPw/lVSIH56UAMdJY0t8tACRYpD4rYQgsr1mBa7PxKfUofdDJCjzJe16fTMev5g1G/g8csNdCAEGEBb40EtxqL5c7DsFZiXwdtNvh9Nuak4EWeJ6Izhv9LxNBjpbO/7A1XdcRxb1Ic4fSyr+1/xCJZ3K+sC06G+A== 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=F2v0scO4WWCTThQHk4e8mITe7syS9BubUzmhViTKhoU=; b=VwpA21DlPQoBIe9vJ7njkMC41po0m7dOnQT0GWrjwkDF8Qacxgtms+fEI/6p0AjdIAIy4vHaZvvhEYzJFydBAp1rKpdEsPxQJoPIUDhCDhjJ60D1mBwMU+1RNkaxwjwEwpraYM+BzElRmGTg5ZddQ6udac36aN8w2kAbfxyxivg= Authentication-Results: vger.kernel.org; dkim=none (message not signed) header.d=none; vger.kernel.org; dmarc=none action=none header.from=nxp.com; Received: from DB9PR04MB8477.eurprd04.prod.outlook.com (2603:10a6:10:2c3::11) by DU2PR04MB8582.eurprd04.prod.outlook.com (2603:10a6:10:2d9::24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4331.23; Thu, 15 Jul 2021 08:26:50 +0000 Received: from DB9PR04MB8477.eurprd04.prod.outlook.com ([fe80::9daa:ab21:f749:36d2]) by DB9PR04MB8477.eurprd04.prod.outlook.com ([fe80::9daa:ab21:f749:36d2%9]) with mapi id 15.20.4308.027; Thu, 15 Jul 2021 08:26:50 +0000 From: Dong Aisheng To: devicetree@vger.kernel.org Cc: linux-arm-kernel@lists.infradead.org, linux-imx@nxp.com, kernel@pengutronix.de, aisheng.dong@nxp.com, dongas86@gmail.com, robh+dt@kernel.org, shawnguo@kernel.org Subject: [PATCH 6/7] dt-bindings: soc: imx: add missing iomuxc gpr binding Date: Thu, 15 Jul 2021 16:25:35 +0800 Message-Id: <20210715082536.1882077-7-aisheng.dong@nxp.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210715082536.1882077-1-aisheng.dong@nxp.com> References: <20210715082536.1882077-1-aisheng.dong@nxp.com> X-ClientProxiedBy: SG2PR02CA0083.apcprd02.prod.outlook.com (2603:1096:4:90::23) To DB9PR04MB8477.eurprd04.prod.outlook.com (2603:10a6:10:2c3::11) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from localhost.localdomain (119.31.174.66) by SG2PR02CA0083.apcprd02.prod.outlook.com (2603:1096:4:90::23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4331.22 via Frontend Transport; Thu, 15 Jul 2021 08:26:47 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 9f348072-03ea-4128-64f9-08d9476a4b11 X-MS-TrafficTypeDiagnostic: DU2PR04MB8582: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:7219; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: LdhSMNI6OdP6N22ips6zf2GpEOgV3JECdlFmjeXsvcNs4CACBYlLPzRTXhNfKQwFVdR9c5MMbr/mW6dk+UqKuA8UnSGRSyoA8Iod2G+dVrPFHaglkDK8zJLR2LJ4QCgftFzdanYbnnXLk6968Ta8Y2KUvlgYb2k+lL5kkxf5Xcit2q8HIaZdjRXgPb/ATDYW0K5ECW29pmHi259XyDKTOYY6HR9Wfv2ltI34RgwTIcH1UWjPSinriH3A6vu2Tu0ykOALobsG8oCUpt8fAluYxawk7JnYoRA/GcaaYWobSnmzlQeWCYfUX1SxVlMHO6IOlyngpC4gXPxnwuG3GZZGzkt6KBR7a8N2xk7os0mobegp+gGekDaA2mBYg1Xpj/pB5055P5Xvhr2HH4cNATWN0gWzV8VYTRdaur8PUGUBgohepD9GK5wDd+73g4CSs7RzXnBoqzNElPJPJ8OfIC7fRXzwfsfNc8Z6MMZ6um+1GJzE7VTg4XG1fdh2MgpfoWcE5vo2QDZCumSAPD4f3hsLfdaVTWqLX74p+336JrbqE86vIvxDsKIFGV7noT8iJjmIIBu0F1tyGmVnBsdm37OKghg9GRd1Sq175gmsCpr70a5L1fjApt+IJO6EnyoQOGVwPe7xJNEM1zVDEB/FoaCoUSOjVI71VGMmk57ueRfT+rq8e7kWL0u7WpKt+X6fdfNzJh/NGqlNjHh7EpEmCns603j0BXKmI9tjZup9aVWgqCnqILAYecTyaJyTq7sG9Gfhe2DYyRArRKziFHu8rBvUhfbFhFyZT6B4gzMReBY9rlTII2G/X3L07sm/4RqJXpqH X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DB9PR04MB8477.eurprd04.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(366004)(66556008)(5660300002)(66476007)(966005)(36756003)(478600001)(1076003)(8676002)(66946007)(26005)(186003)(6486002)(956004)(316002)(8936002)(52116002)(2616005)(4326008)(38350700002)(6512007)(38100700002)(86362001)(6666004)(83380400001)(6916009)(2906002)(6506007); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: iEsB5JgO6IjdYXJc+GYt7SpEPHUgCgEK172Mky5iNsgkKfWwLzhv08xQXNVCE8pazBWduEsFC5PcxAMW4rTphJxmOtnOwMrTzlPGjCyYixk1+NIkte4PV+4HSE8meXd9weiNB2pimDxWCDX+DtmWidR2AG5M3Yx/lA3r3PP96fiRR17gs9sXyU8N/VyMDeud0qh9tnIVjll3EoN2TmJ6Y5ckVDEholKLGrLRM3cOjJsf0dmWNkISdsKZvNpCPRsbQ9T4W4PWX1sAfVAVzGb9deTeq3NnnQoi+RhH14Wzub+HZ03foeXRvPMGUQoU1niDxSJR42HIBOwA9pPB1GIu/Pl6zbRzONqq+Hx5T3i/99AQPUNjJlsFQkLMIPnTgz8A1u6iR7/A6tYpjvuOxg9TntZDfYTMriG2KKsNfIThMYHfuOy8e5rWwUco1IUpP3OxyrVM/OQsWxP+Bx+WjufmPQkJCrpFMw1a829WeVJ5JlnAdbns0Dodgnb+h0MiwzTNjORegdZeM5Mqevyoa+8onzD2DtKSsXIq2XR1nZhLo/Iu8vCpsAzWKc7iiRLYMhhErjPXoBJ4X4tqJDXXtdo3ymZuz+F+9X3jyRtwg2NqEqoXHjRYaIz1eadwtn0xiO+/JupFNTHcROhAg55g7VDoTDsVE6Pqn++9HNOX9FQ2XXu3Eo3MmP7H18n/C+oFCrHGAYaVK5NMcc8PyqpDenF7SKgtjpMD0hRFVrwQ05toVzCKaF+dWq3R8JYyCcCg7Sg4MYtK1GtT5UT1w/5T3rSiUY22tzKF05FxsF5WkX6NSsRp3faQfI8ASBQdTAbru3lpofwVenvL8i3m6sWFJrk9PZIinC2MgZaJyk5ULvRFysIXwX0xJcjUe+AqRmKk0nCfDRMVa4pe2HAID8g+4rzEdl+yEf9nxPYw3of28Fkwor7JjiMWtwIVjwe7bg9m53iLUHdCmiHXyhVZD1jTgEFL3qWOpiooZZEtx5ZDm3XUNDZhCQvXm1sdo3MoyPsZj+LXm29OEBlCL6J3pjvlX5tpiuHig5wlvoGsUUv6YkxmjeCgxjN7XZEFsHtwfkPsPxmKcXsfnycHBrGp7CRONPMKJkU5+zmbEGrzKi/JBqEdMWbMDScXdKQFDJ/+f0lryJLLfKbxzR1osdQBhKTqY56lwg33FAoEdAjUHoUo3ZIoGd2S4SFicajtiTlRHUDFhm0ChzCuAOAxxSr3SuD4CzH8VSpsQjSdoKIXXK33AVg0fh5zMHVBGzepUvF/o0ykluQnaYguKFQeeh7h5h7XgtYrdXg+pW5KGE+l9jEjyGXvvf/NobsbA/oOBYunoXJR3RtT X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 9f348072-03ea-4128-64f9-08d9476a4b11 X-MS-Exchange-CrossTenant-AuthSource: DB9PR04MB8477.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 15 Jul 2021 08:26:50.3014 (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: b1OZJY2d+D8hRelNKu55nTYbolrPPoo7lujjilTrHqrNu6nVi8wtqA/n2xc5tmcLGYQE4xNdINZfPArW/cKBWw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DU2PR04MB8582 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org The General Purpose Registers IOMUXC_GPR are used to select operating modes for general features in the SoC, usually not related to the IOMUX itself. This binding doc is generated based on the exist usage in dts in order to fix dt schema check failures. Cc: Rob Herring Cc: Shawn Guo Signed-off-by: Dong Aisheng --- .../devicetree/bindings/soc/imx/fsl,gpr.yaml | 69 +++++++++++++++++++ 1 file changed, 69 insertions(+) create mode 100644 Documentation/devicetree/bindings/soc/imx/fsl,gpr.yaml diff --git a/Documentation/devicetree/bindings/soc/imx/fsl,gpr.yaml b/Documentation/devicetree/bindings/soc/imx/fsl,gpr.yaml new file mode 100644 index 000000000000..832b6b7e7c33 --- /dev/null +++ b/Documentation/devicetree/bindings/soc/imx/fsl,gpr.yaml @@ -0,0 +1,69 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/soc/imx/fsl,gpr.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Freescale IOMUX GPR binding + +maintainers: + - Dong Aisheng + +description: | + 32-bit general purpose registers - several (GPR0 to GPRn) 32-bit + registers according to SoC requirements for any usage. + + The General Purpose Registers IOMUXC_GPR are used to select operating + modes for general features in the SoC, usually not related to the IOMUX + itself. + +properties: + compatible: + oneOf: + - items: + - const: fsl,imx53-iomuxc-gpr + - const: syscon + - items: + - const: fsl,imx6q-iomuxc-gpr + - const: syscon + - const: simple-mfd + - items: + - enum: + - fsl,imx6sl-iomuxc-gpr + - fsl,imx6sll-iomuxc-gpr + - fsl,imx6sx-iomuxc-gpr + - fsl,imx6ul-iomuxc-gpr + - fsl,imx7d-iomuxc-gpr + - const: fsl,imx6q-iomuxc-gpr + - const: syscon + - items: + - const: fsl,imx7d-iomuxc-gpr + - const: fsl,imx6q-iomuxc-gpr + - const: syscon + - const: simple-mfd + - items: + - const: fsl,imx8mq-iomuxc-gpr + - const: fsl,imx6q-iomuxc-gpr + - const: syscon + - const: simple-mfd + - items: + - enum: + - fsl,imx8mm-iomuxc-gpr + - fsl,imx8mn-iomuxc-gpr + - fsl,imx8mp-iomuxc-gpr + - const: syscon + reg: + maxItems: 1 + +required: + - compatible + - reg + +additionalProperties: true + +examples: + - | + gpr: iomuxc-gpr@20e0000 { + compatible = "fsl,imx6q-iomuxc-gpr", "syscon", "simple-mfd"; + reg = <0x20e0000 0x38>; + };