Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp975337pxb; Wed, 3 Mar 2021 23:10:29 -0800 (PST) X-Google-Smtp-Source: ABdhPJw/VFMDS8MAQhJmvbVcczhuoCuh7eFJzB4sArMdpEMjhVcNLdcFSGsgopqsjrfJ/Rrd/lpQ X-Received: by 2002:a05:6402:1c86:: with SMTP id cy6mr2759108edb.276.1614841829360; Wed, 03 Mar 2021 23:10:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614841829; cv=none; d=google.com; s=arc-20160816; b=lsYQvgPe2Azrxl9oW2t3viWlPQKjO35qmYSnmL8mH8b5PcxBvi0VVrB0N69vyIU69p zMj8ni5ob+ei9wyV8/Pyyjn1GTazwkqqsxpbZd2fQOmmz9qP9Pz/zVK1/tc5Y/TmYlrs 89lRmWWyJOlI36KxqNFLY56ELE9Q0Nf3+JWR08s+ZiLRq+/46WHpoKr4vJJzdKTV+RCJ Il6/mq3bQ/fhitF2qBsxPbqPj49MF+vZ+0yuNBnL+8IPPYphrLkF5d3KoBbw7Y1CHlIZ EH7q20640ifOpewBF4UZwGDOurFJXNRD5way03W/thUDMtyxuBNnCbmqhTjV7U2b2Xy8 Ks0g== 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=HLoji8JyLmH6ReYihGwizdlvh/FMuSrkV/UJTQFB9qo=; b=XCsWrC+2VLPcXHfZjlduhNT/GXHYynROVqPaUvLtlj1pnZGXtmc1iEsAxYGnUgbnTc ENo2Pip1t2ZlqB01z4jsYHZd9PoOztI9bJ5HjGw+E0ljd/1L/tnlf24/r4hu7V6mFAFn UZdn+scqKnBgJaZ8Sg687e/u1dE9vo4DopvzK6Y9OfsykcRdK7kpd6bJZNA+t40a7Ib7 TopH/qNIboPWjI8l0B+WMVzW/A/lKfx5sjaUf1jH1jynn2FnyZQyHnZtWfmVnL7mA86u sf3URrFTi3FYA4Ts36c9WlkorjTL3j0gl9aASe17TETSk/Ro4V8lPxPh7Ll55kDTacVb yLig== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=rZ6ecPF0; 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 jg13si17592384ejc.126.2021.03.03.23.10.06; Wed, 03 Mar 2021 23:10:29 -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=rZ6ecPF0; 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 S2359643AbhCBWBl (ORCPT + 99 others); Tue, 2 Mar 2021 17:01:41 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43976 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1835597AbhCBTSV (ORCPT ); Tue, 2 Mar 2021 14:18:21 -0500 Received: from mail-wm1-x32a.google.com (mail-wm1-x32a.google.com [IPv6:2a00:1450:4864:20::32a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 61625C0617A9; Tue, 2 Mar 2021 11:16:29 -0800 (PST) Received: by mail-wm1-x32a.google.com with SMTP id w7so3154555wmb.5; Tue, 02 Mar 2021 11:16:29 -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=HLoji8JyLmH6ReYihGwizdlvh/FMuSrkV/UJTQFB9qo=; b=rZ6ecPF0iwx2a36UdlTHckhp8qrxkcx4S1AURNqoef6GOAnlQVrmePsVOJDpU5kIhA Yxs0fmwpxVWQpK/Nbb0vYJ6HguxAoEOK3hyqreYS8fzVfsUbmyDgcBWIgalNUSIGQmGs Xj8SkQHEoB2UPmDQzyj3gmkLGOiaBe+gMnVUBcIFEIPbUP8eViGe66HkqIFceZKU1rS8 7Zd4REBhGgrQd3EjIFUlzxWHfI8CzqUAnoJBdQsFbO31v4bAfEPHOz1agswh7PG6iy8R LhPlvh+6/y9TM28mBERQfcnjJ3rU/ac8bG1p0DC7xeB7aaCsiWW2yb2ag2xB366VsCMO kzCQ== 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=HLoji8JyLmH6ReYihGwizdlvh/FMuSrkV/UJTQFB9qo=; b=dT+R1IlNvs+rq/qUhjy+mCKRubrdluvmB6uhk/WO8UeGaLE8XJOwGg64w/RNuPFjjG iA99zR4Q4u5TPnKz71oG1v8Wd5dqbyLbGb3jhlgc/yg3D+T+p7d9ntxnraTdWhDW6p4G J43qFW3K9oMIONpc/q7dczQ1ghb/4YCA0OfRQHgI6s70KWKdsc4bY7YB63ghriB04nid j90j3dp2ClcIV/IMtIOs5Kb0kIHus1r1IlvCkBBCGnBU/V7D6OspaMn3aNz15N370IAE mlEjZ/af3AWvv749kb2xII7eZl7ViPpwmLXACBk6QUvg7BBAJyfa2c830Cz+HEstp8DO vSgw== X-Gm-Message-State: AOAM532lYTvM2gJvV0AADVl5GZmrsu2D277QKDb+fDpe1BG57F3JNF4M 3nPEIWl0F7PW8gNJvOuIc1A= X-Received: by 2002:a05:600c:4844:: with SMTP id j4mr3641911wmo.179.1614712588076; Tue, 02 Mar 2021 11:16:28 -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 l15sm3578862wmh.21.2021.03.02.11.16.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 02 Mar 2021 11:16:23 -0800 (PST) From: =?UTF-8?q?=C3=81lvaro=20Fern=C3=A1ndez=20Rojas?= To: Michael Walle , f.fainelli@gmail.com, Linus Walleij , Rob Herring , =?UTF-8?q?=C3=81lvaro=20Fern=C3=A1ndez=20Rojas?= , Jonas Gorski , Necip Fazil Yildiran , linux-gpio@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 03/12] Documentation: add BCM6358 pincontroller binding documentation Date: Tue, 2 Mar 2021 20:16:04 +0100 Message-Id: <20210302191613.29476-4-noltari@gmail.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20210302191613.29476-1-noltari@gmail.com> References: <20210302191613.29476-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 --- v2: remove interrupts .../pinctrl/brcm,bcm6358-pinctrl.yaml | 111 ++++++++++++++++++ 1 file changed, 111 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..822d1ca8789c --- /dev/null +++ b/Documentation/devicetree/bindings/pinctrl/brcm,bcm6358-pinctrl.yaml @@ -0,0 +1,111 @@ +# 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 + + gpio-controller: true + + '#gpio-cells': + description: + Specifies the pin number and flags, as defined in + include/dt-bindings/gpio/gpio.h + const: 2 + +patternProperties: + '^.*$': + 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 + - gpio-controller + - '#gpio-cells' + +additionalProperties: false + +examples: + - | + gpio@fffe0080 { + compatible = "syscon", "simple-mfd"; + reg = <0xfffe0080 0x80>; + + pinctrl: pinctrl { + compatible = "brcm,bcm6358-pinctrl"; + + gpio-controller; + #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