ARM: dts: qcom: add PMIC Glink ADC channel nodes for Sun boards

Add PMIC Glink ADC channel nodes for Sun MTP and QRD boards.
This exposes an interface for software to read PMIC charger ADC
channels for input current, charge current, and die temperature.
This is useful for PMICs connected via I2C which are only
accessible to charger firmware.

Change-Id: Ie8a9a0690b9937f9c0c541123c28e544ba3495ec
Signed-off-by: David Collins <quic_collinsd@quicinc.com>
This commit is contained in:
David Collins
2023-10-25 11:46:30 -07:00
parent f5335c097f
commit 47e74e072e
3 changed files with 102 additions and 0 deletions

View File

@@ -28,6 +28,40 @@
}; };
}; };
&pmic_glink_adc {
status = "ok";
smb1501_1_iin {
reg = <0x1066801>;
label = "smb1501_1_iin";
};
smb1501_1_ichg {
reg = <0x1066802>;
label = "smb1501_1_ichg";
};
smb1501_1_die_temp {
reg = <0x1066803>;
label = "smb1501_1_die_temp";
};
smb1501_2_iin {
reg = <0x1066901>;
label = "smb1501_2_iin";
};
smb1501_2_ichg {
reg = <0x1066902>;
label = "smb1501_2_ichg";
};
smb1501_2_die_temp {
reg = <0x1066903>;
label = "smb1501_2_die_temp";
};
};
&regulator_ocp_notifier { &regulator_ocp_notifier {
periph-1c1-supply = <&L1B>; periph-1c1-supply = <&L1B>;
periph-1c2-supply = <&L2B>; periph-1c2-supply = <&L2B>;

View File

@@ -4,3 +4,37 @@
*/ */
#include "sun-qrd.dtsi" #include "sun-qrd.dtsi"
&pmic_glink_adc {
status = "ok";
smb1396_1_iin {
reg = <0x1063401>;
label = "smb1396_1_iin";
};
smb1396_1_ichg {
reg = <0x1063402>;
label = "smb1396_1_ichg";
};
smb1396_1_die_temp {
reg = <0x1063403>;
label = "smb1396_1_die_temp";
};
smb1396_2_iin {
reg = <0x1063501>;
label = "smb1396_2_iin";
};
smb1396_2_ichg {
reg = <0x1063502>;
label = "smb1396_2_ichg";
};
smb1396_2_die_temp {
reg = <0x1063503>;
label = "smb1396_2_die_temp";
};
};

View File

@@ -4,3 +4,37 @@
*/ */
#include "sun-qrd.dtsi" #include "sun-qrd.dtsi"
&pmic_glink_adc {
status = "ok";
smb1501_1_iin {
reg = <0x1066801>;
label = "smb1501_1_iin";
};
smb1501_1_ichg {
reg = <0x1066802>;
label = "smb1501_1_ichg";
};
smb1501_1_die_temp {
reg = <0x1066803>;
label = "smb1501_1_die_temp";
};
smb1501_2_iin {
reg = <0x1066901>;
label = "smb1501_2_iin";
};
smb1501_2_ichg {
reg = <0x1066902>;
label = "smb1501_2_ichg";
};
smb1501_2_die_temp {
reg = <0x1066903>;
label = "smb1501_2_die_temp";
};
};