From 53d8e046ac1bf2ebe94f671983e3d3be059df91a Mon Sep 17 00:00:00 2001 From: huangcm <1263938474@qq.com> Date: Mon, 01 Sep 2025 02:06:02 +0000 Subject: [PATCH] feat(bat): fix real cap & add bat 8000mA 2.0A charge config --- longan/device/config/chips/a133/configs/c3/kickpi-k5c.dts | 34 +++++++++++++++++++++------------- 1 files changed, 21 insertions(+), 13 deletions(-) diff --git a/longan/device/config/chips/a133/configs/c3/kickpi-k5c.dts b/longan/device/config/chips/a133/configs/c3/kickpi-k5c.dts index e64033c..f9f3d81 100755 --- a/longan/device/config/chips/a133/configs/c3/kickpi-k5c.dts +++ b/longan/device/config/chips/a133/configs/c3/kickpi-k5c.dts @@ -17,15 +17,15 @@ standby_param = &standby_param; }; - reg_usb1_vbus: usb1-vbus { + reg_usb1_vbus: usb1-vbus { compatible = "regulator-fixed"; - gpio = <&r_pio PL 8 1 2 0 1>; + //gpio = <&r_pio PL 8 1 2 0 1>; regulator-name = "usb1-vbus"; regulator-min-microvolt = <5000000>; regulator-max-microvolt = <5000000>; regulator-enable-ramp-delay = <1000>; enable-active-high; - }; + }; soc: soc@03000000 { @@ -410,9 +410,9 @@ status = "okay"; pmu_usbpc_vol = <4600>; - pmu_usbpc_cur = <2500>; + pmu_usbpc_cur = <3000>; pmu_usbad_vol = <4600>; - pmu_usbad_cur = <2500>; + pmu_usbad_cur = <3000>; wakeup_usb_in; wakeup_usb_out; @@ -425,9 +425,9 @@ pmu_chg_ic_temp = <0>; pmu_battery_rdc= <50>; pmu_battery_cap = <8000>; - pmu_runtime_chgcur = <1000>; - pmu_suspend_chgcur = <2000>; - pmu_shutdown_chgcur = <2000>; + pmu_runtime_chgcur = <2800>; + pmu_suspend_chgcur = <2800>; + pmu_shutdown_chgcur = <2800>; pmu_init_chgvol = <4280>; pmu_battery_warning_level1 = <15>; pmu_battery_warning_level2 = <0>; @@ -924,13 +924,13 @@ status = "okay"; }; - ehci1:ehci1-controller@0x05200000 { + ehci1:ehci1-controller@0x05200000 { drvvbus-supply = <®_usb1_vbus>; }; ohci1:ohci1-controller@0x05200400 { drvvbus-supply = <®_usb1_vbus>; - }; + }; sdc1: sdmmc@04021000 { bus-width = <4>; @@ -1340,6 +1340,12 @@ pinctrl-names = "default"; status = "okay"; + usb_vbus { + abel = "usb_vbus"; + gpios = <&r_pio PL 8 1 2 0 1>; + linux,default_trigger = "default-on"; + }; + work-led { label = "work-led"; gpios = <&r_pio PL 10 1 0 1 0>; @@ -1451,8 +1457,10 @@ //#include "lcd-lvds-7-1024-600.dtsi" //#include "lcd-lvds-21-1920-1080.dtsi" //#include "lcd-mipi-10-800-1280-v1.dtsi" -#include "lcd-mipi-10-800-1280-v2.dtsi" +//#include "lcd-mipi-10-800-1280-v2.dtsi" //#include "lcd-mipi-8-800-1280.dtsi" -//#include "lcd-mipi-5-720-1280.dtsi" +#include "lcd-mipi-5-720-1280.dtsi" -#include "a133-kickpi-axp707-bat-5000mA.dtsi" +//#include "a133-kickpi-axp707-bat-5000mA.dtsi" +#include "a133-kickpi-axp707-bat-8000mA.dtsi" + -- Gitblit v1.6.2