xref: /linux/Documentation/devicetree/bindings/pinctrl/brcm,bcm6362-pinctrl.yaml (revision 3652117f854819a148ff0fbe4492587d3520b5e5)
1# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
2%YAML 1.2
3---
4$id: http://devicetree.org/schemas/pinctrl/brcm,bcm6362-pinctrl.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: Broadcom BCM6362 pin controller
8
9maintainers:
10  - Álvaro Fernández Rojas <noltari@gmail.com>
11  - Jonas Gorski <jonas.gorski@gmail.com>
12
13description:
14  Bindings for Broadcom's BCM6362 memory-mapped pin controller.
15
16properties:
17  compatible:
18    const: brcm,bcm6362-pinctrl
19
20  reg:
21    maxItems: 2
22
23patternProperties:
24  '-pins$':
25    type: object
26    $ref: pinmux-node.yaml#
27    unevaluatedProperties: false
28
29    properties:
30      function:
31        enum: [ usb_device_led, sys_irq, serial_led_clk, serial_led_data,
32                robosw_led_data, robosw_led_clk, robosw_led0, robosw_led1,
33                inet_led, spi_cs2, spi_cs3, ntr_pulse, uart1_scts,
34                uart1_srts, uart1_sdin, uart1_sdout, adsl_spi_miso,
35                adsl_spi_mosi, adsl_spi_clk, adsl_spi_cs, ephy0_led,
36                ephy1_led, ephy2_led, ephy3_led, ext_irq0, ext_irq1,
37                ext_irq2, ext_irq3, nand ]
38
39      pins:
40        enum: [ gpio0, gpio1, gpio2, gpio3, gpio4, gpio5, gpio6, gpio7,
41                gpio8, gpio9, gpio10, gpio11, gpio12, gpio13, gpio14,
42                gpio15, gpio16, gpio17, gpio18, gpio19, gpio20, gpio21,
43                gpio22, gpio23, gpio24, gpio25, gpio26, gpio27, nand_grp ]
44
45    patternProperties:
46      '-pins$':
47        $ref: '#/patternProperties/-pins$'
48
49allOf:
50  - $ref: pinctrl.yaml#
51
52required:
53  - compatible
54  - reg
55
56additionalProperties: false
57
58examples:
59  - |
60    pinctrl@18 {
61      compatible = "brcm,bcm6362-pinctrl";
62      reg = <0x18 0x10>, <0x38 0x4>;
63
64      pinctrl_usb_device_led: usb_device_led-pins {
65        function = "usb_device_led";
66        pins = "gpio0";
67      };
68
69      pinctrl_sys_irq: sys_irq-pins {
70        function = "sys_irq";
71        pins = "gpio1";
72      };
73
74      pinctrl_serial_led: serial_led-pins {
75        pinctrl_serial_led_clk: serial_led_clk-pins {
76          function = "serial_led_clk";
77          pins = "gpio2";
78        };
79
80        pinctrl_serial_led_data: serial_led_data-pins {
81          function = "serial_led_data";
82          pins = "gpio3";
83        };
84      };
85
86      pinctrl_robosw_led_data: robosw_led_data-pins {
87        function = "robosw_led_data";
88        pins = "gpio4";
89      };
90
91      pinctrl_robosw_led_clk: robosw_led_clk-pins {
92        function = "robosw_led_clk";
93        pins = "gpio5";
94      };
95
96      pinctrl_robosw_led0: robosw_led0-pins {
97        function = "robosw_led0";
98        pins = "gpio6";
99      };
100
101      pinctrl_robosw_led1: robosw_led1-pins {
102        function = "robosw_led1";
103        pins = "gpio7";
104      };
105
106      pinctrl_inet_led: inet_led-pins {
107        function = "inet_led";
108        pins = "gpio8";
109      };
110
111      pinctrl_spi_cs2: spi_cs2-pins {
112        function = "spi_cs2";
113        pins = "gpio9";
114      };
115
116      pinctrl_spi_cs3: spi_cs3-pins {
117        function = "spi_cs3";
118        pins = "gpio10";
119      };
120
121      pinctrl_ntr_pulse: ntr_pulse-pins {
122        function = "ntr_pulse";
123        pins = "gpio11";
124      };
125
126      pinctrl_uart1_scts: uart1_scts-pins {
127        function = "uart1_scts";
128        pins = "gpio12";
129      };
130
131      pinctrl_uart1_srts: uart1_srts-pins {
132        function = "uart1_srts";
133        pins = "gpio13";
134      };
135
136      pinctrl_uart1: uart1-pins {
137        pinctrl_uart1_sdin: uart1_sdin-pins {
138          function = "uart1_sdin";
139          pins = "gpio14";
140        };
141
142        pinctrl_uart1_sdout: uart1_sdout-pins {
143          function = "uart1_sdout";
144          pins = "gpio15";
145        };
146      };
147
148      pinctrl_adsl_spi: adsl_spi-pins {
149        pinctrl_adsl_spi_miso: adsl_spi_miso-pins {
150          function = "adsl_spi_miso";
151          pins = "gpio16";
152        };
153
154        pinctrl_adsl_spi_mosi: adsl_spi_mosi-pins {
155          function = "adsl_spi_mosi";
156          pins = "gpio17";
157        };
158
159        pinctrl_adsl_spi_clk: adsl_spi_clk-pins {
160          function = "adsl_spi_clk";
161          pins = "gpio18";
162        };
163
164        pinctrl_adsl_spi_cs: adsl_spi_cs-pins {
165          function = "adsl_spi_cs";
166          pins = "gpio19";
167        };
168      };
169
170      pinctrl_ephy0_led: ephy0_led-pins {
171        function = "ephy0_led";
172        pins = "gpio20";
173      };
174
175      pinctrl_ephy1_led: ephy1_led-pins {
176        function = "ephy1_led";
177        pins = "gpio21";
178      };
179
180      pinctrl_ephy2_led: ephy2_led-pins {
181        function = "ephy2_led";
182        pins = "gpio22";
183      };
184
185      pinctrl_ephy3_led: ephy3_led-pins {
186        function = "ephy3_led";
187        pins = "gpio23";
188      };
189
190      pinctrl_ext_irq0: ext_irq0-pins {
191        function = "ext_irq0";
192        pins = "gpio24";
193      };
194
195      pinctrl_ext_irq1: ext_irq1-pins {
196        function = "ext_irq1";
197        pins = "gpio25";
198      };
199
200      pinctrl_ext_irq2: ext_irq2-pins {
201        function = "ext_irq2";
202        pins = "gpio26";
203      };
204
205      pinctrl_ext_irq3: ext_irq3-pins {
206        function = "ext_irq3";
207        pins = "gpio27";
208      };
209
210      pinctrl_nand: nand-pins {
211        function = "nand";
212        pins = "nand_grp";
213      };
214    };
215