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:
@@ -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";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
®ulator_ocp_notifier {
|
®ulator_ocp_notifier {
|
||||||
periph-1c1-supply = <&L1B>;
|
periph-1c1-supply = <&L1B>;
|
||||||
periph-1c2-supply = <&L2B>;
|
periph-1c2-supply = <&L2B>;
|
||||||
|
@@ -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";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
@@ -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";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
Reference in New Issue
Block a user