xref: /freebsd/sys/contrib/device-tree/Bindings/pinctrl/brcm,bcm6328-pinctrl.yaml (revision bdd1243df58e60e85101c09001d9812a789b6bc4)
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,bcm6328-pinctrl.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: Broadcom BCM6328 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 BCM6328 memory-mapped pin controller.
15
16properties:
17  compatible:
18    const: brcm,bcm6328-pinctrl
19
20  reg:
21    maxItems: 1
22
23patternProperties:
24  '-pins$':
25    type: object
26    $ref: pinmux-node.yaml#
27
28    properties:
29      function:
30        enum: [ serial_led_data, serial_led_clk, inet_act_led, pcie_clkreq,
31                led, ephy0_act_led, ephy1_act_led, ephy2_act_led,
32                ephy3_act_led, hsspi_cs1, usb_device_port, usb_host_port ]
33
34      pins:
35        enum: [ gpio6, gpio7, gpio11, gpio16, gpio17, gpio18, gpio19,
36                gpio20, gpio25, gpio26, gpio27, gpio28, hsspi_cs1,
37                usb_port1 ]
38
39allOf:
40  - $ref: "pinctrl.yaml#"
41
42required:
43  - compatible
44  - reg
45
46additionalProperties: false
47
48examples:
49  - |
50    pinctrl@18 {
51      compatible = "brcm,bcm6328-pinctrl";
52      reg = <0x18 0x10>;
53
54      pinctrl_serial_led: serial_led-pins {
55        pinctrl_serial_led_data: serial_led_data-pins {
56          function = "serial_led_data";
57          pins = "gpio6";
58        };
59
60        pinctrl_serial_led_clk: serial_led_clk-pins {
61          function = "serial_led_clk";
62          pins = "gpio7";
63        };
64      };
65
66      pinctrl_inet_act_led: inet_act_led-pins {
67        function = "inet_act_led";
68        pins = "gpio11";
69      };
70
71      pinctrl_pcie_clkreq: pcie_clkreq-pins {
72        function = "pcie_clkreq";
73        pins = "gpio16";
74      };
75
76      pinctrl_ephy0_spd_led: ephy0_spd_led-pins {
77        function = "led";
78        pins = "gpio17";
79      };
80
81      pinctrl_ephy1_spd_led: ephy1_spd_led-pins {
82        function = "led";
83        pins = "gpio18";
84      };
85
86      pinctrl_ephy2_spd_led: ephy2_spd_led-pins {
87        function = "led";
88        pins = "gpio19";
89      };
90
91      pinctrl_ephy3_spd_led: ephy3_spd_led-pins {
92        function = "led";
93        pins = "gpio20";
94      };
95
96      pinctrl_ephy0_act_led: ephy0_act_led-pins {
97        function = "ephy0_act_led";
98        pins = "gpio25";
99      };
100
101      pinctrl_ephy1_act_led: ephy1_act_led-pins {
102        function = "ephy1_act_led";
103        pins = "gpio26";
104      };
105
106      pinctrl_ephy2_act_led: ephy2_act_led-pins {
107        function = "ephy2_act_led";
108        pins = "gpio27";
109      };
110
111      pinctrl_ephy3_act_led: ephy3_act_led-pins {
112        function = "ephy3_act_led";
113        pins = "gpio28";
114      };
115
116      pinctrl_hsspi_cs1: hsspi_cs1-pins {
117        function = "hsspi_cs1";
118        pins = "hsspi_cs1";
119      };
120
121      pinctrl_usb_port1_device: usb_port1_device-pins {
122        function = "usb_device_port";
123        pins = "usb_port1";
124      };
125
126      pinctrl_usb_port1_host: usb_port1_host-pins {
127        function = "usb_host_port";
128        pins = "usb_port1";
129      };
130    };
131