summaryrefslogtreecommitdiff
path: root/dts
diff options
context:
space:
mode:
authorDaniel Okazaki <dtokazaki@google.com>2023-05-19 13:46:21 -0700
committerDaniel Okazaki <dtokazaki@google.com>2023-05-23 17:59:28 +0000
commit30d14c4c06eba78b6df5ada58a0412fac46bb9da (patch)
tree18fcf8c396aa6d4d88d35c0f8355a8473c085e12 /dts
parentff38f34b1690529c0471ccdc0cbd231ba6fbde11 (diff)
downloadshusky-30d14c4c06eba78b6df5ada58a0412fac46bb9da.tar.gz
arm64/dts: zuma: add max77779 dts config
Bug: 283149284 Test: build Change-Id: I6c4f42b73f1b91faafbf8e7e6fb2d6ef7fa65e5b Signed-off-by: Daniel Okazaki <dtokazaki@google.com>
Diffstat (limited to 'dts')
-rw-r--r--dts/google/zuma-ripcurrent-battery.dtsi53
1 files changed, 53 insertions, 0 deletions
diff --git a/dts/google/zuma-ripcurrent-battery.dtsi b/dts/google/zuma-ripcurrent-battery.dtsi
index 59934c7..3f1af79 100644
--- a/dts/google/zuma-ripcurrent-battery.dtsi
+++ b/dts/google/zuma-ripcurrent-battery.dtsi
@@ -208,4 +208,57 @@
#thermal-sensor-cells = <1>;
};
+ /* max77779 nodes */
+ max77779_fg:max77779fg@0x36 {
+ status = "disabled";
+ compatible = "maxim,max77779fg";
+ reg = <0x36>;
+
+ maxim,gauge-type = <2>;
+ maxim,rsense-default = <500>;
+ maxim,batt-id-range-pct = <0>;
+
+ interrupt-parent = <&max77779_pmic_irq>;
+ interrupts = <1 IRQ_TYPE_LEVEL_LOW>;
+
+ maxim,psy-type-unknown;
+ };
+
+ max77779_chg:max77779chrg@0x69 {
+ status = "disabled";
+ compatible = "maxim,max77779chrg";
+ reg = <0x69>;
+
+ interrupt-parent = <&max77779_pmic_irq>;
+ interrupts = <2 IRQ_TYPE_LEVEL_LOW>;
+ };
+
+ max77779_sp:max77779@60 {
+ status = "disabled";
+ compatible = "adi,max77779_sp";
+ reg = <0x60>;
+ };
+
+ max77779_pmic: max77779_pmic@66 {
+ compatible = "max77779_pmic";
+ reg = <0x66>;
+ status = "disabled";
+
+ max77779_pmic_irq: max77779_pmic_irq {
+ compatible = "max77779-pmic-irq";
+
+ pinctrl-names = "default";
+ pinctrl-0 = <&if_pmic_irq>;
+
+ interrupt-parent = <&gpa8>;
+ max777x9,irq-gpio = <&gpa8 0 GPIO_ACTIVE_LOW>;
+
+ interrupt-controller;
+ #interrupt-cells = <2>;
+ };
+
+ max77779_pinctrl: max77779_pinctrl {
+ compatible = "max77779-pinctrl";
+ };
+ };
};