mirror of
https://github.com/torvalds/linux.git
synced 2026-06-03 20:14:06 +02:00
arm64: dts: qcom: msm8916-samsung-fortuna/rossa: Add PMIC and charger
The phones listed below have Richtek RT5033 PMIC and charger. Add them to the device trees. - Samsung Galaxy Core Prime LTE - Samsung Galaxy Grand Prime Cc: Jakob Hauser <jahau@rocketmail.com> Signed-off-by: Raymond Hackley <raymondhackley@protonmail.com> Link: https://lore.kernel.org/r/20240601115321.25314-4-raymondhackley@protonmail.com Signed-off-by: Bjorn Andersson <andersson@kernel.org>
This commit is contained in:
parent
834cfba678
commit
ca4afdfdbb
|
|
@ -10,6 +10,12 @@ / {
|
||||||
chassis-type = "handset";
|
chassis-type = "handset";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
&battery {
|
||||||
|
charge-term-current-microamp = <200000>;
|
||||||
|
constant-charge-current-max-microamp = <1000000>;
|
||||||
|
constant-charge-voltage-max-microvolt = <4350000>;
|
||||||
|
};
|
||||||
|
|
||||||
&st_accel {
|
&st_accel {
|
||||||
status = "okay";
|
status = "okay";
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -27,6 +27,12 @@ tz-apps@85a00000 {
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
battery: battery {
|
||||||
|
compatible = "simple-battery";
|
||||||
|
precharge-current-microamp = <450000>;
|
||||||
|
precharge-upper-limit-microvolt = <3500000>;
|
||||||
|
};
|
||||||
|
|
||||||
clk_pwm_backlight: backlight {
|
clk_pwm_backlight: backlight {
|
||||||
compatible = "pwm-backlight";
|
compatible = "pwm-backlight";
|
||||||
pwms = <&clk_pwm 0 100000>;
|
pwms = <&clk_pwm 0 100000>;
|
||||||
|
|
@ -234,6 +240,8 @@ fuel-gauge@35 {
|
||||||
|
|
||||||
pinctrl-0 = <&fg_alert_default>;
|
pinctrl-0 = <&fg_alert_default>;
|
||||||
pinctrl-names = "default";
|
pinctrl-names = "default";
|
||||||
|
|
||||||
|
power-supplies = <&charger>;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
@ -259,6 +267,38 @@ touchscreen: touchscreen@20 {
|
||||||
|
|
||||||
&blsp_i2c6 {
|
&blsp_i2c6 {
|
||||||
status = "okay";
|
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 {
|
&blsp_uart2 {
|
||||||
|
|
@ -403,6 +443,13 @@ nfc_i2c_default: nfc-i2c-default-state {
|
||||||
bias-disable;
|
bias-disable;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
pmic_int_default: pmic-int-default-state {
|
||||||
|
pins = "gpio62";
|
||||||
|
function = "gpio";
|
||||||
|
drive-strength = <2>;
|
||||||
|
bias-disable;
|
||||||
|
};
|
||||||
|
|
||||||
sdc2_cd_default: sdc2-cd-default-state {
|
sdc2_cd_default: sdc2-cd-default-state {
|
||||||
pins = "gpio38";
|
pins = "gpio38";
|
||||||
function = "gpio";
|
function = "gpio";
|
||||||
|
|
|
||||||
|
|
@ -21,6 +21,12 @@ tz-apps@85500000 {
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
&battery {
|
||||||
|
charge-term-current-microamp = <200000>;
|
||||||
|
constant-charge-current-max-microamp = <1000000>;
|
||||||
|
constant-charge-voltage-max-microvolt = <4350000>;
|
||||||
|
};
|
||||||
|
|
||||||
&bosch_accel {
|
&bosch_accel {
|
||||||
status = "okay";
|
status = "okay";
|
||||||
};
|
};
|
||||||
|
|
@ -30,6 +36,9 @@ &bosch_magn {
|
||||||
};
|
};
|
||||||
|
|
||||||
&blsp_i2c6 {
|
&blsp_i2c6 {
|
||||||
|
/* pmic@34 is on i2c_nfc instead */
|
||||||
|
/delete-node/ pmic@34;
|
||||||
|
|
||||||
nfc@27 {
|
nfc@27 {
|
||||||
compatible = "samsung,s3fwrn5-i2c";
|
compatible = "samsung,s3fwrn5-i2c";
|
||||||
reg = <0x27>;
|
reg = <0x27>;
|
||||||
|
|
@ -48,6 +57,38 @@ nfc@27 {
|
||||||
|
|
||||||
&i2c_nfc {
|
&i2c_nfc {
|
||||||
/* nfc@27 is on &blsp_i2c6 */
|
/* nfc@27 is on &blsp_i2c6 */
|
||||||
|
|
||||||
|
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>;
|
||||||
|
};
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
&mpss_mem {
|
&mpss_mem {
|
||||||
|
|
|
||||||
|
|
@ -10,6 +10,12 @@ / {
|
||||||
chassis-type = "handset";
|
chassis-type = "handset";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
&battery {
|
||||||
|
charge-term-current-microamp = <200000>;
|
||||||
|
constant-charge-current-max-microamp = <1000000>;
|
||||||
|
constant-charge-voltage-max-microvolt = <4350000>;
|
||||||
|
};
|
||||||
|
|
||||||
&bosch_accel {
|
&bosch_accel {
|
||||||
status = "okay";
|
status = "okay";
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -10,6 +10,12 @@ / {
|
||||||
chassis-type = "handset";
|
chassis-type = "handset";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
&battery {
|
||||||
|
charge-term-current-microamp = <150000>;
|
||||||
|
constant-charge-current-max-microamp = <700000>;
|
||||||
|
constant-charge-voltage-max-microvolt = <4400000>;
|
||||||
|
};
|
||||||
|
|
||||||
&mpss_mem {
|
&mpss_mem {
|
||||||
/* Firmware for rossa needs more space */
|
/* Firmware for rossa needs more space */
|
||||||
reg = <0x0 0x86800000 0x0 0x5800000>;
|
reg = <0x0 0x86800000 0x0 0x5800000>;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user