diff mbox

[v1,2/3] ARM: dts: imx6q-apalis-ixora: Remove use of pwm-leds

Message ID 6111feb57b5fbaa29eeb6ba089bb2824bbf2f8ff.1473833908.git.maitysanchayan@gmail.com (mailing list archive)
State New, archived
Headers show

Commit Message

Sanchayan Sept. 14, 2016, 6:35 a.m. UTC
Remove use of pwm-leds and use the standard /sys/class/pwm
interface from PWM subsystem.

Signed-off-by: Sanchayan Maity <maitysanchayan@gmail.com>
---
 arch/arm/boot/dts/imx6q-apalis-ixora.dts | 22 ----------------------
 1 file changed, 22 deletions(-)

Comments

Stefan Agner Sept. 14, 2016, 3:58 p.m. UTC | #1
On 2016-09-13 23:35, Sanchayan Maity wrote:
> Remove use of pwm-leds and use the standard /sys/class/pwm
> interface from PWM subsystem.

Don't we have actual leds on the Ixora?

--
Stefan

> 
> Signed-off-by: Sanchayan Maity <maitysanchayan@gmail.com>
> ---
>  arch/arm/boot/dts/imx6q-apalis-ixora.dts | 22 ----------------------
>  1 file changed, 22 deletions(-)
> 
> diff --git a/arch/arm/boot/dts/imx6q-apalis-ixora.dts
> b/arch/arm/boot/dts/imx6q-apalis-ixora.dts
> index d99979e..70a3da0 100644
> --- a/arch/arm/boot/dts/imx6q-apalis-ixora.dts
> +++ b/arch/arm/boot/dts/imx6q-apalis-ixora.dts
> @@ -146,28 +146,6 @@
>  			gpios = <&gpio2 2 GPIO_ACTIVE_HIGH>;
>  		};
>  	};
> -
> -	pwmleds {
> -		compatible = "pwm-leds";
> -
> -		ledpwm1 {
> -			label = "PWM1";
> -			pwms = <&pwm1 0 50000>;
> -			max-brightness = <255>;
> -		};
> -
> -		ledpwm2 {
> -			label = "PWM2";
> -			pwms = <&pwm2 0 50000>;
> -			max-brightness = <255>;
> -		};
> -
> -		ledpwm3 {
> -			label = "PWM3";
> -			pwms = <&pwm3 0 50000>;
> -			max-brightness = <255>;
> -		};
> -	};
>  };
>  
>  &backlight {
Marcel Ziswiler Sept. 14, 2016, 6:28 p.m. UTC | #2
On Wed, 2016-09-14 at 08:58 -0700, Stefan Agner wrote:
> On 2016-09-13 23:35, Sanchayan Maity wrote:
> > 
> > Remove use of pwm-leds and use the standard /sys/class/pwm
> > interface from PWM subsystem.
> Don't we have actual leds on the Ixora?

Yes, sure, but not really PWM ones:

https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/tree/ar
ch/arm/boot/dts/imx6q-apalis-ixora.dts?id=refs/tags/v4.8-rc6#n124
Marcel Ziswiler Sept. 16, 2016, 1:38 p.m. UTC | #3
On Wed, 2016-09-14 at 12:05 +0530, Sanchayan Maity wrote:
> Remove use of pwm-leds and use the standard /sys/class/pwm

> interface from PWM subsystem.

> 

> Signed-off-by: Sanchayan Maity <maitysanchayan@gmail.com>


Acked-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>


> ---

>  arch/arm/boot/dts/imx6q-apalis-ixora.dts | 22 ----------------------

>  1 file changed, 22 deletions(-)

> 

> diff --git a/arch/arm/boot/dts/imx6q-apalis-ixora.dts

> b/arch/arm/boot/dts/imx6q-apalis-ixora.dts

> index d99979e..70a3da0 100644

> --- a/arch/arm/boot/dts/imx6q-apalis-ixora.dts

> +++ b/arch/arm/boot/dts/imx6q-apalis-ixora.dts

> @@ -146,28 +146,6 @@

>  			gpios = <&gpio2 2 GPIO_ACTIVE_HIGH>;

>  		};

>  	};

> -

> -	pwmleds {

> -		compatible = "pwm-leds";

> -

> -		ledpwm1 {

> -			label = "PWM1";

> -			pwms = <&pwm1 0 50000>;

> -			max-brightness = <255>;

> -		};

> -

> -		ledpwm2 {

> -			label = "PWM2";

> -			pwms = <&pwm2 0 50000>;

> -			max-brightness = <255>;

> -		};

> -

> -		ledpwm3 {

> -			label = "PWM3";

> -			pwms = <&pwm3 0 50000>;

> -			max-brightness = <255>;

> -		};

> -	};

>  };

>  

>  &backlight {


Tested working fine analogous to what we documented for Vybrid:

http://developer.toradex.com/knowledge-base/pwm-(linux)#Colibri_VFxx
diff mbox

Patch

diff --git a/arch/arm/boot/dts/imx6q-apalis-ixora.dts b/arch/arm/boot/dts/imx6q-apalis-ixora.dts
index d99979e..70a3da0 100644
--- a/arch/arm/boot/dts/imx6q-apalis-ixora.dts
+++ b/arch/arm/boot/dts/imx6q-apalis-ixora.dts
@@ -146,28 +146,6 @@ 
 			gpios = <&gpio2 2 GPIO_ACTIVE_HIGH>;
 		};
 	};
-
-	pwmleds {
-		compatible = "pwm-leds";
-
-		ledpwm1 {
-			label = "PWM1";
-			pwms = <&pwm1 0 50000>;
-			max-brightness = <255>;
-		};
-
-		ledpwm2 {
-			label = "PWM2";
-			pwms = <&pwm2 0 50000>;
-			max-brightness = <255>;
-		};
-
-		ledpwm3 {
-			label = "PWM3";
-			pwms = <&pwm3 0 50000>;
-			max-brightness = <255>;
-		};
-	};
 };
 
 &backlight {