ramips: update device tree source files
[openwrt/staging/wigyori.git] / target / linux / ramips / dts / WT3020-8M.dts
1 /dts-v1/;
2
3 #include "mt7620n.dtsi"
4
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
7
8 / {
9 compatible = "nexx,wt3020-8m", "nexx,wt3020", "ralink,mt7620n-soc";
10 model = "Nexx WT3020 (8M)";
11
12 gpio-keys-polled {
13 compatible = "gpio-keys-polled";
14 #address-cells = <1>;
15 #size-cells = <0>;
16 poll-interval = <20>;
17
18 reset {
19 label = "reset";
20 gpios = <&gpio0 1 GPIO_ACTIVE_LOW>;
21 linux,code = <KEY_RESTART>;
22 };
23 };
24
25 gpio-leds {
26 compatible = "gpio-leds";
27
28 power {
29 label = "wt3020:blue:power";
30 gpios = <&gpio3 0 GPIO_ACTIVE_HIGH>;
31 };
32 };
33 };
34
35 &gpio2 {
36 status = "okay";
37 };
38
39 &gpio3 {
40 status = "okay";
41 };
42
43 &spi0 {
44 status = "okay";
45
46 m25p80@0 {
47 #address-cells = <1>;
48 #size-cells = <1>;
49 compatible = "jedec,spi-nor";
50 reg = <0>;
51 spi-max-frequency = <10000000>;
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 0x10000>;
62 read-only;
63 };
64
65 factory: partition@40000 {
66 label = "factory";
67 reg = <0x40000 0x10000>;
68 read-only;
69 };
70
71 partition@50000 {
72 label = "firmware";
73 reg = <0x50000 0x7b0000>;
74 };
75 };
76 };
77
78 &ehci {
79 status = "okay";
80 };
81
82 &ohci {
83 status = "okay";
84 };
85
86 &ethernet {
87 mtd-mac-address = <&factory 0x4>;
88 mediatek,portmap = "wllll";
89 };
90
91 &wmac {
92 ralink,mtd-eeprom = <&factory 0>;
93 };
94
95 &pinctrl {
96 state_default: pinctrl0 {
97 default {
98 ralink,group = "ephy", "wled", "pa", "i2c", "wdt", "uartf";
99 ralink,function = "gpio";
100 };
101 };
102 };