xref: /freebsd/sys/contrib/device-tree/Bindings/pinctrl/brcm,bcm6362-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,bcm6362-pinctrl.yaml#
52eb4d8dcSEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml#
62eb4d8dcSEmmanuel Vadot
72eb4d8dcSEmmanuel Vadottitle: Broadcom BCM6362 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 BCM6362 memory-mapped pin controller.
152eb4d8dcSEmmanuel Vadot
162eb4d8dcSEmmanuel Vadotproperties:
172eb4d8dcSEmmanuel Vadot  compatible:
182eb4d8dcSEmmanuel Vadot    const: brcm,bcm6362-pinctrl
192eb4d8dcSEmmanuel Vadot
202eb4d8dcSEmmanuel Vadot  reg:
212eb4d8dcSEmmanuel Vadot    maxItems: 2
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: [ usb_device_led, sys_irq, serial_led_clk, serial_led_data,
322eb4d8dcSEmmanuel Vadot                robosw_led_data, robosw_led_clk, robosw_led0, robosw_led1,
332eb4d8dcSEmmanuel Vadot                inet_led, spi_cs2, spi_cs3, ntr_pulse, uart1_scts,
342eb4d8dcSEmmanuel Vadot                uart1_srts, uart1_sdin, uart1_sdout, adsl_spi_miso,
352eb4d8dcSEmmanuel Vadot                adsl_spi_mosi, adsl_spi_clk, adsl_spi_cs, ephy0_led,
362eb4d8dcSEmmanuel Vadot                ephy1_led, ephy2_led, ephy3_led, ext_irq0, ext_irq1,
372eb4d8dcSEmmanuel Vadot                ext_irq2, ext_irq3, nand ]
382eb4d8dcSEmmanuel Vadot
392eb4d8dcSEmmanuel Vadot      pins:
402eb4d8dcSEmmanuel Vadot        enum: [ gpio0, gpio1, gpio2, gpio3, gpio4, gpio5, gpio6, gpio7,
412eb4d8dcSEmmanuel Vadot                gpio8, gpio9, gpio10, gpio11, gpio12, gpio13, gpio14,
422eb4d8dcSEmmanuel Vadot                gpio15, gpio16, gpio17, gpio18, gpio19, gpio20, gpio21,
432eb4d8dcSEmmanuel Vadot                gpio22, gpio23, gpio24, gpio25, gpio26, gpio27, nand_grp ]
442eb4d8dcSEmmanuel Vadot
45*84943d6fSEmmanuel Vadot    patternProperties:
46*84943d6fSEmmanuel Vadot      '-pins$':
47*84943d6fSEmmanuel Vadot        $ref: '#/patternProperties/-pins$'
48*84943d6fSEmmanuel Vadot
49e67e8565SEmmanuel VadotallOf:
50fac71e4eSEmmanuel Vadot  - $ref: pinctrl.yaml#
51e67e8565SEmmanuel Vadot
522eb4d8dcSEmmanuel Vadotrequired:
532eb4d8dcSEmmanuel Vadot  - compatible
542eb4d8dcSEmmanuel Vadot  - reg
552eb4d8dcSEmmanuel Vadot
562eb4d8dcSEmmanuel VadotadditionalProperties: false
572eb4d8dcSEmmanuel Vadot
582eb4d8dcSEmmanuel Vadotexamples:
592eb4d8dcSEmmanuel Vadot  - |
602eb4d8dcSEmmanuel Vadot    pinctrl@18 {
612eb4d8dcSEmmanuel Vadot      compatible = "brcm,bcm6362-pinctrl";
622eb4d8dcSEmmanuel Vadot      reg = <0x18 0x10>, <0x38 0x4>;
632eb4d8dcSEmmanuel Vadot
642eb4d8dcSEmmanuel Vadot      pinctrl_usb_device_led: usb_device_led-pins {
652eb4d8dcSEmmanuel Vadot        function = "usb_device_led";
662eb4d8dcSEmmanuel Vadot        pins = "gpio0";
672eb4d8dcSEmmanuel Vadot      };
682eb4d8dcSEmmanuel Vadot
692eb4d8dcSEmmanuel Vadot      pinctrl_sys_irq: sys_irq-pins {
702eb4d8dcSEmmanuel Vadot        function = "sys_irq";
712eb4d8dcSEmmanuel Vadot        pins = "gpio1";
722eb4d8dcSEmmanuel Vadot      };
732eb4d8dcSEmmanuel Vadot
742eb4d8dcSEmmanuel Vadot      pinctrl_serial_led: serial_led-pins {
752eb4d8dcSEmmanuel Vadot        pinctrl_serial_led_clk: serial_led_clk-pins {
762eb4d8dcSEmmanuel Vadot          function = "serial_led_clk";
772eb4d8dcSEmmanuel Vadot          pins = "gpio2";
782eb4d8dcSEmmanuel Vadot        };
792eb4d8dcSEmmanuel Vadot
802eb4d8dcSEmmanuel Vadot        pinctrl_serial_led_data: serial_led_data-pins {
812eb4d8dcSEmmanuel Vadot          function = "serial_led_data";
822eb4d8dcSEmmanuel Vadot          pins = "gpio3";
832eb4d8dcSEmmanuel Vadot        };
842eb4d8dcSEmmanuel Vadot      };
852eb4d8dcSEmmanuel Vadot
862eb4d8dcSEmmanuel Vadot      pinctrl_robosw_led_data: robosw_led_data-pins {
872eb4d8dcSEmmanuel Vadot        function = "robosw_led_data";
882eb4d8dcSEmmanuel Vadot        pins = "gpio4";
892eb4d8dcSEmmanuel Vadot      };
902eb4d8dcSEmmanuel Vadot
912eb4d8dcSEmmanuel Vadot      pinctrl_robosw_led_clk: robosw_led_clk-pins {
922eb4d8dcSEmmanuel Vadot        function = "robosw_led_clk";
932eb4d8dcSEmmanuel Vadot        pins = "gpio5";
942eb4d8dcSEmmanuel Vadot      };
952eb4d8dcSEmmanuel Vadot
962eb4d8dcSEmmanuel Vadot      pinctrl_robosw_led0: robosw_led0-pins {
972eb4d8dcSEmmanuel Vadot        function = "robosw_led0";
982eb4d8dcSEmmanuel Vadot        pins = "gpio6";
992eb4d8dcSEmmanuel Vadot      };
1002eb4d8dcSEmmanuel Vadot
1012eb4d8dcSEmmanuel Vadot      pinctrl_robosw_led1: robosw_led1-pins {
1022eb4d8dcSEmmanuel Vadot        function = "robosw_led1";
1032eb4d8dcSEmmanuel Vadot        pins = "gpio7";
1042eb4d8dcSEmmanuel Vadot      };
1052eb4d8dcSEmmanuel Vadot
1062eb4d8dcSEmmanuel Vadot      pinctrl_inet_led: inet_led-pins {
1072eb4d8dcSEmmanuel Vadot        function = "inet_led";
1082eb4d8dcSEmmanuel Vadot        pins = "gpio8";
1092eb4d8dcSEmmanuel Vadot      };
1102eb4d8dcSEmmanuel Vadot
1112eb4d8dcSEmmanuel Vadot      pinctrl_spi_cs2: spi_cs2-pins {
1122eb4d8dcSEmmanuel Vadot        function = "spi_cs2";
1132eb4d8dcSEmmanuel Vadot        pins = "gpio9";
1142eb4d8dcSEmmanuel Vadot      };
1152eb4d8dcSEmmanuel Vadot
1162eb4d8dcSEmmanuel Vadot      pinctrl_spi_cs3: spi_cs3-pins {
1172eb4d8dcSEmmanuel Vadot        function = "spi_cs3";
1182eb4d8dcSEmmanuel Vadot        pins = "gpio10";
1192eb4d8dcSEmmanuel Vadot      };
1202eb4d8dcSEmmanuel Vadot
1212eb4d8dcSEmmanuel Vadot      pinctrl_ntr_pulse: ntr_pulse-pins {
1222eb4d8dcSEmmanuel Vadot        function = "ntr_pulse";
1232eb4d8dcSEmmanuel Vadot        pins = "gpio11";
1242eb4d8dcSEmmanuel Vadot      };
1252eb4d8dcSEmmanuel Vadot
1262eb4d8dcSEmmanuel Vadot      pinctrl_uart1_scts: uart1_scts-pins {
1272eb4d8dcSEmmanuel Vadot        function = "uart1_scts";
1282eb4d8dcSEmmanuel Vadot        pins = "gpio12";
1292eb4d8dcSEmmanuel Vadot      };
1302eb4d8dcSEmmanuel Vadot
1312eb4d8dcSEmmanuel Vadot      pinctrl_uart1_srts: uart1_srts-pins {
1322eb4d8dcSEmmanuel Vadot        function = "uart1_srts";
1332eb4d8dcSEmmanuel Vadot        pins = "gpio13";
1342eb4d8dcSEmmanuel Vadot      };
1352eb4d8dcSEmmanuel Vadot
1362eb4d8dcSEmmanuel Vadot      pinctrl_uart1: uart1-pins {
1372eb4d8dcSEmmanuel Vadot        pinctrl_uart1_sdin: uart1_sdin-pins {
1382eb4d8dcSEmmanuel Vadot          function = "uart1_sdin";
1392eb4d8dcSEmmanuel Vadot          pins = "gpio14";
1402eb4d8dcSEmmanuel Vadot        };
1412eb4d8dcSEmmanuel Vadot
1422eb4d8dcSEmmanuel Vadot        pinctrl_uart1_sdout: uart1_sdout-pins {
1432eb4d8dcSEmmanuel Vadot          function = "uart1_sdout";
1442eb4d8dcSEmmanuel Vadot          pins = "gpio15";
1452eb4d8dcSEmmanuel Vadot        };
1462eb4d8dcSEmmanuel Vadot      };
1472eb4d8dcSEmmanuel Vadot
1482eb4d8dcSEmmanuel Vadot      pinctrl_adsl_spi: adsl_spi-pins {
1492eb4d8dcSEmmanuel Vadot        pinctrl_adsl_spi_miso: adsl_spi_miso-pins {
1502eb4d8dcSEmmanuel Vadot          function = "adsl_spi_miso";
1512eb4d8dcSEmmanuel Vadot          pins = "gpio16";
1522eb4d8dcSEmmanuel Vadot        };
1532eb4d8dcSEmmanuel Vadot
1542eb4d8dcSEmmanuel Vadot        pinctrl_adsl_spi_mosi: adsl_spi_mosi-pins {
1552eb4d8dcSEmmanuel Vadot          function = "adsl_spi_mosi";
1562eb4d8dcSEmmanuel Vadot          pins = "gpio17";
1572eb4d8dcSEmmanuel Vadot        };
1582eb4d8dcSEmmanuel Vadot
1592eb4d8dcSEmmanuel Vadot        pinctrl_adsl_spi_clk: adsl_spi_clk-pins {
1602eb4d8dcSEmmanuel Vadot          function = "adsl_spi_clk";
1612eb4d8dcSEmmanuel Vadot          pins = "gpio18";
1622eb4d8dcSEmmanuel Vadot        };
1632eb4d8dcSEmmanuel Vadot
1642eb4d8dcSEmmanuel Vadot        pinctrl_adsl_spi_cs: adsl_spi_cs-pins {
1652eb4d8dcSEmmanuel Vadot          function = "adsl_spi_cs";
1662eb4d8dcSEmmanuel Vadot          pins = "gpio19";
1672eb4d8dcSEmmanuel Vadot        };
1682eb4d8dcSEmmanuel Vadot      };
1692eb4d8dcSEmmanuel Vadot
1702eb4d8dcSEmmanuel Vadot      pinctrl_ephy0_led: ephy0_led-pins {
1712eb4d8dcSEmmanuel Vadot        function = "ephy0_led";
1722eb4d8dcSEmmanuel Vadot        pins = "gpio20";
1732eb4d8dcSEmmanuel Vadot      };
1742eb4d8dcSEmmanuel Vadot
1752eb4d8dcSEmmanuel Vadot      pinctrl_ephy1_led: ephy1_led-pins {
1762eb4d8dcSEmmanuel Vadot        function = "ephy1_led";
1772eb4d8dcSEmmanuel Vadot        pins = "gpio21";
1782eb4d8dcSEmmanuel Vadot      };
1792eb4d8dcSEmmanuel Vadot
1802eb4d8dcSEmmanuel Vadot      pinctrl_ephy2_led: ephy2_led-pins {
1812eb4d8dcSEmmanuel Vadot        function = "ephy2_led";
1822eb4d8dcSEmmanuel Vadot        pins = "gpio22";
1832eb4d8dcSEmmanuel Vadot      };
1842eb4d8dcSEmmanuel Vadot
1852eb4d8dcSEmmanuel Vadot      pinctrl_ephy3_led: ephy3_led-pins {
1862eb4d8dcSEmmanuel Vadot        function = "ephy3_led";
1872eb4d8dcSEmmanuel Vadot        pins = "gpio23";
1882eb4d8dcSEmmanuel Vadot      };
1892eb4d8dcSEmmanuel Vadot
1902eb4d8dcSEmmanuel Vadot      pinctrl_ext_irq0: ext_irq0-pins {
1912eb4d8dcSEmmanuel Vadot        function = "ext_irq0";
1922eb4d8dcSEmmanuel Vadot        pins = "gpio24";
1932eb4d8dcSEmmanuel Vadot      };
1942eb4d8dcSEmmanuel Vadot
1952eb4d8dcSEmmanuel Vadot      pinctrl_ext_irq1: ext_irq1-pins {
1962eb4d8dcSEmmanuel Vadot        function = "ext_irq1";
1972eb4d8dcSEmmanuel Vadot        pins = "gpio25";
1982eb4d8dcSEmmanuel Vadot      };
1992eb4d8dcSEmmanuel Vadot
2002eb4d8dcSEmmanuel Vadot      pinctrl_ext_irq2: ext_irq2-pins {
2012eb4d8dcSEmmanuel Vadot        function = "ext_irq2";
2022eb4d8dcSEmmanuel Vadot        pins = "gpio26";
2032eb4d8dcSEmmanuel Vadot      };
2042eb4d8dcSEmmanuel Vadot
2052eb4d8dcSEmmanuel Vadot      pinctrl_ext_irq3: ext_irq3-pins {
2062eb4d8dcSEmmanuel Vadot        function = "ext_irq3";
2072eb4d8dcSEmmanuel Vadot        pins = "gpio27";
2082eb4d8dcSEmmanuel Vadot      };
2092eb4d8dcSEmmanuel Vadot
2102eb4d8dcSEmmanuel Vadot      pinctrl_nand: nand-pins {
2112eb4d8dcSEmmanuel Vadot        function = "nand";
212*84943d6fSEmmanuel Vadot        pins = "nand_grp";
2132eb4d8dcSEmmanuel Vadot      };
2142eb4d8dcSEmmanuel Vadot    };
215