ramips: use DT trigger for 2G WiFi on ASUS RT-AC51U
[openwrt/openwrt.git] / target / linux / ramips / dts / mt7628an_zbtlink_zbt-we1226.dts
1 /dts-v1/;
2 #include <dt-bindings/input/input.h>
3 #include <dt-bindings/gpio/gpio.h>
4
5 #include "mt7628an.dtsi"
6
7 / {
8 compatible = "zbtlink,zbt-we1226", "mediatek,mt7628an-soc";
9 model = "Zbtlink ZBT-WE1226";
10
11 aliases {
12 led-boot = &led_wlan;
13 led-failsafe = &led_wlan;
14 led-running = &led_wlan;
15 led-upgrade = &led_wlan;
16 };
17
18 chosen {
19 bootargs = "console=ttyS0,115200";
20 };
21
22 keys {
23 compatible = "gpio-keys";
24
25 reset {
26 label = "reset";
27 gpios = <&gpio 38 GPIO_ACTIVE_LOW>;
28 linux,code = <KEY_RESTART>;
29 };
30 };
31
32 leds {
33 compatible = "gpio-leds";
34
35 wan {
36 label = "zbt-we1226:green:wan";
37 gpios = <&gpio 39 GPIO_ACTIVE_LOW>;
38 };
39
40 lan1 {
41 label = "zbt-we1226:green:lan1";
42 gpios = <&gpio 43 GPIO_ACTIVE_LOW>;
43 };
44
45 lan2 {
46 label = "zbt-we1226:green:lan2";
47 gpios = <&gpio 42 GPIO_ACTIVE_LOW>;
48 };
49
50 led_wlan: wlan {
51 label = "zbt-we1226:green:wlan";
52 gpios = <&gpio 44 GPIO_ACTIVE_LOW>;
53 };
54 };
55 };
56
57 &state_default {
58 gpio {
59 groups = "p0led_an", "p1led_an", "p4led_an", "wdt", "wled_an";
60 function = "gpio";
61 };
62 };
63
64 &spi0 {
65 status = "okay";
66
67 flash@0 {
68 compatible = "jedec,spi-nor";
69 reg = <0>;
70 spi-max-frequency = <10000000>;
71
72 partitions {
73 compatible = "fixed-partitions";
74 #address-cells = <1>;
75 #size-cells = <1>;
76
77 partition@0 {
78 label = "u-boot";
79 reg = <0x0 0x30000>;
80 read-only;
81 };
82
83 partition@30000 {
84 label = "u-boot-env";
85 reg = <0x30000 0x10000>;
86 read-only;
87 };
88
89 factory: partition@40000 {
90 label = "factory";
91 reg = <0x40000 0x10000>;
92 read-only;
93 };
94
95 partition@50000 {
96 compatible = "denx,uimage";
97 label = "firmware";
98 reg = <0x50000 0x7b0000>;
99 };
100 };
101 };
102 };
103
104 &wmac {
105 status = "okay";
106 };
107
108 &ethernet {
109 mtd-mac-address = <&factory 0x2e>;
110 };
111
112 &esw {
113 mediatek,portmap = <0x2f>;
114 };