Commit e81a379a authored by Tobias Schramm's avatar Tobias Schramm

arm64: dts: Add low battery output of cw2015 as power key

parent b7c4e787
......@@ -93,7 +93,7 @@ gpio-keys {
compatible = "gpio-keys";
autorepeat;
pinctrl-names = "default";
pinctrl-0 = <&pwrbtn &lidbtn>;
pinctrl-0 = <&pwrbtn &lidbtn &lowbat>;
power {
debounce-interval = <20>;
......@@ -111,8 +111,14 @@ lid {
linux,input-type = <EV_SW>;
wakeup-source;
};
low-battery {
gpios = <&gpio4 RK_PC5 GPIO_ACTIVE_LOW>;
label = "Low Battery";
linux,code = <KEY_POWER>;
};
};
backlight: edp-backlight {
compatible = "pwm-backlight";
pwms = <&pwm0 0 740740 0>;
......@@ -725,6 +731,7 @@ cw2015@62 {
cellwise,monitor-interval = <5>;
cellwise,virtual-power = <0>;
cellwise,design-capacity = <9800>;
cellwise,alert-level = <3>;
power-supplies = <&mains_charger>, <&fusb0>;
};
};
......@@ -792,6 +799,9 @@ pwrbtn: pwrbtn {
lidbtn: lidbtn {
rockchip,pins = <1 RK_PA1 RK_FUNC_GPIO &pcfg_pull_up>;
};
lowbat: lowbat {
rockchip,pins = <4 RK_PC5 RK_FUNC_GPIO &pcfg_pull_up>;
};
};
dc-charger {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment