Merge "ARM: dts: msm: Add pwm changes for pmxr2230 for tuna"
This commit is contained in:
committed by
Gerrit - the friendly Code Review server
commit
978306cd12
@@ -4,6 +4,7 @@
|
||||
*/
|
||||
|
||||
#include <dt-bindings/interrupt-controller/irq.h>
|
||||
#include <dt-bindings/leds/common.h>
|
||||
#include <dt-bindings/spmi/spmi.h>
|
||||
|
||||
&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 = <LED_COLOR_ID_RED>;
|
||||
label = "red";
|
||||
pwms = <&pmxr2230_pwm_1 0 1000000>;
|
||||
led-sources = <0>;
|
||||
linux,default-trigger = "timer";
|
||||
};
|
||||
|
||||
green {
|
||||
led@2 {
|
||||
reg = <2>;
|
||||
color = <LED_COLOR_ID_GREEN>;
|
||||
label = "green";
|
||||
pwms = <&pmxr2230_pwm_1 1 1000000>;
|
||||
led-sources = <1>;
|
||||
linux,default-trigger = "timer";
|
||||
};
|
||||
|
||||
blue {
|
||||
led@3 {
|
||||
reg = <3>;
|
||||
color = <LED_COLOR_ID_BLUE>;
|
||||
label = "blue";
|
||||
pwms = <&pmxr2230_pwm_1 2 1000000>;
|
||||
led-sources = <2>;
|
||||
linux,default-trigger = "timer";
|
||||
};
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user