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