Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp3476226ybl; Sun, 12 Jan 2020 19:12:01 -0800 (PST) X-Google-Smtp-Source: APXvYqwgLL2O8xNZYyfRqnB8ICjFKNfx/kCF1yu9eH3aqN+lD2OjUatN7MgyFKx5Vg/EOWeZt2Ln X-Received: by 2002:a9d:7d99:: with SMTP id j25mr1953438otn.226.1578885121338; Sun, 12 Jan 2020 19:12:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1578885121; cv=none; d=google.com; s=arc-20160816; b=OxT+DS0QpSpj1tkHRw05rLrBbOg+9acWJyhorXLdK+kDEHv6PPUj4a4LVLI8SRAiTE CowTH9XLYQsllIaBEkMTCV5qQ5qiWLAKtizNjwRdZO8r8O8QbOrBpfQLTp4aYjW9cX3h qDvDNzEQsmewOu8Nlk1s3cAzTsHbaVyBkYWA013bSBX6ek9F/SuSkaMf8SAWPNrpALDD ImoWPZvat+xmrC7EYBtVEQmCKCn5fv7ANZhEQK0m70Cb9b8hxvsHHzCsSrSLMdCrXX/W p0cEwbON8J/FBiae1M9uZiq3E4vUq9tg08gm0q7AwxAeyFcMm8F09kms4KzmB8Sk08uU ZiYw== 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=sHdmxtjFpxqUhQx5BP9ZcJv6ya0qLGuBkmExed3gGnQ=; b=P9YSIj2niBLg2lftQGgoMxatUQ5oykazpzS6okGqJURPdqDjSACw/xVf770C1tFLzW 17IPJvwq476OmdExmmPdxEgTXkWbOGKOqretuLciL+QCRUJP8dFFQm2fnKaszmvKGe7P WayEvcHdZB+lfNjhCFNTV7q+9eDIewfCpYk1/mGiMBzmEDedLKLBKawbk/azToqRvRHj K+DNxDD2rD65UFPd4UjFIeW5Q1HnndD5UMImdeInBuOAy6A57vzCj8nbxYtFSYzu+1Y/ nKJ3fBo34smA8I5dVXbOpHIUHubr2PzO79Gmz0Xro6GYXM1gPPwQz/gIWEEHrJzThYT6 ru7Q== 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 b20si6125069otf.199.2020.01.12.19.11.49; Sun, 12 Jan 2020 19:12:01 -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 S1733144AbgAMDKX (ORCPT + 99 others); Sun, 12 Jan 2020 22:10:23 -0500 Received: from inva021.nxp.com ([92.121.34.21]:44330 "EHLO inva021.nxp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732869AbgAMDKX (ORCPT ); Sun, 12 Jan 2020 22:10:23 -0500 Received: from inva021.nxp.com (localhost [127.0.0.1]) by inva021.eu-rdc02.nxp.com (Postfix) with ESMTP id 8E65B200EF3; Mon, 13 Jan 2020 04:10:20 +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 D7F18200785; Mon, 13 Jan 2020 04:10:11 +0100 (CET) Received: from localhost.localdomain (shlinux2.ap.freescale.net [10.192.224.44]) by invc005.ap-rdc01.nxp.com (Postfix) with ESMTP id D2677402AE; Mon, 13 Jan 2020 11:09:59 +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, bjorn.andersson@linaro.org, maxime@cerno.tech, olof@lixom.net, dinguyen@kernel.org, leonard.crestez@nxp.com, 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 V8 1/3] dt-bindings: imx: Add pinctrl binding doc for i.MX8MP Date: Mon, 13 Jan 2020 11:06:03 +0800 Message-Id: <1578884765-29907-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 V7: - move the header file to be part of DT patch series. --- .../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..c44b54c --- /dev/null +++ b/Documentation/devicetree/bindings/pinctrl/fsl,imx8mp-pinctrl.yaml @@ -0,0 +1,69 @@ +# SPDX-License-Identifier: GPL-2.0-or-later +%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