bd29e0b3f27990bd9928280b4a55f77b2e41e46a
[openwrt/staging/dedeckeh.git] / target / linux / ramips / dts / AP-MT7621A-V60.dts
1 /dts-v1/;
2
3 #include "mt7621.dtsi"
4
5 / {
6 compatible = "mediatek,ap-mt7621a-v60", "mediatek,mt7621-soc";
7 model = "Mediatek AP-MT7621A-V60 EVB";
8
9 memory@0 {
10 device_type = "memory";
11 reg = <0x0 0x8000000>;
12 };
13
14 chosen {
15 bootargs = "console=ttyS0,57600";
16 };
17
18 sound {
19 compatible = "simple-audio-card";
20 simple-audio-card,name = "Audio-I2S";
21 simple-audio-card,format = "i2s";
22 simple-audio-card,bitclock-master = <&dailink0_master>;
23 simple-audio-card,frame-master = <&dailink0_master>;
24 simple-audio-card,widgets =
25 "Microphone", "Microphone Jack",
26 "Headphone", "Headphone Jack";
27 simple-audio-card,routing =
28 "LINPUT1", "Microphone Jack",
29 "RINPUT1", "Microphone Jack",
30 "Headphone Jack", "HP_L",
31 "Headphone Jack", "HP_R";
32 simple-audio-card,mclk-fs = <256>;
33
34 simple-audio-card,cpu {
35 sound-dai = <&i2s>;
36 };
37
38 dailink0_master: simple-audio-card,codec {
39 sound-dai = <&codec>;
40 };
41 };
42 };
43
44 &pinctrl {
45 state_default: pinctrl0 {
46 gpio {
47 ralink,group = "uart2", "rgmii2";
48 ralink,function = "gpio";
49 };
50 };
51 i2s_pins: i2s {
52 i2s {
53 ralink,group = "uart3";
54 ralink,function = "i2s";
55 };
56 };
57 };
58
59 &i2c {
60 status = "okay";
61
62 codec: wm8960@1a {
63 #sound-dai-cells = <0>;
64 compatible = "wlf,wm8960";
65 reg = <0x1a>;
66 wlf,shared-lrclk;
67 };
68 };
69
70 &gdma {
71 status = "okay";
72 };
73
74 &i2s {
75 #sound-dai-cells = <0>;
76 status = "okay";
77 pinctrl-names = "default";
78 pinctrl-0 = <&i2s_pins>;
79 };
80
81 &spi0 {
82 status = "okay";
83
84 mx25l6405d@0 {
85 compatible = "mx25l6405d","jedec,spi-nor";
86 reg = <0 0>;
87 spi-max-frequency = <10000000>;
88 m25p,chunked-io = <32>;
89
90 partitions {
91 compatible = "fixed-partitions";
92 #address-cells = <1>;
93 #size-cells = <1>;
94
95 partition@0 {
96 label = "u-boot";
97 reg = <0x0 0x30000>;
98 read-only;
99 };
100
101 partition@30000 {
102 label = "u-boot-env";
103 reg = <0x30000 0x10000>;
104 read-only;
105 };
106
107 factory: partition@40000 {
108 label = "factory";
109 reg = <0x40000 0x10000>;
110 read-only;
111 };
112
113 partition@50000 {
114 compatible = "denx,uimage";
115 label = "firmware";
116 reg = <0x50000 0x7b0000>;
117 };
118 };
119 };
120 };
121
122 &sdhci {
123 status = "okay";
124 };
125
126 &ethernet {
127 mtd-mac-address = <&factory 0x5>;
128 };
129
130 &pcie {
131 status = "okay";
132 };