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>
41 lines
631 B
Plaintext
41 lines
631 B
Plaintext
// SPDX-License-Identifier: BSD-3-Clause
|
|
/*
|
|
* Copyright (c) 2023 Qualcomm Innovation Center, Inc. All rights reserved.
|
|
*/
|
|
|
|
#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";
|
|
};
|
|
};
|