ath79: update WA/XC devices UBNT_VERSION to 8.7.4
[openwrt/staging/wigyori.git] / target / linux / ath79 / dts / qca9533_mikrotik_routerboard-map-2nd.dts
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2
3 #include <dt-bindings/leds/common.h>
4
5 #include "qca9533_mikrotik_routerboard-16m.dtsi"
6
7 / {
8 compatible = "mikrotik,routerboard-map-2nd", "qca,qca9533";
9 model = "MikroTik RouterBOARD mAP-2nD (mAP)";
10
11 aliases {
12 led-boot = &led_user;
13 led-failsafe = &led_user;
14 led-running = &led_user;
15 led-upgrade = &led_user;
16 };
17
18 leds {
19 compatible = "gpio-leds";
20
21 power {
22 function = LED_FUNCTION_POWER;
23 color = <LED_COLOR_ID_GREEN>;
24 gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
25 default-state = "on";
26 };
27
28 eth_1 {
29 label = "green:eth_1";
30 gpios = <&gpio_ext 0 GPIO_ACTIVE_LOW>;
31 };
32
33 eth_2 {
34 label = "green:eth_2";
35 gpios = <&gpio_ext 1 GPIO_ACTIVE_LOW>;
36 };
37
38 poe_out {
39 label = "red:poe_out";
40 gpios = <&gpio_ext 2 GPIO_ACTIVE_LOW>;
41 };
42
43 led_user: user {
44 label = "green:user";
45 gpios = <&gpio_ext 3 GPIO_ACTIVE_LOW>;
46 };
47
48 wlan {
49 function = LED_FUNCTION_WLAN;
50 color = <LED_COLOR_ID_GREEN>;
51 gpios = <&gpio_ext 4 GPIO_ACTIVE_LOW>;
52 linux,default-trigger = "phy0tpt";
53 };
54
55 ap_cap {
56 label = "green:ap_cap";
57 gpios = <&gpio_ext 6 GPIO_ACTIVE_LOW>;
58 };
59
60 };
61
62 gpio-export {
63 compatible = "gpio-export";
64
65 usb_power {
66 gpio-export,name = "usb-power";
67 gpio-export,output = <1>;
68 gpios = <&gpio_ext 5 GPIO_ACTIVE_LOW>;
69 };
70
71 enable_poe_port5 {
72 gpio-export,name = "enable-poe";
73 gpio-export,output = <0>;
74 gpios = <&gpio 14 GPIO_ACTIVE_HIGH>;
75 };
76 };
77 };
78
79 &spi {
80 pinctrl-names = "default";
81 pinctrl-0 = <&pin_spi_cs1>;
82
83 gpio_ext: gpio_ext@1 {
84 compatible = "fairchild,74hc595";
85 reg = <1>;
86 gpio-controller;
87 #gpio-cells = <2>;
88 registers-number = <1>;
89 spi-max-frequency = <25000000>;
90 };
91 };
92
93
94 &pinmux {
95 pin_spi_cs1: pinmux_spi_cs1 {
96 pinctrl-single,bits = <0x8 0x0a000000 0xff000000>;
97 };
98 };
99
100 &wmac {
101 status = "okay";
102
103 qca,no-eeprom;
104 };
105
106 &eth0 {
107 status = "okay";
108
109 phy-handle = <&swphy0>;
110
111 gmac-config {
112 device = <&gmac>;
113 switch-phy-swap = <1>;
114 };
115 };
116
117 &usb0 {
118 status = "okay";
119 };
120
121 &usb_phy {
122 status = "okay";
123 };