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,bcm6362-pinctrl.yaml# 5$schema: http://devicetree.org/meta-schemas/core.yaml# 6 7title: Broadcom BCM6362 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 BCM6362 memory-mapped pin controller. 15 16properties: 17 compatible: 18 const: brcm,bcm6362-pinctrl 19 20 reg: 21 maxItems: 2 22 23patternProperties: 24 '-pins$': 25 type: object 26 $ref: pinmux-node.yaml# 27 28 properties: 29 function: 30 enum: [ usb_device_led, sys_irq, serial_led_clk, serial_led_data, 31 robosw_led_data, robosw_led_clk, robosw_led0, robosw_led1, 32 inet_led, spi_cs2, spi_cs3, ntr_pulse, uart1_scts, 33 uart1_srts, uart1_sdin, uart1_sdout, adsl_spi_miso, 34 adsl_spi_mosi, adsl_spi_clk, adsl_spi_cs, ephy0_led, 35 ephy1_led, ephy2_led, ephy3_led, ext_irq0, ext_irq1, 36 ext_irq2, ext_irq3, nand ] 37 38 pins: 39 enum: [ gpio0, gpio1, gpio2, gpio3, gpio4, gpio5, gpio6, gpio7, 40 gpio8, gpio9, gpio10, gpio11, gpio12, gpio13, gpio14, 41 gpio15, gpio16, gpio17, gpio18, gpio19, gpio20, gpio21, 42 gpio22, gpio23, gpio24, gpio25, gpio26, gpio27, nand_grp ] 43 44required: 45 - compatible 46 - reg 47 48additionalProperties: false 49 50examples: 51 - | 52 pinctrl@18 { 53 compatible = "brcm,bcm6362-pinctrl"; 54 reg = <0x18 0x10>, <0x38 0x4>; 55 56 pinctrl_usb_device_led: usb_device_led-pins { 57 function = "usb_device_led"; 58 pins = "gpio0"; 59 }; 60 61 pinctrl_sys_irq: sys_irq-pins { 62 function = "sys_irq"; 63 pins = "gpio1"; 64 }; 65 66 pinctrl_serial_led: serial_led-pins { 67 pinctrl_serial_led_clk: serial_led_clk-pins { 68 function = "serial_led_clk"; 69 pins = "gpio2"; 70 }; 71 72 pinctrl_serial_led_data: serial_led_data-pins { 73 function = "serial_led_data"; 74 pins = "gpio3"; 75 }; 76 }; 77 78 pinctrl_robosw_led_data: robosw_led_data-pins { 79 function = "robosw_led_data"; 80 pins = "gpio4"; 81 }; 82 83 pinctrl_robosw_led_clk: robosw_led_clk-pins { 84 function = "robosw_led_clk"; 85 pins = "gpio5"; 86 }; 87 88 pinctrl_robosw_led0: robosw_led0-pins { 89 function = "robosw_led0"; 90 pins = "gpio6"; 91 }; 92 93 pinctrl_robosw_led1: robosw_led1-pins { 94 function = "robosw_led1"; 95 pins = "gpio7"; 96 }; 97 98 pinctrl_inet_led: inet_led-pins { 99 function = "inet_led"; 100 pins = "gpio8"; 101 }; 102 103 pinctrl_spi_cs2: spi_cs2-pins { 104 function = "spi_cs2"; 105 pins = "gpio9"; 106 }; 107 108 pinctrl_spi_cs3: spi_cs3-pins { 109 function = "spi_cs3"; 110 pins = "gpio10"; 111 }; 112 113 pinctrl_ntr_pulse: ntr_pulse-pins { 114 function = "ntr_pulse"; 115 pins = "gpio11"; 116 }; 117 118 pinctrl_uart1_scts: uart1_scts-pins { 119 function = "uart1_scts"; 120 pins = "gpio12"; 121 }; 122 123 pinctrl_uart1_srts: uart1_srts-pins { 124 function = "uart1_srts"; 125 pins = "gpio13"; 126 }; 127 128 pinctrl_uart1: uart1-pins { 129 pinctrl_uart1_sdin: uart1_sdin-pins { 130 function = "uart1_sdin"; 131 pins = "gpio14"; 132 }; 133 134 pinctrl_uart1_sdout: uart1_sdout-pins { 135 function = "uart1_sdout"; 136 pins = "gpio15"; 137 }; 138 }; 139 140 pinctrl_adsl_spi: adsl_spi-pins { 141 pinctrl_adsl_spi_miso: adsl_spi_miso-pins { 142 function = "adsl_spi_miso"; 143 pins = "gpio16"; 144 }; 145 146 pinctrl_adsl_spi_mosi: adsl_spi_mosi-pins { 147 function = "adsl_spi_mosi"; 148 pins = "gpio17"; 149 }; 150 151 pinctrl_adsl_spi_clk: adsl_spi_clk-pins { 152 function = "adsl_spi_clk"; 153 pins = "gpio18"; 154 }; 155 156 pinctrl_adsl_spi_cs: adsl_spi_cs-pins { 157 function = "adsl_spi_cs"; 158 pins = "gpio19"; 159 }; 160 }; 161 162 pinctrl_ephy0_led: ephy0_led-pins { 163 function = "ephy0_led"; 164 pins = "gpio20"; 165 }; 166 167 pinctrl_ephy1_led: ephy1_led-pins { 168 function = "ephy1_led"; 169 pins = "gpio21"; 170 }; 171 172 pinctrl_ephy2_led: ephy2_led-pins { 173 function = "ephy2_led"; 174 pins = "gpio22"; 175 }; 176 177 pinctrl_ephy3_led: ephy3_led-pins { 178 function = "ephy3_led"; 179 pins = "gpio23"; 180 }; 181 182 pinctrl_ext_irq0: ext_irq0-pins { 183 function = "ext_irq0"; 184 pins = "gpio24"; 185 }; 186 187 pinctrl_ext_irq1: ext_irq1-pins { 188 function = "ext_irq1"; 189 pins = "gpio25"; 190 }; 191 192 pinctrl_ext_irq2: ext_irq2-pins { 193 function = "ext_irq2"; 194 pins = "gpio26"; 195 }; 196 197 pinctrl_ext_irq3: ext_irq3-pins { 198 function = "ext_irq3"; 199 pins = "gpio27"; 200 }; 201 202 pinctrl_nand: nand-pins { 203 function = "nand"; 204 group = "nand_grp"; 205 }; 206 }; 207