ramips: add support for TP-Link RE200 v1
[oweals/openwrt.git] / target / linux / ramips / dts / mt7620n_vonets_var11n-300.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 = "vonets,var11n-300", "ralink,mt7620n-soc";
10         model = "Vonets VAR11N-300";
11
12         aliases {
13                 led-boot = &led_system;
14                 led-failsafe = &led_system;
15                 led-running = &led_system;
16                 led-upgrade = &led_system;
17         };
18
19         leds {
20                 compatible = "gpio-leds";
21
22                 led_system: system {
23                         label = "var11n-300:blue:system";
24                         gpios = <&gpio0 0 GPIO_ACTIVE_HIGH>;
25                 };
26         };
27
28         keys {
29                 compatible = "gpio-keys";
30
31                 reset {
32                         label = "reset";
33                         gpios = <&gpio0 1 GPIO_ACTIVE_LOW>;
34                         linux,code = <KEY_RESTART>;
35                 };
36         };
37 };
38
39 &gpio0 {
40         status = "okay";
41 };
42
43 &spi0 {
44         status = "okay";
45
46         m25p80@0 {
47                 compatible = "jedec,spi-nor";
48                 reg = <0>;
49                 spi-max-frequency = <10000000>;
50
51                 partitions {
52                         compatible = "fixed-partitions";
53                         #address-cells = <1>;
54                         #size-cells = <1>;
55
56                         partition@0 {
57                                 label = "u-boot";
58                                 reg = <0x0 0x30000>;
59                                 read-only;
60                         };
61
62                         partition@30000 {
63                                 label = "u-boot-env";
64                                 reg = <0x30000 0x10000>;
65                                 read-only;
66                         };
67
68                         factory: partition@40000 {
69                                 label = "factory";
70                                 reg = <0x40000 0x10000>;
71                                 read-only;
72                         };
73
74                         partition@50000 {
75                                 compatible = "denx,uimage";
76                                 label = "firmware";
77                                 reg = <0x50000 0x3b0000>;
78                         };
79                 };
80         };
81 };
82
83 &ethernet {
84         mtd-mac-address = <&factory 0x4>;
85         mediatek,portmap = "llllw";
86 };
87
88 &wmac {
89         ralink,mtd-eeprom = <&factory 0>;
90 };
91
92 &state_default {
93         default {
94                 ralink,group = "i2c";
95                 ralink,function = "gpio";
96         };
97 };