From bc22ab7830787ec2a9d7bf7386afb5aa223d7e05 Mon Sep 17 00:00:00 2001 From: shengfei Xu Date: Thu, 1 Mar 2018 11:07:08 +0800 Subject: [PATCH] arm64: dts: rockchip: rk3326/px30: add charge animation node Change-Id: I2c013c6e1f94727de7031420e7cd15e022767171 Signed-off-by: shengfei Xu --- .../power_supply/charge-animation.txt | 24 +++++++++++++++++++ .../boot/dts/rockchip/rk3326-863-lp3-v10.dts | 9 +++++++ 2 files changed, 33 insertions(+) create mode 100644 Documentation/devicetree/bindings/power_supply/charge-animation.txt diff --git a/Documentation/devicetree/bindings/power_supply/charge-animation.txt b/Documentation/devicetree/bindings/power_supply/charge-animation.txt new file mode 100644 index 000000000000..5d92a530aafa --- /dev/null +++ b/Documentation/devicetree/bindings/power_supply/charge-animation.txt @@ -0,0 +1,24 @@ +charge-animation +~~~~~~~~~~~~~~~~ + +Required properties : + - compatible: "rockchip,uboot-charge" + - rockchip,uboot-charge-on: enable uboot charge animation + - rockchip,android-charge-on: enable android charge animation, + either uboot charge animation or android charge animation + can be executed, but not both + +Optional properties : + - rockchip,uboot-low-power-voltage: voltage threshold of power off + - rockchip,screen-on-voltage: voltage threshold of screen on + +Example: + + charge-animation { + compatible = "rockchip,uboot-charge"; + rockchip,uboot-charge-on = <1>; + rockchip,android-charge-on = <0>; + rockchip,uboot-low-power-voltage = <3500>; + rockchip,screen-on-voltage = <3600>; + status = "okay"; + }; diff --git a/arch/arm64/boot/dts/rockchip/rk3326-863-lp3-v10.dts b/arch/arm64/boot/dts/rockchip/rk3326-863-lp3-v10.dts index 45f35cff4efd..c1f7f7ce0c1f 100644 --- a/arch/arm64/boot/dts/rockchip/rk3326-863-lp3-v10.dts +++ b/arch/arm64/boot/dts/rockchip/rk3326-863-lp3-v10.dts @@ -77,6 +77,15 @@ default-brightness-level = <200>; }; + charge-animation { + compatible = "rockchip,uboot-charge"; + rockchip,uboot-charge-on = <1>; + rockchip,android-charge-on = <0>; + rockchip,uboot-low-power-voltage = <3500>; + rockchip,screen-on-voltage = <3600>; + status = "okay"; + }; + rk817-sound { compatible = "simple-audio-card"; simple-audio-card,format = "i2s";