xref: /linux/Documentation/devicetree/bindings/pinctrl/brcm,bcm6368-pinctrl.yaml (revision ab1c247094e323177a578b38f0325bf79f0317ac)
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,bcm6368-pinctrl.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: Broadcom BCM6368 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 BCM6368 memory-mapped pin controller.
15
16properties:
17  compatible:
18    const: brcm,bcm6368-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: [ analog_afe_0, analog_afe_1, sys_irq, serial_led_data,
32                serial_led_clk, inet_led, ephy0_led, ephy1_led, ephy2_led,
33                ephy3_led, robosw_led_data, robosw_led_clk, robosw_led0,
34                robosw_led1, usb_device_led, pci_req1, pci_gnt1, pci_intb,
35                pci_req0, pci_gnt0, pcmcia_cd1, pcmcia_cd2, pcmcia_vs1,
36                pcmcia_vs2, ebi_cs2, ebi_cs3, spi_cs2, spi_cs3, spi_cs4,
37                spi_cs5, uart1 ]
38
39      pins:
40        enum: [ gpio0, gpio1, gpio2, gpio3, gpio4, gpio5, gpio6, gpio7,
41                gpio8, gpio9, gpio10, gpio11, gpio12, gpio13, gpio14,
42                gpio16, gpio17, gpio18, gpio19, gpio20, gpio22, gpio23,
43                gpio24, gpio25, gpio26, gpio27, gpio28, gpio29, gpio30,
44                gpio31, uart1_grp ]
45
46    patternProperties:
47      '-pins$':
48        $ref: '#/patternProperties/-pins$'
49
50allOf:
51  - $ref: pinctrl.yaml#
52
53required:
54  - compatible
55  - reg
56
57additionalProperties: false
58
59examples:
60  - |
61    pinctrl@18 {
62      compatible = "brcm,bcm6368-pinctrl";
63      reg = <0x18 0x4>, <0x38 0x4>;
64
65      pinctrl_analog_afe_0: analog_afe_0-pins {
66        function = "analog_afe_0";
67        pins = "gpio0";
68      };
69
70      pinctrl_analog_afe_1: analog_afe_1-pins {
71        function = "analog_afe_1";
72        pins = "gpio1";
73      };
74
75      pinctrl_sys_irq: sys_irq-pins {
76        function = "sys_irq";
77        pins = "gpio2";
78      };
79
80      pinctrl_serial_led: serial_led-pins {
81        pinctrl_serial_led_data: serial_led_data-pins {
82          function = "serial_led_data";
83          pins = "gpio3";
84        };
85
86        pinctrl_serial_led_clk: serial_led_clk-pins {
87          function = "serial_led_clk";
88          pins = "gpio4";
89        };
90      };
91
92      pinctrl_inet_led: inet_led-pins {
93        function = "inet_led";
94        pins = "gpio5";
95      };
96
97      pinctrl_ephy0_led: ephy0_led-pins {
98        function = "ephy0_led";
99        pins = "gpio6";
100      };
101
102      pinctrl_ephy1_led: ephy1_led-pins {
103        function = "ephy1_led";
104        pins = "gpio7";
105      };
106
107      pinctrl_ephy2_led: ephy2_led-pins {
108        function = "ephy2_led";
109        pins = "gpio8";
110      };
111
112      pinctrl_ephy3_led: ephy3_led-pins {
113        function = "ephy3_led";
114        pins = "gpio9";
115      };
116
117      pinctrl_robosw_led_data: robosw_led_data-pins {
118        function = "robosw_led_data";
119        pins = "gpio10";
120      };
121
122      pinctrl_robosw_led_clk: robosw_led_clk-pins {
123        function = "robosw_led_clk";
124        pins = "gpio11";
125      };
126
127      pinctrl_robosw_led0: robosw_led0-pins {
128        function = "robosw_led0";
129        pins = "gpio12";
130      };
131
132      pinctrl_robosw_led1: robosw_led1-pins {
133        function = "robosw_led1";
134        pins = "gpio13";
135      };
136
137      pinctrl_usb_device_led: usb_device_led-pins {
138        function = "usb_device_led";
139        pins = "gpio14";
140      };
141
142      pinctrl_pci: pci-pins {
143        pinctrl_pci_req1: pci_req1-pins {
144          function = "pci_req1";
145          pins = "gpio16";
146        };
147
148        pinctrl_pci_gnt1: pci_gnt1-pins {
149          function = "pci_gnt1";
150          pins = "gpio17";
151        };
152
153        pinctrl_pci_intb: pci_intb-pins {
154          function = "pci_intb";
155          pins = "gpio18";
156        };
157
158        pinctrl_pci_req0: pci_req0-pins {
159          function = "pci_req0";
160          pins = "gpio19";
161        };
162
163        pinctrl_pci_gnt0: pci_gnt0-pins {
164          function = "pci_gnt0";
165          pins = "gpio20";
166        };
167      };
168
169      pinctrl_pcmcia: pcmcia-pins {
170        pinctrl_pcmcia_cd1: pcmcia_cd1-pins {
171          function = "pcmcia_cd1";
172          pins = "gpio22";
173        };
174
175        pinctrl_pcmcia_cd2: pcmcia_cd2-pins {
176          function = "pcmcia_cd2";
177          pins = "gpio23";
178        };
179
180        pinctrl_pcmcia_vs1: pcmcia_vs1-pins {
181          function = "pcmcia_vs1";
182          pins = "gpio24";
183        };
184
185        pinctrl_pcmcia_vs2: pcmcia_vs2-pins {
186          function = "pcmcia_vs2";
187          pins = "gpio25";
188        };
189      };
190
191      pinctrl_ebi_cs2: ebi_cs2-pins {
192        function = "ebi_cs2";
193        pins = "gpio26";
194      };
195
196      pinctrl_ebi_cs3: ebi_cs3-pins {
197        function = "ebi_cs3";
198        pins = "gpio27";
199      };
200
201      pinctrl_spi_cs2: spi_cs2-pins {
202        function = "spi_cs2";
203        pins = "gpio28";
204      };
205
206      pinctrl_spi_cs3: spi_cs3-pins {
207        function = "spi_cs3";
208        pins = "gpio29";
209      };
210
211      pinctrl_spi_cs4: spi_cs4-pins {
212        function = "spi_cs4";
213        pins = "gpio30";
214      };
215
216      pinctrl_spi_cs5: spi_cs5-pins {
217        function = "spi_cs5";
218        pins = "gpio31";
219      };
220
221      pinctrl_uart1: uart1-pins {
222        function = "uart1";
223        pins = "uart1_grp";
224      };
225    };
226