ramips: dts: drop memory nodes
[openwrt/staging/mkresin.git] / target / linux / ramips / dts / mt7628an_zbtlink_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 keys {
23 compatible = "gpio-keys-polled";
24 poll-interval = <20>;
25
26 reset {
27 label = "reset";
28 gpios = <&gpio1 6 GPIO_ACTIVE_LOW>;
29 linux,code = <KEY_RESTART>;
30 };
31 };
32
33 leds {
34 compatible = "gpio-leds";
35
36 wan {
37 label = "zbt-we1226:green:wan";
38 gpios = <&gpio1 7 GPIO_ACTIVE_LOW>;
39 };
40
41 lan1 {
42 label = "zbt-we1226:green:lan1";
43 gpios = <&gpio1 11 GPIO_ACTIVE_LOW>;
44 };
45
46 lan2 {
47 label = "zbt-we1226:green:lan2";
48 gpios = <&gpio1 10 GPIO_ACTIVE_LOW>;
49 };
50
51 led_wlan: wlan {
52 label = "zbt-we1226:green:wlan";
53 gpios = <&gpio1 12 GPIO_ACTIVE_LOW>;
54 };
55 };
56 };
57
58 &pinctrl {
59 state_default: pinctrl0 {
60 gpio {
61 ralink,group = "p0led_an", "p1led_an", "p4led_an", "wdt", "wled_an";
62 ralink,function = "gpio";
63 };
64 };
65 };
66
67 &spi0 {
68 status = "okay";
69
70 m25p80@0 {
71 compatible = "jedec,spi-nor";
72 reg = <0>;
73 spi-max-frequency = <10000000>;
74
75 partitions {
76 compatible = "fixed-partitions";
77 #address-cells = <1>;
78 #size-cells = <1>;
79
80 partition@0 {
81 label = "u-boot";
82 reg = <0x0 0x30000>;
83 read-only;
84 };
85
86 partition@30000 {
87 label = "u-boot-env";
88 reg = <0x30000 0x10000>;
89 read-only;
90 };
91
92 factory: partition@40000 {
93 label = "factory";
94 reg = <0x40000 0x10000>;
95 read-only;
96 };
97
98 partition@50000 {
99 compatible = "denx,uimage";
100 label = "firmware";
101 reg = <0x50000 0x7b0000>;
102 };
103 };
104 };
105 };
106
107 &wmac {
108 status = "okay";
109 ralink,mtd-eeprom = <&factory 0x4>;
110 };
111
112 &ethernet {
113 mtd-mac-address = <&factory 0x2e>;
114 mediatek,portmap = "llllw";
115 };