From c4a61cfdf83a93b6723e427e5463da980c3e84ec Mon Sep 17 00:00:00 2001 From: Guru Das Srinagesh Date: Wed, 22 Jan 2020 17:36:57 -0800 Subject: [PATCH] ARM: dts: msm: Specify PPG parameters for PWM device in PM8350C The PWM PPG feature in PM8350C uses two separate nvmems to store the lookup table and the per-channel data. It also does not need a PBS client for the PPG feature. Change-Id: Iaf506cca458fb3c51b849d91383135ab62e9f829 --- qcom/pm8350c.dtsi | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) diff --git a/qcom/pm8350c.dtsi b/qcom/pm8350c.dtsi index e04bad7ab114..61b2ad002754 100644 --- a/qcom/pm8350c.dtsi +++ b/qcom/pm8350c.dtsi @@ -35,6 +35,39 @@ reg-names = "lpg-base"; #pwm-cells = <2>; qcom,num-lpg-channels = <3>; + nvmem = <&pmk8350_sdam_21 &pmk8350_sdam_22>; + nvmem-names = "lpg_chan_sdam", "lut_sdam"; + qcom,lut-sdam-base = <0x45>; + qcom,lut-patterns = <0 10 20 30 40 50 60 70 80 90 100 + 90 80 70 60 50 40 30 20 10 0>; + qcom,tick-duration-us = <8000>; + + lpg@1 { + qcom,lpg-chan-id = <1>; + qcom,ramp-step-ms = <200>; + qcom,ramp-low-index = <0>; + qcom,ramp-high-index = <19>; + qcom,ramp-pattern-repeat; + qcom,lpg-sdam-base = <0x48>; + }; + + lpg@2 { + qcom,lpg-chan-id = <2>; + qcom,ramp-step-ms = <200>; + qcom,ramp-low-index = <0>; + qcom,ramp-high-index = <19>; + qcom,ramp-pattern-repeat; + qcom,lpg-sdam-base = <0x56>; + }; + + lpg@3 { + qcom,lpg-chan-id = <3>; + qcom,ramp-step-ms = <200>; + qcom,ramp-low-index = <0>; + qcom,ramp-high-index = <19>; + qcom,ramp-pattern-repeat; + qcom,lpg-sdam-base = <0x64>; + }; }; pm8350c_pwm_2: pwms@eb00 {