ramips: add missing syscon compatible strings for MT7688 and RT3052
[openwrt/openwrt.git] / target / linux / ramips / dts / mt7620n_kingston_mlw221.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,mlw221", "ralink,mt7620n-soc";
8 model = "Kingston MLW221";
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 = <&gpio2 3 GPIO_ACTIVE_LOW>;
23 };
24
25 wifi {
26 label = "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 &gpio2 {
49 status = "okay";
50 };
51
52 &gpio3 {
53 status = "okay";
54 };
55
56 &spi0 {
57 status = "okay";
58
59 flash@0 {
60 compatible = "jedec,spi-nor";
61 reg = <0>;
62 spi-max-frequency = <10000000>;
63
64 partitions {
65 compatible = "fixed-partitions";
66 #address-cells = <1>;
67 #size-cells = <1>;
68
69 partition@0 {
70 label = "u-boot";
71 reg = <0x0 0x30000>;
72 read-only;
73 };
74
75 partition@30000 {
76 label = "u-boot-env";
77 reg = <0x30000 0x10000>;
78 read-only;
79 };
80
81 factory: partition@40000 {
82 label = "factory";
83 reg = <0x40000 0x10000>;
84 read-only;
85
86 nvmem-layout {
87 compatible = "fixed-layout";
88 #address-cells = <1>;
89 #size-cells = <1>;
90
91 eeprom_factory_0: eeprom@0 {
92 reg = <0x0 0x200>;
93 };
94
95 macaddr_factory_4: macaddr@4 {
96 reg = <0x4 0x6>;
97 };
98 };
99 };
100
101 partition@50000 {
102 compatible = "denx,uimage";
103 label = "firmware";
104 reg = <0x50000 0xf60000>;
105 };
106
107 partition@fb0000 {
108 label = "user-config";
109 reg = <0xfb0000 0x50000>;
110 };
111 };
112 };
113 };
114
115 &ehci {
116 status = "okay";
117 };
118
119 &ohci {
120 status = "okay";
121 };
122
123 &ethernet {
124 nvmem-cells = <&macaddr_factory_4>;
125 nvmem-cell-names = "mac-address";
126
127 mediatek,portmap = "wllll";
128 };
129
130 &wmac {
131 nvmem-cells = <&eeprom_factory_0>;
132 nvmem-cell-names = "eeprom";
133 };
134
135 &state_default {
136 default {
137 groups = "i2c", "ephy", "wled";
138 function = "gpio";
139 };
140 };