summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMax Krummenacher <max.krummenacher@toradex.com>2017-01-09 20:33:16 +0100
committerMarcel Ziswiler <marcel.ziswiler@toradex.com>2017-01-10 23:13:37 +0100
commitc1177831f5a1fd3ee9e5c3f9567526a5d62d5d78 (patch)
treedb6044d1309639dc5f88daa38735d52676f9ea12
parentd9eda7f14320c450990004ed1db409d35eb50929 (diff)
With /sys/class/pwm a more versatile interface to pwm exists now. 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/imx6qdl-apalis-eval.dtsi21
-rw-r--r--arch/arm/boot/dts/imx6qdl-apalis-ixora.dtsi21
2 files changed, 0 insertions, 42 deletions
diff --git a/arch/arm/boot/dts/imx6qdl-apalis-eval.dtsi b/arch/arm/boot/dts/imx6qdl-apalis-eval.dtsi
index aa37f0565bfb..a4922804c3b7 100644
--- a/arch/arm/boot/dts/imx6qdl-apalis-eval.dtsi
+++ b/arch/arm/boot/dts/imx6qdl-apalis-eval.dtsi
@@ -47,27 +47,6 @@
};
};
- pwmleds {
- compatible = "pwm-leds";
- ledpwm1 {
- label = "PWM1";
- pwms = <&pwm1 0 50000 0>;
- max-brightness = <255>;
- };
-
- ledpwm2 {
- label = "PWM2";
- pwms = <&pwm2 0 50000 0>;
- max-brightness = <255>;
- };
-
- ledpwm3 {
- label = "PWM3";
- pwms = <&pwm3 0 50000 0>;
- max-brightness = <255>;
- };
- };
-
regulators {
reg_usb_otg_vbus: usb_otg_vbus {
status = "okay";
diff --git a/arch/arm/boot/dts/imx6qdl-apalis-ixora.dtsi b/arch/arm/boot/dts/imx6qdl-apalis-ixora.dtsi
index 50ea08446020..ccc6036192d7 100644
--- a/arch/arm/boot/dts/imx6qdl-apalis-ixora.dtsi
+++ b/arch/arm/boot/dts/imx6qdl-apalis-ixora.dtsi
@@ -73,27 +73,6 @@
};
};
- pwmleds {
- compatible = "pwm-leds";
- ledpwm1 {
- label = "PWM1";
- pwms = <&pwm1 0 50000 0>;
- max-brightness = <255>;
- };
-
- ledpwm2 {
- label = "PWM2";
- pwms = <&pwm2 0 50000 0>;
- max-brightness = <255>;
- };
-
- ledpwm3 {
- label = "PWM3";
- pwms = <&pwm3 0 50000 0>;
- max-brightness = <255>;
- };
- };
-
regulators {
reg_usb_otg_vbus: usb_otg_vbus {
status = "okay";