3b490da098aa795635101b9da34d1724aa7ab79e
[openwrt/staging/xback.git] /
1 From b2f215141b985d5d39ed16fe7e2089d5aa162302 Mon Sep 17 00:00:00 2001
2 From: =?UTF-8?q?=C3=81lvaro=20Fern=C3=A1ndez=20Rojas?= <noltari@gmail.com>
3 Date: Wed, 24 Mar 2021 09:19:21 +0100
4 Subject: [PATCH 20/22] dt-bindings: add BCM6318 pincontroller binding
5 documentation
6 MIME-Version: 1.0
7 Content-Type: text/plain; charset=UTF-8
8 Content-Transfer-Encoding: 8bit
9
10 Add binding documentation for the pincontrol core found in BCM6318 SoCs.
11
12 Co-developed-by: Jonas Gorski <jonas.gorski@gmail.com>
13 Signed-off-by: Jonas Gorski <jonas.gorski@gmail.com>
14 Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
15 Reviewed-by: Rob Herring <robh@kernel.org>
16 Link: https://lore.kernel.org/r/20210324081923.20379-21-noltari@gmail.com
17 Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
18 ---
19 .../pinctrl/brcm,bcm6318-pinctrl.yaml | 143 ++++++++++++++++++
20 1 file changed, 143 insertions(+)
21 create mode 100644 Documentation/devicetree/bindings/pinctrl/brcm,bcm6318-pinctrl.yaml
22
23 --- /dev/null
24 +++ b/Documentation/devicetree/bindings/pinctrl/brcm,bcm6318-pinctrl.yaml
25 @@ -0,0 +1,143 @@
26 +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
27 +%YAML 1.2
28 +---
29 +$id: http://devicetree.org/schemas/pinctrl/brcm,bcm6318-pinctrl.yaml#
30 +$schema: http://devicetree.org/meta-schemas/core.yaml#
31 +
32 +title: Broadcom BCM6318 pin controller
33 +
34 +maintainers:
35 + - Álvaro Fernández Rojas <noltari@gmail.com>
36 + - Jonas Gorski <jonas.gorski@gmail.com>
37 +
38 +description:
39 + Bindings for Broadcom's BCM6318 memory-mapped pin controller.
40 +
41 +properties:
42 + compatible:
43 + const: brcm,bcm6318-pinctrl
44 +
45 + reg:
46 + maxItems: 2
47 +
48 +patternProperties:
49 + '-pins$':
50 + type: object
51 + $ref: pinmux-node.yaml#
52 +
53 + properties:
54 + function:
55 + enum: [ ephy0_spd_led, ephy1_spd_led, ephy2_spd_led, ephy3_spd_led,
56 + ephy0_act_led, ephy1_act_led, ephy2_act_led, ephy3_act_led,
57 + serial_led_data, serial_led_clk, inet_act_led, inet_fail_led,
58 + dsl_led, post_fail_led, wlan_wps_led, usb_pwron,
59 + usb_device_led, usb_active ]
60 +
61 + pins:
62 + enum: [ gpio0, gpio1, gpio2, gpio3, gpio4, gpio5, gpio6, gpio7,
63 + gpio8, gpio9, gpio10, gpio11, gpio12, gpio13, gpio40 ]
64 +
65 +required:
66 + - compatible
67 + - reg
68 +
69 +additionalProperties: false
70 +
71 +examples:
72 + - |
73 + pinctrl@18 {
74 + compatible = "brcm,bcm6318-pinctrl";
75 + reg = <0x18 0x10>, <0x54 0x18>;
76 +
77 + pinctrl_ephy0_spd_led: ephy0_spd_led-pins {
78 + function = "ephy0_spd_led";
79 + pins = "gpio0";
80 + };
81 +
82 + pinctrl_ephy1_spd_led: ephy1_spd_led-pins {
83 + function = "ephy1_spd_led";
84 + pins = "gpio1";
85 + };
86 +
87 + pinctrl_ephy2_spd_led: ephy2_spd_led-pins {
88 + function = "ephy2_spd_led";
89 + pins = "gpio2";
90 + };
91 +
92 + pinctrl_ephy3_spd_led: ephy3_spd_led-pins {
93 + function = "ephy3_spd_led";
94 + pins = "gpio3";
95 + };
96 +
97 + pinctrl_ephy0_act_led: ephy0_act_led-pins {
98 + function = "ephy0_act_led";
99 + pins = "gpio4";
100 + };
101 +
102 + pinctrl_ephy1_act_led: ephy1_act_led-pins {
103 + function = "ephy1_act_led";
104 + pins = "gpio5";
105 + };
106 +
107 + pinctrl_ephy2_act_led: ephy2_act_led-pins {
108 + function = "ephy2_act_led";
109 + pins = "gpio6";
110 + };
111 +
112 + pinctrl_ephy3_act_led: ephy3_act_led-pins {
113 + function = "ephy3_act_led";
114 + pins = "gpio7";
115 + };
116 +
117 + pinctrl_serial_led: serial_led-pins {
118 + pinctrl_serial_led_data: serial_led_data-pins {
119 + function = "serial_led_data";
120 + pins = "gpio6";
121 + };
122 +
123 + pinctrl_serial_led_clk: serial_led_clk-pins {
124 + function = "serial_led_clk";
125 + pins = "gpio7";
126 + };
127 + };
128 +
129 + pinctrl_inet_act_led: inet_act_led-pins {
130 + function = "inet_act_led";
131 + pins = "gpio8";
132 + };
133 +
134 + pinctrl_inet_fail_led: inet_fail_led-pins {
135 + function = "inet_fail_led";
136 + pins = "gpio9";
137 + };
138 +
139 + pinctrl_dsl_led: dsl_led-pins {
140 + function = "dsl_led";
141 + pins = "gpio10";
142 + };
143 +
144 + pinctrl_post_fail_led: post_fail_led-pins {
145 + function = "post_fail_led";
146 + pins = "gpio11";
147 + };
148 +
149 + pinctrl_wlan_wps_led: wlan_wps_led-pins {
150 + function = "wlan_wps_led";
151 + pins = "gpio12";
152 + };
153 +
154 + pinctrl_usb_pwron: usb_pwron-pins {
155 + function = "usb_pwron";
156 + pins = "gpio13";
157 + };
158 +
159 + pinctrl_usb_device_led: usb_device_led-pins {
160 + function = "usb_device_led";
161 + pins = "gpio13";
162 + };
163 +
164 + pinctrl_usb_active: usb_active-pins {
165 + function = "usb_active";
166 + pins = "gpio40";
167 + };
168 + };