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