ff9d6398a9ea99f278d54357ca075f4f080befda
[openwrt/openwrt.git] / target / linux / ramips / dts / DUZUN-DM06.dts
1 /dts-v1/;
2
3 #include "mt7628an.dtsi"
4
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
7
8 / {
9 compatible = "duzun,dm06", "mediatek,mt7628an-soc";
10 model = "DuZun DM06";
11
12 memory@0 {
13 device_type = "memory";
14 reg = <0x0 0x4000000>;
15 };
16
17 gpio-keys-polled {
18 compatible = "gpio-keys-polled";
19 poll-interval = <100>;
20
21 reset {
22 label = "reset";
23 gpios = <&gpio1 14 GPIO_ACTIVE_LOW>;
24 linux,code = <KEY_RESTART>;
25 };
26
27 wps {
28 label = "wps";
29 gpios = <&gpio1 6 GPIO_ACTIVE_LOW>;
30 linux,code = <KEY_WPS_BUTTON>;
31 };
32 };
33
34 sound {
35 compatible = "simple-audio-card";
36 simple-audio-card,name = "Audio-I2S";
37 simple-audio-card,format = "i2s";
38 simple-audio-card,bitclock-master = <&dailink0_master>;
39 simple-audio-card,frame-master = <&dailink0_master>;
40 simple-audio-card,widgets =
41 "Headphone", "Headphones";
42 simple-audio-card,routing =
43 "Headphones", "HP_L",
44 "Headphones", "HP_R";
45 simple-audio-card,mclk-fs = <256>;
46
47 simple-audio-card,cpu {
48 sound-dai = <&i2s>;
49 };
50
51 dailink0_master: simple-audio-card,codec {
52 sound-dai = <&codec>;
53 };
54 };
55 };
56
57 &pinctrl {
58 state_default: pinctrl0 {
59 gpio {
60 ralink,group = "wdt", "uart1";
61 ralink,function = "gpio";
62 };
63 };
64 };
65
66 &gpio1 {
67 status = "okay";
68 };
69
70 &i2c {
71 status = "okay";
72
73 codec: wm8960@1a {
74 #sound-dai-cells = <0>;
75 compatible = "wlf,wm8960";
76 reg = <0x1a>;
77
78 wlf,shared-lrclk;
79 };
80 };
81
82 &ethernet {
83 mtd-mac-address = <&factory 0x4>;
84 };
85
86 &esw {
87 mediatek,portmap = <0x3>;
88 mediatek,portdisable = <0x3c>;
89 };
90
91 &i2s {
92 #sound-dai-cells = <0>;
93 status = "okay";
94 pinctrl-names = "default";
95 pinctrl-0 = <&i2s_pins>, <&refclk_pins>;
96 };
97
98 &sdhci {
99 status = "okay";
100 };
101
102 &gdma {
103 status = "okay";
104 };
105
106 &spi0 {
107 status = "okay";
108
109 m25p80@0 {
110 compatible = "jedec,spi-nor";
111 reg = <0>;
112 spi-max-frequency = <60000000>;
113 m25p,chunked-io = <32>;
114 m25p,fast-read;
115
116 partitions {
117 compatible = "fixed-partitions";
118 #address-cells = <1>;
119 #size-cells = <1>;
120
121 partition@0 {
122 label = "u-boot";
123 reg = <0x0 0x30000>;
124 read-only;
125 };
126
127 partition@30000 {
128 label = "u-boot-env";
129 reg = <0x30000 0x10000>;
130 read-only;
131 };
132
133 factory: partition@40000 {
134 label = "factory";
135 reg = <0x40000 0x10000>;
136 read-only;
137 };
138
139 partition@50000 {
140 compatible = "denx,uimage";
141 label = "firmware";
142 reg = <0x50000 0x7b0000>;
143 };
144 };
145 };
146 };