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