hc
2024-03-26 e0728245c89800c2038c23308f2d88969d5b41c8
kernel/arch/arm64/boot/dts/rockchip/NK-6A13_V0A.dtsi
....@@ -38,10 +38,10 @@
3838 io-channels = <&saradc 3>;
3939 io-channel-names = "adc-detect";
4040 keyup-threshold-microvolt = <1800000>;
41
- pinctrl-0 = <&hp_det>;
41
+ pinctrl-0 = <&spk_con>;
4242 pinctrl-names = "default";
43
- hp-det-gpio = <&gpio1 RK_PD5 GPIO_ACTIVE_HIGH>;
44
- spk-con-gpio = <&gpio3 RK_PC3 GPIO_ACTIVE_HIGH>;
43
+ //hp-det-gpio = <&gpio1 RK_PD5 GPIO_ACTIVE_LOW>;
44
+ //spk-con-gpio = <&gpio3 RK_PC3 GPIO_ACTIVE_HIGH>;
4545 play-pause-key {
4646 label = "playpause";
4747 linux,code = <164>;
....@@ -132,9 +132,10 @@
132132 };
133133
134134 rk_headset: rk-headset {
135
- status = "disabled";
135
+ status = "okay";
136136 compatible = "rockchip_headset";
137
- headset_gpio = <&gpio1 RK_PD5 GPIO_ACTIVE_LOW>;
137
+ headset_gpio = <&gpio1 RK_PD5 GPIO_ACTIVE_HIGH>;
138
+ spk_ctl_gpio = <&gpio3 RK_PC3 GPIO_ACTIVE_LOW>;
138139 pinctrl-names = "default";
139140 pinctrl-0 = <&hp_det>;
140141 io-channels = <&saradc 3>;
....@@ -389,6 +390,14 @@
389390 &combphy0_ps {
390391 status = "okay";
391392 };
393
+
394
+/*
395
+&usbdrd_dwc3_0 {
396
+ dr_mode = "otg";
397
+ extcon = <&u2phy0>;
398
+ status = "okay";
399
+};
400
+*/
392401
393402 &combphy1_ps {
394403 status = "okay";
....@@ -901,6 +910,10 @@
901910 hp_det: hp-det {
902911 rockchip,pins = <1 RK_PD5 RK_FUNC_GPIO &pcfg_pull_none>;
903912 };
913
+
914
+ spk_con: spk-con {
915
+ rockchip,pins = <3 RK_PC3 RK_FUNC_GPIO &pcfg_pull_none>;
916
+ };
904917 };
905918
906919 hym8563 {
....@@ -1050,14 +1063,9 @@
10501063 vmmc-supply = <&vcc_3v3_sd_s0>;
10511064 };
10521065
1053
-&uart9 {
1054
- status = "okay";
1055
- pinctrl-names = "default";
1056
- pinctrl-0 = <&uart9m0_xfer &uart9m0_ctsn>;
1057
-};
1058
-
10591066 &u2phy0_otg {
10601067 status = "okay";
1068
+ phy-supply = <&vcc5v0_host>;
10611069 };
10621070
10631071 &u2phy1_otg {
....@@ -1071,7 +1079,7 @@
10711079 &u2phy3_host {
10721080 phy-supply = <&vcc5v0_host>;
10731081 };
1074
-
1082
+#if 0
10751083 &usbdp_phy0 {
10761084 rockchip,dp-lane-mux = <2 3>;
10771085 status = "okay";
....@@ -1099,17 +1107,12 @@
10991107 status = "okay";
11001108 };
11011109
1102
-&usbdrd_dwc3_0 {
1103
- dr_mode = "otg";
1104
- extcon = <&u2phy0>;
1105
- status = "okay";
1106
-};
1107
-
11081110 &usbdrd_dwc3_1 {
11091111 dr_mode = "host";
11101112 maximum-speed = "high-speed";
11111113 status = "okay";
11121114 };
1115
+#endif
11131116
11141117 &uart1 {
11151118 status = "okay";