Received: by 2002:a25:31c3:0:0:0:0:0 with SMTP id x186csp2228044ybx; Fri, 8 Nov 2019 01:43:42 -0800 (PST) X-Google-Smtp-Source: APXvYqyI1d28gI5sfCuJJjaufs6aOS6YVlENvtnlePuYruZnQsQl4kDgXPyaacTDiKgyqVHAuNqP X-Received: by 2002:a50:8a88:: with SMTP id j8mr9387173edj.35.1573206222594; Fri, 08 Nov 2019 01:43:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1573206222; cv=none; d=google.com; s=arc-20160816; b=gWAZmF/M2B/nuDheOaARR1JrzQouCPb1cTHm3HULiQDd5aHOzmpYuKxVyXh/ByImwL xrq/CayaXyRjznLmJa24goBULH9+eYIwwpIdgAB24/2ofknjEuosOqNJMjjEDTDG9oyh p0FiIN1I/2lM4TeRx4dgiJoOvhHiheYIh3rzPiZcaAuAsXA2OpeMZQGcum7U2sqQxGYM QB5ylVN6S4ZLzCUQG9MXMnA3TBZ3Mzxyy5ksEaIpPzkLIbsnVdNpCbUXK7NH2NRD/fAK ZExRPn3BsOht67UsD5kSQ3xAOs+LQJvhrpBdyxVO9L+fFuxR0cbsB1KUux4BAHF6PisS 97qQ== 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=+JlHrAmgkJ11DZiY/Tvh8/hc1w+dY9EsUAjXgQP6b5Q=; b=o5PDbO3XlwpRfOJrlGlydEyoaXYduaEl5S0oBVmxd9yHvFUpPxCGzKtVMU0kdyfjEr GjV7G5VPAFV6V9nrRCUpI+z0b+HI+vKeK62NbIUbY8O1zbDZtvTuUYL2pMlHivfT2Bnr GNJB4WGphh9r+TyEccWGHlOOzCQXM7JB4eA7Si3Sj7r/YrSWOan7INntOprUiyBlBQgh U1thLiXjKs/KAoN1+HvORLUr6Moa1qBIcsFSD8mtcmissONktSSN3Z7lbTjPUySe5IHe L3eLRy/9/wdvTxKNe2ocMsHbwN9S3Blec65lbnShS8wyB+4vf47BO+oebMaiJHp89FYT HHmA== 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 h16si3391722ejq.200.2019.11.08.01.43.18; Fri, 08 Nov 2019 01:43:42 -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 S1731476AbfKHJmj (ORCPT + 99 others); Fri, 8 Nov 2019 04:42:39 -0500 Received: from mga05.intel.com ([192.55.52.43]:10456 "EHLO mga05.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731411AbfKHJmi (ORCPT ); Fri, 8 Nov 2019 04:42:38 -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 fmsmga105.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 08 Nov 2019 01:42:38 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.68,281,1569308400"; d="scan'208";a="354053281" Received: from sgsxdev001.isng.intel.com (HELO localhost) ([10.226.88.11]) by orsmga004.jf.intel.com with ESMTP; 08 Nov 2019 01:42:35 -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 v5 2/2] dt-bindings: pinctrl: intel: Add for new SoC Date: Fri, 8 Nov 2019 17:42:23 +0800 Message-Id: <5e0396e0e95e042b968b70b8c1f66d6432981ce4.1573196057.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 | 104 +++++++++++++++++++++ 1 file changed, 104 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..64edd3115131 --- /dev/null +++ b/Documentation/devicetree/bindings/pinctrl/intel,lgm-pinctrl.yaml @@ -0,0 +1,104 @@ +# 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" + - enum: + - 0 #PINMUX_GPIO + - 1 + - 2 + - 3 + - 4 + + 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