ramips: DTS rework
[openwrt/staging/dedeckeh.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
40 &pinctrl {
41 state_default: pinctrl0 {
42 gpio {
43 ralink,group = "refclk", "wled", "gpio";
44 ralink,function = "gpio";
45 };
46 };
47 };
48
49 &wmac {
50 status = "okay";
51 };
52
53 &spi0 {
54 status = "okay";
55
56 m25p80@0 {
57 #address-cells = <1>;
58 #size-cells = <1>;
59 compatible = "jedec,spi-nor";
60 reg = <0 0>;
61 linux,modalias = "m25p80";
62 spi-max-frequency = <10000000>;
63 m25p,chunked-io = <32>;
64
65 partition@0 {
66 label = "u-boot";
67 reg = <0x0 0x30000>;
68 read-only;
69 };
70
71 partition@30000 {
72 label = "u-boot-env";
73 reg = <0x30000 0x10000>;
74 read-only;
75 };
76
77 factory: partition@40000 {
78 label = "factory";
79 reg = <0x40000 0x10000>;
80 read-only;
81 };
82
83 partition@50000 {
84 label = "firmware";
85 reg = <0x50000 0x7b0000>;
86 };
87 };
88 };