ramips: use DT trigger for 2G WiFi on ASUS RT-AC51U
[openwrt/openwrt.git] / target / linux / ramips / dts / mt7621_gnubee_gb-pc1.dts
1 /dts-v1/;
2
3 #include "mt7621.dtsi"
4
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
7
8 / {
9 compatible = "gnubee,gb-pc1", "mediatek,mt7621-soc";
10 model = "GB-PC1";
11
12 aliases {
13 led-boot = &led_status;
14 led-failsafe = &led_status;
15 led-running = &led_status;
16 led-upgrade = &led_status;
17 };
18
19 chosen {
20 bootargs = "console=ttyS0,57600";
21 };
22
23 keys {
24 compatible = "gpio-keys";
25
26 reset {
27 label = "reset";
28 gpios = <&gpio 18 GPIO_ACTIVE_HIGH>;
29 linux,code = <KEY_RESTART>;
30 };
31 };
32
33 leds {
34 compatible = "gpio-leds";
35
36 system {
37 label = "gb-pc1:green:system";
38 gpios = <&gpio 6 GPIO_ACTIVE_LOW>;
39 };
40
41 led_status: status {
42 label = "gb-pc1:green:status";
43 gpios = <&gpio 8 GPIO_ACTIVE_LOW>;
44 };
45
46 lan1 {
47 label = "gb-pc1:green:lan1";
48 gpios = <&gpio 24 GPIO_ACTIVE_LOW>;
49 };
50
51 lan2 {
52 label = "gb-pc1:green:lan2";
53 gpios = <&gpio 25 GPIO_ACTIVE_LOW>;
54 };
55 };
56 };
57
58 &sdhci {
59 status = "okay";
60 };
61
62 &spi0 {
63 status = "okay";
64
65 flash@0 {
66 compatible = "jedec,spi-nor";
67 reg = <0>;
68 spi-max-frequency = <80000000>;
69 broken-flash-reset;
70 m25p,fast-read;
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 0x1fb0000>;
99 };
100 };
101 };
102 };
103
104 &pcie {
105 status = "okay";
106 };
107
108 &gmac0 {
109 mtd-mac-address = <&factory 0xe000>;
110 };
111
112 &switch0 {
113 ports {
114 port@0 {
115 status = "okay";
116 label = "lan1";
117 };
118
119 port@4 {
120 status = "okay";
121 label = "lan2";
122 };
123 };
124 };
125
126 &state_default {
127 gpio {
128 groups = "jtag", "rgmii2", "uart3", "wdt";
129 function = "gpio";
130 };
131 };