Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp6165803ybl; Tue, 14 Jan 2020 23:21:13 -0800 (PST) X-Google-Smtp-Source: APXvYqyAFCnRO47FPxMmd0vpy6b+UKuqE5MPtIrj7QKAGxy94W+9uzcsXs1HEcQFMvtjSGR04iUc X-Received: by 2002:a9d:6e14:: with SMTP id e20mr1861923otr.283.1579072873490; Tue, 14 Jan 2020 23:21:13 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1579072873; cv=none; d=google.com; s=arc-20160816; b=SYcRHlo04QgfpUpPT6ai6Stna5e+QyKjsRwH3Ba/F72XV0Lbi3U1+c22r/ZXge4veM E+jOTKWaMbay5upNhX4jLN8d7EzDQ2mJT9KwXxlGt37SPKmNZX155+Ph/RuPQVVrFuZB 9Sdc9xkMSXWGgVVLoCmWjE4xi28UkcxzWU+b/P6+di9NpLNKOZGpYGKcdQMAw5H7RMDJ 8JboDwG3P5Zd4e4hPSXX8GU2I21/cdZ2rUGSLDwGqPqrXgvHRCPWGDHfcYU3QfU37N0q wViK+eYenES8D4ls4w9rlSYFOjmmk495SK3aW2VXLeOZTAKkGIfglUQLUFekJ4cC7cnL ecRQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=PqJzAvYy1XlUvgHb1z4mMQOT1iMtlDPVwHB6yFwTgcM=; b=jnGjw4iuguCwpK//S+rg3PVAOuTmbQ6M1FCcqbJtJvCvUdb4b8xClBU/61TdPt4PBZ vtYIo3FPyd3ny06W3vFLRH43ZkZCnIWVBDv7dUDizjoWmQ0fBUQR4itmZSJBFMjinKVX dPujSafgqqZPR3GGYur7xvAyjBnhjBIEdBWkxNb27IkfmFZXEuW8p9qimz5g7KCbTksH Rlu0oPcopHCGWCYGApvLBPp6oZrFHoDn4f1SuftxhPUvmYxH8b9Sb2c5UCmzOs59fltQ RSyKaXX49k0ct/eNehZm4zFl2NegZmMVWLa9COtUlydHrMoCtjguuObYbaT9Th6aoEjC 382A== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c19si11127982oto.129.2020.01.14.23.20.57; Tue, 14 Jan 2020 23:21:13 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729143AbgAOHSJ (ORCPT + 99 others); Wed, 15 Jan 2020 02:18:09 -0500 Received: from metis.ext.pengutronix.de ([85.220.165.71]:54515 "EHLO metis.ext.pengutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725962AbgAOHSJ (ORCPT ); Wed, 15 Jan 2020 02:18:09 -0500 Received: from pty.hi.pengutronix.de ([2001:67c:670:100:1d::c5]) by metis.ext.pengutronix.de with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1ircwC-0004eU-FT; Wed, 15 Jan 2020 08:18:00 +0100 Received: from mfe by pty.hi.pengutronix.de with local (Exim 4.89) (envelope-from ) id 1ircw9-0007ei-NA; Wed, 15 Jan 2020 08:17:57 +0100 Date: Wed, 15 Jan 2020 08:17:57 +0100 From: Marco Felsch To: Anson Huang Cc: aisheng.dong@nxp.com, festevam@gmail.com, shawnguo@kernel.org, stefan@agner.ch, kernel@pengutronix.de, linus.walleij@linaro.org, robh+dt@kernel.org, mark.rutland@arm.com, s.hauer@pengutronix.de, linux-gpio@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Linux-imx@nxp.com Subject: Re: [PATCH V3 2/3] dt-bindings: pinctrl: Convert i.MX8MM to json-schema Message-ID: <20200115071757.bmblie3skdswuj2r@pengutronix.de> References: <1579051845-30378-1-git-send-email-Anson.Huang@nxp.com> <1579051845-30378-2-git-send-email-Anson.Huang@nxp.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1579051845-30378-2-git-send-email-Anson.Huang@nxp.com> X-Sent-From: Pengutronix Hildesheim X-URL: http://www.pengutronix.de/ X-IRC: #ptxdist @freenode X-Accept-Language: de,en X-Accept-Content-Type: text/plain X-Uptime: 08:16:59 up 60 days, 22:35, 54 users, load average: 0.02, 0.06, 0.03 User-Agent: NeoMutt/20170113 (1.7.2) X-SA-Exim-Connect-IP: 2001:67c:670:100:1d::c5 X-SA-Exim-Mail-From: mfe@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-kernel@vger.kernel.org Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Anson, On 20-01-15 09:30, Anson Huang wrote: > Convert the i.MX8MM pinctrl binding to DT schema format using json-schema > > Signed-off-by: Anson Huang > --- > Change since V2: > - the lisence should be GPL-2.0 > --- > .../bindings/pinctrl/fsl,imx8mm-pinctrl.txt | 36 ----------- > .../bindings/pinctrl/fsl,imx8mm-pinctrl.yaml | 69 ++++++++++++++++++++++ > 2 files changed, 69 insertions(+), 36 deletions(-) > delete mode 100644 Documentation/devicetree/bindings/pinctrl/fsl,imx8mm-pinctrl.txt > create mode 100644 Documentation/devicetree/bindings/pinctrl/fsl,imx8mm-pinctrl.yaml > > diff --git a/Documentation/devicetree/bindings/pinctrl/fsl,imx8mm-pinctrl.txt b/Documentation/devicetree/bindings/pinctrl/fsl,imx8mm-pinctrl.txt > deleted file mode 100644 > index e4e01c0..0000000 > --- a/Documentation/devicetree/bindings/pinctrl/fsl,imx8mm-pinctrl.txt > +++ /dev/null > @@ -1,36 +0,0 @@ > -* Freescale IMX8MM IOMUX Controller > - > -Please refer to fsl,imx-pinctrl.txt and pinctrl-bindings.txt in this directory > -for common binding part and usage. > - > -Required properties: > -- compatible: "fsl,imx8mm-iomuxc" > -- reg: should contain the base physical address and size of the iomuxc > - registers. > - > -Required properties in sub-nodes: > -- fsl,pins: each entry consists of 6 integers and represents the mux and config > - setting for one pin. The first 5 integers - input_val> are specified using a PIN_FUNC_ID macro, which can be found in > - . The last integer CONFIG is > - the pad setting value like pull-up on this pin. Please refer to i.MX8M Mini > - Reference Manual for detailed CONFIG settings. > - > -Examples: > - > -&uart1 { > - pinctrl-names = "default"; > - pinctrl-0 = <&pinctrl_uart1>; > -}; > - > -iomuxc: pinctrl@30330000 { > - compatible = "fsl,imx8mm-iomuxc"; > - reg = <0x0 0x30330000 0x0 0x10000>; > - > - pinctrl_uart1: uart1grp { > - fsl,pins = < > - MX8MM_IOMUXC_UART1_RXD_UART1_DCE_RX 0x140 > - MX8MM_IOMUXC_UART1_TXD_UART1_DCE_TX 0x140 > - >; > - }; > -}; > diff --git a/Documentation/devicetree/bindings/pinctrl/fsl,imx8mm-pinctrl.yaml b/Documentation/devicetree/bindings/pinctrl/fsl,imx8mm-pinctrl.yaml > new file mode 100644 > index 0000000..8b2de93 > --- /dev/null > +++ b/Documentation/devicetree/bindings/pinctrl/fsl,imx8mm-pinctrl.yaml > @@ -0,0 +1,69 @@ > +# SPDX-License-Identifier: GPL-2.0 > +%YAML 1.2 > +--- > +$id: http://devicetree.org/schemas/pinctrl/fsl,imx8mm-pinctrl.yaml# > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: Freescale IMX8MM IOMUX Controller > + > +maintainers: > + - Anson Huang > + > +description: > + Please refer to fsl,imx-pinctrl.txt and pinctrl-bindings.txt in this directory > + for common binding part and usage. > + > +properties: > + compatible: > + const: fsl,imx8mm-iomuxc > + > + reg: > + maxItems: 1 > + > +# Client device subnode's properties > +patternProperties: > + 'grp$': > + type: object > + description: > + Pinctrl node's client devices use subnodes for desired pin configuration. > + Client device subnodes use below standard properties. > + > + properties: > + fsl,pins: > + allOf: > + - $ref: /schemas/types.yaml#/definitions/uint32-array > + description: > + each entry consists of 6 integers and represents the mux and config > + setting for one pin. The first 5 integers + mux_val input_val> are specified using a PIN_FUNC_ID macro, which can > + be found in . The last > + integer CONFIG is the pad setting value like pull-up on this pin. Please > + refer to i.MX8M Mini Reference Manual for detailed CONFIG settings. > + > + required: > + - fsl,pins > + > + additionalProperties: false > + > +required: > + - compatible > + - reg > + > +additionalProperties: false > + > +examples: > + # Pinmux controller node > + - | > + iomuxc: pinctrl@30330000 { > + compatible = "fsl,imx8mm-iomuxc"; > + reg = <0x30330000 0x10000>; > + > + pinctrl_uart2: uart2grp { > + fsl,pins = < > + 0x23C 0x4A4 0x4FC 0x0 0x0 0x140 Why we can't use the pinctrl defines like MX8MM_IOMUXC_UART1_RXD_UART1_DCE_RX anymore? Regards, Marco > + 0x240 0x4A8 0x000 0x0 0x0 0x140 > + >; > + }; > + }; > + > +... > -- > 2.7.4 > > > -- Pengutronix e.K. | | Steuerwalder Str. 21 | http://www.pengutronix.de/ | 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |