From f5335c097f5ce0dde2890c887fb8125de04da089 Mon Sep 17 00:00:00 2001 From: David Collins Date: Tue, 24 Oct 2023 15:39:43 -0700 Subject: [PATCH] ARM: dts: qcom: add PMIC Glink and clients for Sun Add PMIC Glink devices and their client devices. The PMIC Glink device with name PMIC_RTR_ADSP_APPS supports the clients: ucsi, altmode, and battery_charger. The PMIC Glink device with name PMIC_LOGS_ADSP_APPS supports the clients: battery_debug, pmic_glink_debug, charger_ulog_glink, and glink_adc. Change-Id: Ib5a15c136c77c8368d4a561f266a1588c4649893 Signed-off-by: David Collins --- qcom/sun.dtsi | 61 +++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 61 insertions(+) diff --git a/qcom/sun.dtsi b/qcom/sun.dtsi index f788f456..5f1d429d 100644 --- a/qcom/sun.dtsi +++ b/qcom/sun.dtsi @@ -17,6 +17,7 @@ #include #include #include +#include #include #include #include @@ -1893,6 +1894,66 @@ }; }; + qcom,pmic_glink { + compatible = "qcom,qti-pmic-glink"; + qcom,pmic-glink-channel = "PMIC_RTR_ADSP_APPS"; + depends-on-supply = <&ipcc_mproc>; + + battery_charger: qcom,battery_charger { + compatible = "qcom,battery-charger"; + }; + + ucsi: qcom,ucsi { + compatible = "qcom,ucsi-glink"; + }; + + altmode: qcom,altmode { + compatible = "qcom,altmode-glink"; + #altmode-cells = <1>; + }; + }; + + qcom,pmic_glink_log { + compatible = "qcom,qti-pmic-glink"; + qcom,pmic-glink-channel = "PMIC_LOGS_ADSP_APPS"; + + qcom,battery_debug { + compatible = "qcom,battery-debug"; + }; + + qcom,charger_ulog_glink { + compatible = "qcom,charger-ulog-glink"; + }; + + pmic_glink_debug: qcom,pmic_glink_debug { + compatible = "qcom,pmic-glink-debug"; + #address-cells = <1>; + #size-cells = <0>; + depends-on-supply = <&spmi_bus>; + + /* Primary SPMI bus */ + spmi@0 { + reg = <0>; + #address-cells = <2>; + #size-cells = <0>; + + pmih010x_glink_debug: qcom,pmih010x-debug@7 { + compatible = "qcom,spmi-pmic"; + reg = <0x7 SPMI_USID>; + qcom,can-sleep; + }; + }; + }; + + pmic_glink_adc: qcom,glink-adc { + compatible = "qcom,glink-adc"; + #address-cells = <1>; + #size-cells = <0>; + #io-channel-cells = <1>; + status = "disabled"; + }; + }; + thermal_zones: thermal-zones { };