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