ramips: add support for TP-Link EX220 v1
[openwrt/openwrt.git] / target / linux / ramips / dts / mt7620n_vonets_var11n-300.dts
1 #include "mt7620n.dtsi"
2
3 #include <dt-bindings/gpio/gpio.h>
4 #include <dt-bindings/input/input.h>
5
6 / {
7 compatible = "vonets,var11n-300", "ralink,mt7620n-soc";
8 model = "Vonets VAR11N-300";
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 = "blue:system";
22 gpios = <&gpio0 0 GPIO_ACTIVE_HIGH>;
23 };
24 };
25
26 keys {
27 compatible = "gpio-keys";
28
29 reset {
30 label = "reset";
31 gpios = <&gpio0 1 GPIO_ACTIVE_LOW>;
32 linux,code = <KEY_RESTART>;
33 };
34 };
35 };
36
37 &spi0 {
38 status = "okay";
39
40 flash@0 {
41 compatible = "jedec,spi-nor";
42 reg = <0>;
43 spi-max-frequency = <10000000>;
44
45 partitions {
46 compatible = "fixed-partitions";
47 #address-cells = <1>;
48 #size-cells = <1>;
49
50 partition@0 {
51 label = "u-boot";
52 reg = <0x0 0x30000>;
53 read-only;
54 };
55
56 partition@30000 {
57 label = "u-boot-env";
58 reg = <0x30000 0x10000>;
59 read-only;
60 };
61
62 factory: partition@40000 {
63 compatible = "nvmem-cells";
64 label = "factory";
65 reg = <0x40000 0x10000>;
66 #address-cells = <1>;
67 #size-cells = <1>;
68 read-only;
69
70 eeprom_factory_0: eeprom@0 {
71 reg = <0x0 0x200>;
72 };
73
74 macaddr_factory_4: macaddr@4 {
75 reg = <0x4 0x6>;
76 };
77 };
78
79 partition@50000 {
80 compatible = "denx,uimage";
81 label = "firmware";
82 reg = <0x50000 0x3b0000>;
83 };
84 };
85 };
86 };
87
88 &ethernet {
89 nvmem-cells = <&macaddr_factory_4>;
90 nvmem-cell-names = "mac-address";
91
92 mediatek,portmap = "llllw";
93 };
94
95 &wmac {
96 nvmem-cells = <&eeprom_factory_0>;
97 nvmem-cell-names = "eeprom";
98 };
99
100 &state_default {
101 default {
102 groups = "i2c";
103 function = "gpio";
104 };
105 };