tools/patchelf: update to 0.18.0
[openwrt/staging/dedeckeh.git] / target / linux / ramips / dts / mt7620a_yukai_bocco.dts
1 #include "mt7620a.dtsi"
2
3 #include <dt-bindings/gpio/gpio.h>
4 #include <dt-bindings/input/input.h>
5
6 / {
7 compatible = "yukai,bocco", "ralink,mt7620a-soc";
8 model = "YUKAI Engineering BOCCO";
9
10 keys {
11 compatible = "gpio-keys";
12
13 reset {
14 label = "reset";
15 gpios = <&gpio1 7 GPIO_ACTIVE_LOW>;
16 linux,code = <KEY_RESTART>;
17 };
18 };
19
20 gpio_export {
21 compatible = "gpio-export";
22 #size-cells = <0>;
23
24 s1 {
25 gpio-export,name = "rec";
26 gpios = <&gpio1 8 GPIO_ACTIVE_HIGH>;
27 };
28 s2 {
29 gpio-export,name = "play";
30 gpios = <&gpio1 9 GPIO_ACTIVE_HIGH>;
31 };
32 };
33
34 sound {
35 compatible = "simple-audio-card";
36 simple-audio-card,name = "Audio-I2S";
37 simple-audio-card,format = "i2s";
38 simple-audio-card,bitclock-master = <&dailink0_master>;
39 simple-audio-card,frame-master = <&dailink0_master>;
40 simple-audio-card,widgets =
41 "Headphone", "Headphones";
42 simple-audio-card,routing =
43 "Headphones", "HP_L",
44 "Headphones", "HP_R";
45 simple-audio-card,mclk-fs = <256>;
46
47 simple-audio-card,cpu {
48 sound-dai = <&i2s>;
49 };
50
51 dailink0_master: simple-audio-card,codec {
52 sound-dai = <&codec>;
53 };
54 };
55 };
56
57 &gpio1 {
58 status = "okay";
59 };
60
61 &i2c {
62 status = "okay";
63
64 codec: wm8960@1a {
65 #sound-dai-cells = <0>;
66 compatible = "wlf,wm8960";
67 reg = <0x1a>;
68
69 wlf,shared-lrclk;
70 };
71 };
72
73 &i2s {
74 #sound-dai-cells = <0>;
75 status = "okay";
76 pinctrl-names = "default";
77 pinctrl-0 = <&pcm_i2s_pins>;
78 };
79
80 &spi0 {
81 status = "okay";
82
83 flash@0 {
84 compatible = "jedec,spi-nor";
85 reg = <0>;
86 spi-max-frequency = <10000000>;
87
88 partitions {
89 compatible = "fixed-partitions";
90 #address-cells = <1>;
91 #size-cells = <1>;
92
93 partition@0 {
94 label = "u-boot";
95 reg = <0x0 0x30000>;
96 read-only;
97 };
98
99 partition@30000 {
100 label = "u-boot-env";
101 reg = <0x30000 0x10000>;
102 read-only;
103 };
104
105 factory: partition@40000 {
106 label = "factory";
107 reg = <0x40000 0x10000>;
108 read-only;
109 };
110
111 partition@50000 {
112 compatible = "denx,uimage";
113 label = "firmware";
114 reg = <0x50000 0x7b0000>;
115 };
116 };
117 };
118 };
119
120 &pcm {
121 status = "okay";
122 };
123
124 &gdma {
125 status = "okay";
126 };
127
128 &state_default {
129 gpio {
130 groups = "spi refclk", "rgmii1";
131 function = "gpio";
132 };
133 };
134
135 &ethernet {
136 pinctrl-names = "default";
137 pinctrl-0 = <&ephy_pins>;
138
139 nvmem-cells = <&macaddr_factory_4>;
140 nvmem-cell-names = "mac-address";
141
142 mediatek,portmap = "llllw";
143 };
144
145 &wmac {
146 ralink,mtd-eeprom = <&factory 0x0>;
147 };
148
149 &factory {
150 compatible = "nvmem-cells";
151 #address-cells = <1>;
152 #size-cells = <1>;
153
154 macaddr_factory_4: macaddr@4 {
155 reg = <0x4 0x6>;
156 };
157 };