From patchwork Tue Mar 21 08:52:04 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: 72762 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:604a:0:0:0:0:0 with SMTP id j10csp1662485wrt; Tue, 21 Mar 2023 01:51:16 -0700 (PDT) X-Google-Smtp-Source: AK7set9o384P1q45IVUpDjgIQzRBw/2nzNHt7vgfLfNMZ25454A1sWr/62maPBBTTxAbJt+rYtku X-Received: by 2002:a17:903:84c:b0:1a0:49eb:4cb2 with SMTP id ks12-20020a170903084c00b001a049eb4cb2mr1658084plb.13.1679388676180; Tue, 21 Mar 2023 01:51:16 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1679388676; cv=pass; d=google.com; s=arc-20160816; b=SyjQMWN1qIGxEcrwzj8mi3y8u7oUZEkaxwTvQ/KBvSumVDikuomTTUTrzv7NndArwe of1MqBhzDZFdokzhl9Ltxyv6URYUW2LFV1WUixMD14Ptj9VD4EkG/AyhqSudpBhZl2So 10NraU7dTmLgJ9eLj1zrZIRbTGTSHf76xr5r5FoUq/18di2M5jUscAdJ0o33q0yQGEap wHySaWGv9RvNPCqvr4bTsWdfn9svP3+z7w0JQqfAXD9XogHFm6XJlP9l1BKYBD2I0n2M HqGvgH2ZkswIsEmMl6th2k6Oz/Vq1PBv6/yFgYi/pGlop1VDuI3kMRfmHhCWfSCR8mwu ThJQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=kdhQaz4LP/Ye3oNM/W3yGOegSQ5eqxH+MjxRqf3WZBA=; b=Qlp9pwFgVc+POgtKRs/Z6FH4WAZAxQFAWIrpO5uXbfWIXLFLqpQFSEO4Nd4pV3i5if KMeq4yjc01a93/jM0xoYPaIdNPY+oXtSzPS7ToS28VE+xmyUj4jWajVC7nRQ+bWbAyTm SQ05T+0ohYMIMdW1a8RYgel/FYSKWf5bCTB8/w4mxqRR67k2MKjx4lTV14i5FG9zyBLn XmreWZfBPf+zUvZwi8b4KEucu1WNEQep098erYqnnYWMDw1n9qndr+mQ+tANvUFP3ikg CEATPJl3+N4fuDdNyJM9AxTwjN00M1g1X3E7W1581dtVqSFAd7ii/p+WQoxAOgFlLD34 3PdQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@NXP1.onmicrosoft.com header.s=selector2-NXP1-onmicrosoft-com header.b=M7XdEZ4w; arc=pass (i=1 spf=pass spfdomain=oss.nxp.com dkim=pass dkdomain=oss.nxp.com dmarc=pass fromdomain=oss.nxp.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id b7-20020a656687000000b00502f4fd0c16si13348190pgw.653.2023.03.21.01.50.58; Tue, 21 Mar 2023 01:51:16 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@NXP1.onmicrosoft.com header.s=selector2-NXP1-onmicrosoft-com header.b=M7XdEZ4w; arc=pass (i=1 spf=pass spfdomain=oss.nxp.com dkim=pass dkdomain=oss.nxp.com dmarc=pass fromdomain=oss.nxp.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230497AbjCUItE (ORCPT + 99 others); Tue, 21 Mar 2023 04:49:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56828 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230501AbjCUIsG (ORCPT ); Tue, 21 Mar 2023 04:48:06 -0400 Received: from EUR05-DB8-obe.outbound.protection.outlook.com (mail-db8eur05on2086.outbound.protection.outlook.com [40.107.20.86]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B663E126DE; Tue, 21 Mar 2023 01:47:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=PlJv/6xFigKIj0Ou5UPWkdRii7CQvOG23ejreIqqeyMgW3rg264zWIKD7E40l3DDYXv82b5ApmcvIDz6qJrD+B5mYBx5ww4wAKUav1t6eC3cr+IyZdSrDyf49mw/+QIqPGiRr7YO9vxniEcNBue7eN5sBnkS5RLKsXSSCgCGAo+rux00jWjmYqJLwBBvhVXEkdRoI9C8+Tqm9ufQHVro0AWcCpnn5bWQXD/3PSzLv4b/i+n8KZ1+2Jirq2A9mQ1lYeASB5kwCyEP9DYZGZQNRM6KtStJDkFPUzbEXg4KrW27vjb/nIWPuth5nNn7SDYVaBXrkxNWOPiLHpiVD+fVBg== 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=kdhQaz4LP/Ye3oNM/W3yGOegSQ5eqxH+MjxRqf3WZBA=; b=MlNINYfw9uUxKPTnLA+a5I52I7Z7HJgxN+VxvitrJw5LMH4vCAelekKFbkmVD5m/yX3xLDnUsZp5c7JSWmZ9IeDHr34sX3oHqAafYw7wlz/ZZQmI1PsIPvPlVwWXI1wuC49GJ8MtDAMUoMUcO5UWt2pj+K91e57b1wytCBBuElWXBIB8ao1i4VXStEgzanFqOPzj0sRJonqZKKkm/O7R7at9xaekYj9bAL1yit3+bNByKefhafygrDQVfx9JbYKLnNvVxx4/b/cwmNb8NCyjy41kP8aunyUpYm9PLMCTQ3610QYkTN9gJFNQUzkrJIxNDMIkS7aQQXByCsWk3ml25w== 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=kdhQaz4LP/Ye3oNM/W3yGOegSQ5eqxH+MjxRqf3WZBA=; b=M7XdEZ4wivFsQSufLTBTIpl1kWGs1d4Dmte2RMXW78AvhypYBDv1aMuk15C+LZguwVVjfOEjPNdlsbRHyK0gfUkIUt6HO9L+VNGCHqYcJy7hQQnZrUmHYd/wVN1bQtGZbJyb/544CBoOIIStwJGigrIEsQs6RTUuhHwhcsptOPk= 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 DBBPR04MB7849.eurprd04.prod.outlook.com (2603:10a6:10:1eb::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6178.37; Tue, 21 Mar 2023 08:47:15 +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; Tue, 21 Mar 2023 08:47:15 +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 , Krzysztof Kozlowski Subject: [PATCH V6 01/10] dt-bindings: usb: usbmisc-imx: convert to DT schema Date: Tue, 21 Mar 2023 16:52:04 +0800 Message-Id: <20230321085213.1624216-2-peng.fan@oss.nxp.com> X-Mailer: git-send-email 2.37.1 In-Reply-To: <20230321085213.1624216-1-peng.fan@oss.nxp.com> References: <20230321085213.1624216-1-peng.fan@oss.nxp.com> X-ClientProxiedBy: SG2P153CA0040.APCP153.PROD.OUTLOOK.COM (2603:1096:4:c6::9) 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_|DBBPR04MB7849:EE_ X-MS-Office365-Filtering-Correlation-Id: df499962-12cd-4401-6202-08db29e8df11 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: bnsSWY8clN/z5T6h2sTgsXblY2lZ16BK9/WonmMDsRCQXhORJLq1/BX85mYcmdj+ckRDHL1w1H2Nz0n6CBX2adq3sysLUVwMYQoWLs1y22crAOhPftzfWsvYuZTtYqu2sSoRusf8kPv9Vyw8W3sX8F6NhLDeN+S7jA3uy2PTS2anjfADRmu9BGIUF9TC0g4tMu6/akGRohEvI4rdAk3B/GtUIs5pP4uN8uQxbSou1MAAFU1slxHbyoKpgcjNedGbnTgoCqOnr3vwjXNnpbynfHqgy2h6pi2kYmd3GndHssw+HvWdU2RB8a/h0Ux45luWIO1UCQ7tjKJ4WDb0aqr5zggXtBpjy+4GIR3tpm7qwFh1/an2o96KgQMv1BgS7aL0EgZ5jTd/0F6E8pvrwBsx+G/wg4dE47Kl7RHsT77X6ry310WUhl+DBLvAmCz7ywSxYb12KjxK+drKPLs7OlFGtpUoFzbop45g1jKLPKKsZfDkVTUhxfs12yHLGstmazyH/t7ESYmxObCHZD0k4UqvK5bUpD5TFT/EzVwybadDn3+AKIxVvEZxVg/tAVnxq8rRmCJQCJ4Z0WjxK3rJgqLZtCXbxQdt9F2Nd+CznetUj2HjXOu5lkyI8YRW1hm5h0f+ViiUAa746fSdJIl/ggA2CRPvF3XoafC0cqueY3Mmf+qaaFJDopCpXES+KHuR0cg/9/yBO0aC+zCDF9EXYQuaavwszJkJQs81sH/0mSzFdCo= 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)(136003)(346002)(396003)(366004)(376002)(39860400002)(451199018)(2616005)(6666004)(6486002)(966005)(6512007)(186003)(26005)(6506007)(1076003)(52116002)(38350700002)(38100700002)(478600001)(2906002)(83380400001)(86362001)(66946007)(316002)(54906003)(7416002)(8676002)(4326008)(5660300002)(8936002)(41300700001)(66476007)(66556008);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: vqr8+GyoB2RyKQcaU69YdT7IVGPQBcduDgB2wTm32E3Nl58vbSpYjYujauLXQhy60nr8tbQfWjEuRH6bNUuImXbVsdpxwB8rfZ9+5sPvudx8pvOwcnXkQ3BgpLRM49MMbwMzju450vB2TA8maAtjf2rSHe+tIgNcdR0msXNaoficdz8E4eNW+1OSqRgC8rr0ak90Vqy187SPV9GmEtLJOWYMTG9hnMLP5FXD9THXkF8VOXhMYufVvbC7IYj3Iy50WNxPmRJnHPbzM8qZCfJeDRL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b5syDxL7Gwazk4zt2WpOSBkgdOLtxBV+h2j0xVl1pNE+qxyD3Cdkvj5AMxpUcWqe/dtUu5qEH4t0VOPIiOCvikIId0SyrqpHLf24g74sUJBv9XHuDXIEJoKchLm+pIA2Dtx6opPt2Wrt7j4MG2TVkuNkDtmyAWWbB4FPDMSOxvYkQ0Wcki9EI+vs59P94siJdrtLupOA789l0Z8Xd6WaSKKnNd4ir0xU9T/TRwyrSNXhqEciumwTXKNsw X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: df499962-12cd-4401-6202-08db29e8df11 X-MS-Exchange-CrossTenant-AuthSource: DU0PR04MB9417.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 21 Mar 2023 08:47:15.7947 (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: 2UMB8ZrV4YrX9VogtbBOPPvcfxvreHHLrsL01mtd2s6yGTTyP1fepXTHavc6kXyAtd8JMj1JuZZlu/PXbtYOtQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DBBPR04MB7849 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_PASS, URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1760966660470575483?= X-GMAIL-MSGID: =?utf-8?q?1760966660470575483?= From: Peng Fan Convert usbmisc-imx to DT schema format, add missing compatibles Reviewed-by: Krzysztof Kozlowski Signed-off-by: Peng Fan Reviewed-by: Rob Herring --- .../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>; -};