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