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
....@@ -401,8 +401,8 @@
401401 pmu_ac_vol = <4600>;
402402 pmu_ac_cur = <3000>;
403403
404
- // wakeup_ac_in;
405
- // wakeup_ac_out;
404
+ wakeup_ac_in;
405
+ wakeup_ac_out;
406406 };
407407
408408 usb_power_supply: usb_power_supply {
....@@ -410,12 +410,12 @@
410410 status = "okay";
411411
412412 pmu_usbpc_vol = <4600>;
413
- pmu_usbpc_cur = <2500>;
413
+ pmu_usbpc_cur = <3000>;
414414 pmu_usbad_vol = <4600>;
415
- pmu_usbad_cur = <2500>;
415
+ pmu_usbad_cur = <3000>;
416416
417
- // wakeup_usb_in;
418
- // wakeup_usb_out;
417
+ wakeup_usb_in;
418
+ wakeup_usb_out;
419419 };
420420
421421 battery_power_supply: battery-power-supply {
....@@ -425,9 +425,9 @@
425425 pmu_chg_ic_temp = <0>;
426426 pmu_battery_rdc= <50>;
427427 pmu_battery_cap = <8000>;
428
- pmu_runtime_chgcur = <1000>;
429
- pmu_suspend_chgcur = <2000>;
430
- pmu_shutdown_chgcur = <2000>;
428
+ pmu_runtime_chgcur = <2800>;
429
+ pmu_suspend_chgcur = <2800>;
430
+ pmu_shutdown_chgcur = <2800>;
431431 pmu_init_chgvol = <4280>;
432432 pmu_battery_warning_level1 = <15>;
433433 pmu_battery_warning_level2 = <0>;
....@@ -490,7 +490,7 @@
490490 pmu_bat_temp_para16 = <66>;
491491
492492 wakeup_bat_out;
493
- /* wakeup_bat_in; */
493
+ wakeup_bat_in;
494494 /* wakeup_bat_charging; */
495495 /* wakeup_bat_charge_over; */
496496 /* wakeup_low_warning1; */
....@@ -504,7 +504,7 @@
504504 powerkey0: powerkey@0 {
505505 status = "okay";
506506 compatible = "x-powers,axp2101-pek";
507
- pmu_powkey_off_time = <6000>;
507
+ pmu_powkey_off_time = <8000>;
508508 pmu_powkey_off_func = <0>;
509509 pmu_powkey_off_en = <1>;
510510 pmu_powkey_long_time = <1500>;
....@@ -924,13 +924,13 @@
924924 status = "okay";
925925 };
926926
927
- ehci1:ehci1-controller@0x05200000 {
927
+ ehci1:ehci1-controller@0x05200000 {
928928 drvvbus-supply = <&reg_usb1_vbus>;
929929 };
930930
931931 ohci1:ohci1-controller@0x05200400 {
932932 drvvbus-supply = <&reg_usb1_vbus>;
933
- };
933
+ };
934934
935935 sdc1: sdmmc@04021000 {
936936 bus-width = <4>;
....@@ -941,7 +941,7 @@
941941 /*sd-uhs-sdr25*/
942942 sd-uhs-sdr50;
943943 sd-uhs-ddr50;
944
- sd-uhs-sdr104;
944
+ //sd-uhs-sdr104;
945945 // kickpi
946946 //sunxi-power-save-mode;
947947 /*sunxi-dis-signal-vol-sw;*/
....@@ -972,9 +972,9 @@
972972 lineout_vol = <0x1a>;
973973 headphonegain = <0x00>;
974974 /* Pa enabled about */
975
- pa_level = <0x00>;
975
+ pa_level = <0x01>;
976976 pa_msleep_time = <0x78>;
977
- //gpio-spk = <&pio PB 7 1 1 1 1>;
977
+ gpio-spk = <&pio PB 7 1 1 1 1>;
978978 /* regulator about */
979979 avcc-supply = <&reg_aldo1>;
980980 cpvin-supply = <&reg_eldo1>;
....@@ -1315,6 +1315,10 @@
13151315 uart4: uart@05001000 {
13161316 status = "okay";
13171317 };
1318
+
1319
+ uart7: uart@07080000 {
1320
+ status = "okay";
1321
+ };
13181322 };
13191323 gpu: gpu@0x01800000 {
13201324 gpu_idle = <1>;/*ic version ctrl*/
....@@ -1336,17 +1340,23 @@
13361340 pinctrl-names = "default";
13371341 status = "okay";
13381342
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
+
13391349 work-led {
13401350 label = "work-led";
13411351 gpios = <&r_pio PL 10 1 0 1 0>;
13421352 linux,default_trigger = "heartbeat";
13431353 };
13441354
1345
- spk_en {
1346
- label = "spk_en";
1347
- gpios = <&pio PB 7 1 0 1 0>;
1348
- linux,default_trigger = "default-on";
1349
- };
1355
+ // spk_en {
1356
+ // label = "spk_en";
1357
+ // gpios = <&pio PB 7 1 0 1 0>;
1358
+ // linux,default_trigger = "default-on";
1359
+ // };
13501360
13511361 fan_en {
13521362 label = "fan_en";
....@@ -1390,17 +1400,17 @@
13901400 linux,default_trigger = "default-on";
13911401 };
13921402
1393
- PL2 {
1394
- label = "PL2";
1395
- gpios = <&r_pio PL 2 1 0 1 0>;
1396
- linux,default_trigger = "default-on";
1397
- };
1403
+ // PL2 {
1404
+ // label = "PL2";
1405
+ // gpios = <&r_pio PL 2 1 0 1 0>;
1406
+ // linux,default_trigger = "default-on";
1407
+ // };
13981408
1399
- PL3 {
1400
- label = "PL3";
1401
- gpios = <&r_pio PL 3 1 0 1 0>;
1402
- linux,default_trigger = "default-on";
1403
- };
1409
+ // PL3 {
1410
+ // label = "PL3";
1411
+ // gpios = <&r_pio PL 3 1 0 1 0>;
1412
+ // linux,default_trigger = "default-on";
1413
+ // };
14041414
14051415 PL4 {
14061416 label = "PL4";
....@@ -1444,10 +1454,13 @@
14441454 rx-delay = <7>;
14451455 };
14461456
1447
-
1457
+//#include "lcd-lvds-7-1024-600.dtsi"
14481458 //#include "lcd-lvds-21-1920-1080.dtsi"
1449
-#include "lcd-lvds-7-1024-600.dtsi"
1450
-//#include "lcd-mipi-10-800-1280.dtsi"
1451
-//#include "lcd-mipi-10-800-1280_AT101DS40I.dtsi"
1459
+//#include "lcd-mipi-10-800-1280-v1.dtsi"
1460
+//#include "lcd-mipi-10-800-1280-v2.dtsi"
14521461 //#include "lcd-mipi-8-800-1280.dtsi"
1453
-//#include "lcd-mipi-5-720-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
+