From patchwork Wed Mar 22 05:24:55 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Peng Fan \(OSS\)" X-Patchwork-Id: 666507 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 159EAC7619A for ; Wed, 22 Mar 2023 05:20:12 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230027AbjCVFUK (ORCPT ); Wed, 22 Mar 2023 01:20:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55844 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230000AbjCVFUJ (ORCPT ); Wed, 22 Mar 2023 01:20:09 -0400 Received: from EUR01-DB5-obe.outbound.protection.outlook.com (mail-db5eur01on2045.outbound.protection.outlook.com [40.107.15.45]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 514B73B87F; Tue, 21 Mar 2023 22:20:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=EAscO4iOAaVB35aVlWNVj3/IGPlAPQTaTO9/QzxA/TJTBhRdiH15/5qTCCi5vfxrllu1Zj3SO1NY1i7dp6hnvZCpAHal61AD+bjBsxMGxvp7lXQInk2xQtdB0rDacJh6ppaRFNbAhG9U9zIBiUSAM8eifB/wf99LLJQiYdBWp/hhX13GDKIxIVvJnpDt86CecqfW38B6jqB9oWlXyWMmfpEKF5Im5z5XSZbSdjAmAR3JozbvLqdJOh9Om+1iLvCDNJiwZJENJcFzS42rb1SMeJ4JZBS/z4TJjmujwBxBCFXqSFHtviY3Tj8pazWPS1J5S2OksQqZd3Zpan/JVRX6Bw== 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-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=QL6wRMx58EM+Rqv0F/Moxlbn6SuYNC/oCt+pMmG2Ug0=; b=dQLG+rAK2JU1Rkk9PFXMRIA+gUMwqYeJDUHZYEhj6/kJfgswXwChmb/uHj8a7vd2QqRtj3ds1uQOwBLYny2Vdjf7/Z9LsUQUCo/nHHldS8m+7i7BK7IsoA0n+TuzBbeLWeO9Pb2hJzrrj3msmegF+T2s4A7FCVtfI4ytd/6Xt4AnoIasORvyOqwo4kJk2/EQiIh0xvULjyajrtTPIoX9h9oNC7iUNINzjmdP8flGbF6YX8535hYh9XDgl4AYphYilKEn0VgBzrwQRvXrdW4XrprM9zZ/ULfA2iIloBfpxd9euUKVmRD4/fiG1y+2BTcKLksPgRqzztcEbKlbMJk/AQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=oss.nxp.com; dmarc=pass action=none header.from=oss.nxp.com; dkim=pass header.d=oss.nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=NXP1.onmicrosoft.com; s=selector2-NXP1-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=QL6wRMx58EM+Rqv0F/Moxlbn6SuYNC/oCt+pMmG2Ug0=; b=kuYTIlFDrhGcp8DZdiAJgSd1e4ziicrXms1A2nqnNKKHF3zgJtlZDR2YV7oyiy89SKR8hJzocuV7gOVur089RxyAdbItc3sdL4qJymQKEQzDTrEiGXBANoP9TRmm/PodLXMsoQmGdYEy0CrqaCXyKG3wYqCQVOf/dKdMcjKD06w= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=oss.nxp.com; Received: from DU0PR04MB9417.eurprd04.prod.outlook.com (2603:10a6:10:358::11) by PAXPR04MB8351.eurprd04.prod.outlook.com (2603:10a6:102:1c4::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6178.37; Wed, 22 Mar 2023 05:20:05 +0000 Received: from DU0PR04MB9417.eurprd04.prod.outlook.com ([fe80::f55a:cf12:da08:6d2a]) by DU0PR04MB9417.eurprd04.prod.outlook.com ([fe80::f55a:cf12:da08:6d2a%7]) with mapi id 15.20.6178.037; Wed, 22 Mar 2023 05:20:05 +0000 From: "Peng Fan (OSS)" To: gregkh@linuxfoundation.org, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, shawnguo@kernel.org, s.hauer@pengutronix.de, xu.yang_2@nxp.com Cc: kernel@pengutronix.de, festevam@gmail.com, linux-imx@nxp.com, linux-usb@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, jun.li@nxp.com, Peng Fan , Rob Herring , Krzysztof Kozlowski Subject: [PATCH V7 01/10] dt-bindings: usb: usbmisc-imx: convert to DT schema Date: Wed, 22 Mar 2023 13:24:55 +0800 Message-Id: <20230322052504.2629429-2-peng.fan@oss.nxp.com> X-Mailer: git-send-email 2.37.1 In-Reply-To: <20230322052504.2629429-1-peng.fan@oss.nxp.com> References: <20230322052504.2629429-1-peng.fan@oss.nxp.com> X-ClientProxiedBy: SI2PR06CA0015.apcprd06.prod.outlook.com (2603:1096:4:186::7) To DU0PR04MB9417.eurprd04.prod.outlook.com (2603:10a6:10:358::11) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DU0PR04MB9417:EE_|PAXPR04MB8351:EE_ X-MS-Office365-Filtering-Correlation-Id: cca4fc1a-cbc4-4fb3-997a-08db2a951858 X-MS-Exchange-SharedMailbox-RoutingAgent-Processed: True X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: tu1VczQZ11hdo/H/t+zmEZ/rIC9vzn2TEc2E/lXDEhcx1HAyX599ww2HX8gJLaJEZGteFi405X/dbU1mQs2EXu9ygZ+lFeuF2cbZ5Y8NZZriQJa9/Xc9l7BWv5hQ1rkl9ywmoWuVxUBCS28xWR4PbiMclQdVUu09JufySligxUz3X+LQaz3/woYniISGaM0x8GCMg9T2vecT+xY4IOxjVQw8UtjeLE1QyxBbMnAje3mhED80yPtLlVu2WzDtYrZYA5xFX3kO38hZwdcUNF1Ktdb6EAOdWNFWF2KEBYPaPPsxe5ACznMydEtMgKQFzXU9LmWhggEL80xMXEuyJG/vWQa9qSWWth5XcDHOfOZscniMfGRnOxVeePs3V3FAzh3yqm2RaerJaDyVRzVM2/I6MXIpX8a6cTAyzK4zx8eZXsNIC0YH4XIjDxAWq2fpZO7+Duv07j/5MbZ8F6ViXh+N7ggodwkp/K5dYyqttijKcf6jECgKzZ4txsuRnKZQkTm6LG+Nge3ch43HtrImY4L0XP+ZFiSSxYUfKxyD6R/mBd4x4yBrENWBUHICI3OcHillDH005c/3j1/7RGFMWIQB45bRz3LfVEGXgtdQFhwTFszHgpe+ASXbn/KyZG7I9ty+sgdTmqrTjgqQKVXb5rAGugea/jOmJLu5HSvI5prarSiO2RbRqmoWsbBYqoLbrf5OKCQXTvk8Dysb/SStPhHAL0Ps3VryYLKC33gdO9rxEGo= X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DU0PR04MB9417.eurprd04.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230025)(4636009)(39860400002)(346002)(136003)(376002)(366004)(396003)(451199018)(2616005)(6512007)(41300700001)(52116002)(186003)(966005)(6486002)(4326008)(83380400001)(478600001)(6666004)(316002)(8676002)(66556008)(66946007)(66476007)(26005)(6506007)(1076003)(54906003)(7416002)(8936002)(5660300002)(38100700002)(38350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ArwTSUMtmC96ztHMLYB0h8vzL4TJmU9Z9eFfr06JDqQipIjZ/fvMblDoweTveGUhQDpZOn/U7aCGCeYrr5Ki+JlYw9TGYjeVtIfmGYDnCWpoLPZkZvYybnlw8c6sIdheLv5kJqcIDBqznmyi14aRbOcFe7JC/BfqD9SLStOsLOT7awn2ePujkEIuSMvSQ1ezWzQb7hG/m12KNMlwntDQTgjb64HOka9wrQrQiF3Ta9mg4MWuFXxXEE14jSGdx3s/6mI+qgoA2C9iJpu6VNf1hvC/YaJNMyOe8Tk9cqltMDMwEP9yR8x0LF7ODVRBa67w0TVXyZhk2lfPLeUm52nM5Z9hbVMu0v6MPU/NgFj9CU4VcS/vrgtf8fHWez019mokOQN/t10e428hazYa9BaWdRM6gvH/lyPU8sE/xfIy28fgNTifJ1hXdidVkYuxUiTHSEbJkF8cXz5v8G96F5kxzoWx3CpJXtGA8FzJKCJgzlvufMM7lO9SioKZNTHntQ0X8StuckHPbLC+wezlIEjmo9ZYKZwfxNyXNdbGL9wTvy9k8yy+jMFODqjYTdvCCq83AV3dpWqHaNrzbt2NodcCm31In72UL8v8nrYPkjDuI22qi2ACj+ X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: cca4fc1a-cbc4-4fb3-997a-08db2a951858 X-MS-Exchange-CrossTenant-AuthSource: DU0PR04MB9417.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 22 Mar 2023 05:20:05.3134 (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: fx9fL0aWgUR/QG+IlyLQzGbtKOZSsM8pwm1o954BmFGCV9Q92je7FYqhWZ0BpI0ivKzwNPCcPcX/umRVw8gbRQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PAXPR04MB8351 Precedence: bulk List-ID: X-Mailing-List: linux-usb@vger.kernel.org From: Peng Fan Convert usbmisc-imx to DT schema format, add missing compatibles Reviewed-by: Rob Herring Reviewed-by: Krzysztof Kozlowski Signed-off-by: Peng Fan --- .../devicetree/bindings/usb/fsl,usbmisc.yaml | 68 +++++++++++++++++++ .../devicetree/bindings/usb/usbmisc-imx.txt | 19 ------ 2 files changed, 68 insertions(+), 19 deletions(-) create mode 100644 Documentation/devicetree/bindings/usb/fsl,usbmisc.yaml delete mode 100644 Documentation/devicetree/bindings/usb/usbmisc-imx.txt diff --git a/Documentation/devicetree/bindings/usb/fsl,usbmisc.yaml b/Documentation/devicetree/bindings/usb/fsl,usbmisc.yaml new file mode 100644 index 000000000000..2d3589d284b2 --- /dev/null +++ b/Documentation/devicetree/bindings/usb/fsl,usbmisc.yaml @@ -0,0 +1,68 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/usb/fsl,usbmisc.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Freescale i.MX wrapper module for Chipidea USB2 controller + +maintainers: + - Xu Yang + - Peng Fan + +properties: + compatible: + oneOf: + - enum: + - fsl,imx25-usbmisc + - fsl,imx27-usbmisc + - fsl,imx35-usbmisc + - fsl,imx51-usbmisc + - fsl,imx53-usbmisc + - fsl,imx6q-usbmisc + - fsl,vf610-usbmisc + - items: + - enum: + - fsl,imx6ul-usbmisc + - fsl,imx6sl-usbmisc + - fsl,imx6sx-usbmisc + - fsl,imx7d-usbmisc + - const: fsl,imx6q-usbmisc + - items: + - enum: + - fsl,imx7ulp-usbmisc + - fsl,imx8mm-usbmisc + - fsl,imx8mn-usbmisc + - const: fsl,imx7d-usbmisc + - const: fsl,imx6q-usbmisc + - items: + - const: fsl,imx6sll-usbmisc + - const: fsl,imx6ul-usbmisc + - const: fsl,imx6q-usbmisc + + clocks: + maxItems: 1 + + reg: + maxItems: 1 + + '#index-cells': + const: 1 + description: Cells used to describe usb controller index. + deprecated: true + +required: + - compatible + - reg + +additionalProperties: false + +examples: + - | + usbmisc@2184800 { + compatible = "fsl,imx6q-usbmisc"; + reg = <0x02184800 0x200>; + #index-cells = <1>; + }; + +... diff --git a/Documentation/devicetree/bindings/usb/usbmisc-imx.txt b/Documentation/devicetree/bindings/usb/usbmisc-imx.txt deleted file mode 100644 index 29b8f65ff849..000000000000 --- a/Documentation/devicetree/bindings/usb/usbmisc-imx.txt +++ /dev/null @@ -1,19 +0,0 @@ -* Freescale i.MX non-core registers - -Required properties: -- #index-cells: Cells used to describe usb controller index. Should be <1> -- compatible: Should be one of below: - "fsl,imx6q-usbmisc" for imx6q - "fsl,vf610-usbmisc" for Vybrid vf610 - "fsl,imx6sx-usbmisc" for imx6sx - "fsl,imx7d-usbmisc" for imx7d - "fsl,imx7ulp-usbmisc" for imx7ulp - "fsl,imx8mm-usbmisc" for imx8mm -- reg: Should contain registers location and length - -Examples: -usbmisc@2184800 { - #index-cells = <1>; - compatible = "fsl,imx6q-usbmisc"; - reg = <0x02184800 0x200>; -};