ramips: fix flash layout for TP-Link TL-WR841N v14
[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 sound {
10 compatible = "simple-audio-card";
11 simple-audio-card,name = "Audio-I2S";
12 simple-audio-card,format = "i2s";
13 simple-audio-card,bitclock-master = <&dailink0_master>;
14 simple-audio-card,frame-master = <&dailink0_master>;
15 simple-audio-card,widgets =
16 "Microphone", "Microphone Jack",
17 "Headphone", "Headphone Jack";
18 simple-audio-card,routing =
19 "LINPUT1", "Microphone Jack",
20 "RINPUT1", "Microphone Jack",
21 "Headphone Jack", "HP_L",
22 "Headphone Jack", "HP_R";
23 simple-audio-card,mclk-fs = <256>;
24
25 simple-audio-card,cpu {
26 sound-dai = <&i2s>;
27 };
28
29 dailink0_master: simple-audio-card,codec {
30 sound-dai = <&codec>;
31 };
32 };
33 };
34
35 &state_default {
36 gpio {
37 groups = "uart2", "rgmii2";
38 function = "gpio";
39 };
40 };
41
42 &pinctrl {
43 i2s_pins: i2s {
44 i2s {
45 groups = "uart3";
46 function = "i2s";
47 };
48 };
49 };
50
51 &i2c {
52 status = "okay";
53
54 codec: wm8960@1a {
55 #sound-dai-cells = <0>;
56 compatible = "wlf,wm8960";
57 reg = <0x1a>;
58 wlf,shared-lrclk;
59 };
60 };
61
62 &gdma {
63 status = "okay";
64 };
65
66 &i2s {
67 #sound-dai-cells = <0>;
68 status = "okay";
69 pinctrl-names = "default";
70 pinctrl-0 = <&i2s_pins>;
71 };
72
73 &spi0 {
74 status = "okay";
75
76 flash@0 {
77 compatible = "mx25l6405d","jedec,spi-nor";
78 reg = <0>;
79 spi-max-frequency = <10000000>;
80
81 partitions {
82 compatible = "fixed-partitions";
83 #address-cells = <1>;
84 #size-cells = <1>;
85
86 partition@0 {
87 label = "u-boot";
88 reg = <0x0 0x30000>;
89 read-only;
90 };
91
92 partition@30000 {
93 label = "u-boot-env";
94 reg = <0x30000 0x10000>;
95 read-only;
96 };
97
98 factory: partition@40000 {
99 label = "factory";
100 reg = <0x40000 0x10000>;
101 read-only;
102 };
103
104 partition@50000 {
105 compatible = "denx,uimage";
106 label = "firmware";
107 reg = <0x50000 0x7b0000>;
108 };
109 };
110 };
111 };
112
113 &sdhci {
114 status = "okay";
115 };
116
117 &gmac0 {
118 mtd-mac-address = <&factory 0x5>;
119 };
120
121 &switch0 {
122 ports {
123 port@0 {
124 status = "okay";
125 label = "lan1";
126 };
127
128 port@1 {
129 status = "okay";
130 label = "lan2";
131 };
132
133 port@2 {
134 status = "okay";
135 label = "lan3";
136 };
137
138 port@3 {
139 status = "okay";
140 label = "lan4";
141 };
142
143 port@4 {
144 status = "okay";
145 label = "wan";
146 mtd-mac-address = <&factory 0x5>;
147 mtd-mac-address-increment = <1>;
148 };
149 };
150 };
151
152 &pcie {
153 status = "okay";
154 };