forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-01-03 2f7c68cb55ecb7331f2381deb497c27155f32faf
kernel/arch/arm64/boot/dts/rockchip/rk3308b-evb-v10.dtsi
....@@ -109,9 +109,10 @@
109109 };
110110
111111 spdif_rx_sound: spdif-rx-sound {
112
- status = "disabled";
113112 compatible = "simple-audio-card";
114113 simple-audio-card,name = "rockchip,spdif-rx-sound";
114
+ status = "disabled";
115
+
115116 simple-audio-card,cpu {
116117 sound-dai = <&spdif_rx>;
117118 };
....@@ -121,9 +122,10 @@
121122 };
122123
123124 spdif_tx_sound: spdif-tx-sound {
124
- status = "disabled";
125125 compatible = "simple-audio-card";
126126 simple-audio-card,name = "rockchip,spdif-tx-sound";
127
+ status = "disabled";
128
+ simple-audio-card,mclk-fs = <128>;
127129 simple-audio-card,cpu {
128130 sound-dai = <&spdif_tx>;
129131 };
....@@ -163,6 +165,15 @@
163165 regulator-max-microvolt = <1000000>;
164166 };
165167
168
+ vcc_3v3_codec: vcc_io: vcc-io {
169
+ compatible = "regulator-fixed";
170
+ regulator-name = "vcc_io";
171
+ regulator-always-on;
172
+ regulator-boot-on;
173
+ regulator-min-microvolt = <3300000>;
174
+ regulator-max-microvolt = <3300000>;
175
+ };
176
+
166177 vccio_sdio: vcc_1v8: vcc-1v8 {
167178 compatible = "regulator-fixed";
168179 regulator-name = "vcc_1v8";
....@@ -190,15 +201,6 @@
190201 regulator-boot-on;
191202 regulator-min-microvolt = <1500000>;
192203 regulator-max-microvolt = <1500000>;
193
- };
194
-
195
- vcc_3v3_codec: vcc_io: vcc-io {
196
- compatible = "regulator-fixed";
197
- regulator-name = "vcc_io";
198
- regulator-always-on;
199
- regulator-boot-on;
200
- regulator-min-microvolt = <3300000>;
201
- regulator-max-microvolt = <3300000>;
202204 };
203205
204206 vccio_flash: vccio-flash {
....@@ -231,7 +233,7 @@
231233 uart_rts_gpios = <&gpio2 RK_PA3 GPIO_ACTIVE_LOW>;
232234 pinctrl-names = "default", "rts_gpio";
233235 pinctrl-0 = <&uart0_rts>;
234
- pinctrl-1 = <&uart0_rts_gpio>;
236
+ pinctrl-1 = <&uart0_rts_pin>;
235237 BT,power_gpio = <&gpio2 RK_PA6 GPIO_ACTIVE_HIGH>;
236238 BT,wake_host_irq = <&gpio2 RK_PB0 GPIO_ACTIVE_HIGH>;
237239 status = "okay";
....@@ -241,7 +243,7 @@
241243 compatible = "wlan-platdata";
242244 rockchip,grf = <&grf>;
243245 pinctrl-names = "default";
244
- pinctrl-0 = <&wifi_wake_host>;
246
+ pinctrl-0 = <&wifi_wake_host>, <&rtc_32k>;
245247 wifi_chip_type = "ap6255";
246248 WIFI,host_wake_irq = <&gpio2 RK_PB4 GPIO_ACTIVE_HIGH>;
247249 status = "okay";
....@@ -269,6 +271,15 @@
269271 };
270272 };
271273
274
+&rk3308bs_cpu0_opp_table {
275
+ opp-1008000000 {
276
+ status = "okay";
277
+ };
278
+ opp-1104000000 {
279
+ status = "okay";
280
+ };
281
+};
282
+
272283 &dmc {
273284 center-supply = <&vdd_log>;
274285 status = "okay";
....@@ -278,7 +289,8 @@
278289 bus-width = <8>;
279290 cap-mmc-highspeed;
280291 mmc-hs200-1_8v;
281
- supports-emmc;
292
+ no-sdio;
293
+ no-sd;
282294 disable-wp;
283295 non-removable;
284296 num-slots = <1>;
....@@ -305,9 +317,9 @@
305317 clock-frequency = <400000>;
306318 status = "okay";
307319
308
- is31fl3236: led-controller@3c {
320
+ is31fl3236: led-controller@3f {
309321 compatible = "issi,is31fl3236";
310
- reg = <0x3c>;
322
+ reg = <0x3f>;
311323 #address-cells = <1>;
312324 #size-cells = <0>;
313325 reset-gpios = <&gpio0 RK_PB0 GPIO_ACTIVE_HIGH>;
....@@ -671,9 +683,6 @@
671683 };
672684
673685 &pinctrl {
674
- pinctrl-names = "default";
675
- pinctrl-0 = <&rtc_32k>;
676
-
677686 buttons {
678687 pwr_key: pwr-key {
679688 rockchip,pins = <0 RK_PA6 RK_FUNC_GPIO &pcfg_pull_up>;
....@@ -689,6 +698,12 @@
689698 sdio-pwrseq {
690699 wifi_enable_h: wifi-enable-h {
691700 rockchip,pins = <4 RK_PD6 RK_FUNC_GPIO &pcfg_pull_none>;
701
+ };
702
+ };
703
+
704
+ wireless-bluetooth {
705
+ uart0_gpios: uart0-gpios {
706
+ rockchip,pins = <2 RK_PA3 RK_FUNC_GPIO &pcfg_pull_none>;
692707 };
693708 };
694709
....@@ -719,6 +734,14 @@
719734 status = "okay";
720735 };
721736
737
+&spdif_rx {
738
+ #sound-dai-cells = <0>;
739
+};
740
+
741
+&spdif_tx {
742
+ #sound-dai-cells = <0>;
743
+};
744
+
722745 &saradc {
723746 status = "okay";
724747 vref-supply = <&vcc_1v8>;
....@@ -727,7 +750,8 @@
727750 &sdmmc {
728751 bus-width = <4>;
729752 cap-sd-highspeed;
730
- supports-sdio;
753
+ no-sd;
754
+ no-mmc;
731755 ignore-pm-notify;
732756 keep-power-in-suspend;
733757 non-removable;