huangcm
2025-09-01 53d8e046ac1bf2ebe94f671983e3d3be059df91a
longan/device/config/chips/a133/configs/c3/kickpi-k5c.dts
....@@ -17,15 +17,15 @@
1717 standby_param = &standby_param;
1818 };
1919
20
- reg_usb1_vbus: usb1-vbus {
20
+ reg_usb1_vbus: usb1-vbus {
2121 compatible = "regulator-fixed";
22
- gpio = <&r_pio PL 8 1 2 0 1>;
22
+ //gpio = <&r_pio PL 8 1 2 0 1>;
2323 regulator-name = "usb1-vbus";
2424 regulator-min-microvolt = <5000000>;
2525 regulator-max-microvolt = <5000000>;
2626 regulator-enable-ramp-delay = <1000>;
2727 enable-active-high;
28
- };
28
+ };
2929
3030 soc: soc@03000000 {
3131
....@@ -288,25 +288,6 @@
288288 pinctrl-0 = <&twi0_pins_a>;
289289 pinctrl-1 = <&twi0_pins_b>;
290290 status = "okay";
291
- ctp {
292
- compatible = "gt9xx_ts";
293
- ctp_used = <1>;
294
- device_type = "ctp";
295
- status = "okay";
296
- ctp_twi_id = <0x0>;
297
- ctp_name = "gt9xx";
298
- reg = <0x5D>;
299
- ctp_screen_max_x = <1024>;
300
- ctp_screen_max_y = <600>;
301
- ctp_revert_x_flag = <0x1>;
302
- ctp_revert_y_flag = <0x1>;
303
- ctp_exchange_x_y_flag = <0x0>;
304
- ctp_int_port = <&pio PE 3 6 0xffffffff 0xffffffff 0>;
305
- ctp_wakeup = <&pio PE 4 1 0xffffffff 0xffffffff 1>;
306
- ctp_power_ldo = <3300>;
307
- ctp_power_ldo_vol = <3300>;
308
- ctp_power = <3300>;
309
- };
310291 };
311292
312293 spi0: spi@05010000 {
....@@ -428,10 +409,10 @@
428409 compatible = "x-powers,axp803-usb-power-supply";
429410 status = "okay";
430411
431
- pmu_usbpc_vol = <5000>;
432
- pmu_usbpc_cur = <5000>;
433
- pmu_usbad_vol = <5000>;
434
- pmu_usbad_cur = <5000>;
412
+ pmu_usbpc_vol = <4600>;
413
+ pmu_usbpc_cur = <3000>;
414
+ pmu_usbad_vol = <4600>;
415
+ pmu_usbad_cur = <3000>;
435416
436417 wakeup_usb_in;
437418 wakeup_usb_out;
....@@ -442,21 +423,21 @@
442423 status = "okay";
443424
444425 pmu_chg_ic_temp = <0>;
445
- pmu_battery_rdc= <93>;
446
- pmu_battery_cap = <5067>;
447
- pmu_runtime_chgcur = <1000>;
448
- pmu_suspend_chgcur = <2000>;
449
- pmu_shutdown_chgcur = <2000>;
450
- pmu_init_chgvol = <4200>;
426
+ pmu_battery_rdc= <50>;
427
+ pmu_battery_cap = <8000>;
428
+ pmu_runtime_chgcur = <2800>;
429
+ pmu_suspend_chgcur = <2800>;
430
+ pmu_shutdown_chgcur = <2800>;
431
+ pmu_init_chgvol = <4280>;
451432 pmu_battery_warning_level1 = <15>;
452433 pmu_battery_warning_level2 = <0>;
453
- pmu_chgled_func = <0>;
434
+ pmu_chgled_func = <1>;
454435 pmu_chgled_type = <0>;
455436 ocv_coulumb_100 = <1>;
456437 pmu_bat_para1 = <0>;
457
- pmu_bat_para2 = <0>;
458
- pmu_bat_para3 = <0>;
459
- pmu_bat_para4 = <0>;
438
+ pmu_bat_para2 = <3>;
439
+ pmu_bat_para3 = <4>;
440
+ pmu_bat_para4 = <5>;
460441 pmu_bat_para5 = <6>;
461442 pmu_bat_para6 = <8>;
462443 pmu_bat_para7 = <9>;
....@@ -474,16 +455,16 @@
474455 pmu_bat_para19 = <65>;
475456 pmu_bat_para20 = <70>;
476457 pmu_bat_para21 = <75>;
477
- pmu_bat_para22 = <80>;
478
- pmu_bat_para23 = <83>;
479
- pmu_bat_para24 = <84>;
480
- pmu_bat_para25 = <86>;
481
- pmu_bat_para26 = <90>;
482
- pmu_bat_para27 = <94>;
483
- pmu_bat_para28 = <97>;
484
- pmu_bat_para29 = <99>;
485
- pmu_bat_para30 = <100>;
486
- pmu_bat_para31 = <100>;
458
+ pmu_bat_para22 = <76>;
459
+ pmu_bat_para23 = <77>;
460
+ pmu_bat_para24 = <78>;
461
+ pmu_bat_para25 = <79>;
462
+ pmu_bat_para26 = <80>;
463
+ pmu_bat_para27 = <83>;
464
+ pmu_bat_para28 = <85>;
465
+ pmu_bat_para29 = <88>;
466
+ pmu_bat_para30 = <90>;
467
+ pmu_bat_para31 = <95>;
487468 pmu_bat_para32 = <100>;
488469
489470 pmu_bat_temp_enable = <0>;
....@@ -509,7 +490,7 @@
509490 pmu_bat_temp_para16 = <66>;
510491
511492 wakeup_bat_out;
512
- /* wakeup_bat_in; */
493
+ wakeup_bat_in;
513494 /* wakeup_bat_charging; */
514495 /* wakeup_bat_charge_over; */
515496 /* wakeup_low_warning1; */
....@@ -523,7 +504,7 @@
523504 powerkey0: powerkey@0 {
524505 status = "okay";
525506 compatible = "x-powers,axp2101-pek";
526
- pmu_powkey_off_time = <6000>;
507
+ pmu_powkey_off_time = <8000>;
527508 pmu_powkey_off_func = <0>;
528509 pmu_powkey_off_en = <1>;
529510 pmu_powkey_long_time = <1500>;
....@@ -943,13 +924,13 @@
943924 status = "okay";
944925 };
945926
946
- ehci1:ehci1-controller@0x05200000 {
927
+ ehci1:ehci1-controller@0x05200000 {
947928 drvvbus-supply = <&reg_usb1_vbus>;
948929 };
949930
950931 ohci1:ohci1-controller@0x05200400 {
951932 drvvbus-supply = <&reg_usb1_vbus>;
952
- };
933
+ };
953934
954935 sdc1: sdmmc@04021000 {
955936 bus-width = <4>;
....@@ -960,7 +941,7 @@
960941 /*sd-uhs-sdr25*/
961942 sd-uhs-sdr50;
962943 sd-uhs-ddr50;
963
- sd-uhs-sdr104;
944
+ //sd-uhs-sdr104;
964945 // kickpi
965946 //sunxi-power-save-mode;
966947 /*sunxi-dis-signal-vol-sw;*/
....@@ -991,9 +972,9 @@
991972 lineout_vol = <0x1a>;
992973 headphonegain = <0x00>;
993974 /* Pa enabled about */
994
- pa_level = <0x00>;
975
+ pa_level = <0x01>;
995976 pa_msleep_time = <0x78>;
996
- //gpio-spk = <&pio PB 7 1 1 1 1>;
977
+ gpio-spk = <&pio PB 7 1 1 1 1>;
997978 /* regulator about */
998979 avcc-supply = <&reg_aldo1>;
999980 cpvin-supply = <&reg_eldo1>;
....@@ -1334,6 +1315,10 @@
13341315 uart4: uart@05001000 {
13351316 status = "okay";
13361317 };
1318
+
1319
+ uart7: uart@07080000 {
1320
+ status = "okay";
1321
+ };
13371322 };
13381323 gpu: gpu@0x01800000 {
13391324 gpu_idle = <1>;/*ic version ctrl*/
....@@ -1355,17 +1340,23 @@
13551340 pinctrl-names = "default";
13561341 status = "okay";
13571342
1358
- sysled {
1359
- label = "sysled";
1360
- gpios = <&r_pio PL 10 1 0 1 1>;
1343
+ usb_vbus {
1344
+ abel = "usb_vbus";
1345
+ gpios = <&r_pio PL 8 1 2 0 1>;
1346
+ linux,default_trigger = "default-on";
1347
+ };
1348
+
1349
+ work-led {
1350
+ label = "work-led";
1351
+ gpios = <&r_pio PL 10 1 0 1 0>;
13611352 linux,default_trigger = "heartbeat";
13621353 };
13631354
1364
- spk_en {
1365
- label = "spk_en";
1366
- gpios = <&pio PB 7 1 0 1 0>;
1367
- linux,default_trigger = "default-on";
1368
- };
1355
+ // spk_en {
1356
+ // label = "spk_en";
1357
+ // gpios = <&pio PB 7 1 0 1 0>;
1358
+ // linux,default_trigger = "default-on";
1359
+ // };
13691360
13701361 fan_en {
13711362 label = "fan_en";
....@@ -1409,17 +1400,17 @@
14091400 linux,default_trigger = "default-on";
14101401 };
14111402
1412
- PL2 {
1413
- label = "PL2";
1414
- gpios = <&r_pio PL 2 1 0 1 0>;
1415
- linux,default_trigger = "default-on";
1416
- };
1403
+ // PL2 {
1404
+ // label = "PL2";
1405
+ // gpios = <&r_pio PL 2 1 0 1 0>;
1406
+ // linux,default_trigger = "default-on";
1407
+ // };
14171408
1418
- PL3 {
1419
- label = "PL3";
1420
- gpios = <&r_pio PL 3 1 0 1 0>;
1421
- linux,default_trigger = "default-on";
1422
- };
1409
+ // PL3 {
1410
+ // label = "PL3";
1411
+ // gpios = <&r_pio PL 3 1 0 1 0>;
1412
+ // linux,default_trigger = "default-on";
1413
+ // };
14231414
14241415 PL4 {
14251416 label = "PL4";
....@@ -1463,8 +1454,13 @@
14631454 rx-delay = <7>;
14641455 };
14651456
1466
-
1457
+//#include "lcd-lvds-7-1024-600.dtsi"
14671458 //#include "lcd-lvds-21-1920-1080.dtsi"
1468
-#include "lcd-lvds-7-1024-600.dtsi"
1469
-//#include "lcd-mipi-10-800-1280.dtsi"
1459
+//#include "lcd-mipi-10-800-1280-v1.dtsi"
1460
+//#include "lcd-mipi-10-800-1280-v2.dtsi"
14701461 //#include "lcd-mipi-8-800-1280.dtsi"
1462
+#include "lcd-mipi-5-720-1280.dtsi"
1463
+
1464
+//#include "a133-kickpi-axp707-bat-5000mA.dtsi"
1465
+#include "a133-kickpi-axp707-bat-8000mA.dtsi"
1466
+