From: Xu Jianqun Date: Tue, 16 May 2017 08:55:52 +0000 (+0800) Subject: arm64: dts: rk3368-sheep: add rk818 battery node X-Git-Tag: release-20171130_firefly~4^2~561 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=62c8548527a6b46850099ca8ece7e0a0f4e36aaf;p=firefly-linux-kernel-4.4.55.git arm64: dts: rk3368-sheep: add rk818 battery node Change-Id: I7e0f0ea93a2019ea022c9fe8e72f412af0ec6be9 Signed-off-by: Xu Jianqun --- diff --git a/arch/arm64/boot/dts/rockchip/rk3368-sheep.dts b/arch/arm64/boot/dts/rockchip/rk3368-sheep.dts index 25573fc29766..843bb3a3a974 100644 --- a/arch/arm64/boot/dts/rockchip/rk3368-sheep.dts +++ b/arch/arm64/boot/dts/rockchip/rk3368-sheep.dts @@ -428,6 +428,36 @@ }; }; }; + + battery { + compatible = "rk818-battery"; + pinctrl-names = "default"; + pinctrl-0 = <&dc_irq_gpio>; + ocv_table = < + 3400 3650 3693 3707 3731 3749 3760 + 3770 3782 3796 3812 3829 3852 3882 + 3915 3951 3981 4047 4086 4132 4182>; + design_capacity = <8650>; + design_qmax = <8800>; + bat_res = <85>; + max_input_current = <2000>; + max_chrg_current = <1800>; + max_chrg_voltage = <4200>; + sleep_enter_current = <600>; + sleep_exit_current = <600>; + power_off_thresd = <3400>; + zero_algorithm_vol = <3850>; + fb_temperature = <115>; + sample_res = <10>; + max_soc_offset = <60>; + energy_mode = <0>; + monitor_sec = <5>; + virtual_power = <0>; + power_dc2otg = <1>; + support_usb_adp = <1>; + support_dc_adp = <1>; + dc_det_gpio = <&gpio0 17 GPIO_ACTIVE_LOW>; + }; }; }; @@ -517,6 +547,7 @@ &pmu_io_domains { status = "okay"; + pmu-supply = <&vcc_io>; vop-supply = <&vcc_io>; }; @@ -611,6 +642,12 @@ }; }; + dc_det { + dc_irq_gpio: dc-irq-gpio { + rockchip,pins = <0 17 RK_FUNC_GPIO &pcfg_pull_up>; + }; + }; + usb2 { host_vbus_drv: host-vbus-drv { rockchip,pins = ;