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