Skip to content

Commit

Permalink
arm64: dts: qcom: msm8939-samsung-a7: Add PMIC and charger
Browse files Browse the repository at this point in the history
Samsung Galaxy A7 has Richtek RT5033 PMIC and charger.
Add them to the device tree.

Signed-off-by: Raymond Hackley <[email protected]>
  • Loading branch information
wonderfulShrineMaidenOfParadise authored and stephan-gh committed Dec 3, 2023
1 parent f22defe commit aba6e80
Showing 1 changed file with 61 additions and 1 deletion.
62 changes: 61 additions & 1 deletion arch/arm64/boot/dts/qcom/msm8939-samsung-a7.dts
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,15 @@
};
};

battery: battery {
compatible = "simple-battery";
charge-term-current-microamp = <150000>;
constant-charge-current-max-microamp = <1500000>;
constant-charge-voltage-max-microvolt = <4300000>;
precharge-current-microamp = <450000>;
precharge-upper-limit-microvolt = <3500000>;
};

gpio-hall-sensor {
compatible = "gpio-keys";

Expand Down Expand Up @@ -82,7 +91,7 @@
#address-cells = <1>;
#size-cells = <0>;

battery@35 {
fuel-gauge@35 {
compatible = "richtek,rt5033-battery";
reg = <0x35>;

Expand All @@ -91,6 +100,8 @@

pinctrl-0 = <&fg_alert_default>;
pinctrl-names = "default";

power-supplies = <&charger>;
};
};

Expand Down Expand Up @@ -327,6 +338,12 @@

pinctrl-0 = <&muic_int_default>;
pinctrl-names = "default";

usb_con: connector {
compatible = "usb-b-connector";
label = "micro-USB";
type = "micro";
};
};
};

Expand Down Expand Up @@ -360,6 +377,42 @@
};
};

&blsp_i2c6 {
status = "okay";

pmic@34 {
compatible = "richtek,rt5033";
reg = <0x34>;

interrupts-extended = <&tlmm 62 IRQ_TYPE_EDGE_FALLING>;

pinctrl-0 = <&pmic_int_default>;
pinctrl-names = "default";

regulators {
rt5033_reg_safe_ldo: SAFE_LDO {
regulator-min-microvolt = <4900000>;
regulator-max-microvolt = <4900000>;
regulator-always-on;
};

/*
* Needed for camera, but not used yet.
* Define empty nodes to allow disabling the unused
* regulators.
*/
LDO {};
BUCK {};
};

charger: charger {
compatible = "richtek,rt5033-charger";
monitored-battery = <&battery>;
richtek,usb-connector = <&usb_con>;
};
};
};

&blsp_uart2 {
status = "okay";
};
Expand Down Expand Up @@ -639,6 +692,13 @@
bias-disable;
};

pmic_int_default: pmic-int-default-state {
pins = "gpio62";
function = "gpio";
drive-strength = <2>;
bias-disable;
};

reg_tsp_en_default: reg-tsp-en-default-state {
pins = "gpio73";
function = "gpio";
Expand Down

0 comments on commit aba6e80

Please sign in to comment.