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; */
....@@ -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;*/
....@@ -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*/
....@@ -1335,6 +1339,12 @@
13351339 compatible = "gpio-leds";
13361340 pinctrl-names = "default";
13371341 status = "okay";
1342
+
1343
+ usb_vbus {
1344
+ abel = "usb_vbus";
1345
+ gpios = <&r_pio PL 8 1 2 0 1>;
1346
+ linux,default_trigger = "default-on";
1347
+ };
13381348
13391349 work-led {
13401350 label = "work-led";
....@@ -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,9 +1454,13 @@
14441454 rx-delay = <7>;
14451455 };
14461456
1447
-#include "lcd-lvds-7-1024-600.dtsi"
1457
+//#include "lcd-lvds-7-1024-600.dtsi"
14481458 //#include "lcd-lvds-21-1920-1080.dtsi"
14491459 //#include "lcd-mipi-10-800-1280-v1.dtsi"
14501460 //#include "lcd-mipi-10-800-1280-v2.dtsi"
14511461 //#include "lcd-mipi-8-800-1280.dtsi"
1452
-//#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
+