hc
2023-11-06 e3e12f52b214121840b44c91de5b3e5af5d3eb84
kernel/arch/arm64/boot/dts/rockchip/rk3568-evb.dtsi
old mode 100755new mode 100644
....@@ -141,6 +141,27 @@
141141 default-brightness-level = <200>;
142142 };
143143
144
+ bt_sco: bt-sco {
145
+ status = "disabled";
146
+ compatible = "delta,dfbmcs320";
147
+ #sound-dai-cells = <1>;
148
+ };
149
+
150
+ bt_sound: bt-sound {
151
+ status = "disabled";
152
+ compatible = "simple-audio-card";
153
+ simple-audio-card,format = "dsp_a";
154
+ simple-audio-card,bitclock-inversion = <0>;
155
+ simple-audio-card,mclk-fs = <256>;
156
+ simple-audio-card,name = "rockchip,bt";
157
+ simple-audio-card,cpu {
158
+ sound-dai = <&i2s3_2ch>;
159
+ };
160
+ simple-audio-card,codec {
161
+ sound-dai = <&bt_sco 1>;
162
+ };
163
+ };
164
+
144165 dc_12v: dc-12v {
145166 compatible = "regulator-fixed";
146167 regulator-name = "dc_12v";
....@@ -161,8 +182,8 @@
161182
162183 leds: leds {
163184 compatible = "gpio-leds";
164
- sys_led: sys_led {
165
- gpios = <&gpio3 RK_PD0 GPIO_ACTIVE_HIGH>;
185
+ work_led: work {
186
+ gpios = <&gpio0 RK_PC0 GPIO_ACTIVE_HIGH>;
166187 linux,default-trigger = "heartbeat";
167188 };
168189 };
....@@ -187,17 +208,15 @@
187208
188209 rk809_sound: rk809-sound {
189210 status = "okay";
190
- compatible = "simple-audio-card";
191
- simple-audio-card,format = "i2s";
192
- simple-audio-card,name = "rockchip,rk809-codec";
193
- simple-audio-card,mclk-fs = <256>;
194
-
195
- simple-audio-card,cpu {
196
- sound-dai = <&i2s1_8ch>;
197
- };
198
- simple-audio-card,codec {
199
- sound-dai = <&rk809_codec>;
200
- };
211
+ compatible = "rockchip,multicodecs-card";
212
+ rockchip,card-name = "rockchip-rk809";
213
+ hp-det-gpio = <&gpio3 RK_PA1 GPIO_ACTIVE_LOW>;
214
+ rockchip,format = "i2s";
215
+ rockchip,mclk-fs = <256>;
216
+ rockchip,cpu = <&i2s1_8ch>;
217
+ rockchip,codec = <&rk809_codec>;
218
+ pinctrl-names = "default";
219
+ pinctrl-0 = <&hp_det>;
201220 };
202221
203222 spdif-sound {
....@@ -289,7 +308,7 @@
289308 regulator-min-microvolt = <3300000>;
290309 regulator-max-microvolt = <3300000>;
291310 enable-active-high;
292
- gpio = <&gpio2 RK_PD4 GPIO_ACTIVE_HIGH>;
311
+ gpio = <&gpio0 RK_PC7 GPIO_ACTIVE_HIGH>;
293312 vin-supply = <&vcc3v3_sys>;
294313
295314 regulator-state-mem {
....@@ -326,7 +345,7 @@
326345 * - PDN (power down when low)
327346 */
328347 post-power-on-delay-ms = <200>;
329
- reset-gpios = <&gpio2 RK_PB1 GPIO_ACTIVE_LOW>;
348
+ reset-gpios = <&gpio3 RK_PD5 GPIO_ACTIVE_LOW>;
330349 };
331350
332351 wireless_wlan: wireless-wlan {
....@@ -1103,7 +1122,6 @@
11031122 regulator-min-microvolt = <712500>;
11041123 regulator-max-microvolt = <1390000>;
11051124 regulator-init-microvolt = <900000>;
1106
- regulator-initial-mode = <1>;
11071125 regulator-ramp-delay = <2300>;
11081126 fcs,suspend-voltage-selector = <1>;
11091127 regulator-boot-on;
....@@ -1265,8 +1283,8 @@
12651283 vccio_acodec: LDO_REG4 {
12661284 regulator-always-on;
12671285 regulator-boot-on;
1268
- regulator-min-microvolt = <3300000>;
1269
- regulator-max-microvolt = <3300000>;
1286
+ regulator-min-microvolt = <3000000>;
1287
+ regulator-max-microvolt = <3000000>;
12701288 regulator-name = "vccio_acodec";
12711289 regulator-state-mem {
12721290 regulator-off-in-suspend;
....@@ -1423,6 +1441,12 @@
14231441 &i2s1m0_sdo0>;
14241442 };
14251443
1444
+&i2s3_2ch {
1445
+ pinctrl-0 = <&i2s3m0_sclk &i2s3m0_lrck &i2s3m0_sdi &i2s3m0_sdo>;
1446
+ rockchip,bclk-fs = <32>;
1447
+ status = "disabled";
1448
+};
1449
+
14261450 &iep {
14271451 status = "okay";
14281452 };
....@@ -1458,6 +1482,12 @@
14581482 };
14591483
14601484 &pinctrl {
1485
+
1486
+ headphone {
1487
+ hp_det: hp-det {
1488
+ rockchip,pins = <3 RK_PA1 RK_FUNC_GPIO &pcfg_pull_down>;
1489
+ };
1490
+ };
14611491
14621492 mxc6655xa {
14631493 mxc6655xa_irq_gpio: mxc6655xa_irq_gpio {
....@@ -1497,8 +1527,7 @@
14971527
14981528 sdio-pwrseq {
14991529 wifi_enable_h: wifi-enable-h {
1500
- rockchip,pins = <2 RK_PB1 RK_FUNC_GPIO &pcfg_pull_none>;
1501
- //WIFI_REG_ON_H_GPIO2_B1
1530
+ rockchip,pins = <3 RK_PD5 RK_FUNC_GPIO &pcfg_pull_none>;
15021531 };
15031532 };
15041533
....@@ -1789,15 +1818,6 @@
17891818 };
17901819
17911820 &usbhost_dwc3 {
1792
- phys = <&u2phy0_host>;
1793
- phy-names = "usb2-phy";
1794
- maximum-speed = "high-speed";
1795
- snps,dis_u2_susphy_quirk;
1796
- status = "okay";
1797
-};
1798
-
1799
-&combphy1_usq {
1800
- rockchip,dis-u3otg1-port;
18011821 status = "okay";
18021822 };
18031823
....@@ -1830,8 +1850,8 @@
18301850
18311851 &vop {
18321852 status = "okay";
1833
- assigned-clocks = <&cru DCLK_VOP0>, <&cru DCLK_VOP1>;
1834
- assigned-clock-parents = <&pmucru PLL_HPLL>, <&cru PLL_VPLL>;
1853
+ assigned-clocks = <&cru DCLK_VOP0>, <&cru DCLK_VOP1>, <&cru DCLK_VOP2>;
1854
+ assigned-clock-parents = <&pmucru PLL_HPLL>, <&cru PLL_VPLL>, <&cru PLL_GPLL>;
18351855 };
18361856
18371857 &vop_mmu {