diff --git a/qcom/pmxr2230.dtsi b/qcom/pmxr2230.dtsi index 5dcf1017..6a3e5b4c 100644 --- a/qcom/pmxr2230.dtsi +++ b/qcom/pmxr2230.dtsi @@ -4,6 +4,7 @@ */ #include +#include #include &spmi_bus { @@ -34,86 +35,30 @@ #interrupt-cells = <2>; }; - pmxr2230_pwm_1: pwms@e800 { - compatible = "qcom,pwm-lpg"; - reg = <0xe800>; - reg-names = "lpg-base"; + led-controller { + compatible = "qcom,pm8350c-pwm"; + #address-cells = <1>; + #size-cells = <0>; #pwm-cells = <2>; - qcom,num-lpg-channels = <3>; nvmem = <&pmk8550_sdam_21 &pmk8550_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 = <7800>; - lpg@1 { - qcom,lpg-chan-id = <1>; - qcom,ramp-step-ms = <100>; - 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 = <100>; - 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 = <100>; - qcom,ramp-low-index = <0>; - qcom,ramp-high-index = <19>; - qcom,ramp-pattern-repeat; - qcom,lpg-sdam-base = <0x64>; - }; - }; - - pmxr2230_pwm_2: pwms@e900 { - compatible = "qcom,pwm-lpg"; - reg = <0xe900>; - reg-names = "lpg-base"; - #pwm-cells = <2>; - qcom,num-lpg-channels = <1>; - }; - - pmxr2230_pwm_4: pwms@eb00 { - compatible = "qcom,pwm-lpg"; - reg = <0xeb00>; - reg-names = "lpg-base"; - #pwm-cells = <2>; - qcom,num-lpg-channels = <1>; - }; - - pmxr2230_rgb: qcom,leds@ef00 { - compatible = "qcom,tri-led"; - reg = <0xef00>; - - red { + led@1 { + reg = <1>; + color = ; label = "red"; - pwms = <&pmxr2230_pwm_1 0 1000000>; - led-sources = <0>; - linux,default-trigger = "timer"; }; - green { + led@2 { + reg = <2>; + color = ; label = "green"; - pwms = <&pmxr2230_pwm_1 1 1000000>; - led-sources = <1>; - linux,default-trigger = "timer"; }; - blue { + led@3 { + reg = <3>; + color = ; label = "blue"; - pwms = <&pmxr2230_pwm_1 2 1000000>; - led-sources = <2>; - linux,default-trigger = "timer"; }; };