Received: by 2002:a25:31c3:0:0:0:0:0 with SMTP id x186csp6004903ybx; Mon, 11 Nov 2019 02:15:04 -0800 (PST) X-Google-Smtp-Source: APXvYqyvjke3jGFiJLTvHndhg0POaTFtsBDt88ee0ffgyftrpk+EFACRewe6+X8f7DyYzMBYj3km X-Received: by 2002:a17:906:f209:: with SMTP id gt9mr21572359ejb.241.1573467304706; Mon, 11 Nov 2019 02:15:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1573467304; cv=none; d=google.com; s=arc-20160816; b=tuU/sJ+erpH0lUsDCogYPp28KlKWk+1obtMoXloVmt21HeAsfo7OI8IjrCs+j+ufSg e0SAMbxOhi1ozTDpRo9u4dvJYcN3I/Oo375GZArM5bsK8i814aMS0F0Vy+w4tFpKXYJd j10s5MtAauHfggZdFTQhBYyNd4Df9UwP91phXMUj43D7slLUnAikZRSid7raMmST3ISy LDK5xk3dCSZQxxe32RLD5JntStUMm+mruNUCXVCRlwEBHMGKfJ6ZuAWurGqJixzPUzsn sX5SaL1BlEtx+xYW/fia9o3DtAMdoiezn627YK1KQavUZwY6Q9Tay8v5Mq/cR+UWdtxI yMLQ== 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:references :in-reply-to:message-id:date:subject:cc:to:from; bh=KWqloXYYmX5PB6nq1l/f2ETN5gT8oXaGZmLKy6S9uKc=; b=nDjIXHQvkkwnzQtJzLWAsYknzsLedGoRI6ohHsSl+yWIiZToZennGhCTmnfyjtJyrj jdI0QKZj27uBYGCCvZoP5BvDNpH6Xf/7BvjV2YwpEUbPlKyZJc9PuLfYDo8HQBJHMwFF +EuzkhCbMBVQf4dqQE7LhXpyQ/qAOYT6pNIdzPppali0djiiXIDi3h5MreU/jRAm4fiE 3cPo5PnPDMI2moSRh8RecPIkUxdiKA1ZWySfX1GYKK8/OLhWecAlJOhImTb3DwLld+Nc yfNOuhLy+onWRfDXq+RY600fq3gBy+t4ewLgEXkposCppJDrPUdFkEsVjFIed7q3hCRs ET9Q== 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=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id ci3si8939588ejb.37.2019.11.11.02.14.41; Mon, 11 Nov 2019 02:15:04 -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=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727054AbfKKKLo (ORCPT + 99 others); Mon, 11 Nov 2019 05:11:44 -0500 Received: from mga02.intel.com ([134.134.136.20]:32506 "EHLO mga02.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726791AbfKKKLn (ORCPT ); Mon, 11 Nov 2019 05:11:43 -0500 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga004.jf.intel.com ([10.7.209.38]) by orsmga101.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 11 Nov 2019 02:11:43 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.68,292,1569308400"; d="scan'208";a="354734522" Received: from sgsxdev001.isng.intel.com (HELO localhost) ([10.226.88.11]) by orsmga004.jf.intel.com with ESMTP; 11 Nov 2019 02:11:40 -0800 From: Rahul Tanwar To: linus.walleij@linaro.org, robh+dt@kernel.org, mark.rutland@arm.com Cc: linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, robh@kernel.org, andriy.shevchenko@intel.com, qi-ming.wu@intel.com, yixin.zhu@linux.intel.com, cheol.yong.kim@intel.com, Rahul Tanwar Subject: [PATCH v6 2/2] dt-bindings: pinctrl: intel: Add for new SoC Date: Mon, 11 Nov 2019 18:11:30 +0800 Message-Id: <96537f8702501a45501d5a59ca029f92e36a9e4a.1573455324.git.rahul.tanwar@linux.intel.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: References: In-Reply-To: References: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 +%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. + + groups: + $ref: /schemas/types.yaml#/definitions/string-array + description: + An array of strings identifying the list of groups. + + 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 + slew-rate: + type: boolean + drive-open-drain: + type: boolean + output-enable: + type: boolean + + required: + - function + - groups + +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 { + pins = <64>, /* UART_RX0 */ + <65>; /* UART_TX0 */ + function = "CONSOLE_UART0"; + pinmux = <1>, + <1>; + groups = "CONSOLE_UART0"; + }; + }; + +... -- 2.11.0