ramips: move redundant console setup to mt7621 SoC DTSI
[openwrt/openwrt.git] / target / linux / ramips / dts / mt7621_samknows_whitebox-v8.dts
1 /dts-v1/;
2
3 #include "mt7621.dtsi"
4 #include <dt-bindings/input/input.h>
5 #include <dt-bindings/gpio/gpio.h>
6
7 / {
8 compatible = "samknows,whitebox-v8", "mediatek,mt7621-soc";
9 model = "SamKnows Whitebox 8";
10
11 aliases {
12 led-boot = &led_wps;
13 led-failsafe = &led_wps;
14 led-running = &led_wps;
15 led-upgrade = &led_wps;
16 };
17
18 leds {
19 compatible = "gpio-leds";
20
21 led_wps: wps {
22 label = "sk-wb8:green:wps";
23 gpios = <&gpio 46 GPIO_ACTIVE_LOW>;
24 };
25
26 usb {
27 label = "sk-wb8:green:usb";
28 gpios = <&gpio 47 GPIO_ACTIVE_LOW>;
29 trigger-sources = <&xhci_ehci_port1>, <&ehci_port2>;
30 linux,default-trigger = "usbport";
31 };
32 };
33
34 keys {
35 compatible = "gpio-keys";
36
37 wps {
38 label = "wps";
39 gpios = <&gpio 43 GPIO_ACTIVE_LOW>;
40 linux,code = <KEY_WPS_BUTTON>;
41 };
42
43 reset {
44 label = "reset";
45 gpios = <&gpio 41 GPIO_ACTIVE_LOW>;
46 linux,code = <KEY_RESTART>;
47 };
48 };
49 };
50
51 &spi0 {
52 status = "okay";
53
54 flash@0 {
55 compatible = "jedec,spi-nor";
56 reg = <0>;
57 spi-max-frequency = <10000000>;
58
59 partitions {
60 compatible = "fixed-partitions";
61 #address-cells = <1>;
62 #size-cells = <1>;
63
64 partition@0 {
65 label = "u-boot";
66 reg = <0x0 0x30000>;
67 read-only;
68 };
69
70 partition@30000 {
71 label = "u-boot-env";
72 reg = <0x30000 0x10000>;
73 };
74
75 factory: partition@40000 {
76 label = "factory";
77 reg = <0x40000 0x10000>;
78 read-only;
79 };
80
81 partition@50000 {
82 compatible = "denx,uimage";
83 label = "firmware";
84 reg = <0x50000 0xfb0000>;
85 };
86 };
87 };
88 };
89
90 &pcie {
91 status = "okay";
92 };
93
94 &pcie0 {
95 mt76@0,0 {
96 reg = <0x0000 0 0 0 0>;
97 mediatek,mtd-eeprom = <&factory 0x8000>;
98 ieee80211-freq-limit = <5000000 6000000>;
99 };
100 };
101
102 &pcie1 {
103 mt76@0,0 {
104 reg = <0x0000 0 0 0 0>;
105 mediatek,mtd-eeprom = <&factory 0x0000>;
106 };
107 };
108
109 &gmac0 {
110 mtd-mac-address = <&factory 0xe000>;
111 };
112
113 &switch0 {
114 ports {
115 port@0 {
116 status = "okay";
117 label = "lan1";
118 };
119
120 port@1 {
121 status = "okay";
122 label = "lan2";
123 };
124
125 port@2 {
126 status = "okay";
127 label = "lan3";
128 };
129
130 port@3 {
131 status = "okay";
132 label = "lan4";
133 };
134
135 port@4 {
136 status = "okay";
137 label = "wan";
138 mtd-mac-address = <&factory 0xe006>;
139 };
140 };
141 };
142
143 &state_default {
144 gpio {
145 groups = "sdhci";
146 function = "gpio";
147 };
148 };