xref: /linux/Documentation/devicetree/bindings/pinctrl/brcm,bcm6362-pinctrl.yaml (revision 0ea5c948cb64bab5bc7a5516774eb8536f05aa0d)
16e4b5e1fSÁlvaro Fernández Rojas# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
26e4b5e1fSÁlvaro Fernández Rojas%YAML 1.2
36e4b5e1fSÁlvaro Fernández Rojas---
46e4b5e1fSÁlvaro Fernández Rojas$id: http://devicetree.org/schemas/pinctrl/brcm,bcm6362-pinctrl.yaml#
56e4b5e1fSÁlvaro Fernández Rojas$schema: http://devicetree.org/meta-schemas/core.yaml#
66e4b5e1fSÁlvaro Fernández Rojas
76e4b5e1fSÁlvaro Fernández Rojastitle: Broadcom BCM6362 pin controller
86e4b5e1fSÁlvaro Fernández Rojas
96e4b5e1fSÁlvaro Fernández Rojasmaintainers:
106e4b5e1fSÁlvaro Fernández Rojas  - Álvaro Fernández Rojas <noltari@gmail.com>
116e4b5e1fSÁlvaro Fernández Rojas  - Jonas Gorski <jonas.gorski@gmail.com>
126e4b5e1fSÁlvaro Fernández Rojas
136e4b5e1fSÁlvaro Fernández Rojasdescription:
146e4b5e1fSÁlvaro Fernández Rojas  Bindings for Broadcom's BCM6362 memory-mapped pin controller.
156e4b5e1fSÁlvaro Fernández Rojas
166e4b5e1fSÁlvaro Fernández Rojasproperties:
176e4b5e1fSÁlvaro Fernández Rojas  compatible:
186e4b5e1fSÁlvaro Fernández Rojas    const: brcm,bcm6362-pinctrl
196e4b5e1fSÁlvaro Fernández Rojas
206e4b5e1fSÁlvaro Fernández Rojas  reg:
216e4b5e1fSÁlvaro Fernández Rojas    maxItems: 2
226e4b5e1fSÁlvaro Fernández Rojas
236e4b5e1fSÁlvaro Fernández RojaspatternProperties:
246e4b5e1fSÁlvaro Fernández Rojas  '-pins$':
256e4b5e1fSÁlvaro Fernández Rojas    type: object
266e4b5e1fSÁlvaro Fernández Rojas    $ref: pinmux-node.yaml#
27*caf963efSRob Herring    unevaluatedProperties: false
286e4b5e1fSÁlvaro Fernández Rojas
296e4b5e1fSÁlvaro Fernández Rojas    properties:
306e4b5e1fSÁlvaro Fernández Rojas      function:
316e4b5e1fSÁlvaro Fernández Rojas        enum: [ usb_device_led, sys_irq, serial_led_clk, serial_led_data,
326e4b5e1fSÁlvaro Fernández Rojas                robosw_led_data, robosw_led_clk, robosw_led0, robosw_led1,
336e4b5e1fSÁlvaro Fernández Rojas                inet_led, spi_cs2, spi_cs3, ntr_pulse, uart1_scts,
346e4b5e1fSÁlvaro Fernández Rojas                uart1_srts, uart1_sdin, uart1_sdout, adsl_spi_miso,
356e4b5e1fSÁlvaro Fernández Rojas                adsl_spi_mosi, adsl_spi_clk, adsl_spi_cs, ephy0_led,
366e4b5e1fSÁlvaro Fernández Rojas                ephy1_led, ephy2_led, ephy3_led, ext_irq0, ext_irq1,
376e4b5e1fSÁlvaro Fernández Rojas                ext_irq2, ext_irq3, nand ]
386e4b5e1fSÁlvaro Fernández Rojas
396e4b5e1fSÁlvaro Fernández Rojas      pins:
406e4b5e1fSÁlvaro Fernández Rojas        enum: [ gpio0, gpio1, gpio2, gpio3, gpio4, gpio5, gpio6, gpio7,
416e4b5e1fSÁlvaro Fernández Rojas                gpio8, gpio9, gpio10, gpio11, gpio12, gpio13, gpio14,
426e4b5e1fSÁlvaro Fernández Rojas                gpio15, gpio16, gpio17, gpio18, gpio19, gpio20, gpio21,
436e4b5e1fSÁlvaro Fernández Rojas                gpio22, gpio23, gpio24, gpio25, gpio26, gpio27, nand_grp ]
446e4b5e1fSÁlvaro Fernández Rojas
45*caf963efSRob Herring    patternProperties:
46*caf963efSRob Herring      '-pins$':
47*caf963efSRob Herring        $ref: '#/patternProperties/-pins$'
48*caf963efSRob Herring
49c09acbc4SRafał MiłeckiallOf:
5049cd1dd1SRob Herring  - $ref: pinctrl.yaml#
51c09acbc4SRafał Miłecki
526e4b5e1fSÁlvaro Fernández Rojasrequired:
536e4b5e1fSÁlvaro Fernández Rojas  - compatible
546e4b5e1fSÁlvaro Fernández Rojas  - reg
556e4b5e1fSÁlvaro Fernández Rojas
566e4b5e1fSÁlvaro Fernández RojasadditionalProperties: false
576e4b5e1fSÁlvaro Fernández Rojas
586e4b5e1fSÁlvaro Fernández Rojasexamples:
596e4b5e1fSÁlvaro Fernández Rojas  - |
606e4b5e1fSÁlvaro Fernández Rojas    pinctrl@18 {
616e4b5e1fSÁlvaro Fernández Rojas      compatible = "brcm,bcm6362-pinctrl";
626e4b5e1fSÁlvaro Fernández Rojas      reg = <0x18 0x10>, <0x38 0x4>;
636e4b5e1fSÁlvaro Fernández Rojas
646e4b5e1fSÁlvaro Fernández Rojas      pinctrl_usb_device_led: usb_device_led-pins {
656e4b5e1fSÁlvaro Fernández Rojas        function = "usb_device_led";
666e4b5e1fSÁlvaro Fernández Rojas        pins = "gpio0";
676e4b5e1fSÁlvaro Fernández Rojas      };
686e4b5e1fSÁlvaro Fernández Rojas
696e4b5e1fSÁlvaro Fernández Rojas      pinctrl_sys_irq: sys_irq-pins {
706e4b5e1fSÁlvaro Fernández Rojas        function = "sys_irq";
716e4b5e1fSÁlvaro Fernández Rojas        pins = "gpio1";
726e4b5e1fSÁlvaro Fernández Rojas      };
736e4b5e1fSÁlvaro Fernández Rojas
746e4b5e1fSÁlvaro Fernández Rojas      pinctrl_serial_led: serial_led-pins {
756e4b5e1fSÁlvaro Fernández Rojas        pinctrl_serial_led_clk: serial_led_clk-pins {
766e4b5e1fSÁlvaro Fernández Rojas          function = "serial_led_clk";
776e4b5e1fSÁlvaro Fernández Rojas          pins = "gpio2";
786e4b5e1fSÁlvaro Fernández Rojas        };
796e4b5e1fSÁlvaro Fernández Rojas
806e4b5e1fSÁlvaro Fernández Rojas        pinctrl_serial_led_data: serial_led_data-pins {
816e4b5e1fSÁlvaro Fernández Rojas          function = "serial_led_data";
826e4b5e1fSÁlvaro Fernández Rojas          pins = "gpio3";
836e4b5e1fSÁlvaro Fernández Rojas        };
846e4b5e1fSÁlvaro Fernández Rojas      };
856e4b5e1fSÁlvaro Fernández Rojas
866e4b5e1fSÁlvaro Fernández Rojas      pinctrl_robosw_led_data: robosw_led_data-pins {
876e4b5e1fSÁlvaro Fernández Rojas        function = "robosw_led_data";
886e4b5e1fSÁlvaro Fernández Rojas        pins = "gpio4";
896e4b5e1fSÁlvaro Fernández Rojas      };
906e4b5e1fSÁlvaro Fernández Rojas
916e4b5e1fSÁlvaro Fernández Rojas      pinctrl_robosw_led_clk: robosw_led_clk-pins {
926e4b5e1fSÁlvaro Fernández Rojas        function = "robosw_led_clk";
936e4b5e1fSÁlvaro Fernández Rojas        pins = "gpio5";
946e4b5e1fSÁlvaro Fernández Rojas      };
956e4b5e1fSÁlvaro Fernández Rojas
966e4b5e1fSÁlvaro Fernández Rojas      pinctrl_robosw_led0: robosw_led0-pins {
976e4b5e1fSÁlvaro Fernández Rojas        function = "robosw_led0";
986e4b5e1fSÁlvaro Fernández Rojas        pins = "gpio6";
996e4b5e1fSÁlvaro Fernández Rojas      };
1006e4b5e1fSÁlvaro Fernández Rojas
1016e4b5e1fSÁlvaro Fernández Rojas      pinctrl_robosw_led1: robosw_led1-pins {
1026e4b5e1fSÁlvaro Fernández Rojas        function = "robosw_led1";
1036e4b5e1fSÁlvaro Fernández Rojas        pins = "gpio7";
1046e4b5e1fSÁlvaro Fernández Rojas      };
1056e4b5e1fSÁlvaro Fernández Rojas
1066e4b5e1fSÁlvaro Fernández Rojas      pinctrl_inet_led: inet_led-pins {
1076e4b5e1fSÁlvaro Fernández Rojas        function = "inet_led";
1086e4b5e1fSÁlvaro Fernández Rojas        pins = "gpio8";
1096e4b5e1fSÁlvaro Fernández Rojas      };
1106e4b5e1fSÁlvaro Fernández Rojas
1116e4b5e1fSÁlvaro Fernández Rojas      pinctrl_spi_cs2: spi_cs2-pins {
1126e4b5e1fSÁlvaro Fernández Rojas        function = "spi_cs2";
1136e4b5e1fSÁlvaro Fernández Rojas        pins = "gpio9";
1146e4b5e1fSÁlvaro Fernández Rojas      };
1156e4b5e1fSÁlvaro Fernández Rojas
1166e4b5e1fSÁlvaro Fernández Rojas      pinctrl_spi_cs3: spi_cs3-pins {
1176e4b5e1fSÁlvaro Fernández Rojas        function = "spi_cs3";
1186e4b5e1fSÁlvaro Fernández Rojas        pins = "gpio10";
1196e4b5e1fSÁlvaro Fernández Rojas      };
1206e4b5e1fSÁlvaro Fernández Rojas
1216e4b5e1fSÁlvaro Fernández Rojas      pinctrl_ntr_pulse: ntr_pulse-pins {
1226e4b5e1fSÁlvaro Fernández Rojas        function = "ntr_pulse";
1236e4b5e1fSÁlvaro Fernández Rojas        pins = "gpio11";
1246e4b5e1fSÁlvaro Fernández Rojas      };
1256e4b5e1fSÁlvaro Fernández Rojas
1266e4b5e1fSÁlvaro Fernández Rojas      pinctrl_uart1_scts: uart1_scts-pins {
1276e4b5e1fSÁlvaro Fernández Rojas        function = "uart1_scts";
1286e4b5e1fSÁlvaro Fernández Rojas        pins = "gpio12";
1296e4b5e1fSÁlvaro Fernández Rojas      };
1306e4b5e1fSÁlvaro Fernández Rojas
1316e4b5e1fSÁlvaro Fernández Rojas      pinctrl_uart1_srts: uart1_srts-pins {
1326e4b5e1fSÁlvaro Fernández Rojas        function = "uart1_srts";
1336e4b5e1fSÁlvaro Fernández Rojas        pins = "gpio13";
1346e4b5e1fSÁlvaro Fernández Rojas      };
1356e4b5e1fSÁlvaro Fernández Rojas
1366e4b5e1fSÁlvaro Fernández Rojas      pinctrl_uart1: uart1-pins {
1376e4b5e1fSÁlvaro Fernández Rojas        pinctrl_uart1_sdin: uart1_sdin-pins {
1386e4b5e1fSÁlvaro Fernández Rojas          function = "uart1_sdin";
1396e4b5e1fSÁlvaro Fernández Rojas          pins = "gpio14";
1406e4b5e1fSÁlvaro Fernández Rojas        };
1416e4b5e1fSÁlvaro Fernández Rojas
1426e4b5e1fSÁlvaro Fernández Rojas        pinctrl_uart1_sdout: uart1_sdout-pins {
1436e4b5e1fSÁlvaro Fernández Rojas          function = "uart1_sdout";
1446e4b5e1fSÁlvaro Fernández Rojas          pins = "gpio15";
1456e4b5e1fSÁlvaro Fernández Rojas        };
1466e4b5e1fSÁlvaro Fernández Rojas      };
1476e4b5e1fSÁlvaro Fernández Rojas
1486e4b5e1fSÁlvaro Fernández Rojas      pinctrl_adsl_spi: adsl_spi-pins {
1496e4b5e1fSÁlvaro Fernández Rojas        pinctrl_adsl_spi_miso: adsl_spi_miso-pins {
1506e4b5e1fSÁlvaro Fernández Rojas          function = "adsl_spi_miso";
1516e4b5e1fSÁlvaro Fernández Rojas          pins = "gpio16";
1526e4b5e1fSÁlvaro Fernández Rojas        };
1536e4b5e1fSÁlvaro Fernández Rojas
1546e4b5e1fSÁlvaro Fernández Rojas        pinctrl_adsl_spi_mosi: adsl_spi_mosi-pins {
1556e4b5e1fSÁlvaro Fernández Rojas          function = "adsl_spi_mosi";
1566e4b5e1fSÁlvaro Fernández Rojas          pins = "gpio17";
1576e4b5e1fSÁlvaro Fernández Rojas        };
1586e4b5e1fSÁlvaro Fernández Rojas
1596e4b5e1fSÁlvaro Fernández Rojas        pinctrl_adsl_spi_clk: adsl_spi_clk-pins {
1606e4b5e1fSÁlvaro Fernández Rojas          function = "adsl_spi_clk";
1616e4b5e1fSÁlvaro Fernández Rojas          pins = "gpio18";
1626e4b5e1fSÁlvaro Fernández Rojas        };
1636e4b5e1fSÁlvaro Fernández Rojas
1646e4b5e1fSÁlvaro Fernández Rojas        pinctrl_adsl_spi_cs: adsl_spi_cs-pins {
1656e4b5e1fSÁlvaro Fernández Rojas          function = "adsl_spi_cs";
1666e4b5e1fSÁlvaro Fernández Rojas          pins = "gpio19";
1676e4b5e1fSÁlvaro Fernández Rojas        };
1686e4b5e1fSÁlvaro Fernández Rojas      };
1696e4b5e1fSÁlvaro Fernández Rojas
1706e4b5e1fSÁlvaro Fernández Rojas      pinctrl_ephy0_led: ephy0_led-pins {
1716e4b5e1fSÁlvaro Fernández Rojas        function = "ephy0_led";
1726e4b5e1fSÁlvaro Fernández Rojas        pins = "gpio20";
1736e4b5e1fSÁlvaro Fernández Rojas      };
1746e4b5e1fSÁlvaro Fernández Rojas
1756e4b5e1fSÁlvaro Fernández Rojas      pinctrl_ephy1_led: ephy1_led-pins {
1766e4b5e1fSÁlvaro Fernández Rojas        function = "ephy1_led";
1776e4b5e1fSÁlvaro Fernández Rojas        pins = "gpio21";
1786e4b5e1fSÁlvaro Fernández Rojas      };
1796e4b5e1fSÁlvaro Fernández Rojas
1806e4b5e1fSÁlvaro Fernández Rojas      pinctrl_ephy2_led: ephy2_led-pins {
1816e4b5e1fSÁlvaro Fernández Rojas        function = "ephy2_led";
1826e4b5e1fSÁlvaro Fernández Rojas        pins = "gpio22";
1836e4b5e1fSÁlvaro Fernández Rojas      };
1846e4b5e1fSÁlvaro Fernández Rojas
1856e4b5e1fSÁlvaro Fernández Rojas      pinctrl_ephy3_led: ephy3_led-pins {
1866e4b5e1fSÁlvaro Fernández Rojas        function = "ephy3_led";
1876e4b5e1fSÁlvaro Fernández Rojas        pins = "gpio23";
1886e4b5e1fSÁlvaro Fernández Rojas      };
1896e4b5e1fSÁlvaro Fernández Rojas
1906e4b5e1fSÁlvaro Fernández Rojas      pinctrl_ext_irq0: ext_irq0-pins {
1916e4b5e1fSÁlvaro Fernández Rojas        function = "ext_irq0";
1926e4b5e1fSÁlvaro Fernández Rojas        pins = "gpio24";
1936e4b5e1fSÁlvaro Fernández Rojas      };
1946e4b5e1fSÁlvaro Fernández Rojas
1956e4b5e1fSÁlvaro Fernández Rojas      pinctrl_ext_irq1: ext_irq1-pins {
1966e4b5e1fSÁlvaro Fernández Rojas        function = "ext_irq1";
1976e4b5e1fSÁlvaro Fernández Rojas        pins = "gpio25";
1986e4b5e1fSÁlvaro Fernández Rojas      };
1996e4b5e1fSÁlvaro Fernández Rojas
2006e4b5e1fSÁlvaro Fernández Rojas      pinctrl_ext_irq2: ext_irq2-pins {
2016e4b5e1fSÁlvaro Fernández Rojas        function = "ext_irq2";
2026e4b5e1fSÁlvaro Fernández Rojas        pins = "gpio26";
2036e4b5e1fSÁlvaro Fernández Rojas      };
2046e4b5e1fSÁlvaro Fernández Rojas
2056e4b5e1fSÁlvaro Fernández Rojas      pinctrl_ext_irq3: ext_irq3-pins {
2066e4b5e1fSÁlvaro Fernández Rojas        function = "ext_irq3";
2076e4b5e1fSÁlvaro Fernández Rojas        pins = "gpio27";
2086e4b5e1fSÁlvaro Fernández Rojas      };
2096e4b5e1fSÁlvaro Fernández Rojas
2106e4b5e1fSÁlvaro Fernández Rojas      pinctrl_nand: nand-pins {
2116e4b5e1fSÁlvaro Fernández Rojas        function = "nand";
212*caf963efSRob Herring        pins = "nand_grp";
2136e4b5e1fSÁlvaro Fernández Rojas      };
2146e4b5e1fSÁlvaro Fernández Rojas    };
215