91e39ec526501c3c69fa187851a25648d45db760
[openwrt/staging/wigyori.git] / target / linux / ramips / dts / ZBT-WE2026.dts
1 /dts-v1/;
2
3 #include <dt-bindings/gpio/gpio.h>
4 #include <dt-bindings/input/input.h>
5
6 #include "mt7620n.dtsi"
7
8 / {
9 compatible = "zbtlink,zbt-we2026", "ralink,mt7620n-soc";
10 model = "Zbtlink ZBT-WE2026";
11
12 aliases {
13 led-status = &led_power;
14 };
15
16 chosen {
17 bootargs = "console=ttyS0,115200";
18 };
19
20 gpio-leds {
21 compatible = "gpio-leds";
22
23 led_power: power {
24 label = "zbt-we2026:red:power";
25 gpios = <&gpio1 14 GPIO_ACTIVE_LOW>;
26 };
27
28 wlan {
29 label = "zbt-we2026:green:wlan";
30 gpios = <&gpio3 0 GPIO_ACTIVE_LOW>;
31 };
32 };
33
34 gpio-keys-polled {
35 compatible = "gpio-keys-polled";
36 #address-cells = <1>;
37 #size-cells = <0>;
38 poll-interval = <20>;
39
40 reset {
41 label = "reset";
42 gpios = <&gpio0 1 GPIO_ACTIVE_LOW>;
43 linux,code = <KEY_RESTART>;
44 };
45 };
46 };
47
48 &gpio1 {
49 status = "okay";
50 };
51
52 &gpio3 {
53 status = "okay";
54 };
55
56 &spi0 {
57 status = "okay";
58
59 en25q64@0 {
60 #address-cells = <1>;
61 #size-cells = <1>;
62 compatible = "jedec,spi-nor";
63 reg = <0>;
64 spi-max-frequency = <10000000>;
65
66 partition@0 {
67 label = "u-boot";
68 reg = <0x0 0x30000>;
69 read-only;
70 };
71
72 partition@30000 {
73 label = "u-boot-env";
74 reg = <0x30000 0x10000>;
75 read-only;
76 };
77
78 factory: partition@40000 {
79 label = "factory";
80 reg = <0x40000 0x10000>;
81 read-only;
82 };
83
84 partition@50000 {
85 label = "firmware";
86 reg = <0x50000 0x760000>;
87 };
88 };
89 };
90
91 &ethernet {
92 mtd-mac-address = <&factory 0x4>;
93 mediatek,portmap = "wllll";
94 };
95
96 &wmac {
97 ralink,mtd-eeprom = <&factory 0>;
98 };
99
100 &pinctrl {
101 state_default: pinctrl0 {
102 default {
103 ralink,group = "i2c", "spi refclk", "wled";
104 ralink,function = "gpio";
105 };
106 };
107 };