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