ramips: add support for ipTIME A3
[openwrt/openwrt.git] / target / linux / ramips / dts / mt7628an_wavlink_wl-wn575a3.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 = "wavlink,wl-wn575a3", "mediatek,mt7628an-soc";
9 model = "Wavlink WL-WN575A3";
10
11 chosen {
12 bootargs = "console=ttyS0,57600";
13 };
14
15 keys {
16 compatible = "gpio-keys-polled";
17 poll-interval = <20>;
18
19 reset {
20 label = "reset";
21 gpios = <&gpio1 11 GPIO_ACTIVE_LOW>;
22 linux,code = <KEY_RESTART>;
23 };
24
25 wps {
26 label = "wps";
27 gpios = <&gpio1 6 GPIO_ACTIVE_LOW>;
28 linux,code = <KEY_WPS_BUTTON>;
29 };
30 };
31
32 leds {
33 compatible = "gpio-leds";
34
35 wifi-high {
36 label = "wl-wn575a3:green:wifi-high";
37 gpios = <&gpio1 5 GPIO_ACTIVE_LOW>;
38 };
39
40 wifi-med {
41 label = "wl-wn575a3:green:wifi-med";
42 gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;
43 };
44
45 wifi-low {
46 label = "wl-wn575a3:green:wifi-low";
47 gpios = <&gpio1 12 GPIO_ACTIVE_LOW>;
48 };
49
50 wps {
51 label = "wl-wn575a3:green:wps";
52 gpios = <&gpio0 4 GPIO_ACTIVE_LOW>;
53 };
54 };
55 };
56
57 &pinctrl {
58 state_default: pinctrl0 {
59 gpio {
60 ralink,group = "i2c", "wled_an", "gpio", "refclk", "wdt", "p0led_an";
61 ralink,function = "gpio";
62 };
63 };
64 };
65
66 &pcie {
67 status = "okay";
68 };
69
70 &pcie0 {
71 mt76@0,0 {
72 reg = <0x0000 0 0 0 0>;
73 mediatek,mtd-eeprom = <&factory 0x8000>;
74 ieee80211-freq-limit = <5000000 6000000>;
75 };
76 };
77
78 &spi0 {
79 status = "okay";
80
81 flash@0 {
82 compatible = "jedec,spi-nor";
83 reg = <0>;
84 spi-max-frequency = <10000000>;
85
86 partitions {
87 compatible = "fixed-partitions";
88 #address-cells = <1>;
89 #size-cells = <1>;
90
91 partition@0 {
92 label = "u-boot";
93 reg = <0x0 0x30000>;
94 read-only;
95 };
96
97 partition@30000 {
98 label = "u-boot-env";
99 reg = <0x30000 0x10000>;
100 read-only;
101 };
102
103 factory: partition@40000 {
104 label = "factory";
105 reg = <0x40000 0x10000>;
106 read-only;
107 };
108
109 partition@50000 {
110 compatible = "denx,uimage";
111 label = "firmware";
112 reg = <0x50000 0x7b0000>;
113 };
114 };
115 };
116 };
117
118 &wmac {
119 status = "okay";
120 };
121
122 &ethernet {
123 mtd-mac-address = <&factory 0x28>;
124 mediatek,portmap = "llllw";
125 };