From mboxrd@z Thu Jan 1 00:00:00 1970 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id B5C1EC433F5 for ; Mon, 10 Oct 2022 13:13:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=WJTk02KL57u3cCqiKK+CrRCm+RWI+amLKEs4examy3Y=; b=ZJ4WuEE5UV8Jvi KntGVfG5TgYZyO7TnHM+tbUek6hlc68l1xAxE1RvOE0F0+3rmhyeIeBYa443EWD9iE0V6qcXN2NAi IM0n1C99iJ8Rzf6SOjtI4eYKi5Oe9FieH3AliVMAa8d1YXEe4S1KKwflMwnQsfF6iFnD3GlMJpIY4 Hnlkw1kOfpUB0gdQ8lbcgw1z3IXcbzpifYw8R0Ps9G2axGNbnrWvCXI+XI2xbK/2mHLiCeefsmBCt 8bsgmXPbnugBGmTAtlvN7SVBCYprfBuf0PVACcCwHyqG0ze0+gEIe+VRllgu7vI1JERue4fwPISub pOrs2kelm7Y9Y6LJ9MyA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1ohsZv-000yXd-9S; Mon, 10 Oct 2022 13:12:19 +0000 Received: from mail-oi1-f173.google.com ([209.85.167.173]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1ohsZs-000yWx-MA for linux-arm-kernel@lists.infradead.org; Mon, 10 Oct 2022 13:12:18 +0000 Received: by mail-oi1-f173.google.com with SMTP id w196so6274123oiw.8 for ; Mon, 10 Oct 2022 06:12:13 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=15TAcF8NS+8qj3HRwBKgB2ME6XMr5Q7+Ypj2Gz0CqG8=; b=uHMUau1SS5jSSCryPFDebPjDmrSYo7Xq4852bB11r51BAqHyefQPWO6BuCXtqPKd0t 2xQDlxKOhMkZbHM3Jl5pnaQjHxgMY91kb7SmIhixjb7wOCxRWxzDwpyzH97w3qxRuXCF mNpu1Fv5r14Lh4geW9nvyKIXylOLtGJ0pByYr7Tsw96WO/laGLuyzV7JNLijLasUqK79 nbN9WVdLYXO94ApxZ+nSb1p7j9zq4BMScVhGQKNvxI7Qj+3vohL0lQmNvCUo/IETOSsq PxczhM/zR7sCp0u8zjn93ie/Rcs6LpK7LhOXTseg/gY04JZK+DDyGb8nl9QeO2TLnqVH JziQ== X-Gm-Message-State: ACrzQf2Hsgwcw1Hs2aBnOTpC1d7ivAN353dUsuFneSrNMjgUFgYRd4eI KTYozSEC8HIwgoIIWs3iaw== X-Google-Smtp-Source: AMsMyM7DJkA6/IcdCMCNjVQg06TdinHfCbleCPCXBUrEl1ZkMm3jMOJkRirkoSin/GpHh11KRUFp8Q== X-Received: by 2002:a05:6808:2387:b0:350:28c5:335 with SMTP id bp7-20020a056808238700b0035028c50335mr13639954oib.18.1665407532975; Mon, 10 Oct 2022 06:12:12 -0700 (PDT) Received: from robh_at_kernel.org (66-90-144-107.dyn.grandenetworks.net. [66.90.144.107]) by smtp.gmail.com with ESMTPSA id m26-20020a4ae3da000000b00476995b5f0fsm4129135oov.9.2022.10.10.06.12.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 10 Oct 2022 06:12:12 -0700 (PDT) Received: (nullmailer pid 503584 invoked by uid 1000); Mon, 10 Oct 2022 13:12:13 -0000 Date: Mon, 10 Oct 2022 08:12:13 -0500 From: Rob Herring To: "Peng Fan (OSS)" Cc: gregkh@linuxfoundation.org, krzysztof.kozlowski+dt@linaro.org, shawnguo@kernel.org, s.hauer@pengutronix.de, 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 Subject: Re: [PATCH 4/6] dt-bindings: usb: usbmisc-imx: convert to yaml Message-ID: <20221010131213.GA498324-robh@kernel.org> References: <20221010101816.298334-1-peng.fan@oss.nxp.com> <20221010101816.298334-5-peng.fan@oss.nxp.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20221010101816.298334-5-peng.fan@oss.nxp.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20221010_061216_743168_02ADFF45 X-CRM114-Status: GOOD ( 19.45 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Mon, Oct 10, 2022 at 06:18:14PM +0800, Peng Fan (OSS) wrote: > From: Peng Fan > > Convert usbmisc-imx to yaml format. s/yaml/DT schema/ > > Signed-off-by: Peng Fan > --- > .../devicetree/bindings/usb/usbmisc-imx.txt | 18 ------- > .../devicetree/bindings/usb/usbmisc-imx.yaml | 52 +++++++++++++++++++ > 2 files changed, 52 insertions(+), 18 deletions(-) > delete mode 100644 Documentation/devicetree/bindings/usb/usbmisc-imx.txt > create mode 100644 Documentation/devicetree/bindings/usb/usbmisc-imx.yaml > > diff --git a/Documentation/devicetree/bindings/usb/usbmisc-imx.txt b/Documentation/devicetree/bindings/usb/usbmisc-imx.txt > deleted file mode 100644 > index b796836d2ce7..000000000000 > --- a/Documentation/devicetree/bindings/usb/usbmisc-imx.txt > +++ /dev/null > @@ -1,18 +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 > -- reg: Should contain registers location and length > - > -Examples: > -usbmisc@2184800 { > - #index-cells = <1>; > - compatible = "fsl,imx6q-usbmisc"; > - reg = <0x02184800 0x200>; > -}; > diff --git a/Documentation/devicetree/bindings/usb/usbmisc-imx.yaml b/Documentation/devicetree/bindings/usb/usbmisc-imx.yaml > new file mode 100644 > index 000000000000..c0741ce9b523 > --- /dev/null > +++ b/Documentation/devicetree/bindings/usb/usbmisc-imx.yaml > @@ -0,0 +1,52 @@ > +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) > +%YAML 1.2 > +--- > +$id: http://devicetree.org/schemas/usb/usbmisc-imx.yaml# > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: Freescale i.MX non-core registers > + > +maintainers: > + - Greg Kroah-Hartman No, should be someone that knows this h/w, not who applies patches. > + > +properties: > + compatible: > + oneOf: > + - enum: > + - fsl,imx6q-usbmisc > + - fsl,imx7ulp-usbmisc > + - fsl,vf610-usbmisc > + - items: > + - enum: > + - fsl,imx6ul-usbmisc > + - fsl,imx6sx-usbmisc > + - fsl,imx7d-usbmisc > + - const: fsl,imx6q-usbmisc > + - items: > + - enum: > + - fsl,imx7ulp-usbmisc > + - const: fsl,imx7d-usbmisc > + > + reg: > + maxItems: 1 > + > + '#index-cells': Humm, I doubt this got reviewed... > + const: 1 > + description: Cells used to describe usb controller index. Should be <1> Drop 'Should be <1>'. The constraints already say that. > + > +required: > + - compatible > + - reg > + - '#index-cells' > + > +additionalProperties: false > + > +examples: > + - | > + usbmisc@2184800 { > + #index-cells = <1>; > + compatible = "fsl,imx6q-usbmisc"; > + reg = <0x02184800 0x200>; > + }; > + > +... > -- > 2.37.1 > > _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel