From patchwork Mon Mar 15 11:42:12 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?=C3=81lvaro_Fern=C3=A1ndez_Rojas?= X-Patchwork-Id: 12139069 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-13.7 required=3.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED,DKIM_SIGNED,DKIM_VALID,FREEMAIL_FORGED_FROMDOMAIN, FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id CF794C433E0 for ; Mon, 15 Mar 2021 12:06:56 +0000 (UTC) Received: from desiato.infradead.org (desiato.infradead.org [90.155.92.199]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 7131464D9C for ; Mon, 15 Mar 2021 12:06:55 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 7131464D9C Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=desiato.20200630; h=Sender:Content-Transfer-Encoding :Content-Type:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To:Message-Id:Date: Subject:To:From:Reply-To:Cc:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=TESgEbQQJaRXPHaYwVc2BCL/ayfOFuNJMGOIeSs7WDo=; b=U18+VOfWmAPOosgTSs9M/1vRr vKl7XuLi60DW+QiRhxgfLuIOmp7H7OT08RQcR0v1qNqv88hmgZsywGc8IzXjun2rEMKH5vFXS/Yip fBlggzYdGXqs6pNyaZpCjX3654OxYu8Q3jwcAsPTciQCFvVoP3RRUPBHvJzmkzxd3I32ivsR8QNvp ClN+oMJsxgOc6/DyN1NN7ICn5Vu27b8DHkLw3naJ2rRfk0IBCjH9Zf8TIjKCwV96Vv8ofmnPFh9lL mPn6sFN1gZIS0cWP85rlSv7mVBQU8sX4G+N9DGZM+rbPqK4TschuUjrBsOH/aAfvi94tz3sxgPhEU V+qaWTfEQ==; Received: from localhost ([::1] helo=desiato.infradead.org) by desiato.infradead.org with esmtp (Exim 4.94 #2 (Red Hat Linux)) id 1lLlxW-00Fkxb-KK; Mon, 15 Mar 2021 12:04:32 +0000 Received: from casper.infradead.org ([2001:8b0:10b:1236::1]) by desiato.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1lLld1-00Fh0z-SX for linux-arm-kernel@desiato.infradead.org; Mon, 15 Mar 2021 11:43:33 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=Content-Transfer-Encoding:Content-Type: MIME-Version:References:In-Reply-To:Message-Id:Date:Subject:To:From:Sender: Reply-To:Cc:Content-ID:Content-Description; bh=64UAUtVrnB3eLs0Hexw/cfQ3HiK7C2gkG1UaNO+bthQ=; b=S0fovNKt45rRkmlL2kxfOcSujC qyqzwdzbwZ4R6+xloBvqEotd22qezUz+rMWqGyQoUYIxgtHvM6BmQhqXQxzp7x15z2VW+uU7a1l3i D/+xEITN0zsr7Vj5vU0k+TfHTc17rBLon+DQ6CCbb2EvKuVpD7WTvEuKl4uSAjwFWmEbbfvPYtLFs M69+M82sGMQvw66XcRO0UPPO6XV1wO6eUdDRMXSPmBq88lmcyhCVUsLUO0+F/knWZe9clJJzcNP8R HK4PUf+Mp5e658L7lSJjNdY+iC2kFw1SF8CDRre+tt2xfUQTYwrnFQcEaBcZcuwdufelQKFBTdsFq in+9pazA==; Received: from mail-wm1-x332.google.com ([2a00:1450:4864:20::332]) by casper.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1lLlcT-0005T1-SC for linux-arm-kernel@lists.infradead.org; Mon, 15 Mar 2021 11:43:01 +0000 Received: by mail-wm1-x332.google.com with SMTP id g8so7932827wmd.4 for ; Mon, 15 Mar 2021 04:42:38 -0700 (PDT) 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=64UAUtVrnB3eLs0Hexw/cfQ3HiK7C2gkG1UaNO+bthQ=; b=L9a/F92FiR8zZkoFOoUc4pRc5hnWrgvRkJQGeTKst4hSFO3D7FUj5cdD6A29hbhpGZ fXfrx8bcPYqMA+fGQj3oEju/TaCn0KHg6Cb/OKsB08f2vKuTF9fo82DT/sDk8ejKG/bN oM+9olz+qTlnQJvuDapLYGnCN4zcqC/tF+lZHBAUUp2u8D19uhVwuEvPUjyc/9oKNy+w THYkhBsLHDM8+sTHnXb8KCTEm+oMVkJovkaORppAZf9fMPPHMc4xqax2L3By7ML9azPW qMRHWe8j1sA69Slha9jpXzDwW5ILxUFElnsfmeLUZyw/YMqDfq8UqiYgge9xbrmDcYUy xvOg== 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=64UAUtVrnB3eLs0Hexw/cfQ3HiK7C2gkG1UaNO+bthQ=; b=asY0LC8zNnW1kIqsrSupLqWZNhD4GA5MY7mi7feopwRdtICXNkDM54jw5M+zjHj+zf rseV8Qu87GCyqJJAB3Ts6QAeweAh5wW4tY/dnDG5iE2eXn3F5RzJKBCiwmvJOy3hD6rG 8tx8zzd5a2BBpjlkL+47BrmFuvdscu2L2VMaIq3MZcSnCt185FpNSTaNIBvzbYWDlRU5 mhp0wY6lKJo8UhNSVP3Y56q2ne7llaNds4/vhUavi6hZe8OpY4X7QShReDBBOwj5NqeX ozI9yTuj209bv9NcJiFZ+a6MaSlP1n7GtCbVv2KLXG/gx2HQveyNBVyPUi0ul3NzaEkC kOTA== X-Gm-Message-State: AOAM533PECR/+T1AdTMl+JVfMqPMQfwNmFI4nr88nHsCViQhZYjR8Bsu wzgousFx/L7g75MpwA05Ng0= X-Google-Smtp-Source: ABdhPJxoasrQhsarbSg8KGaewAMtFmyNtXNzpa0FtCPoeQxF1BVLXO+/gNOPUQdMnWCehJem8FXceg== X-Received: by 2002:a7b:cb55:: with SMTP id v21mr2698020wmj.188.1615808556950; Mon, 15 Mar 2021 04:42:36 -0700 (PDT) Received: from skynet.lan ([80.31.204.166]) by smtp.gmail.com with ESMTPSA id v189sm12648187wme.39.2021.03.15.04.42.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 15 Mar 2021 04:42:36 -0700 (PDT) From: =?utf-8?q?=C3=81lvaro_Fern=C3=A1ndez_Rojas?= To: Linus Walleij , Bartosz Golaszewski , Rob Herring , Florian Fainelli , bcm-kernel-feedback-list@broadcom.com, Lee Jones , Michael Walle , =?utf-8?q?=C3=81lvaro_Fern=C3=A1ndez_Roja?= =?utf-8?q?s?= , Jonas Gorski , Necip Fazil Yildiran , Andy Shevchenko , linux-gpio@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH v7 20/22] dt-bindings: add BCM6318 pincontroller binding documentation Date: Mon, 15 Mar 2021 12:42:12 +0100 Message-Id: <20210315114214.3096-21-noltari@gmail.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20210315114214.3096-1-noltari@gmail.com> References: <20210315114214.3096-1-noltari@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210315_114250_627455_077BE90F X-CRM114-Status: GOOD ( 12.78 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Add binding documentation for the pincontrol core found in BCM6318 SoCs. Co-developed-by: Jonas Gorski Signed-off-by: Jonas Gorski Signed-off-by: Álvaro Fernández Rojas --- v7: add changes suggested by Rob Herring v6: add changes suggested by Rob Herring v5: change Documentation to dt-bindings in commit title v4: no changes v3: add new gpio node v2: remove interrupts .../pinctrl/brcm,bcm6318-pinctrl.yaml | 148 ++++++++++++++++++ 1 file changed, 148 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..3d1807041c4b --- /dev/null +++ b/Documentation/devicetree/bindings/pinctrl/brcm,bcm6318-pinctrl.yaml @@ -0,0 +1,148 @@ +# 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 + + reg: + maxItems: 2 + +patternProperties: + '^.*-pins$': + if: + type: object + then: + properties: + function: + $ref: "pinmux-node.yaml#/properties/function" + 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: "pinmux-node.yaml#/properties/pins" + enum: [ gpio0, gpio1, gpio2, gpio3, gpio4, gpio5, gpio6, gpio7, + gpio8, gpio9, gpio10, gpio11, gpio12, gpio13, gpio40 ] + +required: + - compatible + - reg + +additionalProperties: false + +examples: + - | + pinctrl@18 { + compatible = "brcm,bcm6318-pinctrl"; + reg = <0x18 0x10>, <0x54 0x18>; + + pinctrl_ephy0_spd_led: ephy0_spd_led-pins { + function = "ephy0_spd_led"; + pins = "gpio0"; + }; + + pinctrl_ephy1_spd_led: ephy1_spd_led-pins { + function = "ephy1_spd_led"; + pins = "gpio1"; + }; + + pinctrl_ephy2_spd_led: ephy2_spd_led-pins { + function = "ephy2_spd_led"; + pins = "gpio2"; + }; + + pinctrl_ephy3_spd_led: ephy3_spd_led-pins { + function = "ephy3_spd_led"; + pins = "gpio3"; + }; + + pinctrl_ephy0_act_led: ephy0_act_led-pins { + function = "ephy0_act_led"; + pins = "gpio4"; + }; + + pinctrl_ephy1_act_led: ephy1_act_led-pins { + function = "ephy1_act_led"; + pins = "gpio5"; + }; + + pinctrl_ephy2_act_led: ephy2_act_led-pins { + function = "ephy2_act_led"; + pins = "gpio6"; + }; + + pinctrl_ephy3_act_led: ephy3_act_led-pins { + function = "ephy3_act_led"; + pins = "gpio7"; + }; + + pinctrl_serial_led: serial_led-pins { + pinctrl_serial_led_data: serial_led_data-pins { + function = "serial_led_data"; + pins = "gpio6"; + }; + + pinctrl_serial_led_clk: serial_led_clk-pins { + function = "serial_led_clk"; + pins = "gpio7"; + }; + }; + + pinctrl_inet_act_led: inet_act_led-pins { + function = "inet_act_led"; + pins = "gpio8"; + }; + + pinctrl_inet_fail_led: inet_fail_led-pins { + function = "inet_fail_led"; + pins = "gpio9"; + }; + + pinctrl_dsl_led: dsl_led-pins { + function = "dsl_led"; + pins = "gpio10"; + }; + + pinctrl_post_fail_led: post_fail_led-pins { + function = "post_fail_led"; + pins = "gpio11"; + }; + + pinctrl_wlan_wps_led: wlan_wps_led-pins { + function = "wlan_wps_led"; + pins = "gpio12"; + }; + + pinctrl_usb_pwron: usb_pwron-pins { + function = "usb_pwron"; + pins = "gpio13"; + }; + + pinctrl_usb_device_led: usb_device_led-pins { + function = "usb_device_led"; + pins = "gpio13"; + }; + + pinctrl_usb_active: usb_active-pins { + function = "usb_active"; + pins = "gpio40"; + }; + };