xref: /freebsd/sys/contrib/device-tree/Bindings/pinctrl/brcm,bcm6368-pinctrl.yaml (revision 2eb4d8dc723da3cf7d735a3226ae49da4c8c5dbc)
1*2eb4d8dcSEmmanuel Vadot# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
2*2eb4d8dcSEmmanuel Vadot%YAML 1.2
3*2eb4d8dcSEmmanuel Vadot---
4*2eb4d8dcSEmmanuel Vadot$id: http://devicetree.org/schemas/pinctrl/brcm,bcm6368-pinctrl.yaml#
5*2eb4d8dcSEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml#
6*2eb4d8dcSEmmanuel Vadot
7*2eb4d8dcSEmmanuel Vadottitle: Broadcom BCM6368 pin controller
8*2eb4d8dcSEmmanuel Vadot
9*2eb4d8dcSEmmanuel Vadotmaintainers:
10*2eb4d8dcSEmmanuel Vadot  - Álvaro Fernández Rojas <noltari@gmail.com>
11*2eb4d8dcSEmmanuel Vadot  - Jonas Gorski <jonas.gorski@gmail.com>
12*2eb4d8dcSEmmanuel Vadot
13*2eb4d8dcSEmmanuel Vadotdescription:
14*2eb4d8dcSEmmanuel Vadot  Bindings for Broadcom's BCM6368 memory-mapped pin controller.
15*2eb4d8dcSEmmanuel Vadot
16*2eb4d8dcSEmmanuel Vadotproperties:
17*2eb4d8dcSEmmanuel Vadot  compatible:
18*2eb4d8dcSEmmanuel Vadot    const: brcm,bcm6368-pinctrl
19*2eb4d8dcSEmmanuel Vadot
20*2eb4d8dcSEmmanuel Vadot  reg:
21*2eb4d8dcSEmmanuel Vadot    maxItems: 2
22*2eb4d8dcSEmmanuel Vadot
23*2eb4d8dcSEmmanuel VadotpatternProperties:
24*2eb4d8dcSEmmanuel Vadot  '-pins$':
25*2eb4d8dcSEmmanuel Vadot    type: object
26*2eb4d8dcSEmmanuel Vadot    $ref: pinmux-node.yaml#
27*2eb4d8dcSEmmanuel Vadot
28*2eb4d8dcSEmmanuel Vadot    properties:
29*2eb4d8dcSEmmanuel Vadot      function:
30*2eb4d8dcSEmmanuel Vadot        enum: [ analog_afe_0, analog_afe_1, sys_irq, serial_led_data,
31*2eb4d8dcSEmmanuel Vadot                serial_led_clk, inet_led, ephy0_led, ephy1_led, ephy2_led,
32*2eb4d8dcSEmmanuel Vadot                ephy3_led, robosw_led_data, robosw_led_clk, robosw_led0,
33*2eb4d8dcSEmmanuel Vadot                robosw_led1, usb_device_led, pci_req1, pci_gnt1, pci_intb,
34*2eb4d8dcSEmmanuel Vadot                pci_req0, pci_gnt0, pcmcia_cd1, pcmcia_cd2, pcmcia_vs1,
35*2eb4d8dcSEmmanuel Vadot                pcmcia_vs2, ebi_cs2, ebi_cs3, spi_cs2, spi_cs3, spi_cs4,
36*2eb4d8dcSEmmanuel Vadot                spi_cs5, uart1 ]
37*2eb4d8dcSEmmanuel Vadot
38*2eb4d8dcSEmmanuel Vadot      pins:
39*2eb4d8dcSEmmanuel Vadot        enum: [ gpio0, gpio1, gpio2, gpio3, gpio4, gpio5, gpio6, gpio7,
40*2eb4d8dcSEmmanuel Vadot                gpio8, gpio9, gpio10, gpio11, gpio12, gpio13, gpio14,
41*2eb4d8dcSEmmanuel Vadot                gpio16, gpio17, gpio18, gpio19, gpio20, gpio22, gpio23,
42*2eb4d8dcSEmmanuel Vadot                gpio24, gpio25, gpio26, gpio27, gpio28, gpio29, gpio30,
43*2eb4d8dcSEmmanuel Vadot                gpio31, uart1_grp ]
44*2eb4d8dcSEmmanuel Vadot
45*2eb4d8dcSEmmanuel Vadotrequired:
46*2eb4d8dcSEmmanuel Vadot  - compatible
47*2eb4d8dcSEmmanuel Vadot  - reg
48*2eb4d8dcSEmmanuel Vadot
49*2eb4d8dcSEmmanuel VadotadditionalProperties: false
50*2eb4d8dcSEmmanuel Vadot
51*2eb4d8dcSEmmanuel Vadotexamples:
52*2eb4d8dcSEmmanuel Vadot  - |
53*2eb4d8dcSEmmanuel Vadot    pinctrl@18 {
54*2eb4d8dcSEmmanuel Vadot      compatible = "brcm,bcm6368-pinctrl";
55*2eb4d8dcSEmmanuel Vadot      reg = <0x18 0x4>, <0x38 0x4>;
56*2eb4d8dcSEmmanuel Vadot
57*2eb4d8dcSEmmanuel Vadot      pinctrl_analog_afe_0: analog_afe_0-pins {
58*2eb4d8dcSEmmanuel Vadot        function = "analog_afe_0";
59*2eb4d8dcSEmmanuel Vadot        pins = "gpio0";
60*2eb4d8dcSEmmanuel Vadot      };
61*2eb4d8dcSEmmanuel Vadot
62*2eb4d8dcSEmmanuel Vadot      pinctrl_analog_afe_1: analog_afe_1-pins {
63*2eb4d8dcSEmmanuel Vadot        function = "analog_afe_1";
64*2eb4d8dcSEmmanuel Vadot        pins = "gpio1";
65*2eb4d8dcSEmmanuel Vadot      };
66*2eb4d8dcSEmmanuel Vadot
67*2eb4d8dcSEmmanuel Vadot      pinctrl_sys_irq: sys_irq-pins {
68*2eb4d8dcSEmmanuel Vadot        function = "sys_irq";
69*2eb4d8dcSEmmanuel Vadot        pins = "gpio2";
70*2eb4d8dcSEmmanuel Vadot      };
71*2eb4d8dcSEmmanuel Vadot
72*2eb4d8dcSEmmanuel Vadot      pinctrl_serial_led: serial_led-pins {
73*2eb4d8dcSEmmanuel Vadot        pinctrl_serial_led_data: serial_led_data-pins {
74*2eb4d8dcSEmmanuel Vadot          function = "serial_led_data";
75*2eb4d8dcSEmmanuel Vadot          pins = "gpio3";
76*2eb4d8dcSEmmanuel Vadot        };
77*2eb4d8dcSEmmanuel Vadot
78*2eb4d8dcSEmmanuel Vadot        pinctrl_serial_led_clk: serial_led_clk-pins {
79*2eb4d8dcSEmmanuel Vadot          function = "serial_led_clk";
80*2eb4d8dcSEmmanuel Vadot          pins = "gpio4";
81*2eb4d8dcSEmmanuel Vadot        };
82*2eb4d8dcSEmmanuel Vadot      };
83*2eb4d8dcSEmmanuel Vadot
84*2eb4d8dcSEmmanuel Vadot      pinctrl_inet_led: inet_led-pins {
85*2eb4d8dcSEmmanuel Vadot        function = "inet_led";
86*2eb4d8dcSEmmanuel Vadot        pins = "gpio5";
87*2eb4d8dcSEmmanuel Vadot      };
88*2eb4d8dcSEmmanuel Vadot
89*2eb4d8dcSEmmanuel Vadot      pinctrl_ephy0_led: ephy0_led-pins {
90*2eb4d8dcSEmmanuel Vadot        function = "ephy0_led";
91*2eb4d8dcSEmmanuel Vadot        pins = "gpio6";
92*2eb4d8dcSEmmanuel Vadot      };
93*2eb4d8dcSEmmanuel Vadot
94*2eb4d8dcSEmmanuel Vadot      pinctrl_ephy1_led: ephy1_led-pins {
95*2eb4d8dcSEmmanuel Vadot        function = "ephy1_led";
96*2eb4d8dcSEmmanuel Vadot        pins = "gpio7";
97*2eb4d8dcSEmmanuel Vadot      };
98*2eb4d8dcSEmmanuel Vadot
99*2eb4d8dcSEmmanuel Vadot      pinctrl_ephy2_led: ephy2_led-pins {
100*2eb4d8dcSEmmanuel Vadot        function = "ephy2_led";
101*2eb4d8dcSEmmanuel Vadot        pins = "gpio8";
102*2eb4d8dcSEmmanuel Vadot      };
103*2eb4d8dcSEmmanuel Vadot
104*2eb4d8dcSEmmanuel Vadot      pinctrl_ephy3_led: ephy3_led-pins {
105*2eb4d8dcSEmmanuel Vadot        function = "ephy3_led";
106*2eb4d8dcSEmmanuel Vadot        pins = "gpio9";
107*2eb4d8dcSEmmanuel Vadot      };
108*2eb4d8dcSEmmanuel Vadot
109*2eb4d8dcSEmmanuel Vadot      pinctrl_robosw_led_data: robosw_led_data-pins {
110*2eb4d8dcSEmmanuel Vadot        function = "robosw_led_data";
111*2eb4d8dcSEmmanuel Vadot        pins = "gpio10";
112*2eb4d8dcSEmmanuel Vadot      };
113*2eb4d8dcSEmmanuel Vadot
114*2eb4d8dcSEmmanuel Vadot      pinctrl_robosw_led_clk: robosw_led_clk-pins {
115*2eb4d8dcSEmmanuel Vadot        function = "robosw_led_clk";
116*2eb4d8dcSEmmanuel Vadot        pins = "gpio11";
117*2eb4d8dcSEmmanuel Vadot      };
118*2eb4d8dcSEmmanuel Vadot
119*2eb4d8dcSEmmanuel Vadot      pinctrl_robosw_led0: robosw_led0-pins {
120*2eb4d8dcSEmmanuel Vadot        function = "robosw_led0";
121*2eb4d8dcSEmmanuel Vadot        pins = "gpio12";
122*2eb4d8dcSEmmanuel Vadot      };
123*2eb4d8dcSEmmanuel Vadot
124*2eb4d8dcSEmmanuel Vadot      pinctrl_robosw_led1: robosw_led1-pins {
125*2eb4d8dcSEmmanuel Vadot        function = "robosw_led1";
126*2eb4d8dcSEmmanuel Vadot        pins = "gpio13";
127*2eb4d8dcSEmmanuel Vadot      };
128*2eb4d8dcSEmmanuel Vadot
129*2eb4d8dcSEmmanuel Vadot      pinctrl_usb_device_led: usb_device_led-pins {
130*2eb4d8dcSEmmanuel Vadot        function = "usb_device_led";
131*2eb4d8dcSEmmanuel Vadot        pins = "gpio14";
132*2eb4d8dcSEmmanuel Vadot      };
133*2eb4d8dcSEmmanuel Vadot
134*2eb4d8dcSEmmanuel Vadot      pinctrl_pci: pci-pins {
135*2eb4d8dcSEmmanuel Vadot        pinctrl_pci_req1: pci_req1-pins {
136*2eb4d8dcSEmmanuel Vadot          function = "pci_req1";
137*2eb4d8dcSEmmanuel Vadot          pins = "gpio16";
138*2eb4d8dcSEmmanuel Vadot        };
139*2eb4d8dcSEmmanuel Vadot
140*2eb4d8dcSEmmanuel Vadot        pinctrl_pci_gnt1: pci_gnt1-pins {
141*2eb4d8dcSEmmanuel Vadot          function = "pci_gnt1";
142*2eb4d8dcSEmmanuel Vadot          pins = "gpio17";
143*2eb4d8dcSEmmanuel Vadot        };
144*2eb4d8dcSEmmanuel Vadot
145*2eb4d8dcSEmmanuel Vadot        pinctrl_pci_intb: pci_intb-pins {
146*2eb4d8dcSEmmanuel Vadot          function = "pci_intb";
147*2eb4d8dcSEmmanuel Vadot          pins = "gpio18";
148*2eb4d8dcSEmmanuel Vadot        };
149*2eb4d8dcSEmmanuel Vadot
150*2eb4d8dcSEmmanuel Vadot        pinctrl_pci_req0: pci_req0-pins {
151*2eb4d8dcSEmmanuel Vadot          function = "pci_req0";
152*2eb4d8dcSEmmanuel Vadot          pins = "gpio19";
153*2eb4d8dcSEmmanuel Vadot        };
154*2eb4d8dcSEmmanuel Vadot
155*2eb4d8dcSEmmanuel Vadot        pinctrl_pci_gnt0: pci_gnt0-pins {
156*2eb4d8dcSEmmanuel Vadot          function = "pci_gnt0";
157*2eb4d8dcSEmmanuel Vadot          pins = "gpio20";
158*2eb4d8dcSEmmanuel Vadot        };
159*2eb4d8dcSEmmanuel Vadot      };
160*2eb4d8dcSEmmanuel Vadot
161*2eb4d8dcSEmmanuel Vadot      pinctrl_pcmcia: pcmcia-pins {
162*2eb4d8dcSEmmanuel Vadot        pinctrl_pcmcia_cd1: pcmcia_cd1-pins {
163*2eb4d8dcSEmmanuel Vadot          function = "pcmcia_cd1";
164*2eb4d8dcSEmmanuel Vadot          pins = "gpio22";
165*2eb4d8dcSEmmanuel Vadot        };
166*2eb4d8dcSEmmanuel Vadot
167*2eb4d8dcSEmmanuel Vadot        pinctrl_pcmcia_cd2: pcmcia_cd2-pins {
168*2eb4d8dcSEmmanuel Vadot          function = "pcmcia_cd2";
169*2eb4d8dcSEmmanuel Vadot          pins = "gpio23";
170*2eb4d8dcSEmmanuel Vadot        };
171*2eb4d8dcSEmmanuel Vadot
172*2eb4d8dcSEmmanuel Vadot        pinctrl_pcmcia_vs1: pcmcia_vs1-pins {
173*2eb4d8dcSEmmanuel Vadot          function = "pcmcia_vs1";
174*2eb4d8dcSEmmanuel Vadot          pins = "gpio24";
175*2eb4d8dcSEmmanuel Vadot        };
176*2eb4d8dcSEmmanuel Vadot
177*2eb4d8dcSEmmanuel Vadot        pinctrl_pcmcia_vs2: pcmcia_vs2-pins {
178*2eb4d8dcSEmmanuel Vadot          function = "pcmcia_vs2";
179*2eb4d8dcSEmmanuel Vadot          pins = "gpio25";
180*2eb4d8dcSEmmanuel Vadot        };
181*2eb4d8dcSEmmanuel Vadot      };
182*2eb4d8dcSEmmanuel Vadot
183*2eb4d8dcSEmmanuel Vadot      pinctrl_ebi_cs2: ebi_cs2-pins {
184*2eb4d8dcSEmmanuel Vadot        function = "ebi_cs2";
185*2eb4d8dcSEmmanuel Vadot        pins = "gpio26";
186*2eb4d8dcSEmmanuel Vadot      };
187*2eb4d8dcSEmmanuel Vadot
188*2eb4d8dcSEmmanuel Vadot      pinctrl_ebi_cs3: ebi_cs3-pins {
189*2eb4d8dcSEmmanuel Vadot        function = "ebi_cs3";
190*2eb4d8dcSEmmanuel Vadot        pins = "gpio27";
191*2eb4d8dcSEmmanuel Vadot      };
192*2eb4d8dcSEmmanuel Vadot
193*2eb4d8dcSEmmanuel Vadot      pinctrl_spi_cs2: spi_cs2-pins {
194*2eb4d8dcSEmmanuel Vadot        function = "spi_cs2";
195*2eb4d8dcSEmmanuel Vadot        pins = "gpio28";
196*2eb4d8dcSEmmanuel Vadot      };
197*2eb4d8dcSEmmanuel Vadot
198*2eb4d8dcSEmmanuel Vadot      pinctrl_spi_cs3: spi_cs3-pins {
199*2eb4d8dcSEmmanuel Vadot        function = "spi_cs3";
200*2eb4d8dcSEmmanuel Vadot        pins = "gpio29";
201*2eb4d8dcSEmmanuel Vadot      };
202*2eb4d8dcSEmmanuel Vadot
203*2eb4d8dcSEmmanuel Vadot      pinctrl_spi_cs4: spi_cs4-pins {
204*2eb4d8dcSEmmanuel Vadot        function = "spi_cs4";
205*2eb4d8dcSEmmanuel Vadot        pins = "gpio30";
206*2eb4d8dcSEmmanuel Vadot      };
207*2eb4d8dcSEmmanuel Vadot
208*2eb4d8dcSEmmanuel Vadot      pinctrl_spi_cs5: spi_cs5-pins {
209*2eb4d8dcSEmmanuel Vadot        function = "spi_cs5";
210*2eb4d8dcSEmmanuel Vadot        pins = "gpio31";
211*2eb4d8dcSEmmanuel Vadot      };
212*2eb4d8dcSEmmanuel Vadot
213*2eb4d8dcSEmmanuel Vadot      pinctrl_uart1: uart1-pins {
214*2eb4d8dcSEmmanuel Vadot        function = "uart1";
215*2eb4d8dcSEmmanuel Vadot        group = "uart1_grp";
216*2eb4d8dcSEmmanuel Vadot      };
217*2eb4d8dcSEmmanuel Vadot    };
218