ramips: Add support for Xiaomi MiWiFi Nano
[openwrt/staging/mkresin.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 = "gpio";
22 ralink,function = "gpio";
23 };
24 };
25 };
26
27 gpio-export {
28 compatible = "gpio-export";
29 #size-cells = <0>;
30
31 gpio11 {
32 /* blue led */
33 gpio-export,name = "gpio11";
34 gpio-export,direction_may_change = <1>;
35 gpio-export,output = <1>;
36 gpios = <&gpio0 11 0>;
37 };
38
39 gpio37 {
40 /* red led */
41 gpio-export,name = "gpio37";
42 gpio-export,direction_may_change = <1>;
43 gpio-export,output = <1>;
44 gpios = <&gpio1 5 0>;
45 };
46
47 gpio44 {
48 /* yellow led */
49 gpio-export,name = "gpio44";
50 gpio-export,direction_may_change = <1>;
51 gpio-export,output = <1>;
52 gpios = <&gpio1 12 0>;
53 };
54 };
55
56
57 wmac@10300000 {
58 status = "okay";
59 };
60
61 palmbus@10000000 {
62 spi@b00 {
63 status = "okay";
64
65 m25p80@0 {
66 #address-cells = <1>;
67 #size-cells = <1>;
68 compatible = "jedec,spi-nor";
69 reg = <0 0>;
70 linux,modalias = "m25p80";
71 spi-max-frequency = <10000000>;
72 m25p,chunked-io = <32>;
73
74 partition@0 {
75 label = "u-boot";
76 reg = <0x0 0x30000>;
77 read-only;
78 };
79
80 partition@30000 {
81 label = "u-boot-env";
82 reg = <0x30000 0x10000>;
83 read-only;
84 };
85
86 factory: partition@40000 {
87 label = "factory";
88 reg = <0x40000 0x10000>;
89 read-only;
90 };
91
92 partition@50000 {
93 label = "firmware";
94 reg = <0x50000 0x7b0000>;
95 };
96 };
97 };
98 };
99 };