hc
2024-03-22 619f0f87159c5dbd2755b1b0a0eb35784be84e7a
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,12 +1063,6 @@
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";
10611068 };
....@@ -1099,16 +1106,10 @@
10991106 status = "okay";
11001107 };
11011108
1102
-&usbdrd_dwc3_0 {
1103
- dr_mode = "otg";
1104
- extcon = <&u2phy0>;
1105
- status = "okay";
1106
-};
1107
-
11081109 &usbdrd_dwc3_1 {
11091110 dr_mode = "host";
11101111 maximum-speed = "high-speed";
1111
- status = "okay";
1112
+ status = "disabled";
11121113 };
11131114
11141115 &uart1 {