Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp975423pxb; Wed, 3 Mar 2021 23:10:39 -0800 (PST) X-Google-Smtp-Source: ABdhPJyEVMV0zTG+exU0/26Jbd/XN7TUMvHqdZMPMETY6YaUd7pWMaz58IUiRfsXvAPk/hj/kLfV X-Received: by 2002:a05:6402:497:: with SMTP id k23mr2746071edv.315.1614841839211; Wed, 03 Mar 2021 23:10:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614841839; cv=none; d=google.com; s=arc-20160816; b=h9krt5qwzWXK/xEif/DnWifvfRCxUOo1lhZFzT5pqOdIGvwYNFIrFebujZGYBYBbWs h/CBu8fs8VNg80yDY9Bg+K70XQ7hsn2QoNoMjMDCqc6L4GC/bFPICocI5p1GwTnhOn3W 1+E7LVCKQ7t9T/VOl/zlkDtKx/KqksLC4ftKi2zIJKOAJ2cWpV59kAiVkGSjwm5pJYw5 pTPwedA22DIpV/4Xwjmb+KU4mYzR/qHUOE7tBTWD1sgN69OxJd6BcwbB5HGk6B61y4rx rljO/CbGGUiP8iz2yt149GgDiGqQ3b7JvSEyMrA3BI36KwkJsW757BkBURPqlLKcZNV6 fVKA== 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=zAdWcfvAdFphxuAUrxaeGKmczu7j0IJDjq1vmoNnYOg=; b=FHsCyAzmWyh0J/3C9yrKJf8/kW5SNL/B2Q1B7wikD3gJUXTt692SkAv0MrwHAMzodP 1NACswgWo7Lw95/knVHDerUpdCrXFtvtlGfJMDJ4fv8cbGQj1aut1kxA9+b4zdzd1wqz 1mYcPsw0nimYKeFwxiOXxe+I9M/OQtBfgizeN9msdzmYpmuzga667munUlnidgTCKan7 76neP0w5yf/Kh7OTEbnS1+1AngppQ4G4e8w1dMr02kvIqZ3FFew7sejSG1r3SHKaXcN2 Q+TBfCQooNpvR3EnXlCiN1bIa09RHEGzA+Y5s7C+jSpjL5mpFYYHhuj14/ejyqnCjaJO hPYA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=mGIyUi3+; 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 cf5si2947028ejb.346.2021.03.03.23.10.16; Wed, 03 Mar 2021 23:10:39 -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=mGIyUi3+; 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 S2359684AbhCBWCR (ORCPT + 99 others); Tue, 2 Mar 2021 17:02:17 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43968 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1835715AbhCBTSs (ORCPT ); Tue, 2 Mar 2021 14:18:48 -0500 Received: from mail-wm1-x334.google.com (mail-wm1-x334.google.com [IPv6:2a00:1450:4864:20::334]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 054CEC061224; Tue, 2 Mar 2021 11:16:43 -0800 (PST) Received: by mail-wm1-x334.google.com with SMTP id i9so3178567wml.0; Tue, 02 Mar 2021 11:16:42 -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=zAdWcfvAdFphxuAUrxaeGKmczu7j0IJDjq1vmoNnYOg=; b=mGIyUi3+AFu8A018ZAssEzo/JVDMMfeCmOOFnYuxh4oO74xIhdWO1p3vmv6PxdeV7r 1Hy9eGD53l7/0Tr0HMm4rQC7VSzSGhUlDDofB0/6iqsRpdc2sV7FWLGylVQXFQIk1VZx uSgsKFkFfIS6kes2YmPLjEFtzbaRn9JzA3YWkvKW5OtKHPTRT2qr8WxK0yKjD0ZNup51 d5xCMq9sbhhyX/LBktYug9ZWQgi/6qKKUzv1hILvFOUmZsPHemeljGVizZqqCMrbAEBt 6O9TRSce9zCU/70hFdVjCcC0bjhrUSeTx5yiMo/tS8wmYjpt48p/L0GrvOuEAmLwG0zB v3WQ== 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=zAdWcfvAdFphxuAUrxaeGKmczu7j0IJDjq1vmoNnYOg=; b=ZzLhwehx2drOaNpU93tOaY7h/3QhAnCsuttFCIzPHrtOko9MO03n01kaY5Po+xslM1 4XK9oJwwgwSx3mrKOxVCc5NW9Fv38vA2mOI8Mo2Yj6tMmRQoSnWdhFr7rgA/0A3vC7wp N0ECHtEAcj3fW42WH9FFG3zTXO6an+Po1/fG3e6gtqFV7kGEomRmjGnu7s08nJ14Hgk+ 7t182ijBfHQ8egIZtDhbLac3qjDajadzqrjwmlf6z3//4aoIt7+1QKAHU9f/4AK6SKxS NOpEL/Q3Imt7SWzJEgPiNP7xnr2t6TDXRAMFdLl/uUCCDmx5qBb97xBC2pfcrdZCs9hw JmvA== X-Gm-Message-State: AOAM531GdPMb2GfgamvU7++bnzoTOzJmypyfYrS9VXkyc9sPAofV8Kfg 0EPPwYgSPdisFMYNL5bpmZs= X-Received: by 2002:a1c:b783:: with SMTP id h125mr305307wmf.106.1614712601724; Tue, 02 Mar 2021 11:16:41 -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.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 02 Mar 2021 11:16:41 -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 11/12] Documentation: add BCM6318 pincontroller binding documentation Date: Tue, 2 Mar 2021 20:16:12 +0100 Message-Id: <20210302191613.29476-12-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 BCM6318 SoCs. Signed-off-by: Álvaro Fernández Rojas Signed-off-by: Jonas Gorski --- v2: remove interrupts .../pinctrl/brcm,bcm6318-pinctrl.yaml | 161 ++++++++++++++++++ 1 file changed, 161 insertions(+) create mode 100644 Documentation/devicetree/bindings/pinctrl/brcm,bcm6318-pinctrl.yaml diff --git a/Documentation/devicetree/bindings/pinctrl/brcm,bcm6318-pinctrl.yaml b/Documentation/devicetree/bindings/pinctrl/brcm,bcm6318-pinctrl.yaml new file mode 100644 index 000000000000..d6fd8ab68180 --- /dev/null +++ b/Documentation/devicetree/bindings/pinctrl/brcm,bcm6318-pinctrl.yaml @@ -0,0 +1,161 @@ +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/pinctrl/brcm,bcm6318-pinctrl.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Broadcom BCM6318 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,bcm6318-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: [ ephy0_spd_led, ephy1_spd_led, ephy2_spd_led, ephy3_spd_led, + ephy0_act_led, ephy1_act_led, ephy2_act_led, ephy3_act_led, + serial_led_data, serial_led_clk, inet_act_led, inet_fail_led, + dsl_led, post_fail_led, wlan_wps_led, usb_pwron, + usb_device_led, usb_active ] + + pins: + $ref: "/schemas/types.yaml#/definitions/string" + enum: [ gpio0, gpio1, gpio2, gpio3, gpio4, gpio5, gpio6, gpio7, + gpio8, gpio9, gpio10, gpio11, gpio12, gpio13, gpio40 ] + +required: + - compatible + - gpio-controller + - '#gpio-cells' + +additionalProperties: false + +examples: + - | + gpio@10000080 { + compatible = "syscon", "simple-mfd"; + reg = <0x10000080 0x80>; + + pinctrl: pinctrl { + compatible = "brcm,bcm6318-pinctrl"; + + gpio-controller; + #gpio-cells = <2>; + + pinctrl_ephy0_spd_led: ephy0_spd_led { + function = "ephy0_spd_led"; + pins = "gpio0"; + }; + + pinctrl_ephy1_spd_led: ephy1_spd_led { + function = "ephy1_spd_led"; + pins = "gpio1"; + }; + + pinctrl_ephy2_spd_led: ephy2_spd_led { + function = "ephy2_spd_led"; + pins = "gpio2"; + }; + + pinctrl_ephy3_spd_led: ephy3_spd_led { + function = "ephy3_spd_led"; + pins = "gpio3"; + }; + + pinctrl_ephy0_act_led: ephy0_act_led { + function = "ephy0_act_led"; + pins = "gpio4"; + }; + + pinctrl_ephy1_act_led: ephy1_act_led { + function = "ephy1_act_led"; + pins = "gpio5"; + }; + + pinctrl_ephy2_act_led: ephy2_act_led { + function = "ephy2_act_led"; + pins = "gpio6"; + }; + + pinctrl_ephy3_act_led: ephy3_act_led { + function = "ephy3_act_led"; + pins = "gpio7"; + }; + + pinctrl_serial_led: serial_led { + pinctrl_serial_led_data: serial_led_data { + function = "serial_led_data"; + pins = "gpio6"; + }; + + pinctrl_serial_led_clk: serial_led_clk { + function = "serial_led_clk"; + pins = "gpio7"; + }; + }; + + pinctrl_inet_act_led: inet_act_led { + function = "inet_act_led"; + pins = "gpio8"; + }; + + pinctrl_inet_fail_led: inet_fail_led { + function = "inet_fail_led"; + pins = "gpio9"; + }; + + pinctrl_dsl_led: dsl_led { + function = "dsl_led"; + pins = "gpio10"; + }; + + pinctrl_post_fail_led: post_fail_led { + function = "post_fail_led"; + pins = "gpio11"; + }; + + pinctrl_wlan_wps_led: wlan_wps_led { + function = "wlan_wps_led"; + pins = "gpio12"; + }; + + pinctrl_usb_pwron: usb_pwron { + function = "usb_pwron"; + pins = "gpio13"; + }; + + pinctrl_usb_device_led: usb_device_led { + function = "usb_device_led"; + pins = "gpio13"; + }; + + pinctrl_usb_active: usb_active { + function = "usb_active"; + pins = "gpio40"; + }; + }; + }; -- 2.20.1