ramips: remove bogus ralink,mtd-eeprom with offset 0x4
[openwrt/openwrt.git] / target / linux / ramips / dts / MIWIFI-NANO.dts
1 /dts-v1/;
2
3 #include "mt7628an.dtsi"
4
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
7
8 / {
9 compatible = "xiaomi,miwifi-nano", "mediatek,mt7628an-soc";
10 model = "MiWiFi Nano";
11
12 aliases {
13 led-boot = &led_blue;
14 led-failsafe = &led_blue;
15 led-running = &led_blue;
16 led-upgrade = &led_blue;
17 };
18
19 chosen {
20 bootargs = "console=ttyS0,115200";
21 };
22
23 memory@0 {
24 device_type = "memory";
25 reg = <0x0 0x4000000>;
26 };
27
28 leds {
29 compatible = "gpio-leds";
30
31 led_blue: status_blue {
32 label = "miwifi-nano:blue:status";
33 gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;
34 };
35 status_red {
36 label = "miwifi-nano:red:status";
37 gpios = <&gpio1 5 GPIO_ACTIVE_LOW>;
38 };
39 status_amber {
40 label = "miwifi-nano:amber:status";
41 gpios = <&gpio1 12 GPIO_ACTIVE_LOW>;
42 };
43 };
44
45 keys {
46 compatible = "gpio-keys-polled";
47 poll-interval = <20>;
48
49 reset {
50 label = "reset";
51 gpios = <&gpio1 6 GPIO_ACTIVE_LOW>;
52 linux,code = <KEY_RESTART>;
53 };
54 };
55 };
56
57 &pinctrl {
58 state_default: pinctrl0 {
59 gpio {
60 ralink,group = "refclk", "wled_an", "gpio";
61 ralink,function = "gpio";
62 };
63 };
64 };
65
66 &wmac {
67 status = "okay";
68 };
69
70 &ethernet {
71 mtd-mac-address = <&factory 0x28>;
72 };
73
74 &spi0 {
75 status = "okay";
76
77 m25p80@0 {
78 compatible = "jedec,spi-nor";
79 reg = <0>;
80 spi-max-frequency = <10000000>;
81
82 partitions {
83 compatible = "fixed-partitions";
84 #address-cells = <1>;
85 #size-cells = <1>;
86
87 partition@0 {
88 label = "u-boot";
89 reg = <0x0 0x30000>;
90 read-only;
91 };
92
93 partition@30000 {
94 label = "u-boot-env";
95 reg = <0x30000 0x10000>;
96 read-only;
97 };
98
99 factory: partition@40000 {
100 label = "factory";
101 reg = <0x40000 0x10000>;
102 read-only;
103 };
104
105 partition@50000 {
106 compatible = "denx,uimage";
107 label = "firmware";
108 reg = <0x50000 0xfb0000>;
109 };
110 };
111 };
112 };