ramips: fix edimax 6200nl switch config
[oweals/openwrt.git] / target / linux / ramips / dts / MIWIFI-NANO.dts
1 /dts-v1/;
2
3 #include "mt7628an.dtsi"
4
5 / {
6         compatible = "xiaomi,MiWifi Nano", "mediatek,mt7628an-soc";
7         model = "MiWiFi Nano";
8
9         chosen {
10                 bootargs = "console=ttyS0,115200";
11         };
12
13         memory@0 {
14                 device_type = "memory";
15                 reg = <0x0 0x4000000>;
16         };
17
18         gpio-leds {
19                 compatible = "gpio-leds";
20
21                 wifi {
22                         label = "miwifi-nano:blue:wifi";
23                         gpios = <&gpio0 11 1>;
24                         default-state = "1";
25                 };
26                 status {
27                         label = "miwifi-nano:red:status";
28                         gpios = <&gpio1 5 1>;
29                         default-state = "on";
30                 };
31                 radio {
32                         label = "miwifi-nano:amber:radio";
33                         gpios = <&gpio1 12 1>;
34                         default-state = "1";
35                 };
36         };
37 };
38
39 &pinctrl {
40         state_default: pinctrl0 {
41                 gpio {
42                         ralink,group = "refclk", "wled_an", "gpio";
43                         ralink,function = "gpio";
44                 };
45         };
46 };
47
48 &wmac {
49         status = "okay";
50 };
51
52 &spi0 {
53         status = "okay";
54
55         m25p80@0 {
56                 #address-cells = <1>;
57                 #size-cells = <1>;
58                 compatible = "jedec,spi-nor";
59                 reg = <0>;
60                 linux,modalias = "m25p80";
61                 spi-max-frequency = <10000000>;
62                 m25p,chunked-io = <32>;
63
64                 partition@0 {
65                         label = "u-boot";
66                         reg = <0x0 0x30000>;
67                         read-only;
68                 };
69
70                 partition@30000 {
71                         label = "u-boot-env";
72                         reg = <0x30000 0x10000>;
73                         read-only;
74                 };
75
76                 factory: partition@40000 {
77                         label = "factory";
78                         reg = <0x40000 0x10000>;
79                         read-only;
80                 };
81
82                 partition@50000 {
83                         label = "firmware";
84                         reg = <0x50000 0x7b0000>;
85                 };
86         };
87 };