forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-01-03 2f7c68cb55ecb7331f2381deb497c27155f32faf
kernel/arch/arm64/boot/dts/rockchip/rk3399-gru.dtsi
....@@ -247,8 +247,8 @@
247247 enable-active-high;
248248 enable-gpio = <&gpio2 2 GPIO_ACTIVE_HIGH>;
249249 gpios = <&gpio2 28 GPIO_ACTIVE_HIGH>;
250
- states = <1800000 0x1
251
- 3000000 0x0>;
250
+ states = <1800000 0x1>,
251
+ <3000000 0x0>;
252252
253253 regulator-min-microvolt = <1800000>;
254254 regulator-max-microvolt = <3000000>;
....@@ -262,17 +262,11 @@
262262 pp5000_usb_a_vbus: pp5000 {
263263 };
264264
265
- gpio_keys: gpio-keys {
266
- compatible = "gpio-keys";
267
- pinctrl-names = "default";
268
- pinctrl-0 = <&bt_host_wake_l>;
269
-
270
- wake_on_bt: wake-on-bt {
271
- label = "Wake-on-Bluetooth";
272
- gpios = <&gpio0 3 GPIO_ACTIVE_LOW>;
273
- linux,code = <KEY_WAKEUP>;
274
- wakeup-source;
275
- };
265
+ ap_rtc_clk: ap-rtc-clk {
266
+ compatible = "fixed-clock";
267
+ clock-frequency = <32768>;
268
+ clock-output-names = "xin32k";
269
+ #clock-cells = <0>;
276270 };
277271
278272 max98357a: max98357a {
....@@ -287,7 +281,7 @@
287281
288282 sound: sound {
289283 compatible = "rockchip,rk3399-gru-sound";
290
- rockchip,cpu = <&i2s0 &i2s2>;
284
+ rockchip,cpu = <&i2s0 &spdif>;
291285 };
292286 };
293287
....@@ -438,10 +432,6 @@
438432 status = "okay";
439433 };
440434
441
-&i2s2 {
442
- status = "okay";
443
-};
444
-
445435 &io_domains {
446436 status = "okay";
447437
....@@ -522,7 +512,7 @@
522512 * configured as SDMMC and not JTAG.
523513 */
524514 pinctrl-names = "default";
525
- pinctrl-0 = <&sdmmc_clk &sdmmc_cmd &sdmmc_cd &sdmmc_cd_gpio
515
+ pinctrl-0 = <&sdmmc_clk &sdmmc_cmd &sdmmc_cd &sdmmc_cd_pin
526516 &sdmmc_bus4>;
527517
528518 bus-width = <4>;
....@@ -536,6 +526,17 @@
536526 sd-uhs-sdr104;
537527 vmmc-supply = <&pp3000_sd_slot>;
538528 vqmmc-supply = <&ppvar_sd_card_io>;
529
+};
530
+
531
+&spdif {
532
+ status = "okay";
533
+
534
+ /*
535
+ * SPDIF is routed internally to DP; we either don't use these pins, or
536
+ * mux them to something else.
537
+ */
538
+ /delete-property/ pinctrl-0;
539
+ /delete-property/ pinctrl-names;
539540 };
540541
541542 &spi1 {
....@@ -576,11 +577,9 @@
576577 #size-cells = <0>;
577578 };
578579
579
- usbc_extcon0: extcon@0 {
580
+ usbc_extcon0: extcon0 {
580581 compatible = "google,extcon-usbc-cros-ec";
581582 google,usb-port-id = <0>;
582
-
583
- #extcon-cells = <0>;
584583 };
585584 };
586585 };
....@@ -627,12 +626,12 @@
627626
628627 &usbdrd3_0 {
629628 status = "okay";
629
+ extcon = <&usbc_extcon0>;
630630 };
631631
632632 &usbdrd_dwc3_0 {
633633 status = "okay";
634634 dr_mode = "host";
635
- extcon = <&usbc_extcon0>;
636635 };
637636
638637 &vopb {
....@@ -775,7 +774,7 @@
775774 };
776775
777776 /* This is where we actually hook up CD; has external pull */
778
- sdmmc_cd_gpio: sdmmc-cd-gpio {
777
+ sdmmc_cd_pin: sdmmc-cd-pin {
779778 rockchip,pins = <4 RK_PD0 RK_FUNC_GPIO &pcfg_pull_none>;
780779 };
781780 };