Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp5918459ybl; Tue, 14 Jan 2020 17:44:34 -0800 (PST) X-Google-Smtp-Source: APXvYqz+1rrbroiPsiXX/uP8wY2SetP1ysZcER1VBMjH+3+foXvEPVh0VeMYvQGBki7m/Hk0/xWq X-Received: by 2002:a9d:7593:: with SMTP id s19mr986603otk.219.1579052674203; Tue, 14 Jan 2020 17:44:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1579052674; cv=none; d=google.com; s=arc-20160816; b=eqikBvPdgJQ54E/bBwHGZggativnxBY2sr2UtpDtYtNMEkrX1DFdUAuMo5yWiW9ovL PA2yVFUHK7PGCkj1pvWwnxVDA+65Y+aIAJu1svoqdvSTnOFmnvE2XQjaeKgjC4atWjHL ZixMQCUnfARAAK75/AYWfHnHLfyawFksIjINywGF1YI+E9ZTH2R94yGYUkMT+Bflcnyy EZUvT3BxSPbRIRAq6mcFo0sYCqKxvByigm0jIJJPRdLpBBrOCyTsWVHgGDe8Vv/nRCA1 x6KYud8gtjOUmAS6daGD+MtDumfDdxy9/QfRL9zOpBWFVoEh3jMYL8oFyM6dWczckiTy 0IPw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from; bh=kvl1TkyE5W1Klxk+c/jnMn8snIVGPpjGSstbXV+5IB4=; b=Oz5xqVx0DZpVAyrvdrtvoPhCoDKtTaXxXAeW2/fT5xN7UHW8K6aQzHJx9ZIaRn0Hf8 6pB8qSpUhtNs4uje3lZVMApNdqA544hFXNC/ErLR1g99FpFn0AZa5ydbUzUesdAwaQoe Gm8w7Cb3uz2VZ5JwjcjB30tXBy6INFxb/GaWfAdvawPU6Jys3d7UXfz5lpmvyRmK8et2 ELVUGAoGBWbgEJ/HH5Z8RUrQot63+mi/B/KbbAqUWmCl91v/8YfAWL02WNYBfzKwQ8iY iEttIyCXLuUcI9YKZ3k+ByDaYgA8TYxLLHGy/Vshpl1ITlbX01dKh7zr2A0YUgIfwDhs 6ewg== 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 m20si10206240otk.279.2020.01.14.17.44.22; Tue, 14 Jan 2020 17:44:34 -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 S1728896AbgAOBnc (ORCPT + 99 others); Tue, 14 Jan 2020 20:43:32 -0500 Received: from inva020.nxp.com ([92.121.34.13]:55416 "EHLO inva020.nxp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728844AbgAOBnb (ORCPT ); Tue, 14 Jan 2020 20:43:31 -0500 Received: from inva020.nxp.com (localhost [127.0.0.1]) by inva020.eu-rdc02.nxp.com (Postfix) with ESMTP id F238E1A0563; Wed, 15 Jan 2020 02:43:28 +0100 (CET) Received: from invc005.ap-rdc01.nxp.com (invc005.ap-rdc01.nxp.com [165.114.16.14]) by inva020.eu-rdc02.nxp.com (Postfix) with ESMTP id E69071A145E; Wed, 15 Jan 2020 02:43:19 +0100 (CET) Received: from localhost.localdomain (shlinux2.ap.freescale.net [10.192.224.44]) by invc005.ap-rdc01.nxp.com (Postfix) with ESMTP id 13ADE40285; Wed, 15 Jan 2020 09:43:09 +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, catalin.marinas@arm.com, will@kernel.org, abel.vesa@nxp.com, bjorn.andersson@linaro.org, olof@lixom.net, maxime@cerno.tech, leonard.crestez@nxp.com, dinguyen@kernel.org, marcin.juszkiewicz@linaro.org, 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 V9 1/3] dt-bindings: imx: Add pinctrl binding doc for i.MX8MP Date: Wed, 15 Jan 2020 09:39:06 +0800 Message-Id: <1579052348-32167-1-git-send-email-Anson.Huang@nxp.com> X-Mailer: git-send-email 2.7.4 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 Add binding doc for i.MX8MP pinctrl driver. Signed-off-by: Anson Huang Reviewed-by: Abel Vesa Reviewed-by: Rob Herring --- Changes since V8: - the lisence should be GPL-2.0 --- .../bindings/pinctrl/fsl,imx8mp-pinctrl.yaml | 69 ++++++++++++++++++++++ 1 file changed, 69 insertions(+) create mode 100644 Documentation/devicetree/bindings/pinctrl/fsl,imx8mp-pinctrl.yaml diff --git a/Documentation/devicetree/bindings/pinctrl/fsl,imx8mp-pinctrl.yaml b/Documentation/devicetree/bindings/pinctrl/fsl,imx8mp-pinctrl.yaml new file mode 100644 index 0000000..2e31e12 --- /dev/null +++ b/Documentation/devicetree/bindings/pinctrl/fsl,imx8mp-pinctrl.yaml @@ -0,0 +1,69 @@ +# SPDX-License-Identifier: GPL-2.0 +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/pinctrl/fsl,imx8mp-pinctrl.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Freescale IMX8MP 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,imx8mp-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 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 Plus 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,imx8mp-iomuxc"; + reg = <0x30330000 0x10000>; + + pinctrl_uart2: uart2grp { + fsl,pins = < + 0x228 0x488 0x5F0 0x0 0x6 0x49 + 0x228 0x488 0x000 0x0 0x0 0x49 + >; + }; + }; + +... -- 2.7.4