ramips: Fix WiFi after 5f7396ebef09b224edf08b0bda113613a42f0928
[openwrt/openwrt.git] / target / linux / ramips / dts / 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 memory@0 {
13 device_type = "memory";
14 reg = <0x0 0x8000000>;
15 };
16
17 chosen {
18 bootargs = "console=ttyS0,57600";
19 };
20
21 gpio-leds {
22 compatible = "gpio-leds";
23
24 usb {
25 label = "sap-g3200u3:green:usb";
26 gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
27 };
28 };
29
30 gpio-keys-polled {
31 compatible = "gpio-keys-polled";
32 #address-cells = <1>;
33 #size-cells = <0>;
34 poll-interval = <20>;
35
36 reset {
37 label = "reset";
38 gpios = <&gpio0 16 GPIO_ACTIVE_LOW>;
39 linux,code = <KEY_RESTART>;
40 };
41
42 rfkill {
43 label = "rfkill";
44 gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
45 linux,code = <KEY_RFKILL>;
46 };
47 };
48 };
49
50 &spi0 {
51 status = "okay";
52
53 m25p80@0 {
54 #address-cells = <1>;
55 #size-cells = <1>;
56 compatible = "jedec,spi-nor";
57 reg = <0>;
58 spi-max-frequency = <10000000>;
59 m25p,chunked-io = <32>;
60
61 partition@0 {
62 label = "u-boot";
63 reg = <0x0 0x30000>;
64 read-only;
65 };
66
67 partition@30000 {
68 label = "u-boot-env";
69 reg = <0x30000 0x1000>;
70 read-only;
71 };
72
73 partition@31000 {
74 label = "config";
75 reg = <0x31000 0xf000>;
76 read-only;
77 };
78
79 factory: partition@40000 {
80 label = "factory";
81 reg = <0x40000 0x10000>;
82 read-only;
83 };
84
85 partition@50000 {
86 label = "firmware";
87 reg = <0x50000 0x7b0000>;
88 };
89 };
90 };
91
92 &pcie {
93 status = "okay";
94
95 pcie0 {
96 mt76@0,0 {
97 mediatek,mtd-eeprom = <&factory 0x8000>;
98 ieee80211-freq-limit = <5000000 6000000>;
99 };
100 };
101
102 pcie1 {
103 mt76@1,0 {
104 mediatek,mtd-eeprom = <&factory 0x0000>;
105 ieee80211-freq-limit = <2400000 2500000>;
106 };
107 };
108 };
109
110 &ethernet {
111 mtd-mac-address = <&factory 0xe006>;
112 };
113
114 &pinctrl {
115 state_default: pinctrl0 {
116 gpio {
117 ralink,group = "uart3", "jtag";
118 ralink,function = "gpio";
119 };
120 };
121 };