Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp1604693pxb; Thu, 4 Mar 2021 16:07:02 -0800 (PST) X-Google-Smtp-Source: ABdhPJxIQDCvLu06HAnHeEXwYgDQeck4tX0LtLVi0P2I0h+VDjV6q3qpAElAHMTbYuSu3XEvNQPS X-Received: by 2002:a05:6e02:20ee:: with SMTP id q14mr5757506ilv.259.1614902822073; Thu, 04 Mar 2021 16:07:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614902822; cv=none; d=google.com; s=arc-20160816; b=ZQ907SwPlOks7OesWIl2wlWMfD9yBR6kdY5l2yyNQmXcsU3qQecUe9jKXWnHRHE2zI zoecvS58pV1qVdZhq5X0Ob+xWIZtd2g9WYDi3UlQKof/1G9pcEbaJ6FsbZp2b/yskEru jGD+MW/QdBqS15ZGet4+2XKTL/b7ri2IVkf737mSyXLaZWic30bAEX/uvr5vq4oqhWjv aO8p9OOpLDgVIbo7QI+uJzKHecGer0eEY3nllO9A2j8WmGSxBTrjxweOslVC/FEuUyTk KR8npg2y+dVX6qJwVxAyo+qFmpecnZ2/tidsyusYcskz7QNPZ+Ndhc5Ith0BMqwzLZqf d4OA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:to:from :dkim-signature; bh=y4YeH0Nz5An81nmCpdBuGlzbp8MPE1s6v56bJHKkBrM=; b=PP94lkZT+77WybaH9+BVIDMf49ctrlFZZ59ktRajLbG8o4EYyvgg+VInsO0v5K4H5g L5shMpkJvLdLcnGmt1SNy3UVi0Hlw3EeBHwjEaMcKmZicdsct3DTvTxs416fqLFvhJI8 cVTYc9rW3U+aZZqt6Mh1eTwfuUy6lBeVdQhuimyTSyOza0hUciNklYIO46149bXhJ0S+ eIIpuwI+0ew8t5/juICpfmdXJA6QBYD87KDZhlF1KvguNSW6lpGD1KZY3/sUgT2kQR43 aB1K7A7dm+2uPl1jQSWGjULBOzOpvPABtVG+sS2AoDdgiBRvyXkF2KShnFwxdUCFw1rL LMSw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=NVYN7vhx; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id u11si909904jai.48.2021.03.04.16.06.49; Thu, 04 Mar 2021 16:07:02 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=NVYN7vhx; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237060AbhCDI6k (ORCPT + 99 others); Thu, 4 Mar 2021 03:58:40 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47920 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237042AbhCDI6g (ORCPT ); Thu, 4 Mar 2021 03:58:36 -0500 Received: from mail-wm1-x32e.google.com (mail-wm1-x32e.google.com [IPv6:2a00:1450:4864:20::32e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DA68BC061763; Thu, 4 Mar 2021 00:57:20 -0800 (PST) Received: by mail-wm1-x32e.google.com with SMTP id w7so7285066wmb.5; Thu, 04 Mar 2021 00:57:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:subject:date:message-id:in-reply-to:references:mime-version :content-transfer-encoding; bh=y4YeH0Nz5An81nmCpdBuGlzbp8MPE1s6v56bJHKkBrM=; b=NVYN7vhxcpxRoPXVhZNYBtPapHEpU5DGr7tGrLzTQLji1l0JMzcP0Jws4cov6eMB6Z kKlalk3oxzy+5wJEiukxp2I2Y9ocIxsL5iu1MMzvc72rdMcPNoZPuJIPs2CF6a4c9/2N aTboWZTwIl05nPlN+M/f9xakUeNkfn0dXrUE3roZZeQ/y2YO8K/S0pFS1sFPTb/X8g+h kodDtVUIWWra5eUxlPUKCAoz2ZvNMwv1wrL8q/GobX3lPXXIBg++J5hjVBXdOP24u96V gW9Wv0v6vYjNhp5J+ezScjgm+eyp87bfsJp8Joo0ZSC20XsMc2xhu+YqwF1i4/HhWVaI h6WQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=y4YeH0Nz5An81nmCpdBuGlzbp8MPE1s6v56bJHKkBrM=; b=pxOZTLivaJKsl7VSZKcCDsVlyUfJEF3azp/P3TUXWBN+OGkfsjxG5skxikUbxH77+F MX8nPCG8OOMBz120Ps+Gfzt4g+CzCCHjsUOAvn59zx7GdcrvWLLdqu3ZtIt8K7DfF0vC bbeNqJD4Ie3q1TmzykUrG5BptHYYgs0L7AsXkjRCKkPCXedLLRbYSqaIoAghrCUzWH5l M+dpVYAGsFDJlCiDLI2GBJ6nc0ilda65v4CZ459mdihz/Jcy6kaUD6nmvlr+YUAd8k3b hPt/ebkjGa6xXRLPjr77293q/kogsdxV7NUuNk3BLK9LBhOiFW/GjL9xvayEjxSrSxK7 eyfQ== X-Gm-Message-State: AOAM531aGTbHn8R7Y+iIFhl45i91MG3Z/fvHFv9Y5qqLObJeUTzCripH g0knfRAzgTGghne80ENFdcQ= X-Received: by 2002:a7b:cb98:: with SMTP id m24mr2720059wmi.15.1614848239568; Thu, 04 Mar 2021 00:57:19 -0800 (PST) Received: from skynet.lan (170.red-88-1-105.dynamicip.rima-tde.net. [88.1.105.170]) by smtp.gmail.com with ESMTPSA id q15sm2828976wrx.56.2021.03.04.00.57.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 04 Mar 2021 00:57:19 -0800 (PST) From: =?UTF-8?q?=C3=81lvaro=20Fern=C3=A1ndez=20Rojas?= To: Linus Walleij , Rob Herring , Michael Walle , Bartosz Golaszewski , Florian Fainelli , bcm-kernel-feedback-list@broadcom.com, =?UTF-8?q?=C3=81lvaro=20Fern=C3=A1ndez=20Rojas?= , Jonas Gorski , Necip Fazil Yildiran , Andy Shevchenko , linux-gpio@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH v4 06/15] Documentation: add BCM6358 pincontroller binding documentation Date: Thu, 4 Mar 2021 09:57:01 +0100 Message-Id: <20210304085710.7128-7-noltari@gmail.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20210304085710.7128-1-noltari@gmail.com> References: <20210304085710.7128-1-noltari@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add binding documentation for the pincontrol core found in BCM6358 SoCs. Signed-off-by: Álvaro Fernández Rojas Signed-off-by: Jonas Gorski --- v4: no changes v3: add new gpio node v2: remove interrupts .../pinctrl/brcm,bcm6358-pinctrl.yaml | 137 ++++++++++++++++++ 1 file changed, 137 insertions(+) create mode 100644 Documentation/devicetree/bindings/pinctrl/brcm,bcm6358-pinctrl.yaml diff --git a/Documentation/devicetree/bindings/pinctrl/brcm,bcm6358-pinctrl.yaml b/Documentation/devicetree/bindings/pinctrl/brcm,bcm6358-pinctrl.yaml new file mode 100644 index 000000000000..eb14dd4cdaaa --- /dev/null +++ b/Documentation/devicetree/bindings/pinctrl/brcm,bcm6358-pinctrl.yaml @@ -0,0 +1,137 @@ +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/pinctrl/brcm,bcm6358-pinctrl.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Broadcom BCM6358 pin controller + +maintainers: + - Álvaro Fernández Rojas + - Jonas Gorski + +description: |+ + The pin controller node should be the child of a syscon node. + + Refer to the the bindings described in + Documentation/devicetree/bindings/mfd/syscon.yaml + +properties: + compatible: + const: brcm,bcm6358-pinctrl + +patternProperties: + '^gpio$': + type: object + properties: + compatible: + const: brcm,bcm6358-gpio + + data: + $ref: /schemas/types.yaml#/definitions/uint32 + description: | + Offset in the register map for the data register (in bytes). + + dirout: + $ref: /schemas/types.yaml#/definitions/uint32 + description: | + Offset in the register map for the dirout register (in bytes). + + gpio-controller: true + + "#gpio-cells": + const: 2 + + gpio-ranges: + maxItems: 1 + + required: + - gpio-controller + - gpio-ranges + - '#gpio-cells' + + '^.*$': + if: + type: object + then: + properties: + function: + $ref: "/schemas/types.yaml#/definitions/string" + enum: [ ebi_cs, uart1, serial_led, legacy_led, led, spi_cs, utopia, + pwm_syn_clk, sys_irq ] + + pins: + $ref: "/schemas/types.yaml#/definitions/string" + enum: [ ebi_cs_grp, uart1_grp, serial_led_grp, legacy_led_grp, + led_grp, spi_cs_grp, utopia_grp, pwm_syn_clk, sys_irq_grp ] + +required: + - compatible + +additionalProperties: false + +examples: + - | + gpio_cntl@fffe0080 { + compatible = "syscon", "simple-mfd"; + reg = <0xfffe0080 0x80>; + + pinctrl: pinctrl { + compatible = "brcm,bcm6358-pinctrl"; + + gpio { + compatible = "brcm,bcm6358-gpio"; + data = <0xc>; + dirout = <0x4>; + + gpio-controller; + gpio-ranges = <&pinctrl 0 0 40>; + #gpio-cells = <2>; + }; + + pinctrl_ebi_cs: ebi_cs { + function = "ebi_cs"; + groups = "ebi_cs_grp"; + }; + + pinctrl_uart1: uart1 { + function = "uart1"; + groups = "uart1_grp"; + }; + + pinctrl_serial_led: serial_led { + function = "serial_led"; + groups = "serial_led_grp"; + }; + + pinctrl_legacy_led: legacy_led { + function = "legacy_led"; + groups = "legacy_led_grp"; + }; + + pinctrl_led: led { + function = "led"; + groups = "led_grp"; + }; + + pinctrl_spi_cs_23: spi_cs { + function = "spi_cs"; + groups = "spi_cs_grp"; + }; + + pinctrl_utopia: utopia { + function = "utopia"; + groups = "utopia_grp"; + }; + + pinctrl_pwm_syn_clk: pwm_syn_clk { + function = "pwm_syn_clk"; + groups = "pwm_syn_clk_grp"; + }; + + pinctrl_sys_irq: sys_irq { + function = "sys_irq"; + groups = "sys_irq_grp"; + }; + }; + }; -- 2.20.1