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