summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMax Krummenacher <max.krummenacher@toradex.com>2017-01-09 20:03:33 +0100
committerMarcel Ziswiler <marcel.ziswiler@toradex.com>2017-01-10 23:13:36 +0100
commitd9eda7f14320c450990004ed1db409d35eb50929 (patch)
tree173121f7005776d5feddbf24b230631633b46b88
parent4aa67da3629424ff6c27ee5b2b3d48b3fc84dae3 (diff)
colibri imx6 dt: don't configure pwmleds
With /sys/class/pwm a more versatile interface to pwm exists now. PWM<A>: pwmchip3 export 0 PWM<B>: pwmchip1 export 0 PWM<C>: pwmchip4 export 0 PWM<B>: pwmchip2 export 0 e.g. configure a 1kHz 25% on PWM<C>: (period and duty cycle in nano seconds) $ cd /sys/class/pwm/pwmchip3 $ echo 0 > export $ echo 1000000 > pwm0/period $ echo 250000 > pwm0/duty_cycle $ echo 1 > pwm0/enable Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com> Acked-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
-rw-r--r--arch/arm/boot/dts/imx6dl-colibri-cam-eval-v3.dts17
-rw-r--r--arch/arm/boot/dts/imx6dl-colibri-eval-v3.dts22
2 files changed, 0 insertions, 39 deletions
diff --git a/arch/arm/boot/dts/imx6dl-colibri-cam-eval-v3.dts b/arch/arm/boot/dts/imx6dl-colibri-cam-eval-v3.dts
index 9852b9bf541b..cf977aabc2c5 100644
--- a/arch/arm/boot/dts/imx6dl-colibri-cam-eval-v3.dts
+++ b/arch/arm/boot/dts/imx6dl-colibri-cam-eval-v3.dts
@@ -67,23 +67,6 @@
};
};
-#ifndef PCAP
- pwmleds {
- compatible = "pwm-leds";
- ledpwm2 {
- label = "PWM<B>";
- pwms = <&pwm1 0 50000 0>;
- max-brightness = <255>;
- };
-
- ledpwm3 {
- label = "PWM<C>";
- pwms = <&pwm4 0 50000 0>;
- max-brightness = <255>;
- };
- };
-#endif
-
regulators {
reg_usb_host_vbus: usb_host_vbus {
status = "okay";
diff --git a/arch/arm/boot/dts/imx6dl-colibri-eval-v3.dts b/arch/arm/boot/dts/imx6dl-colibri-eval-v3.dts
index 719c844f77a6..9c28a0e45fd0 100644
--- a/arch/arm/boot/dts/imx6dl-colibri-eval-v3.dts
+++ b/arch/arm/boot/dts/imx6dl-colibri-eval-v3.dts
@@ -67,28 +67,6 @@
};
};
- pwmleds {
- compatible = "pwm-leds";
-#ifndef PCAP
- ledpwm2 {
- label = "PWM<B>";
- pwms = <&pwm1 0 50000 0>;
- max-brightness = <255>;
- };
-
- ledpwm3 {
- label = "PWM<C>";
- pwms = <&pwm4 0 50000 0>;
- max-brightness = <255>;
- };
-#endif
- ledpwm4 {
- label = "PWM<D>";
- pwms = <&pwm2 0 50000 0>;
- max-brightness = <255>;
- };
- };
-
regulators {
reg_usb_host_vbus: usb_host_vbus {
status = "okay";