hc
2024-08-19 eb6b9ee90f50f13c5abb885ce483802d6262f2b5
kernel/arch/arm64/boot/dts/rockchip/NK-6A13_V0A.dtsi
....@@ -128,14 +128,14 @@
128128 * - PDN (power down when low)
129129 */
130130 post-power-on-delay-ms = <200>;
131
- reset-gpios = <&gpio3 RK_PB1 GPIO_ACTIVE_LOW>; //WIFI_REG_ON_H
131
+ reset-gpios = <&gpio1 RK_PC6 GPIO_ACTIVE_LOW>; //BT_DISABLE_GPIO1_C6_d_1V8
132132 };
133133
134134 rk_headset: rk-headset {
135135 status = "okay";
136136 compatible = "rockchip_headset";
137
- headset_gpio = <&gpio1 RK_PD5 GPIO_ACTIVE_HIGH>;
138
- spk_ctl_gpio = <&gpio3 RK_PC3 GPIO_ACTIVE_LOW>;
137
+ headset_gpio = <&gpio3 RK_PD5 GPIO_ACTIVE_HIGH>;//HP_DET_L_GPIO3_D5_d_3V3
138
+ spk_ctl_gpio = <&gpio4 RK_PB4 GPIO_ACTIVE_LOW>;//SPK_CTL_GPIO4_B4_u_3V3
139139 pinctrl-names = "default";
140140 pinctrl-0 = <&hp_det>;
141141 io-channels = <&saradc 3>;
....@@ -159,7 +159,7 @@
159159 regulator-boot-on;
160160 enable-active-high;
161161 //gpio = <&gpio1 RK_PD2 GPIO_ACTIVE_HIGH>;
162
- gpio = <&gpio0 RK_PC0 GPIO_ACTIVE_HIGH>;
162
+ gpio = <&gpio1 RK_PC4 GPIO_ACTIVE_HIGH>;
163163 vin-supply = <&vcc_1v8_s0>;
164164 };
165165
....@@ -217,9 +217,9 @@
217217 */
218218 vcc_3v3_sd_s0: vcc-3v3-sd-s0-regulator {
219219 compatible = "regulator-fixed";
220
- gpio = <&gpio0 RK_PB7 GPIO_ACTIVE_HIGH>;
221
- pinctrl-names = "default";
222
- pinctrl-0 = <&sd_s0_pwr>;
220
+ //gpio = <&gpio0 RK_PB7 GPIO_ACTIVE_HIGH>;
221
+ //pinctrl-names = "default";
222
+ //pinctrl-0 = <&sd_s0_pwr>;
223223 regulator-name = "vcc_3v3_sd_s0";
224224 enable-active-high;
225225 };
....@@ -230,20 +230,20 @@
230230 clock-names = "ext_clock";
231231 uart_rts_gpios = <&gpio4 RK_PC4 GPIO_ACTIVE_LOW>; //UART9_RTSn_M0_BT
232232 pinctrl-names = "default", "rts_gpio";
233
- pinctrl-0 = <&uart9m0_rtsn>, <&bt_reset_gpio>, <&bt_wake_gpio>, <&bt_irq_gpio>;
233
+ pinctrl-0 = <&uart9m0_rtsn>, <&bt_reset_gpio>;
234234 pinctrl-1 = <&uart9_gpios>;
235
- BT,reset_gpio = <&gpio3 RK_PA6 GPIO_ACTIVE_HIGH>; //BT_REG_ON_H
236
- BT,wake_gpio = <&gpio3 RK_PA1 GPIO_ACTIVE_HIGH>;//HOST_WAKE_BT_H
237
- BT,wake_host_irq = <&gpio0 RK_PA0 GPIO_ACTIVE_HIGH>;//BT_WAKE_HOST_H
235
+ BT,reset_gpio = <&gpio0 RK_PB2 GPIO_ACTIVE_HIGH>; //BT_DISABLE_GPIO0_B2_u_1V8
236
+ //BT,wake_gpio = <&gpio3 RK_PA1 GPIO_ACTIVE_HIGH>;//HOST_WAKE_BT_H
237
+ //BT,wake_host_irq = <&gpio0 RK_PA0 GPIO_ACTIVE_HIGH>;//BT_WAKE_HOST_H
238238 status = "okay";
239239 };
240240
241241 wireless_wlan: wireless-wlan {
242242 compatible = "wlan-platdata";
243243 wifi_chip_type = "ap6398s";
244
- pinctrl-names = "default";
245
- pinctrl-0 = <&wifi_host_wake_irq>;
246
- WIFI,host_wake_irq = <&gpio0 RK_PB2 GPIO_ACTIVE_HIGH>; //WIFI_WAKE_HOST_H
244
+ // pinctrl-names = "default";
245
+ // pinctrl-0 = <&wifi_host_wake_irq>;
246
+ // WIFI,host_wake_irq = <&gpio2 RK_PB5 GPIO_ACTIVE_HIGH>; //GPIO2_B5_u_1V8_WF-BT_WAKEUP_IN
247247 // WIFI,poweren_gpio = <&gpio0 RK_PC4 GPIO_ACTIVE_HIGH>;
248248 status = "okay";
249249 };
....@@ -252,58 +252,48 @@
252252 compatible = "nk_io_control";
253253 pinctrl-names = "default";
254254 pinctrl-0 = <&ndj_io_gpio>;
255
-
256
-// vcc_5v {
257
-// gpio_num = <&gpio4 RK_PB2 GPIO_ACTIVE_HIGH>;
258
-// gpio_function = <0>;
259
-// };
260
-
255
+
261256 vcc_12v {
262
- gpio_num = <&gpio1 RK_PB5 GPIO_ACTIVE_HIGH>;
257
+ gpio_num = <&gpio0 RK_PD3 GPIO_ACTIVE_HIGH>;
263258 gpio_function = <0>;
264
- };
259
+ };//VCC12_IO_EN_GPIO0_D3_u_3V3
265260
266261 vcc_3v {
267
- gpio_num = <&gpio0 RK_PC0 GPIO_ACTIVE_HIGH>;
262
+ gpio_num = <&gpio4 RK_PA1 GPIO_ACTIVE_HIGH>;
268263 gpio_function = <0>;
269
- };
264
+ };//VCC3_IO_EN_GPIO4_A1_d_3V3
270265
271266 hub_5V_reset {
272
- gpio_num = <&gpio4 RK_PB3 GPIO_ACTIVE_HIGH>;
267
+ gpio_num = <&gpio4 RK_PB6 GPIO_ACTIVE_HIGH>;
273268 gpio_function = <3>;
274
- };
269
+ };//HUB_RESET_GPIO4_B6_d_3V3
275270
276271 4g_power {
277
- gpio_num = <&gpio1 RK_PB6 GPIO_ACTIVE_HIGH>;
272
+ gpio_num = <&gpio0 RK_PC6 GPIO_ACTIVE_HIGH>;
273
+ gpio_function = <0>;
274
+ };//4G_PWREN_GPIO3_C7_u_3V3
275
+
276
+ 5g_power {
277
+ gpio_num =<&gpio4 RK_PA2 GPIO_ACTIVE_HIGH>;
278278 gpio_function = <0>;
279279 };
280280
281
- wake_4g {
281
+ wake_wifi_bt {
282282 gpio_num = <&gpio2 RK_PB5 GPIO_ACTIVE_LOW>;
283283 gpio_function = <0>;
284
- };
284
+ };//GPIO2_B5_u_1V8_WF-BT_WAKEUP_IN
285285
286286 air_mode_4g {
287287 gpio_num = <&gpio2 RK_PB4 GPIO_ACTIVE_LOW>;
288288 gpio_function = <0>;
289
- };
289
+ }; //GPIO2_B4_u_1V8_4G_AIR_MODE_IN
290290
291291 reset_4g {
292292 gpio_num = <&gpio2 RK_PC3 GPIO_ACTIVE_LOW>;
293293 gpio_function = <3>;
294
- };
295
-/*
296
- spk_ctl {
297
- gpio_num = <&gpio3 RK_PC3 GPIO_ACTIVE_LOW>;
298
- gpio_function = <0>;
299
- };
294
+ }; //GPIO2_C3_d_1V8_4G_RESET_N_IN
300295
301
- hp_det
302
- {
303
- gpio_num = <&gpio1 RK_PD5 GPIO_ACTIVE_LOW>;
304
- gpio_function = <1>;
305
- };
306
-*/
296
+
307297 };
308298
309299
....@@ -311,12 +301,11 @@
311301 compatible = "simple-panel";
312302 backlight = <&backlight>;
313303 power-supply = <&vcc3v3_lcd_n>;
314
- vcc-5v-gpio = <&gpio4 RK_PB2 GPIO_ACTIVE_HIGH>;
315
- vddio-mipi = <&gpio1 RK_PB2 GPIO_ACTIVE_HIGH>; //MIPIDIS_PWR_EN_1V8
316
- enable-gpios = <&gpio3 RK_PD2 GPIO_ACTIVE_HIGH>; //LCD_VDD_EN
317
- reset-gpios = <&gpio1 RK_PA1 GPIO_ACTIVE_LOW>; //CH7511_RESET_N_1V8
318
- edp-bl-gpios = <&gpio3 RK_PC6 GPIO_ACTIVE_HIGH>; //LCD_BLK-PWR_EN
319
- edp-bl-en = <&gpio3 RK_PD4 GPIO_ACTIVE_HIGH>; //LCD_BKL_EN_GPIO3_D4_d_3V3
304
+ vcc-5v-gpio = <&gpio4 RK_PB5 GPIO_ACTIVE_HIGH>; //VCC5_IO_EN_GPIO4_B5_d_3V3
305
+ enable-gpios = <&gpio3 RK_PC6 GPIO_ACTIVE_HIGH>; //LCD_VDD_EN_GPIO3_C6_u_3V3
306
+ reset-gpios = <&gpio1 RK_PB5 GPIO_ACTIVE_LOW>; //CH7511_RESET_N_1V8
307
+ edp-bl-gpios = <&gpio3 RK_PB2 GPIO_ACTIVE_HIGH>; //LCD_BKL_PWM3_3V3
308
+ edp-bl-en = <&gpio3 RK_PA6 GPIO_ACTIVE_HIGH>; //LCD_BKL_EN_GPIO3_A6_d_3V3
320309 bus-format = <MEDIA_BUS_FMT_RGB888_1X24>;
321310 bpc = <8>;
322311 prepare-delay-ms = <200>;
....@@ -383,8 +372,13 @@
383372 };
384373
385374 &backlight {
386
- pwms = <&pwm10 0 25000 0>;
375
+ pwms = <&pwm3 0 25000 0>;
387376 status = "okay";
377
+};
378
+
379
+&backlight1 {
380
+ pwms = <&pwm11 0 25000 0>;
381
+ status = "disabled";
388382 };
389383
390384 &combphy0_ps {
....@@ -432,6 +426,10 @@
432426 * mipi_dcphy0 needs to be enabled
433427 * when dsi0 is enabled
434428 */
429
+&mipi_dcphy0 {
430
+ status = "disabled";
431
+};
432
+
435433 &dsi0 {
436434 status = "disabled";
437435 };
....@@ -441,14 +439,7 @@
441439 };
442440
443441 &dsi0_in_vp3 {
444
- status = "disabled";
445
-};
446
-
447
-&dsi0_panel {
448
- power-supply = <&vcc3v3_lcd_n>;
449
- reset-gpios = <&gpio0 RK_PD3 GPIO_ACTIVE_LOW>;
450
- pinctrl-names = "default";
451
- pinctrl-0 = <&lcd_rst_gpio>;
442
+ status = "okay";
452443 };
453444
454445 /*
....@@ -502,7 +493,7 @@
502493 /* rx_delay = <0x3f>; */
503494
504495 phy-handle = <&rgmii_phy>;
505
- status = "disabled";
496
+ status = "okay";
506497 };
507498
508499 &hdmi0 {
....@@ -533,12 +524,12 @@
533524
534525 /* Should work with at least 128MB cma reserved above. */
535526 &hdmirx_ctrler {
536
- status = "disabled";
527
+ status = "okay";
537528
538529 #sound-dai-cells = <1>;
539530 /* Effective level used to trigger HPD: 0-low, 1-high */
540531 hpd-trigger-level = <1>;
541
- hdmirx-det-gpios = <&gpio1 RK_PD5 GPIO_ACTIVE_LOW>;
532
+ hdmirx-det-gpios = <&gpio1 RK_PB6 GPIO_ACTIVE_LOW>;
542533 pinctrl-names = "default";
543534 pinctrl-0 = <&hdmim1_rx &hdmirx_det>;
544535 };
....@@ -709,6 +700,12 @@
709700 compatible = "atmel,24c256";
710701 reg = <0x50>;
711702 };
703
+
704
+ eeprom@53 {
705
+ //compatible = "atmel,24c02";
706
+ compatible = "atmel,24c256";
707
+ reg = <0x53>;
708
+ };
712709 #if 0
713710 usbc0: fusb302@22 {
714711 compatible = "fcs,fusb302";
....@@ -833,9 +830,7 @@
833830 };
834831 };
835832
836
-&mipi_dcphy0 {
837
- status = "okay";
838
-};
833
+
839834
840835 &mipi_dcphy1 {
841836 status = "disabled";
....@@ -843,21 +838,21 @@
843838
844839 &pcie2x1l2 {
845840 phys = <&combphy0_ps PHY_TYPE_PCIE>;
846
- reset-gpios = <&gpio3 RK_PD1 GPIO_ACTIVE_HIGH>;
841
+ reset-gpios = <&gpio3 RK_PD0 GPIO_ACTIVE_HIGH>;//PCIE20x1_2_RSTn_GPIO3_D0_3V3
847842 vpcie3v3-supply = <&vcc3v3_pcie30>;
848843 status = "okay";
849844 };//MINIPCIE
850845
851846 &pcie2x1l1 {
852847 phys = <&combphy2_psu PHY_TYPE_PCIE>;
853
- reset-gpios = <&gpio4 RK_PA5 GPIO_ACTIVE_HIGH>;
848
+ reset-gpios = <&gpio4 RK_PA2 GPIO_ACTIVE_HIGH>;//PCIEX1_1_PERSTn_M1_L
854849 vpcie3v3-supply = <&vcc3v3_pcie30>;
855
- status = "okay";
850
+ status = "disabled";
856851 };//M.2 WIFI6
857852
858853 &pcie2x1l0 {
859854 phys = <&combphy1_ps PHY_TYPE_PCIE>;
860
- reset-gpios = <&gpio4 RK_PA2 GPIO_ACTIVE_HIGH>;
855
+ reset-gpios = <&gpio4 RK_PA5 GPIO_ACTIVE_HIGH>; //PCIEx1_0_PERSTn_M1_L
861856 vpcie3v3-supply = <&vcc3v3_pcie30>;
862857 status = "okay";
863858 };//RTL8111H
....@@ -902,17 +897,17 @@
902897
903898 hdmi {
904899 hdmirx_det: hdmirx-det {
905
- rockchip,pins = <1 RK_PD5 RK_FUNC_GPIO &pcfg_pull_up>;
900
+ rockchip,pins = <1 RK_PB6 RK_FUNC_GPIO &pcfg_pull_up>;
906901 };
907902 };
908903
909904 headphone {
910905 hp_det: hp-det {
911
- rockchip,pins = <1 RK_PD5 RK_FUNC_GPIO &pcfg_pull_none>;
906
+ rockchip,pins = <3 RK_PD5 RK_FUNC_GPIO &pcfg_pull_none>;
912907 };
913908
914909 spk_con: spk-con {
915
- rockchip,pins = <3 RK_PC3 RK_FUNC_GPIO &pcfg_pull_none>;
910
+ rockchip,pins = <4 RK_PB4 RK_FUNC_GPIO &pcfg_pull_none>;
916911 };
917912 };
918913
....@@ -924,7 +919,7 @@
924919
925920 lcd {
926921 lcd_rst_gpio: lcd-rst-gpio {
927
- rockchip,pins = <0 RK_PD3 RK_FUNC_GPIO &pcfg_pull_none>;
922
+ rockchip,pins = <1 RK_PA0 RK_FUNC_GPIO &pcfg_pull_none>;
928923 };
929924 };
930925
....@@ -936,16 +931,16 @@
936931
937932 sdio-pwrseq {
938933 wifi_enable_h: wifi-enable-h {
939
- rockchip,pins = <3 RK_PB1 RK_FUNC_GPIO &pcfg_pull_up>;
934
+ rockchip,pins = <1 RK_PC6 RK_FUNC_GPIO &pcfg_pull_up>;
940935 };
941936 };
942
-
937
+/*
943938 sdmmc {
944939 sd_s0_pwr: sd-s0-pwr {
945940 rockchip,pins = <0 RK_PB7 RK_FUNC_GPIO &pcfg_pull_up>;
946941 };
947942 };
948
-
943
+*/
949944 touch {
950945 touch_gpio: touch-gpio {
951946 rockchip,pins =
....@@ -967,55 +962,45 @@
967962 };
968963
969964 bt_reset_gpio: bt-reset-gpio {
970
- rockchip,pins = <3 RK_PA6 RK_FUNC_GPIO &pcfg_pull_none>;
971
- };
972
-
973
- bt_wake_gpio: bt-wake-gpio {
974
- rockchip,pins = <3 RK_PA1 RK_FUNC_GPIO &pcfg_pull_none>;
975
- };
976
-
977
- bt_irq_gpio: bt-irq-gpio {
978
- rockchip,pins = <0 RK_PA0 RK_FUNC_GPIO &pcfg_pull_none>;
965
+ rockchip,pins = <0 RK_PB2 RK_FUNC_GPIO &pcfg_pull_none>;
979966 };
980967 };
981
-
968
+/*
982969 wireless-wlan {
983970 wifi_host_wake_irq: wifi-host-wake-irq {
984
- rockchip,pins = <0 RK_PB2 RK_FUNC_GPIO &pcfg_pull_down>;
971
+ rockchip,pins = <2 RK_PB5 RK_FUNC_GPIO &pcfg_pull_down>;
985972 };
986973 };
987
-
974
+*/
988975
989976 ndj_io_init{
990977 ndj_io_gpio: ndj_io_gpio_col{
991978 rockchip,pins =
992
- <1 RK_PB5 RK_FUNC_GPIO &pcfg_pull_none>,
993
- <0 RK_PC0 RK_FUNC_GPIO &pcfg_pull_none>,
994
- <4 RK_PB3 RK_FUNC_GPIO &pcfg_pull_none>,
995
- <1 RK_PB6 RK_FUNC_GPIO &pcfg_pull_none>,
996
- <2 RK_PB5 RK_FUNC_GPIO &pcfg_pull_none>,
979
+ <0 RK_PD3 RK_FUNC_GPIO &pcfg_pull_none>,
980
+ <4 RK_PA1 RK_FUNC_GPIO &pcfg_pull_none>,
981
+ <4 RK_PB6 RK_FUNC_GPIO &pcfg_pull_none>,
982
+ <0 RK_PC6 RK_FUNC_GPIO &pcfg_pull_none>,
997983 <2 RK_PB4 RK_FUNC_GPIO &pcfg_pull_none>,
998984 <2 RK_PC3 RK_FUNC_GPIO &pcfg_pull_none>,
999
- <4 RK_PB2 RK_FUNC_GPIO &pcfg_pull_none>, //vcc_5v
1000
- <4 RK_PB5 RK_FUNC_GPIO &pcfg_pull_none>, //GPIO4_B5_d_3V3
1001
- <4 RK_PB6 RK_FUNC_GPIO &pcfg_pull_none>, //GPIO4_B6_d_3V3
1002
- <3 RK_PB0 RK_FUNC_GPIO &pcfg_pull_none>, //GPIO3_B0_u_3V3
1003
- <3 RK_PB2 RK_FUNC_GPIO &pcfg_pull_none>, //GPIO3_B2_d_3V3
1004
- <3 RK_PB3 RK_FUNC_GPIO &pcfg_pull_none>, //GPIO3_B3_u_3V3
1005
- <3 RK_PB4 RK_FUNC_GPIO &pcfg_pull_none>, //GPIO3_B4_u_3V3
1006
- <3 RK_PA7 RK_FUNC_GPIO &pcfg_pull_none>, //GPIO3_A7_u_3V3
1007
- <3 RK_PA0 RK_FUNC_GPIO &pcfg_pull_none>; //GPIO3_A0_u_3V3
1008
-
985
+ <4 RK_PB5 RK_FUNC_GPIO &pcfg_pull_none>, //vcc_5v
986
+ <1 RK_PB1 RK_FUNC_GPIO &pcfg_pull_none>, //SPI0_MISO_M2_1V8 41
987
+ <1 RK_PA0 RK_FUNC_GPIO &pcfg_pull_none>, //SPI4_MISO_M2_1V8 32
988
+ <1 RK_PB2 RK_FUNC_GPIO &pcfg_pull_none>, //SPI0_MOSI_M2_3V3 42
989
+ <1 RK_PA1 RK_FUNC_GPIO &pcfg_pull_none>, //SPI4_MOSI_M2_1V8 33
990
+ <1 RK_PB3 RK_FUNC_GPIO &pcfg_pull_none>, //SPI0_CLK_M2_1V8 43
991
+ <1 RK_PA2 RK_FUNC_GPIO &pcfg_pull_none>, //SPI4_CLK_M2_1V8 34
992
+ <1 RK_PB4 RK_FUNC_GPIO &pcfg_pull_none>, //SPI0_CS0_M2_1V8 44
993
+ <1 RK_PA3 RK_FUNC_GPIO &pcfg_pull_none>; //SPI4_CS0_M2_1V8 35
1009994 };
1010995 };
1011996 };
1012997 &pwm3 {
1013
- pinctrl-0 = <&pwm3m1_pins>;
1014998 status = "okay";
999
+ pinctrl-0 = <&pwm3m1_pins>;
10151000 };
10161001
10171002 &route_dsi0 {
1018
- status = "okay";
1003
+ status = "disabled";
10191004 connect = <&vp3_out_dsi0>;
10201005 };
10211006
....@@ -1025,8 +1010,13 @@
10251010 };
10261011
10271012 &pwm10 {
1028
- status = "okay";
1013
+ status = "disabled";
10291014 pinctrl-0 = <&pwm10m2_pins>;
1015
+};
1016
+
1017
+&pwm11 {
1018
+ status = "disabled";
1019
+ pinctrl-0 = <&pwm11m3_pins>;
10301020 };
10311021
10321022 &route_hdmi0 {
....@@ -1039,6 +1029,10 @@
10391029
10401030 &sata0 {
10411031 status = "disabled";
1032
+};
1033
+
1034
+&sata2 {
1035
+ status = "okay";
10421036 };
10431037
10441038 &sdio {
....@@ -1122,7 +1116,7 @@
11221116 };
11231117
11241118 &uart3 {
1125
- status = "okay";
1119
+ status = "disabled";
11261120 pinctrl-names = "default";
11271121 pinctrl-0 = <&uart3m1_xfer>;
11281122 };
....@@ -1153,7 +1147,7 @@
11531147 };
11541148
11551149 &uart8 {
1156
- status = "okay";
1150
+ status = "disabled";
11571151 pinctrl-names = "default";
11581152 pinctrl-0 = <&uart8m1_xfer>;
11591153 };
....@@ -1164,3 +1158,17 @@
11641158 pinctrl-names = "default";
11651159 pinctrl-0 = <&uart9m0_xfer &uart9m0_ctsn>;
11661160 };
1161
+
1162
+
1163
+&can0 {
1164
+ status = "okay";
1165
+ pinctrl-names = "default";
1166
+ pinctrl-0 = <&can0m0_pins>;
1167
+};
1168
+
1169
+
1170
+&can1 {
1171
+ status = "okay";
1172
+ pinctrl-names = "default";
1173
+ pinctrl-0 = <&can1m1_pins>;
1174
+};