[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20200329162128.218584-10-david@ixit.cz>
Date: Sun, 29 Mar 2020 18:21:28 +0200
From: David Heidelberg <david@...t.cz>
To: Sebastian Reichel <sre@...nel.org>,
Jonghwa Lee <jonghwa3.lee@...sung.com>,
Chanwoo Choi <cw00.choi@...sung.com>,
Myungjoo Ham <myungjoo.ham@...sung.com>,
Sumit Semwal <sumit.semwal@...aro.org>,
John Stultz <john.stultz@...aro.org>,
Vinay Simha BN <simhavcs@...il.com>,
mika.westerberg@...ux.intel.com, ramakrishna.pallala@...el.com,
Dmitry Osipenko <digetx@...il.com>, linux-pm@...r.kernel.org,
linux-kernel@...r.kernel.org
Cc: David Heidelberg <david@...t.cz>, Rob Herring <robh+dt@...nel.org>,
devicetree@...r.kernel.org
Subject: [PATCH 9/9] arm: dts: qcom: apq8064-nexus7: Add smb345 charger node
Add smb345 charger node to Nexus 7 2013 DTS.
Proper charger initialization also prevents battery from overcharging.
Original author: Vinay Simha BN <simhavcs@...il.com>
Signed-off-by: David Heidelberg <david@...t.cz>
---
.../boot/dts/qcom-apq8064-asus-nexus7-flo.dts | 22 ++++++++++++++++++-
1 file changed, 21 insertions(+), 1 deletion(-)
diff --git a/arch/arm/boot/dts/qcom-apq8064-asus-nexus7-flo.dts b/arch/arm/boot/dts/qcom-apq8064-asus-nexus7-flo.dts
index a701d4bac320..9f14216a22f1 100644
--- a/arch/arm/boot/dts/qcom-apq8064-asus-nexus7-flo.dts
+++ b/arch/arm/boot/dts/qcom-apq8064-asus-nexus7-flo.dts
@@ -3,6 +3,7 @@
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/input/input.h>
#include <dt-bindings/pinctrl/qcom,pmic-gpio.h>
+#include <dt-bindings/power/summit,smb347-charger.h>
/ {
model = "Asus Nexus7(flo)";
compatible = "asus,nexus7-flo", "qcom,apq8064";
@@ -293,11 +294,30 @@ eeprom@52 {
pagesize = <32>;
};
- bq27541@55 {
+ bat: battery@55 {
compatible = "ti,bq27541";
reg = <0x55>;
+ power-supplies = <&power_supply>;
};
+ power_supply: charger@6a {
+ compatible = "summit,smb345";
+ reg = <0x6a>;
+
+ interrupt-parent = <&tlmm_pinmux>;
+ interrupts = <23 IRQ_TYPE_EDGE_BOTH>;
+
+ summit,max-chg-curr = <1800000>;
+ summit,usb-curr-limit = <500000>;
+
+ summit,chip-temp-threshold = <110>;
+
+ summit,enable-usb-charging;
+ summit,enable-otg-charging;
+
+ summit,enable-chg-ctrl =
+ <SMB3XX_CHG_ENABLE_SW>;
+ };
};
};
--
2.25.0
Powered by blists - more mailing lists