summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorqctecmdr <qctecmdr@localhost>2021-04-01 07:27:23 -0700
committerGerrit - the friendly Code Review server <code-review@localhost>2021-04-01 07:27:23 -0700
commit121ead38552a2514a10de9ae03c4c615559b2f1a (patch)
treecbf7f803ba0a6691acfd66b1f03c98235b6383e9
parentaae7166e552557922e7955fd8922d9a83d061d34 (diff)
parent7c1361891661bae181dd9c84cacd48e9ce1aae4d (diff)
downloaddevicetree-121ead38552a2514a10de9ae03c4c615559b2f1a.tar.gz
Merge "ARM: dts: msm: Add pmic support for sdm439 and sdm429"
-rw-r--r--qcom/pm8953.dtsi18
-rw-r--r--qcom/sdm439-mtp.dtsi20
-rw-r--r--qcom/sdm439-pmi632.dtsi18
-rw-r--r--qcom/sdm439-qrd.dtsi20
-rw-r--r--qcom/smb1355.dtsi43
5 files changed, 94 insertions, 25 deletions
diff --git a/qcom/pm8953.dtsi b/qcom/pm8953.dtsi
index d81ac710..05a07ecf 100644
--- a/qcom/pm8953.dtsi
+++ b/qcom/pm8953.dtsi
@@ -283,21 +283,8 @@
};
pm8953_rtc: qcom,pm8953_rtc {
- spmi-dev-container;
- compatible = "qcom,qpnp-rtc";
- #address-cells = <1>;
- #size-cells = <1>;
- qcom,qpnp-rtc-write = <0>;
- qcom,qpnp-rtc-alarm-pwrup = <0>;
-
- qcom,pm8953_rtc_rw@6000 {
- reg = <0x6000 0x100>;
- };
-
- qcom,pm8953_rtc_alarm@6100 {
- reg = <0x6100 0x100>;
- interrupts = <0x0 0x61 0x1 IRQ_TYPE_NONE>;
- };
+ compatible = "qcom,pm8916-rtc";
+ interrupts = <0x0 0x61 0x1 IRQ_TYPE_NONE>;
};
pm8953_typec: qcom,pm8953_typec@bf00 {
@@ -333,6 +320,7 @@
reg = <0xbc00 0x100>;
reg-names = "lpg-base";
#pwm-cells = <2>;
+ qcom,num-lpg-channels = <1>;
};
};
};
diff --git a/qcom/sdm439-mtp.dtsi b/qcom/sdm439-mtp.dtsi
index 6b55c243..1c1ac401 100644
--- a/qcom/sdm439-mtp.dtsi
+++ b/qcom/sdm439-mtp.dtsi
@@ -617,10 +617,24 @@
&smb_en_default &pmi632_sense_default &pmi632_ctm_default>;
interrupt-parent = <&tlmm>;
interrupts = <61 IRQ_TYPE_LEVEL_LOW>;
+ status = "ok";
+ smb1355_charger: qcom,smb1355-charger@1000 {
+ status = "ok";
+ qcom,parallel-mode = <1>;
+ qcom,disable-ctm;
+ qcom,hw-die-temp-mitigation;
+ };
+};
+
+&smb1355_0 {
+ pinctrl-names = "default";
+ pinctrl-0 = <&smb_int_default
+ &smb_en_default &pmi632_sense_default &pmi632_ctm_default>;
+ interrupt-parent = <&tlmm>;
+ interrupts = <61 IRQ_TYPE_LEVEL_LOW>;
+ status = "ok";
smb1355_charger_0: qcom,smb1355-charger@1000 {
- status ="ok";
- /delete-property/ io-channels;
- /delete-property/ io-channels-names;
+ status = "ok";
qcom,parallel-mode = <1>;
qcom,disable-ctm;
qcom,hw-die-temp-mitigation;
diff --git a/qcom/sdm439-pmi632.dtsi b/qcom/sdm439-pmi632.dtsi
index ab4b1a6c..6ddeacff 100644
--- a/qcom/sdm439-pmi632.dtsi
+++ b/qcom/sdm439-pmi632.dtsi
@@ -2,6 +2,17 @@
&pmi632_charger {
dpdm-supply = <&usb_otg>;
+ qcom,battery-data = <&mtp_batterydata>;
+ qcom,auto-recharge-soc = <98>;
+ qcom,flash-disable-soc = <10>;
+ qcom,sw-jeita-enable;
+ qcom,step-charging-enable;
+ qcom,hw-die-temp-mitigation;
+ qcom,hw-connector-mitigation;
+ qcom,connector-internal-pull-kohm = <100>;
+ qcom,thermal-mitigation
+ = <3000000 2500000 2000000 1500000
+ 1000000 500000>;
};
&usb_otg {
@@ -24,10 +35,9 @@
&pmi632_qg {
qcom,battery-data = <&mtp_batterydata>;
-};
-
-&pmi632_charger {
- qcom,battery-data = <&mtp_batterydata>;
+ qcom,qg-iterm-ma = <100>;
+ qcom,hold-soc-while-full;
+ qcom,linearize-soc;
};
&pmi632_vadc {
diff --git a/qcom/sdm439-qrd.dtsi b/qcom/sdm439-qrd.dtsi
index f2bdd844..b2b1384e 100644
--- a/qcom/sdm439-qrd.dtsi
+++ b/qcom/sdm439-qrd.dtsi
@@ -402,10 +402,24 @@
&smb_en_default &pmi632_sense_default &pmi632_ctm_default>;
interrupt-parent = <&tlmm>;
interrupts = <61 IRQ_TYPE_LEVEL_LOW>;
+ status = "ok";
+ smb1355_charger: qcom,smb1355-charger@1000 {
+ status = "ok";
+ qcom,parallel-mode = <1>;
+ qcom,disable-ctm;
+ qcom,hw-die-temp-mitigation;
+ };
+};
+
+&smb1355_0 {
+ pinctrl-names = "default";
+ pinctrl-0 = <&smb_int_default
+ &smb_en_default &pmi632_sense_default &pmi632_ctm_default>;
+ interrupt-parent = <&tlmm>;
+ interrupts = <61 IRQ_TYPE_LEVEL_LOW>;
+ status = "ok";
smb1355_charger_0: qcom,smb1355-charger@1000 {
- status ="ok";
- /delete-property/ io-channels;
- /delete-property/ io-channels-names;
+ status = "ok";
qcom,parallel-mode = <1>;
qcom,disable-ctm;
qcom,hw-die-temp-mitigation;
diff --git a/qcom/smb1355.dtsi b/qcom/smb1355.dtsi
index a75e19fc..f244a0dc 100644
--- a/qcom/smb1355.dtsi
+++ b/qcom/smb1355.dtsi
@@ -42,3 +42,46 @@ smb1355: qcom,smb1355@c {
};
};
};
+
+smb1355_0: qcom,smb1355@8 {
+ compatible = "qcom,i2c-pmic";
+ reg = <0x8>;
+ #address-cells = <1>;
+ #size-cells = <0>;
+ interrupt-parent = <&spmi_bus>;
+ interrupts = <0x0 0xd1 0x0 IRQ_TYPE_LEVEL_LOW>;
+ interrupt_names = "smb1355_0";
+ interrupt-controller;
+ #interrupt-cells = <3>;
+ qcom,periph-map = <0x10 0x12 0x13 0x16>;
+ status = "disabled";
+
+ smb1355_revid_0: qcom,revid@100 {
+ compatible = "qcom,qpnp-revid";
+ reg = <0x100 0x100>;
+ };
+
+ smb1355_charger_0: qcom,smb1355-charger@1000 {
+ compatible = "qcom,smb1355";
+ qcom,pmic-revid = <&smb1355_revid_0>;
+ reg = <0x1000 0x700>;
+ #address-cells = <1>;
+ #size-cells = <1>;
+ interrupt-parent = <&smb1355_0>;
+ status = "disabled";
+
+ qcom,chgr@1000 {
+ reg = <0x1000 0x100>;
+ interrupts = <0x10 0x1 IRQ_TYPE_EDGE_RISING>;
+ interrupt-names = "chg-state-change";
+ };
+
+ qcom,chgr-misc@1600 {
+ reg = <0x1600 0x100>;
+ interrupts = <0x16 0x1 IRQ_TYPE_EDGE_RISING>,
+ <0x16 0x6 IRQ_TYPE_EDGE_RISING>;
+ interrupt-names = "wdog-bark",
+ "temperature-change";
+ };
+ };
+};