1 // SPDX-License-Identifier: GPL-2.0 2 #include "qcom-ipq8064.dtsi" 3 #include <dt-bindings/input/input.h> 4 #include <dt-bindings/leds/common.h> 5 6 / { 7 model = "MikroTik RB3011UiAS-RM"; 8 compatible = "mikrotik,rb3011", "qcom, 9 10 aliases { 11 serial0 = &gsbi7_serial; 12 ethernet0 = &gmac0; 13 ethernet1 = &gmac3; 14 mdio-gpio0 = &mdio0; 15 mdio-gpio1 = &mdio1; 16 }; 17 18 chosen { 19 bootargs = "loglevel=8 console 20 stdout-path = "serial0:115200n 21 }; 22 23 gpio-keys { 24 compatible = "gpio-keys"; 25 pinctrl-0 = <&buttons_pins>; 26 pinctrl-names = "default"; 27 28 button { 29 label = "reset"; 30 linux,code = <KEY_REST 31 gpios = <&qcom_pinmux 32 linux,input-type = <1> 33 debounce-interval = <6 34 }; 35 }; 36 37 leds { 38 compatible = "gpio-leds"; 39 pinctrl-0 = <&leds_pins>; 40 pinctrl-names = "default"; 41 42 led-0 { 43 label = "rb3011:green: 44 color = <LED_COLOR_ID_ 45 gpios = <&qcom_pinmux 46 default-state = "off"; 47 }; 48 }; 49 50 memory@42000000 { 51 reg = <0x42000000 0x3e000000>; 52 device_type = "memory"; 53 }; 54 55 mdio0: mdio-0 { 56 status = "okay"; 57 compatible = "virtual,mdio-gpi 58 gpios = <&qcom_pinmux 1 GPIO_A 59 <&qcom_pinmux 0 GPIO_A 60 #address-cells = <1>; 61 #size-cells = <0>; 62 63 pinctrl-0 = <&mdio0_pins>; 64 pinctrl-names = "default"; 65 66 switch0: switch@10 { 67 compatible = "qca,qca8 68 69 dsa,member = <0 0>; 70 71 pinctrl-0 = <&sw0_rese 72 pinctrl-names = "defau 73 74 reset-gpios = <&qcom_p 75 reg = <0x10>; 76 77 ports { 78 #address-cells 79 #size-cells = 80 81 switch0cpu: po 82 reg = 83 label 84 ethern 85 phy-mo 86 fixed- 87 88 89 }; 90 }; 91 92 port@1 { 93 reg = 94 label 95 96 leds { 97 98 99 100 101 102 103 104 105 106 }; 107 }; 108 109 port@2 { 110 reg = 111 label 112 113 leds { 114 115 116 117 118 119 120 121 122 123 }; 124 }; 125 126 port@3 { 127 reg = 128 label 129 130 leds { 131 132 133 134 135 136 137 138 139 140 }; 141 }; 142 143 port@4 { 144 reg = 145 label 146 147 leds { 148 149 150 151 152 153 154 155 156 157 }; 158 }; 159 160 port@5 { 161 reg = 162 label 163 164 leds { 165 166 167 168 169 170 171 172 173 174 }; 175 }; 176 }; 177 }; 178 }; 179 180 mdio1: mdio-1 { 181 status = "okay"; 182 compatible = "virtual,mdio-gpi 183 gpios = <&qcom_pinmux 11 GPIO_ 184 <&qcom_pinmux 10 GPIO_ 185 #address-cells = <1>; 186 #size-cells = <0>; 187 188 pinctrl-0 = <&mdio1_pins>; 189 pinctrl-names = "default"; 190 191 switch1: switch@14 { 192 compatible = "qca,qca8 193 194 dsa,member = <1 0>; 195 196 pinctrl-0 = <&sw1_rese 197 pinctrl-names = "defau 198 199 reset-gpios = <&qcom_p 200 reg = <0x10>; 201 202 ports { 203 #address-cells 204 #size-cells = 205 206 switch1cpu: po 207 reg = 208 label 209 ethern 210 phy-mo 211 fixed- 212 213 214 }; 215 }; 216 217 port@1 { 218 reg = 219 label 220 221 leds { 222 223 224 225 226 227 228 229 230 231 }; 232 }; 233 234 port@2 { 235 reg = 236 label 237 238 leds { 239 240 241 242 243 244 245 246 247 248 }; 249 }; 250 251 port@3 { 252 reg = 253 label 254 255 leds { 256 257 258 259 260 261 262 263 264 265 }; 266 }; 267 268 port@4 { 269 reg = 270 label 271 272 leds { 273 274 275 276 277 278 279 280 281 282 }; 283 }; 284 285 port@5 { 286 reg = 287 label 288 289 leds { 290 291 292 293 294 295 296 297 298 299 }; 300 }; 301 }; 302 }; 303 }; 304 305 soc { 306 gsbi5: gsbi@1a200000 { 307 qcom,mode = <GSBI_PROT 308 status = "okay"; 309 310 spi4: spi@1a280000 { 311 status = "okay 312 313 pinctrl-0 = <& 314 pinctrl-names 315 316 cs-gpios = <&q 317 318 norflash: flas 319 compat 320 #addre 321 #size- 322 spi-ma 323 reg = 324 325 partit 326 327 328 }; 329 }; 330 }; 331 }; 332 }; 333 }; 334 335 &adm_dma { 336 status = "okay"; 337 }; 338 339 &gmac0 { 340 status = "okay"; 341 342 phy-mode = "rgmii"; 343 qcom,id = <0>; 344 phy-handle = <&switch0cpu>; 345 346 fixed-link { 347 speed = <1000>; 348 full-duplex; 349 }; 350 }; 351 352 &gmac3 { 353 status = "okay"; 354 355 phy-mode = "sgmii"; 356 qcom,id = <3>; 357 phy-handle = <&switch1cpu>; 358 359 fixed-link { 360 speed = <1000>; 361 full-duplex; 362 }; 363 }; 364 365 &gsbi7 { 366 status = "okay"; 367 qcom,mode = <GSBI_PROT_I2C_UART>; 368 }; 369 370 &gsbi7_serial { 371 status = "okay"; 372 }; 373 374 &hs_phy_1 { 375 status = "okay"; 376 }; 377 378 &nand { 379 status = "okay"; 380 381 nand@0 { 382 reg = <0>; 383 384 nand-ecc-strength = <4>; 385 nand-bus-width = <8>; 386 nand-ecc-step-size = <512>; 387 388 partitions { 389 compatible = "fixed-pa 390 #address-cells = <1>; 391 #size-cells = <1>; 392 393 boot@0 { 394 label = "Route 395 reg = <0x00000 396 }; 397 398 main@800000 { 399 label = "Route 400 reg = <0x08000 401 }; 402 }; 403 }; 404 }; 405 406 &qcom_pinmux { 407 buttons_pins: buttons-state { 408 pins = "gpio66"; 409 function = "gpio"; 410 drive-strength = <16>; 411 bias-disable; 412 }; 413 414 leds_pins: leds-state { 415 pins = "gpio33"; 416 function = "gpio"; 417 drive-strength = <16>; 418 bias-disable; 419 }; 420 421 mdio1_pins: mdio1-state { 422 pins = "gpio10", "gpio11"; 423 function = "gpio"; 424 drive-strength = <8>; 425 bias-disable; 426 }; 427 428 sw0_reset_pin: sw0-reset-state { 429 pins = "gpio16"; 430 drive-strength = <16>; 431 function = "gpio"; 432 bias-disable; 433 input-disable; 434 }; 435 436 sw1_reset_pin: sw1-reset-state { 437 pins = "gpio17"; 438 drive-strength = <16>; 439 function = "gpio"; 440 bias-disable; 441 input-disable; 442 }; 443 444 usb1_pwr_en_pins: usb1-pwr-en-state { 445 pins = "gpio4"; 446 function = "gpio"; 447 drive-strength = <16>; 448 bias-disable; 449 output-high; 450 }; 451 }; 452 453 &ss_phy_1 { 454 status = "okay"; 455 }; 456 457 &usb3_1 { 458 pinctrl-0 = <&usb1_pwr_en_pins>; 459 pinctrl-names = "default"; 460 461 status = "okay"; 462 };
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.