1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
3 #include <dt-bindings/leds/common.h>
5 #include "qca9533_mikrotik_routerboard-16m.dtsi"
8 compatible = "mikrotik,routerboard-map-2nd", "qca,qca9533";
9 model = "MikroTik RouterBOARD mAP-2nD (mAP)";
13 led-failsafe = &led_user;
14 led-running = &led_user;
15 led-upgrade = &led_user;
19 compatible = "gpio-leds";
22 function = LED_FUNCTION_POWER;
23 color = <LED_COLOR_ID_GREEN>;
24 gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
29 label = "green:eth_1";
30 gpios = <&gpio_ext 0 GPIO_ACTIVE_LOW>;
34 label = "green:eth_2";
35 gpios = <&gpio_ext 1 GPIO_ACTIVE_LOW>;
39 label = "red:poe_out";
40 gpios = <&gpio_ext 2 GPIO_ACTIVE_LOW>;
45 gpios = <&gpio_ext 3 GPIO_ACTIVE_LOW>;
49 function = LED_FUNCTION_WLAN;
50 color = <LED_COLOR_ID_GREEN>;
51 gpios = <&gpio_ext 4 GPIO_ACTIVE_LOW>;
52 linux,default-trigger = "phy0tpt";
56 label = "green:ap_cap";
57 gpios = <&gpio_ext 6 GPIO_ACTIVE_LOW>;
63 compatible = "gpio-export";
66 gpio-export,name = "usb-power";
67 gpio-export,output = <1>;
68 gpios = <&gpio_ext 5 GPIO_ACTIVE_LOW>;
72 gpio-export,name = "enable-poe";
73 gpio-export,output = <0>;
74 gpios = <&gpio 14 GPIO_ACTIVE_HIGH>;
80 pinctrl-names = "default";
81 pinctrl-0 = <&pin_spi_cs1>;
83 gpio_ext: gpio_ext@1 {
84 compatible = "fairchild,74hc595";
88 registers-number = <1>;
89 spi-max-frequency = <25000000>;
95 pin_spi_cs1: pinmux_spi_cs1 {
96 pinctrl-single,bits = <0x8 0x0a000000 0xff000000>;
109 phy-handle = <&swphy0>;
113 switch-phy-swap = <1>;