forked from ~ljy/RK356X_SDK_RELEASE

hc
2023-12-06 08f87f769b595151be1afeff53e144f543faa614
kernel/arch/arm64/boot/dts/rockchip/rk3326-evb-lp3-v10.dtsi
....@@ -3,15 +3,11 @@
33 * Copyright (c) 2017 Fuzhou Rockchip Electronics Co., Ltd
44 */
55
6
-/dts-v1/;
76 #include <dt-bindings/display/drm_mipi_dsi.h>
87 #include <dt-bindings/gpio/gpio.h>
98 #include <dt-bindings/input/input.h>
109 #include <dt-bindings/pinctrl/rockchip.h>
1110 #include <dt-bindings/sensor-dev.h>
12
-#include "rk3326.dtsi"
13
-#include "rk3326-863-cif-sensor.dtsi"
14
-#include "px30-android.dtsi"
1511
1612 / {
1713 adc-keys {
....@@ -92,32 +88,24 @@
9288 };
9389
9490 rk817-sound {
95
- compatible = "simple-audio-card";
96
- simple-audio-card,format = "i2s";
97
- simple-audio-card,name = "rockchip,rk817-codec";
98
- simple-audio-card,mclk-fs = <256>;
99
- simple-audio-card,widgets =
100
- "Microphone", "Mic Jack",
101
- "Headphone", "Headphone Jack";
102
- simple-audio-card,routing =
103
- "Mic Jack", "MICBIAS1",
104
- "IN1P", "Mic Jack",
105
- "Headphone Jack", "HPOL",
106
- "Headphone Jack", "HPOR";
107
- simple-audio-card,cpu {
108
- sound-dai = <&i2s1_2ch>;
109
- };
110
- simple-audio-card,codec {
111
- sound-dai = <&rk817_codec>;
112
- };
113
- };
114
-
115
- rk_headset: rk-headset {
116
- compatible = "rockchip_headset";
117
- headset_gpio = <&gpio2 RK_PC6 GPIO_ACTIVE_LOW>;
91
+ compatible = "rockchip,multicodecs-card";
92
+ rockchip,card-name = "rockchip-rk817";
93
+ hp-det-gpio = <&gpio2 RK_PC6 GPIO_ACTIVE_LOW>;
94
+ io-channels = <&saradc 1>;
95
+ io-channel-names = "adc-detect";
96
+ keyup-threshold-microvolt = <1800000>;
97
+ poll-interval = <100>;
98
+ rockchip,format = "i2s";
99
+ rockchip,mclk-fs = <256>;
100
+ rockchip,cpu = <&i2s1_2ch>;
101
+ rockchip,codec = <&rk817_codec>;
118102 pinctrl-names = "default";
119103 pinctrl-0 = <&hp_det>;
120
- io-channels = <&saradc 1>;
104
+ play-pause-key {
105
+ label = "playpause";
106
+ linux,code = <KEY_PLAYPAUSE>;
107
+ press-threshold-microvolt = <2000>;
108
+ };
121109 };
122110
123111 sdio_pwrseq: sdio-pwrseq {
....@@ -153,6 +141,7 @@
153141 compatible = "wlan-platdata";
154142 wifi_chip_type = "AP6210";
155143 WIFI,host_wake_irq = <&gpio0 RK_PB2 GPIO_ACTIVE_HIGH>;
144
+ WIFI,poweren_gpio = <&gpio0 RK_PA2 GPIO_ACTIVE_HIGH>;
156145 status = "okay";
157146 };
158147
....@@ -316,10 +305,6 @@
316305 status = "okay";
317306 };
318307
319
-&dsi_in_vopl {
320
- status = "disabled";
321
-};
322
-
323308 &route_dsi {
324309 connect = <&vopb_out_dsi>;
325310 status = "okay";
....@@ -338,7 +323,8 @@
338323 bus-width = <8>;
339324 cap-mmc-highspeed;
340325 mmc-hs200-1_8v;
341
- supports-emmc;
326
+ no-sdio;
327
+ no-sd;
342328 disable-wp;
343329 non-removable;
344330 num-slots = <1>;
....@@ -793,7 +779,8 @@
793779 bus-width = <4>;
794780 cap-mmc-highspeed;
795781 cap-sd-highspeed;
796
- supports-sd;
782
+ no-sdio;
783
+ no-mmc;
797784 card-detect-delay = <800>;
798785 ignore-pm-notify;
799786 /*cd-gpios = <&gpio2 4 GPIO_ACTIVE_HIGH>; [> CD GPIO <]*/
....@@ -809,7 +796,8 @@
809796 &sdio {
810797 bus-width = <4>;
811798 cap-sd-highspeed;
812
- supports-sdio;
799
+ no-sd;
800
+ no-mmc;
813801 ignore-pm-notify;
814802 keep-power-in-suspend;
815803 non-removable;
....@@ -820,7 +808,7 @@
820808
821809 &tsadc {
822810 pinctrl-names = "gpio", "otpout";
823
- pinctrl-0 = <&tsadc_otp_gpio>;
811
+ pinctrl-0 = <&tsadc_otp_pin>;
824812 pinctrl-1 = <&tsadc_otp_out>;
825813 status = "okay";
826814 };
....@@ -852,14 +840,6 @@
852840 };
853841
854842 &vopb_mmu {
855
- status = "okay";
856
-};
857
-
858
-&vopl {
859
- status = "okay";
860
-};
861
-
862
-&vopl_mmu {
863843 status = "okay";
864844 };
865845