ramips: add support for Sitecom WLR-6000
[oweals/openwrt.git] / target / linux / ramips / dts / SK-WB8.dts
1 /dts-v1/;
2
3 #include "mt7621.dtsi"
4
5 #include <dt-bindings/input/input.h>
6
7 / {
8         compatible = "mediatek,mt7621-eval-board", "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 1>;
26                 };
27
28                 usb {
29                         label = "sk-wb8:green:usb";
30                         gpios = <&gpio1 15 1>;
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 1>;
42                         linux,code = <KEY_WPS_BUTTON>;
43                 };
44                 reset {
45                         label = "reset";
46                         gpios = <&gpio1 9 1>;
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                 linux,modalias = "m25p80";
61                 spi-max-frequency = <10000000>;
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 0x7b0000>;
83                 };
84
85                 partition@e30000 {
86                         label = "recovery";
87                         reg = <0xe30000 0x1d0000>;
88                 };
89
90         };
91 };
92
93 &pcie {
94         status = "okay";
95
96         pcie0 {
97                 mt76@0,0 {
98                         reg = <0x0000 0 0 0 0>;
99                         device_type = "pci";
100                         mediatek,mtd-eeprom = <&factory 0x8000>;
101                         mediatek,2ghz = <0>;
102                 };
103         };
104
105         pcie1 {
106                 mt76@1,0 {
107                         reg = <0x0000 0 0 0 0>;
108                         device_type = "pci";
109                         mediatek,mtd-eeprom = <&factory 0x0000>;
110                         mediatek,5ghz = <0>;
111                 };
112         };
113 };
114
115 &ethernet {
116         mtd-mac-address = <&factory 0xe000>;
117 };
118
119 &pinctrl {
120         state_default: pinctrl0 {
121                 gpio {
122                         ralink,group = "i2c", "uart2", "uart3", "rgmii2", "sdhci";
123                         ralink,function = "gpio";
124                 };
125         };
126 };