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