rpcd: iwinfo plugin fixes
[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         pinctrl {
19                 state_default: pinctrl0 {
20                         gpio {
21                                 ralink,group = "refclk", "wled", "gpio";
22                                 ralink,function = "gpio";
23                         };
24                 };
25         };
26
27         gpio-leds {
28                 compatible = "gpio-leds";
29
30                 wifi {
31                         label = "miwifi-nano:blue:wifi";
32                         gpios = <&gpio0 11 1>;
33                         default-state = "1";
34                 };
35                 status {
36                         label = "miwifi-nano:red:status";
37                         gpios = <&gpio1 5 1>;
38                         default-state = "on";
39                 };
40                 radio {
41                         label = "miwifi-nano:amber:radio";
42                         gpios = <&gpio1 12 1>;
43                         default-state = "1";
44
45                 };
46         };
47
48
49         wmac@10300000 {
50                 status = "okay";
51         };
52
53         palmbus@10000000 {
54                 spi@b00 {
55                         status = "okay";
56
57                         m25p80@0 {
58                                 #address-cells = <1>;
59                                 #size-cells = <1>;
60                                 compatible = "jedec,spi-nor";
61                                 reg = <0 0>;
62                                 linux,modalias = "m25p80";
63                                 spi-max-frequency = <10000000>;
64                                 m25p,chunked-io = <32>;
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 0x7b0000>;
87                                 };
88                         };
89                 };
90         };
91 };