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