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