ramips: move dts-v1 statement to top-level DTSI files
[openwrt/staging/wigyori.git] / target / linux / ramips / dts / mt7620n_kingston_mlwg2.dts
1 #include "mt7620n.dtsi"
2
3 #include <dt-bindings/gpio/gpio.h>
4 #include <dt-bindings/input/input.h>
5
6 / {
7 compatible = "kingston,mlwg2", "ralink,mt7620n-soc";
8 model = "Kingston MLWG2";
9
10 aliases {
11 led-boot = &led_system;
12 led-failsafe = &led_system;
13 led-running = &led_system;
14 led-upgrade = &led_system;
15 };
16
17 leds {
18 compatible = "gpio-leds";
19
20 led_system: system {
21 label = "mlwg2:blue:system";
22 gpios = <&gpio2 3 GPIO_ACTIVE_LOW>;
23 };
24
25 wifi {
26 label = "mlwg2:blue:wifi";
27 gpios = <&gpio3 0 GPIO_ACTIVE_LOW>;
28 };
29 };
30
31 keys {
32 compatible = "gpio-keys";
33
34 reset {
35 label = "reset";
36 gpios = <&gpio0 1 GPIO_ACTIVE_LOW>;
37 linux,code = <KEY_RESTART>;
38 };
39
40 system {
41 label = "system";
42 gpios = <&gpio0 2 GPIO_ACTIVE_LOW>;
43 linux,code = <KEY_RFKILL>;
44 };
45 };
46 };
47
48 &gpio0 {
49 status = "okay";
50 };
51
52 &gpio2 {
53 status = "okay";
54 };
55
56 &gpio3 {
57 status = "okay";
58 };
59
60 &spi0 {
61 status = "okay";
62
63 flash@0 {
64 compatible = "jedec,spi-nor";
65 reg = <0>;
66 spi-max-frequency = <10000000>;
67
68 partitions {
69 compatible = "fixed-partitions";
70 #address-cells = <1>;
71 #size-cells = <1>;
72
73 partition@0 {
74 label = "u-boot";
75 reg = <0x0 0x30000>;
76 read-only;
77 };
78
79 partition@30000 {
80 label = "u-boot-env";
81 reg = <0x30000 0x10000>;
82 read-only;
83 };
84
85 factory: partition@40000 {
86 label = "factory";
87 reg = <0x40000 0x10000>;
88 read-only;
89 };
90
91 partition@50000 {
92 compatible = "denx,uimage";
93 label = "firmware";
94 reg = <0x50000 0xf60000>;
95 };
96
97 partition@fb0000 {
98 label = "user-config";
99 reg = <0xfb0000 0x50000>;
100 };
101 };
102 };
103 };
104
105 &ehci {
106 status = "okay";
107 };
108
109 &ohci {
110 status = "okay";
111 };
112
113 &ethernet {
114 mtd-mac-address = <&factory 0x4>;
115
116 mediatek,portmap = "wllll";
117 };
118
119 &wmac {
120 ralink,mtd-eeprom = <&factory 0x0>;
121 };
122
123 &state_default {
124 default {
125 groups = "i2c", "ephy", "wled";
126 function = "gpio";
127 };
128 };