Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp922020ybc; Tue, 12 Nov 2019 11:17:13 -0800 (PST) X-Google-Smtp-Source: APXvYqy2pQOinPw3bxPefnheQWhiXdDR44OA4Dsw1AMvdhiQ6yo3Hx1Rn5giZ4wGamum4IDAjNuD X-Received: by 2002:a17:906:2e81:: with SMTP id o1mr29789654eji.284.1573586233585; Tue, 12 Nov 2019 11:17:13 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1573586233; cv=none; d=google.com; s=arc-20160816; b=mmBEvbyeojlNK5RIxOIDsGduRz6bsmkWD173ICAQiWX5kwrEbJaV+Ege7SDe/oEgEO zA0QkaF8mr4CdVkxd76/edMf1dzNwkvq9yZuJp/gofKEN6oobA7xZrf256rCm8haXVIF ZXEo2cI9QR2YJJw34SdQIngJvshgSgJZq765/auRrKo4PqOiyGFf56sfqSdioMy/c/l8 7kcWc4WFhp9DPklUjxHzc1LA5PrDonc8zIynbOkScL3ucez4BEG67kV0eA+/hvuSjHaW 6mjS2gOoU7kEVaejcwH8dasBI7mQ+NVVEw3vOGxZeiM1+K7isERY048m3O5S74OvLu+6 bJdQ== 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=4jNoA6cFjcLd8Z53yLVk6YcAHFrtV5MHTUw6k4vZhTQ=; b=08iC3AJpQMjuEE93zHT2mckRgySEkvC9avKSLVQASVuLJkozrJXrjPCn08+NxCLtwa AOOmNTsxt1CTXkzUGbHACU0GgmX41uhogvBsys22IspabOkq6veegts8vgzu10/jRkgF Fw0I0gocQea5iszb79STlNHmFcQwnKW913KVJ/NyJHKPkalaT0je1/22EBKXZ7CkQE8V UDMCi74wbsbNXdOFPVDNmmUpoakmOw9IwpgtWk0se4K9z3tLoUR2ZLmWoNcKv4EoiuDW nPnQSRq731k8zlVWHJRKsUf7rFGah1NfqFltqU8LyRY2ZDX39N6azO5gCQbH+se7M5nb qixw== 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 d12si111182edy.39.2019.11.12.11.16.48; Tue, 12 Nov 2019 11:17: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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727161AbfKLTOf (ORCPT + 99 others); Tue, 12 Nov 2019 14:14:35 -0500 Received: from mail-oi1-f196.google.com ([209.85.167.196]:47095 "EHLO mail-oi1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727015AbfKLTOe (ORCPT ); Tue, 12 Nov 2019 14:14:34 -0500 Received: by mail-oi1-f196.google.com with SMTP id n14so15825197oie.13; Tue, 12 Nov 2019 11:14:34 -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=4jNoA6cFjcLd8Z53yLVk6YcAHFrtV5MHTUw6k4vZhTQ=; b=eR89vEMmT330rIDoOjp6whfp51Oj9kJQvJ7AZ6gZYKthgVsIWOdNjr6D32P+cy0J3g aeqv4SZAZMEK1tq1K8iySvdoVTNWpfVWZcdP32XH1NSAjYUGBExCx2fM7x7TeVPGCcZi GSzmcZicjFrDNEeN9SmLU0kaC7fLVu1yYEfxNp1S6XZYr8wPRZdKSlJ1G6KXaa0CjboY kRVEB/Il2v7W/LAikpqPXEWh6R+c0BFOPDuToItWGW7jyobMbX9Q4SL62uibsZeioc/2 ADzamYCVY7XdAKKxFegdj6jMu954B7F5xOlwSgD2S0vrjYim5Ql3NcYcNZ61Thhe/1xt u98w== X-Gm-Message-State: APjAAAXsxIzxDGyYt24koCDRzjbjEmzpT8H6pQ6AAMzKQGctNDciMCcl T5zKh4funy+hPoOq8YNcgQ== X-Received: by 2002:aca:6706:: with SMTP id z6mr428142oix.89.1573586073728; Tue, 12 Nov 2019 11:14:33 -0800 (PST) Received: from localhost (24-155-109-49.dyn.grandenetworks.net. [24.155.109.49]) by smtp.gmail.com with ESMTPSA id q3sm6190895oti.49.2019.11.12.11.14.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Nov 2019 11:14:33 -0800 (PST) Date: Tue, 12 Nov 2019 13:14:32 -0600 From: Rob Herring To: Rahul Tanwar Cc: linus.walleij@linaro.org, mark.rutland@arm.com, linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, andriy.shevchenko@intel.com, qi-ming.wu@intel.com, yixin.zhu@linux.intel.com, cheol.yong.kim@intel.com Subject: Re: [PATCH v6 2/2] dt-bindings: pinctrl: intel: Add for new SoC Message-ID: <20191112191432.GA19579@bogus> References: <96537f8702501a45501d5a59ca029f92e36a9e4a.1573455324.git.rahul.tanwar@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <96537f8702501a45501d5a59ca029f92e36a9e4a.1573455324.git.rahul.tanwar@linux.intel.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, Nov 11, 2019 at 06:11:30PM +0800, Rahul Tanwar wrote: > Add dt bindings document for pinmux & GPIO controller driver of > Intel Lightning Mountain SoC. > > Signed-off-by: Rahul Tanwar > --- > .../bindings/pinctrl/intel,lgm-pinctrl.yaml | 98 ++++++++++++++++++++++ > 1 file changed, 98 insertions(+) > create mode 100644 Documentation/devicetree/bindings/pinctrl/intel,lgm-pinctrl.yaml > > diff --git a/Documentation/devicetree/bindings/pinctrl/intel,lgm-pinctrl.yaml b/Documentation/devicetree/bindings/pinctrl/intel,lgm-pinctrl.yaml > new file mode 100644 > index 000000000000..d54a3bda1f4f > --- /dev/null > +++ b/Documentation/devicetree/bindings/pinctrl/intel,lgm-pinctrl.yaml > @@ -0,0 +1,98 @@ > +# SPDX-License-Identifier: GPL-2.0-only For new bindings: # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) > +%YAML 1.2 > +--- > +$id: http://devicetree.org/schemas/bindings/pinctrl/intel,lgm-pinctrl.yaml# > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: Intel Lightning Mountain SoC pinmux & GPIO controller binding > + > +maintainers: > + - Rahul Tanwar > + > +description: | > + Pinmux & GPIO controller controls pin multiplexing & configuration including > + GPIO function selection & GPIO attributes configuration. > + > + Please refer to [1] for details of the common pinctrl bindings used by the > + client devices. > + > + [1] Documentation/devicetree/bindings/pinctrl/pinctrl-bindings.txt > + > +properties: > + compatible: > + const: intel,lgm-pinctrl > + > + reg: > + maxItems: 1 > + > +# Client device subnode's properties > +patternProperties: > + '-pins$': > + type: object > + description: > + Pinctrl node's client devices use subnodes for desired pin configuration. > + Client device subnodes use below standard properties. > + > + properties: > + function: > + $ref: /schemas/types.yaml#/definitions/string > + description: > + A string containing the name of the function to mux to the group. Possible strings should be listed out here. > + > + groups: > + $ref: /schemas/types.yaml#/definitions/string-array > + description: > + An array of strings identifying the list of groups. Possible strings should be listed out here. > + > + pins: > + $ref: /schemas/types.yaml#/definitions/uint32-array > + description: > + List of pins to select with this function. > + > + pinmux: > + description: The applicable mux group. > + allOf: > + - $ref: "/schemas/types.yaml#/definitions/uint32-array" > + > + bias-pull-up: > + type: boolean > + bias-pull-down: > + type: boolean > + drive-strength: > + type: boolean Not a boolean. Need to define possible values. > + slew-rate: > + type: boolean Not a boolean. Need to define possible values. > + drive-open-drain: > + type: boolean > + output-enable: > + type: boolean > + > + required: > + - function > + - groups For the -pins nodes too: additionalProperties: false > + > +required: > + - compatible > + - reg > + > +additionalProperties: false > + > +examples: > + # Pinmux controller node > + - | > + pinctrl: pinctrl@e2880000 { > + compatible = "intel,lgm-pinctrl"; > + reg = <0xe2880000 0x100000>; > + > + # Client device subnode > + uart0-pins: uart0 { This fails 'make dt_binding_check'. Please fix and run that. > + pins = <64>, /* UART_RX0 */ > + <65>; /* UART_TX0 */ > + function = "CONSOLE_UART0"; > + pinmux = <1>, > + <1>; > + groups = "CONSOLE_UART0"; > + }; > + }; > + > +... > -- > 2.11.0 >