Skip to content

Commit eea53bb

Browse files
Russell KingShawn Guo
authored andcommitted
ARM: dts: cubox-i: add support for PWM-driven front panel LED
The front panel LED on the Cubox-i is driven by one of the iMX6 PWM channels, and is wired between the PWM output and supply. Signed-off-by: Russell King <[email protected]> Signed-off-by: Shawn Guo <[email protected]>
1 parent 5b4c180 commit eea53bb

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

arch/arm/boot/dts/imx6qdl-cubox-i.dtsi

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,19 @@
1212
pinctrl-0 = <&pinctrl_cubox_i_ir>;
1313
};
1414

15+
pwmleds {
16+
compatible = "pwm-leds";
17+
pinctrl-names = "default";
18+
pinctrl-0 = <&pinctrl_cubox_i_pwm1>;
19+
20+
front {
21+
active-low;
22+
label = "imx6:red:front";
23+
max-brightness = <248>;
24+
pwms = <&pwm1 0 50000>;
25+
};
26+
};
27+
1528
regulators {
1629
compatible = "simple-bus";
1730

@@ -109,6 +122,10 @@
109122
>;
110123
};
111124

125+
pinctrl_cubox_i_pwm1: cubox-i-pwm1-front-led {
126+
fsl,pins = <MX6QDL_PAD_DISP0_DAT8__PWM1_OUT 0x1b0b0>;
127+
};
128+
112129
pinctrl_cubox_i_spdif: cubox-i-spdif {
113130
fsl,pins = <MX6QDL_PAD_GPIO_17__SPDIF_OUT 0x13091>;
114131
};

0 commit comments

Comments
 (0)