xref: /freebsd/sys/contrib/device-tree/Bindings/pinctrl/brcm,bcm6328-pinctrl.yaml (revision 84943d6f38e936ac3b7a3947ca26eeb27a39f938)
12eb4d8dcSEmmanuel Vadot# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
22eb4d8dcSEmmanuel Vadot%YAML 1.2
32eb4d8dcSEmmanuel Vadot---
42eb4d8dcSEmmanuel Vadot$id: http://devicetree.org/schemas/pinctrl/brcm,bcm6328-pinctrl.yaml#
52eb4d8dcSEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml#
62eb4d8dcSEmmanuel Vadot
72eb4d8dcSEmmanuel Vadottitle: Broadcom BCM6328 pin controller
82eb4d8dcSEmmanuel Vadot
92eb4d8dcSEmmanuel Vadotmaintainers:
102eb4d8dcSEmmanuel Vadot  - Álvaro Fernández Rojas <noltari@gmail.com>
112eb4d8dcSEmmanuel Vadot  - Jonas Gorski <jonas.gorski@gmail.com>
122eb4d8dcSEmmanuel Vadot
132eb4d8dcSEmmanuel Vadotdescription:
142eb4d8dcSEmmanuel Vadot  Bindings for Broadcom's BCM6328 memory-mapped pin controller.
152eb4d8dcSEmmanuel Vadot
162eb4d8dcSEmmanuel Vadotproperties:
172eb4d8dcSEmmanuel Vadot  compatible:
182eb4d8dcSEmmanuel Vadot    const: brcm,bcm6328-pinctrl
192eb4d8dcSEmmanuel Vadot
202eb4d8dcSEmmanuel Vadot  reg:
212eb4d8dcSEmmanuel Vadot    maxItems: 1
222eb4d8dcSEmmanuel Vadot
232eb4d8dcSEmmanuel VadotpatternProperties:
242eb4d8dcSEmmanuel Vadot  '-pins$':
252eb4d8dcSEmmanuel Vadot    type: object
262eb4d8dcSEmmanuel Vadot    $ref: pinmux-node.yaml#
27*84943d6fSEmmanuel Vadot    unevaluatedProperties: false
282eb4d8dcSEmmanuel Vadot
292eb4d8dcSEmmanuel Vadot    properties:
302eb4d8dcSEmmanuel Vadot      function:
312eb4d8dcSEmmanuel Vadot        enum: [ serial_led_data, serial_led_clk, inet_act_led, pcie_clkreq,
322eb4d8dcSEmmanuel Vadot                led, ephy0_act_led, ephy1_act_led, ephy2_act_led,
332eb4d8dcSEmmanuel Vadot                ephy3_act_led, hsspi_cs1, usb_device_port, usb_host_port ]
342eb4d8dcSEmmanuel Vadot
352eb4d8dcSEmmanuel Vadot      pins:
362eb4d8dcSEmmanuel Vadot        enum: [ gpio6, gpio7, gpio11, gpio16, gpio17, gpio18, gpio19,
372eb4d8dcSEmmanuel Vadot                gpio20, gpio25, gpio26, gpio27, gpio28, hsspi_cs1,
382eb4d8dcSEmmanuel Vadot                usb_port1 ]
392eb4d8dcSEmmanuel Vadot
40*84943d6fSEmmanuel Vadot    patternProperties:
41*84943d6fSEmmanuel Vadot      '-pins$':
42*84943d6fSEmmanuel Vadot        $ref: '#/patternProperties/-pins$'
43*84943d6fSEmmanuel Vadot
44e67e8565SEmmanuel VadotallOf:
45fac71e4eSEmmanuel Vadot  - $ref: pinctrl.yaml#
46e67e8565SEmmanuel Vadot
472eb4d8dcSEmmanuel Vadotrequired:
482eb4d8dcSEmmanuel Vadot  - compatible
492eb4d8dcSEmmanuel Vadot  - reg
502eb4d8dcSEmmanuel Vadot
512eb4d8dcSEmmanuel VadotadditionalProperties: false
522eb4d8dcSEmmanuel Vadot
532eb4d8dcSEmmanuel Vadotexamples:
542eb4d8dcSEmmanuel Vadot  - |
552eb4d8dcSEmmanuel Vadot    pinctrl@18 {
562eb4d8dcSEmmanuel Vadot      compatible = "brcm,bcm6328-pinctrl";
572eb4d8dcSEmmanuel Vadot      reg = <0x18 0x10>;
582eb4d8dcSEmmanuel Vadot
592eb4d8dcSEmmanuel Vadot      pinctrl_serial_led: serial_led-pins {
602eb4d8dcSEmmanuel Vadot        pinctrl_serial_led_data: serial_led_data-pins {
612eb4d8dcSEmmanuel Vadot          function = "serial_led_data";
622eb4d8dcSEmmanuel Vadot          pins = "gpio6";
632eb4d8dcSEmmanuel Vadot        };
642eb4d8dcSEmmanuel Vadot
652eb4d8dcSEmmanuel Vadot        pinctrl_serial_led_clk: serial_led_clk-pins {
662eb4d8dcSEmmanuel Vadot          function = "serial_led_clk";
672eb4d8dcSEmmanuel Vadot          pins = "gpio7";
682eb4d8dcSEmmanuel Vadot        };
692eb4d8dcSEmmanuel Vadot      };
702eb4d8dcSEmmanuel Vadot
712eb4d8dcSEmmanuel Vadot      pinctrl_inet_act_led: inet_act_led-pins {
722eb4d8dcSEmmanuel Vadot        function = "inet_act_led";
732eb4d8dcSEmmanuel Vadot        pins = "gpio11";
742eb4d8dcSEmmanuel Vadot      };
752eb4d8dcSEmmanuel Vadot
762eb4d8dcSEmmanuel Vadot      pinctrl_pcie_clkreq: pcie_clkreq-pins {
772eb4d8dcSEmmanuel Vadot        function = "pcie_clkreq";
782eb4d8dcSEmmanuel Vadot        pins = "gpio16";
792eb4d8dcSEmmanuel Vadot      };
802eb4d8dcSEmmanuel Vadot
812eb4d8dcSEmmanuel Vadot      pinctrl_ephy0_spd_led: ephy0_spd_led-pins {
822eb4d8dcSEmmanuel Vadot        function = "led";
832eb4d8dcSEmmanuel Vadot        pins = "gpio17";
842eb4d8dcSEmmanuel Vadot      };
852eb4d8dcSEmmanuel Vadot
862eb4d8dcSEmmanuel Vadot      pinctrl_ephy1_spd_led: ephy1_spd_led-pins {
872eb4d8dcSEmmanuel Vadot        function = "led";
882eb4d8dcSEmmanuel Vadot        pins = "gpio18";
892eb4d8dcSEmmanuel Vadot      };
902eb4d8dcSEmmanuel Vadot
912eb4d8dcSEmmanuel Vadot      pinctrl_ephy2_spd_led: ephy2_spd_led-pins {
922eb4d8dcSEmmanuel Vadot        function = "led";
932eb4d8dcSEmmanuel Vadot        pins = "gpio19";
942eb4d8dcSEmmanuel Vadot      };
952eb4d8dcSEmmanuel Vadot
962eb4d8dcSEmmanuel Vadot      pinctrl_ephy3_spd_led: ephy3_spd_led-pins {
972eb4d8dcSEmmanuel Vadot        function = "led";
982eb4d8dcSEmmanuel Vadot        pins = "gpio20";
992eb4d8dcSEmmanuel Vadot      };
1002eb4d8dcSEmmanuel Vadot
1012eb4d8dcSEmmanuel Vadot      pinctrl_ephy0_act_led: ephy0_act_led-pins {
1022eb4d8dcSEmmanuel Vadot        function = "ephy0_act_led";
1032eb4d8dcSEmmanuel Vadot        pins = "gpio25";
1042eb4d8dcSEmmanuel Vadot      };
1052eb4d8dcSEmmanuel Vadot
1062eb4d8dcSEmmanuel Vadot      pinctrl_ephy1_act_led: ephy1_act_led-pins {
1072eb4d8dcSEmmanuel Vadot        function = "ephy1_act_led";
1082eb4d8dcSEmmanuel Vadot        pins = "gpio26";
1092eb4d8dcSEmmanuel Vadot      };
1102eb4d8dcSEmmanuel Vadot
1112eb4d8dcSEmmanuel Vadot      pinctrl_ephy2_act_led: ephy2_act_led-pins {
1122eb4d8dcSEmmanuel Vadot        function = "ephy2_act_led";
1132eb4d8dcSEmmanuel Vadot        pins = "gpio27";
1142eb4d8dcSEmmanuel Vadot      };
1152eb4d8dcSEmmanuel Vadot
1162eb4d8dcSEmmanuel Vadot      pinctrl_ephy3_act_led: ephy3_act_led-pins {
1172eb4d8dcSEmmanuel Vadot        function = "ephy3_act_led";
1182eb4d8dcSEmmanuel Vadot        pins = "gpio28";
1192eb4d8dcSEmmanuel Vadot      };
1202eb4d8dcSEmmanuel Vadot
1212eb4d8dcSEmmanuel Vadot      pinctrl_hsspi_cs1: hsspi_cs1-pins {
1222eb4d8dcSEmmanuel Vadot        function = "hsspi_cs1";
1232eb4d8dcSEmmanuel Vadot        pins = "hsspi_cs1";
1242eb4d8dcSEmmanuel Vadot      };
1252eb4d8dcSEmmanuel Vadot
1262eb4d8dcSEmmanuel Vadot      pinctrl_usb_port1_device: usb_port1_device-pins {
1272eb4d8dcSEmmanuel Vadot        function = "usb_device_port";
1282eb4d8dcSEmmanuel Vadot        pins = "usb_port1";
1292eb4d8dcSEmmanuel Vadot      };
1302eb4d8dcSEmmanuel Vadot
1312eb4d8dcSEmmanuel Vadot      pinctrl_usb_port1_host: usb_port1_host-pins {
1322eb4d8dcSEmmanuel Vadot        function = "usb_host_port";
1332eb4d8dcSEmmanuel Vadot        pins = "usb_port1";
1342eb4d8dcSEmmanuel Vadot      };
1352eb4d8dcSEmmanuel Vadot    };
136