Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp123253ybl; Thu, 9 Jan 2020 18:18:27 -0800 (PST) X-Google-Smtp-Source: APXvYqwJqqnDQXXY2d5f+esDH4WP8zj+nDFYd0QCStY6u+uv1aFTvHSHkzLlaWXVHGe24I3Xlupz X-Received: by 2002:aca:b1d4:: with SMTP id a203mr423364oif.150.1578622707771; Thu, 09 Jan 2020 18:18:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1578622707; cv=none; d=google.com; s=arc-20160816; b=J38UZSHuIAoMTkrQgo5GRJ20Cg9wtl614Yo0HVpWMOZ0yeub2DPoGzN7ULWIBx8luL ynA+EHCap4hb+fcZqXxw0z5+M8rwuo5hGkf+fYd8y8NLWA6QnIePiRi9PlYHRojOu8WS 6Wr6PXdZr1zjwKhQgyM2FOjHHFl+XYiy5ASiR/xuwa0m6fdJvIuD3DuhaCvUpKrncLPK naXefyV+W7l6PhSGPJPEnDam1P5sT/morIx1MaZRaX/pfF85OrTZl6cm6wVcwAw0UFKB fmdPugj7GuVqn/gUIr+u4KsyxlMkpZaXVJjPHfso4MUc6swtxiZHu6XrsLhd1zCkMxK3 TTsQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from; bh=wWN2c9mN2gxh3NWg+LPD0GGc6hO8iWmxJEDmgf1yUsU=; b=OLXEDvI+jYOk0eYSmRM8fP1wY9FGU+qYXFSDGIznwTaWQI0RYHcmVWTOFc+aLmFBVZ /ObJ3LRDKIkrzD7AVYVpBjmXul0KTkdTMykzpQEbT0biA6QzZvgVeZxVMa1eTYN38y5B EI/L7CP8Sw93Iqi2prIFkUvmw3ReIl+Qtlwa8aGHdvMBHlAR0VZu+WA3SxWIyXLoQo74 8z30AuUmAeSvimzTCht0b/a7v1DNpapYEjJgM7aBCifrB+HeXGBMKOtWjfU5dkBI5MXl WpluO6fSALaJSm4ybkdBk4Gj4BgZNeOZNhVInU7YinI9UTK48AE30LKyv2zwOERaaYDT 3seQ== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v14si299882oth.181.2020.01.09.18.18.13; Thu, 09 Jan 2020 18:18:27 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730803AbgAJCRO (ORCPT + 99 others); Thu, 9 Jan 2020 21:17:14 -0500 Received: from inva021.nxp.com ([92.121.34.21]:51490 "EHLO inva021.nxp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730756AbgAJCRO (ORCPT ); Thu, 9 Jan 2020 21:17:14 -0500 Received: from inva021.nxp.com (localhost [127.0.0.1]) by inva021.eu-rdc02.nxp.com (Postfix) with ESMTP id B3CDE20052E; Fri, 10 Jan 2020 03:17:11 +0100 (CET) Received: from invc005.ap-rdc01.nxp.com (invc005.ap-rdc01.nxp.com [165.114.16.14]) by inva021.eu-rdc02.nxp.com (Postfix) with ESMTP id A558D200525; Fri, 10 Jan 2020 03:17:04 +0100 (CET) Received: from localhost.localdomain (shlinux2.ap.freescale.net [10.192.224.44]) by invc005.ap-rdc01.nxp.com (Postfix) with ESMTP id E7E35402C1; Fri, 10 Jan 2020 10:16:55 +0800 (SGT) From: Anson Huang To: 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 Cc: Linux-imx@nxp.com Subject: [PATCH 2/3] dt-bindings: pinctrl: Convert i.MX8MM to json-schema Date: Fri, 10 Jan 2020 10:13:07 +0800 Message-Id: <1578622388-23370-2-git-send-email-Anson.Huang@nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1578622388-23370-1-git-send-email-Anson.Huang@nxp.com> References: <1578622388-23370-1-git-send-email-Anson.Huang@nxp.com> X-Virus-Scanned: ClamAV using ClamSMTP Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Convert the i.MX8MM pinctrl binding to DT schema format using json-schema Signed-off-by: Anson Huang --- .../bindings/pinctrl/fsl,imx8mm-pinctrl.txt | 36 ------------ .../bindings/pinctrl/fsl,imx8mm-pinctrl.yaml | 67 ++++++++++++++++++++++ 2 files changed, 67 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 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..2ef2fe3 --- /dev/null +++ b/Documentation/devicetree/bindings/pinctrl/fsl,imx8mm-pinctrl.yaml @@ -0,0 +1,67 @@ +# SPDX-License-Identifier: GPL-2.0-or-later +%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 + +# 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 + maxItems: 6 + description: + each entry consists of 6 integers and represents the mux and config + setting for one pin. The first 5 integers 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 + 0x240 0x4A8 0x000 0x0 0x0 0x140 + >; + }; + }; + +... -- 2.7.4