From 552a29f91f79b1493ca08ac4a82571eb5f76c656 Mon Sep 17 00:00:00 2001 From: Jishnu Prakash Date: Fri, 20 Aug 2021 10:01:17 +0530 Subject: [PATCH] ARM: dts: msm: add nvmem cell for PMK8350 SDAM23 adc scaling Add a nvmem cell for adc scaling within PMK8350 SDAM127 for yupik. This is used by clients to read the type of ADC scaling used for ibat. Change-Id: I1978fcf5ca18dd878da20bdacaf7d8d3c643d199 --- qcom/pmk8350.dtsi | 7 +++++++ qcom/yupik-idp-pm7250b.dtsi | 7 +++++++ 2 files changed, 14 insertions(+) diff --git a/qcom/pmk8350.dtsi b/qcom/pmk8350.dtsi index c8727dd690ee..2657e03b557f 100644 --- a/qcom/pmk8350.dtsi +++ b/qcom/pmk8350.dtsi @@ -226,6 +226,13 @@ reg = <0x8500>; }; + pmk8350_sdam_23: sdam@8600 { + compatible = "qcom,spmi-sdam"; + reg = <0x8600>; + #address-cells = <1>; + #size-cells = <1>; + }; + pmk8350_sdam_46: sdam@9d00 { compatible = "qcom,spmi-sdam"; reg = <0x9d00>; diff --git a/qcom/yupik-idp-pm7250b.dtsi b/qcom/yupik-idp-pm7250b.dtsi index f7ca8842dab9..cc4a9865b4f9 100644 --- a/qcom/yupik-idp-pm7250b.dtsi +++ b/qcom/yupik-idp-pm7250b.dtsi @@ -148,6 +148,13 @@ reg = <9 SPMI_USID>; }; +&pmk8350_sdam_23 { + adc_scaling: scaling@bf { + reg = <0xbf 0x1>; + bits = <0 2>; + }; +}; + &pm7250b_vadc { interrupts = <0x8 0x31 0x0 IRQ_TYPE_EDGE_RISING>;