Received: by 2002:a25:31c3:0:0:0:0:0 with SMTP id x186csp598446ybx; Wed, 6 Nov 2019 23:38:40 -0800 (PST) X-Google-Smtp-Source: APXvYqyirT5xNU+2IL19hfQQRfFaWIC+qecOOfe05iVL5Qajss9dkGtdNQrzA8zujTsN6xdLPHSa X-Received: by 2002:a17:906:6094:: with SMTP id t20mr1682089ejj.316.1573112320747; Wed, 06 Nov 2019 23:38:40 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1573112320; cv=none; d=google.com; s=arc-20160816; b=cfemlFq05/yKwNeUP/CZc3c5l0c1s5UYrt7PcpDKauqgUNtzFvpwQ8ojOHiX+JjvHY 7UzFXjp+dfIfRAONTe4XdkJ+Y6V1UH/wTbBHnA4C1cSEOWnvZnIKaxrWUpq9I2uf9Zkb vdKFOHUf/8lgUNM6rIcUwgCOnwWzJlhC+e+Qx8fZTL5lwVg+hSpvK3rakJJgivrpBCfe CpgLpbkOVN8WhXlPjBpBlRxrHpMQd+BBe20hPHz1RMcEKjg9zrqN7HEE8Ee6C643wt6y vGQ7sgD3n0RVPy4E2M7CRxf5BAcPXTltit8XyLndWeHaJkxwriL/LEYV3ww74kTWCJRw HxbA== 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=997Z6mrMgGSW9FpIZZGbQlIY5VMc1BNAwzeX/ThxZLQ=; b=KV56zFg9ZX1BKqRcoghBtRRw5K0DrKp9jFN/kxZcyRkBEm824QZNbLaEDGqUft3ps5 62tkOBUFGtnQrGyu43AQQogAS1xHeBLNNMgYdmD9CPkUeV6u6D0eY/5jgC8ZfhxIFvV6 dzYR/pVBQ53INkKcUtzAIQ5S4y4Py7GyGDIHCChlAXjVmtnLTBePTylsQ83D+IVI0OqO Dzy4+7CWIu1zBaCqQCKKQbW09sjZFB+BiJHvxpeXLBe+f5bF68YHsp+NAiNZ+iJUWzhc MYqzcf7b7vHrHTRy6U1de6h/Di4xHqmYOlA4YUCXFEa0IvpA57BF7h6y5LHIZv4Ey31w jLOQ== 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 x17si857923ejs.178.2019.11.06.23.38.17; Wed, 06 Nov 2019 23:38:40 -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 S1727480AbfKGHhB (ORCPT + 99 others); Thu, 7 Nov 2019 02:37:01 -0500 Received: from mga01.intel.com ([192.55.52.88]:5185 "EHLO mga01.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726571AbfKGHhA (ORCPT ); Thu, 7 Nov 2019 02:37:00 -0500 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga001.jf.intel.com ([10.7.209.18]) by fmsmga101.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 06 Nov 2019 23:37:00 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.68,277,1569308400"; d="scan'208";a="285920100" Received: from sgsxdev001.isng.intel.com (HELO localhost) ([10.226.88.11]) by orsmga001.jf.intel.com with ESMTP; 06 Nov 2019 23:36:57 -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 v4 2/2] dt-bindings: pinctrl: intel: Add for new SoC Date: Thu, 7 Nov 2019 15:36:45 +0800 Message-Id: <778f21b09fabd2fdafeeeb325b35df35ab222690.1573111648.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..73e456ee0fc7 --- /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" + - 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