lin
2025-04-16 903fc4b2d160641e35840da17820a65baa59dc20
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 {
....@@ -420,21 +401,21 @@
420401 pmu_ac_vol = <4600>;
421402 pmu_ac_cur = <3000>;
422403
423
- wakeup_ac_in;
424
- wakeup_ac_out;
404
+ // wakeup_ac_in;
405
+ // wakeup_ac_out;
425406 };
426407
427408 usb_power_supply: usb_power_supply {
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 = <2500>;
414
+ pmu_usbad_vol = <4600>;
415
+ pmu_usbad_cur = <2500>;
435416
436
- wakeup_usb_in;
437
- wakeup_usb_out;
417
+ // wakeup_usb_in;
418
+ // wakeup_usb_out;
438419 };
439420
440421 battery_power_supply: battery-power-supply {
....@@ -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>;
....@@ -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,9 +1340,9 @@
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
....@@ -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,9 @@
14631448 rx-delay = <7>;
14641449 };
14651450
1466
-
1467
-//#include "lcd-lvds-21-1920-1080.dtsi"
14681451 #include "lcd-lvds-7-1024-600.dtsi"
1469
-//#include "lcd-mipi-10-800-1280.dtsi"
1452
+//#include "lcd-lvds-21-1920-1080.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"