Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp21927095ybl; Mon, 6 Jan 2020 14:16:47 -0800 (PST) X-Google-Smtp-Source: APXvYqxqhDD2De8Ewft+ef4mK6RtY2t3eHx7f8HEknpJVtJzqSZTqPa96JKPyYFJ2xQajSl/MTUh X-Received: by 2002:a9d:7:: with SMTP id 7mr111392852ota.26.1578349007689; Mon, 06 Jan 2020 14:16:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1578349007; cv=none; d=google.com; s=arc-20160816; b=HDSxTaKgci6tQOaNoB3ywJybDHzuMFDnxepprphLC5JdnkexBVsRsQ2axyYJC6rCos C1Oe/LdNmIHJQmKfBQMCTPTqPwswHBbBtOfLMrWz4Dsuf4E6unRz6pxnS/ebjX1VFytM wuk7kQTmBcEndOXymllrMGiEJF+uk4IeAasMYqEXAt7M0r+4zTZ+qq6Qt1ZCxV4swfjK j0G9xOtNam7nFB4KmuRNvpSyUk8aRq6amRxoPWTjDl7lbOhiGoqBNKLNzmrplh+MBT3Q YmF3e6NAx8qzGq0oD/rwzcucZwjfub7/W9ECJmT3/VjsF9RD/r9no+wVymgt7ItYZi6I VEYg== 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=CLp8AWOq/ppcpPg4zoNMmXmjnqf4+B8gtYz+J6bqL0A=; b=NshzUOv8W7NGI7lXQtsBtdzKHCrbxyak8iXVOtRxTU6e2CN/mUULiUlAdCJ9L+w6su EPidjqZmZajTe4IOm2Vn153H1L37ds2ygAa77B1TTmW0JUtaF8xa+uosd3A7rasZRwvv RzfgZWCgoD0b2SaBZ/OiEQtgWGjrnTWwVZHTtqwIFZ51GgFk5dHCaUTzci5xnM51YhD7 3eQdDPIDh244X0UKLDeboZesWsqqSYMoH92kKxvts3NOFhOj++dHEzlwcUTHhBnOZzyC VJHkJ3ojLzggMhU+RkkQH/Paa3VTXLseWG8Cia4KD0plPFUFM3IlviddqGYPFb9Cj91k lPqQ== 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=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i20si29013888oie.119.2020.01.06.14.16.35; Mon, 06 Jan 2020 14:16:47 -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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727137AbgAFWPX (ORCPT + 99 others); Mon, 6 Jan 2020 17:15:23 -0500 Received: from mail-oi1-f196.google.com ([209.85.167.196]:44344 "EHLO mail-oi1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726695AbgAFWPW (ORCPT ); Mon, 6 Jan 2020 17:15:22 -0500 Received: by mail-oi1-f196.google.com with SMTP id d62so16955972oia.11 for ; Mon, 06 Jan 2020 14:15:22 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=CLp8AWOq/ppcpPg4zoNMmXmjnqf4+B8gtYz+J6bqL0A=; b=rizSxbZ2vSQf77Cm2NjLVnCzm55owTA73Ki18YMDdx/Pn3c27ot3mb6n9zEJaUoGqL N1omqFtohDOTJnA33PCY5ZK4EDWe/zTEmez9wMWd4Dtb0Oslco4vzics3S04NeW6Id4V tmBRfsJPB4br1fSCoCPqxs2SHkyj7NbSO2faAPRiV4IeoaoS12HQthrMDq5w3idZ0f9q ONgQ4vpgjVqXuOgFHyWZuuO+0DxkK+u3uwlh94KsD5iTivlsfAbguMZyE94AyKo1nWGe Ul/cV3W2PcESO3tZ6nQpOgftQdu4Qj95499uxH1BXPW7r0chn0TwZ4fXROBJhBBEbLIg KvXA== X-Gm-Message-State: APjAAAVPfggHKrrWIACnS8JBHTYkJOkDXWCWwjU/ZZxt7nscXbPk80wp xiV5V1gb0T65XaiaOG9Z2qyu54I= X-Received: by 2002:aca:5745:: with SMTP id l66mr6764185oib.3.1578348921355; Mon, 06 Jan 2020 14:15:21 -0800 (PST) Received: from rob-hp-laptop (ip-70-5-121-225.ftwttx.spcsdns.net. [70.5.121.225]) by smtp.gmail.com with ESMTPSA id i6sm19114676oie.12.2020.01.06.14.15.20 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 06 Jan 2020 14:15:21 -0800 (PST) Received: from rob (uid 1000) (envelope-from rob@rob-hp-laptop) id 22043f by rob-hp-laptop (DragonFly Mail Agent v0.11); Mon, 06 Jan 2020 16:12:46 -0600 Date: Mon, 6 Jan 2020 16:12:46 -0600 From: Rob Herring To: Anson Huang Cc: aisheng.dong@nxp.com, festevam@gmail.com, shawnguo@kernel.org, stefan@agner.ch, kernel@pengutronix.de, linus.walleij@linaro.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, Linux-imx@nxp.com Subject: Re: [PATCH V3 1/3] dt-bindings: imx: Add pinctrl binding doc for i.MX8MP Message-ID: <20200106221246.GA17055@bogus> References: <1578302992-5723-1-git-send-email-Anson.Huang@nxp.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1578302992-5723-1-git-send-email-Anson.Huang@nxp.com> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jan 06, 2020 at 05:29:50PM +0800, Anson Huang wrote: > Add binding doc for i.MX8MP pinctrl driver. > > Signed-off-by: Anson Huang > Reviewed-by: Abel Vesa > --- > Changes since V2: > - use DT schema instead of txt for binding doc. > --- > .../bindings/pinctrl/fsl,imx8mp-pinctrl.yaml | 65 ++ > arch/arm64/boot/dts/freescale/imx8mp-pinfunc.h | 931 +++++++++++++++++++++ > 2 files changed, 996 insertions(+) > create mode 100644 Documentation/devicetree/bindings/pinctrl/fsl,imx8mp-pinctrl.yaml > create mode 100644 arch/arm64/boot/dts/freescale/imx8mp-pinfunc.h > > 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..cdb6c21 > --- /dev/null > +++ b/Documentation/devicetree/bindings/pinctrl/fsl,imx8mp-pinctrl.yaml > @@ -0,0 +1,65 @@ > +# 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 > + > +# 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: > + $ref: /schemas/types.yaml#/definitions/string string or... > + description: > + each entry consists of 6 integers and represents the mux and config integers? > + 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 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 = < > + MX8MP_IOMUXC_UART2_RXD__UART2_DCE_RX 0x49 > + MX8MP_IOMUXC_UART2_TXD__UART2_DCE_TX 0x49 Run 'make dt_binding_check'. Doesn't build: Error: Documentation/devicetree/bindings/pinctrl/fsl,imx8mp-pinctrl.example.dts:23.21-22 syntax error FATAL ERROR: Unable to parse input tree > + >; > + }; > + }; > + > +...