lin
2025-08-21 57113df3a0e2be01232281fad9a5f2c060567981
longan/device/config/chips/a133/configs/c3/kickpi-k5c.dts
....@@ -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 {
....@@ -426,10 +407,10 @@
426407
427408 usb_power_supply: usb_power_supply {
428409 compatible = "x-powers,axp803-usb-power-supply";
429
- status = "disabled";
410
+ status = "okay";
430411
431412 pmu_usbpc_vol = <4600>;
432
- pmu_usbpc_cur = <3000>;
413
+ pmu_usbpc_cur = <2500>;
433414 pmu_usbad_vol = <4600>;
434415 pmu_usbad_cur = <2500>;
435416
....@@ -442,21 +423,21 @@
442423 status = "okay";
443424
444425 pmu_chg_ic_temp = <0>;
445
- pmu_battery_rdc= <93>;
446
- pmu_battery_cap = <5067>;
426
+ pmu_battery_rdc= <50>;
427
+ pmu_battery_cap = <8000>;
447428 pmu_runtime_chgcur = <1000>;
448429 pmu_suspend_chgcur = <2000>;
449430 pmu_shutdown_chgcur = <2000>;
450
- pmu_init_chgvol = <4200>;
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>;
....@@ -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,17 @@
13551340 pinctrl-names = "default";
13561341 status = "okay";
13571342
1358
- sysled {
1359
- label = "sysled";
1360
- gpios = <&r_pio PL 10 1 0 1 1>;
1343
+ work-led {
1344
+ label = "work-led";
1345
+ gpios = <&r_pio PL 10 1 0 1 0>;
13611346 linux,default_trigger = "heartbeat";
13621347 };
13631348
1364
- spk_en {
1365
- label = "spk_en";
1366
- gpios = <&pio PB 7 1 0 1 0>;
1367
- linux,default_trigger = "default-on";
1368
- };
1349
+ // spk_en {
1350
+ // label = "spk_en";
1351
+ // gpios = <&pio PB 7 1 0 1 0>;
1352
+ // linux,default_trigger = "default-on";
1353
+ // };
13691354
13701355 fan_en {
13711356 label = "fan_en";
....@@ -1409,17 +1394,17 @@
14091394 linux,default_trigger = "default-on";
14101395 };
14111396
1412
- PL2 {
1413
- label = "PL2";
1414
- gpios = <&r_pio PL 2 1 0 1 0>;
1415
- linux,default_trigger = "default-on";
1416
- };
1397
+ // PL2 {
1398
+ // label = "PL2";
1399
+ // gpios = <&r_pio PL 2 1 0 1 0>;
1400
+ // linux,default_trigger = "default-on";
1401
+ // };
14171402
1418
- PL3 {
1419
- label = "PL3";
1420
- gpios = <&r_pio PL 3 1 0 1 0>;
1421
- linux,default_trigger = "default-on";
1422
- };
1403
+ // PL3 {
1404
+ // label = "PL3";
1405
+ // gpios = <&r_pio PL 3 1 0 1 0>;
1406
+ // linux,default_trigger = "default-on";
1407
+ // };
14231408
14241409 PL4 {
14251410 label = "PL4";
....@@ -1463,8 +1448,11 @@
14631448 rx-delay = <7>;
14641449 };
14651450
1466
-
1451
+//#include "lcd-lvds-7-1024-600.dtsi"
14671452 //#include "lcd-lvds-21-1920-1080.dtsi"
1468
-#include "lcd-lvds-7-1024-600.dtsi"
1469
-//#include "lcd-mipi-10-800-1280.dtsi"
1453
+//#include "lcd-mipi-10-800-1280-v1.dtsi"
1454
+#include "lcd-mipi-10-800-1280-v2.dtsi"
14701455 //#include "lcd-mipi-8-800-1280.dtsi"
1456
+//#include "lcd-mipi-5-720-1280.dtsi"
1457
+
1458
+#include "a133-kickpi-axp707-bat-5000mA.dtsi"