1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
3 #include "qca9533_mikrotik_routerboard-16m.dtsi"
6 compatible = "mikrotik,routerboard-map-2nd", "qca,qca9533";
7 model = "MikroTik RouterBOARD mAP-2nD (mAP)";
11 led-failsafe = &led_user;
12 led-running = &led_user;
13 led-upgrade = &led_user;
17 compatible = "gpio-leds";
20 label = "green:power";
21 gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
26 label = "green:eth_1";
27 gpios = <&gpio_ext 0 GPIO_ACTIVE_LOW>;
31 label = "green:eth_2";
32 gpios = <&gpio_ext 1 GPIO_ACTIVE_LOW>;
36 label = "red:poe_out";
37 gpios = <&gpio_ext 2 GPIO_ACTIVE_LOW>;
42 gpios = <&gpio_ext 3 GPIO_ACTIVE_LOW>;
47 gpios = <&gpio_ext 4 GPIO_ACTIVE_LOW>;
48 linux,default-trigger = "phy0tpt";
52 label = "green:ap_cap";
53 gpios = <&gpio_ext 6 GPIO_ACTIVE_LOW>;
59 compatible = "gpio-export";
62 gpio-export,name = "usb-power";
63 gpio-export,output = <1>;
64 gpios = <&gpio_ext 5 GPIO_ACTIVE_LOW>;
68 gpio-export,name = "enable-poe";
69 gpio-export,output = <0>;
70 gpios = <&gpio 14 GPIO_ACTIVE_HIGH>;
76 pinctrl-names = "default";
77 pinctrl-0 = <&pin_spi_cs1>;
79 gpio_ext: gpio_ext@1 {
80 compatible = "fairchild,74hc595";
84 registers-number = <1>;
85 spi-max-frequency = <25000000>;
91 pin_spi_cs1: pinmux_spi_cs1 {
92 pinctrl-single,bits = <0x8 0x0a000000 0xff000000>;
99 phy-handle = <&swphy0>;
103 switch-phy-swap = <1>;