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