ARM: dts: enable pwm backlight on exynos5250-snow
Subsystems (2)
PATCH 1/1 ARM: dts: enable pwm backlight on exynos5250-snow
Add PWM backlight node for exynos5250 and enable the same on exynos5250 based snow board.
--- arch/arm/boot/dts/exynos5250-pinctrl.dtsi | 7 +++++++ arch/arm/boot/dts/exynos5250-snow.dts | 5 +++++ arch/arm/boot/dts/exynos5250.dtsi | 10 ++++++++++ 3 files changed, 22 insertions(+)
arch/arm/boot/dts/exynos5250-pinctrl.dtsi +7 -0
@@ -351,6 +351,13 @@ samsung,pin-drv = <0>; }; + backlight_pwm: backlight-pwm { + samsung,pins = "gpb2-0"; + samsung,pin-function = <2>; + samsung,pin-pud = <0>; + samsung,pin-drv = <0>; + }; + i2c7_bus: i2c7-bus { samsung,pins = "gpb2-2", "gpb2-3"; samsung,pin-function = <3>;
arch/arm/boot/dts/exynos5250-snow.dts +5 -0
@@ -206,4 +206,9 @@ clock-frequency = <24000000>; }; }; + + backlight { + status = "okay"; + }; + };
arch/arm/boot/dts/exynos5250.dtsi +10 -0
@@ -593,6 +593,16 @@ clock-names = "timers"; }; + backlight: backlight { + compatible = "pwm-backlight"; + pwms = <&pwm 0 1000000 0>; + brightness-levels = <0 100 500 1000 1500 2000 2500 2800>; + default-brightness-level = <7>; + pinctrl-0 = <&backlight_pwm>; + pinctrl-names = "default"; + status = "disabled"; + }; + amba { #address-cells = <1>; #size-cells = <1>;
Signature · 1 line
1.7.9.5
Hi Ajay,
Quoted 16 lines · Ajay Kumar
Add PWM backlight node for exynos5250 and enable the same on exynos5250 based snow board.
Signed-off-by Olof Johansson <[email protected]>Signed-off-by Ajay Kumar <[email protected]>--- arch/arm/boot/dts/exynos5250-pinctrl.dtsi | 7 +++++++ arch/arm/boot/dts/exynos5250-snow.dts | 5 +++++ arch/arm/boot/dts/exynos5250.dtsi | 10 ++++++++++ 3 files changed, 22 insertions(+)arch/arm/boot/dts/exynos5250-pinctrl.dtsi +0
-0
arch/arm/boot/dts/exynos5250-pinctrl.dtsi line 359
Quoted 9 lines
arch/arm/boot/dts/exynos5250-pinctrl.dtsi +6
-0@@ -351,6 +351,13 @@ samsung,pin-drv = <0>; }; + backlight_pwm: backlight-pwm { + samsung,pins = "gpb2-0"; + samsung,pin-function = <2>; + samsung,pin-pud = <0>; + samsung,pin-drv = <0>; + };
This looks like a generic PWM output function, not specific to backlight in any way.
Please see patch [1] adding PWM output pin groups for Exynos5420 for reference.
[1] https://www.mail-archive.com/[email protected]/msg29869.html
Best regards,
Tomasz
Tomasz,
Quoted 36 lines · Tomasz Figa
Hi Ajay,
Quoted 18 lines · Ajay Kumar
Add PWM backlight node for exynos5250 and enable the same on exynos5250 based snow board.
Signed-off-by Olof Johansson <[email protected]>Signed-off-by Ajay Kumar <[email protected]>--- arch/arm/boot/dts/exynos5250-pinctrl.dtsi | 7 +++++++ arch/arm/boot/dts/exynos5250-snow.dts | 5 +++++ arch/arm/boot/dts/exynos5250.dtsi | 10 ++++++++++ 3 files changed, 22 insertions(+)arch/arm/boot/dts/exynos5250-pinctrl.dtsi +0
-0arch/arm/boot/dts/exynos5250-pinctrl.dtsi line 359
Quoted 9 lines
arch/arm/boot/dts/exynos5250-pinctrl.dtsi +6
-0@@ -351,6 +351,13 @@ samsung,pin-drv = <0>; }; + backlight_pwm: backlight-pwm { + samsung,pins = "gpb2-0"; + samsung,pin-function = <2>; + samsung,pin-pud = <0>; + samsung,pin-drv = <0>; + };This looks like a generic PWM output function, not specific to backlight in any way.
Quoted 5 lines
Please see patch [1] adding PWM output pin groups for Exynos5420 for reference.
[1]
https://www.mail-archive.com/[email protected]/msg29869.html
Right! I just referred to the manual again, and it actually reads TOUT_0. So, I should be probably renaming this as "pwm0_out" like in the other patch?
Ajay
Quoted 39 lines · Ajay kumar
Tomasz,
Quoted 36 lines · Tomasz Figa
Hi Ajay,
Quoted 18 lines · Ajay Kumar
Add PWM backlight node for exynos5250 and enable the same on exynos5250 based snow board.
Signed-off-by Olof Johansson <[email protected]>Signed-off-by Ajay Kumar <[email protected]>--- arch/arm/boot/dts/exynos5250-pinctrl.dtsi | 7 +++++++ arch/arm/boot/dts/exynos5250-snow.dts | 5 +++++ arch/arm/boot/dts/exynos5250.dtsi | 10 ++++++++++ 3 files changed, 22 insertions(+)arch/arm/boot/dts/exynos5250-pinctrl.dtsi +0
-0arch/arm/boot/dts/exynos5250-pinctrl.dtsi line 359
Quoted 9 lines
arch/arm/boot/dts/exynos5250-pinctrl.dtsi +6
-0@@ -351,6 +351,13 @@ samsung,pin-drv = <0>; }; + backlight_pwm: backlight-pwm { + samsung,pins = "gpb2-0"; + samsung,pin-function = <2>; + samsung,pin-pud = <0>; + samsung,pin-drv = <0>; + };This looks like a generic PWM output function, not specific to backlight in any way.
Quoted 7 lines
Quoted 5 lines
Please see patch [1] adding PWM output pin groups for Exynos5420 for reference.
[1]
https://www.mail-archive.com/[email protected]/msg29869.htmlRight! I just referred to the manual again, and it actually reads
TOUT_0. So, I should be probably renaming this as "pwm0_out" like in the other patch?
Yes, please. You should also add remaining ones, while at it. Basically same patch as [1] but for Exynos5250.
Best regards,
Tomasz
Tomasz,
Quoted 52 lines · Tomasz Figa
Quoted 51 lines · Ajay kumar
Tomasz,
Quoted 46 lines · Tomasz Figa
Hi Ajay,
Quoted 19 lines · Ajay Kumar
Add PWM backlight node for exynos5250 and enable the same on exynos5250 based snow board.
Signed-off-by Olof Johansson <[email protected]>Signed-off-by Ajay Kumar <[email protected]>--- arch/arm/boot/dts/exynos5250-pinctrl.dtsi | 7 +++++++ arch/arm/boot/dts/exynos5250-snow.dts | 5 +++++ arch/arm/boot/dts/exynos5250.dtsi | 10 ++++++++++ 3 files changed, 22 insertions(+)arch/arm/boot/dts/exynos5250-pinctrl.dtsi +0
-0arch/arm/boot/dts/exynos5250-pinctrl.dtsi line 359
Quoted 9 lines
arch/arm/boot/dts/exynos5250-pinctrl.dtsi +6
-0@@ -351,6 +351,13 @@ samsung,pin-drv = <0>; }; + backlight_pwm: backlight-pwm { + samsung,pins = "gpb2-0"; + samsung,pin-function = <2>; + samsung,pin-pud = <0>; + samsung,pin-drv = <0>; + };This looks like a generic PWM output function, not specific to backlight in
any way.Please see patch [1] adding PWM output pin groups for Exynos5420 for reference.
[1]
https://www.mail-archive.com/[email protected]/msg29869.html
Quoted 7 lines
Quoted 3 lines
Right! I just referred to the manual again, and it actually reads
TOUT_0. So, I should be probably renaming this as "pwm0_out" like in the other patch?Yes, please. You should also add remaining ones, while at it. Basically same patch as [1] but for Exynos5250.
Sent "[PATCH 1/2] ARM: dts: Add pwmX_out pinctrl nodes to Exynos5250"
Ajay
Quoted 60 lines · Ajay kumar
Tomasz,
Quoted 57 lines · Tomasz Figa
Quoted 54 lines · Ajay kumar
Tomasz,
Quoted 40 lines · Tomasz Figa
Hi Ajay,
Quoted 19 lines · Ajay Kumar
Add PWM backlight node for exynos5250 and enable the same on exynos5250 based snow board.
Signed-off-by Olof Johansson <[email protected]>Signed-off-by Ajay Kumar <[email protected]>--- arch/arm/boot/dts/exynos5250-pinctrl.dtsi | 7 +++++++ arch/arm/boot/dts/exynos5250-snow.dts | 5 +++++ arch/arm/boot/dts/exynos5250.dtsi | 10 ++++++++++ 3 files changed, 22 insertions(+)arch/arm/boot/dts/exynos5250-pinctrl.dtsi +0
-0arch/arm/boot/dts/exynos5250-pinctrl.dtsi line 359
Quoted 9 lines
arch/arm/boot/dts/exynos5250-pinctrl.dtsi +6
-0@@ -351,6 +351,13 @@ samsung,pin-drv = <0>; }; + backlight_pwm: backlight-pwm { + samsung,pins = "gpb2-0"; + samsung,pin-function = <2>; + samsung,pin-pud = <0>; + samsung,pin-drv = <0>; + };This looks like a generic PWM output function, not specific to backlight in
any way.Quoted 6 lines
Please see patch [1] adding PWM output pin groups for Exynos5420 for reference.
[1]
https://www.mail-archive.com/[email protected]/msg29869.html
Right! I just referred to the manual again, and it actually reads
TOUT_0. So, I should be probably renaming this as "pwm0_out" like in the other patch?
Quoted 4 lines
Quoted 2 lines
Yes, please. You should also add remaining ones, while at it. Basically same patch as [1] but for Exynos5250.
Sent "[PATCH 1/2] ARM: dts: Add
pwmX_outpinctrl nodes to Exynos5250"
Thanks.
Best regards,
Tomasz
Hi,
Am 07.05.2014 22:50, schrieb Tomasz Figa:
Quoted 43 lines · Ajay kumar
Quoted 42 lines
Quoted 40 lines · Tomasz Figa
Quoted 18 lines · Ajay Kumar
Add PWM backlight node for exynos5250 and enable the same on exynos5250 based snow board.
Signed-off-by Olof Johansson <[email protected]>Signed-off-by Ajay Kumar <[email protected]>--- arch/arm/boot/dts/exynos5250-pinctrl.dtsi | 7 +++++++ arch/arm/boot/dts/exynos5250-snow.dts | 5 +++++ arch/arm/boot/dts/exynos5250.dtsi | 10 ++++++++++ 3 files changed, 22 insertions(+)arch/arm/boot/dts/exynos5250-pinctrl.dtsi +0
-0arch/arm/boot/dts/exynos5250-pinctrl.dtsi line 359
Quoted 9 lines
arch/arm/boot/dts/exynos5250-pinctrl.dtsi +6
-0@@ -351,6 +351,13 @@ samsung,pin-drv = <0>; }; + backlight_pwm: backlight-pwm { + samsung,pins = "gpb2-0"; + samsung,pin-function = <2>; + samsung,pin-pud = <0>; + samsung,pin-drv = <0>; + };This looks like a generic PWM output function, not specific to backlight in
any way.Please see patch [1] adding PWM output pin groups for Exynos5420 for reference.
[1]
https://www.mail-archive.com/[email protected]/msg29869.html
Quoted 6 lines
Quoted 3 lines
Right! I just referred to the manual again, and it actually reads
TOUT_0. So, I should be probably renaming this as "pwm0_out" like in the other patch?Yes, please. You should also add remaining ones, while at it. Basically same patch as [1] but for Exynos5250.
Don't we also need patches to exynos_defconfig? linux.git only has CONFIG_S3C24XX_PWM=y but for snow I've seen github.com/linux-exynos add:CONFIG_PWM=yCONFIG_PWM_SAMSUNG=yCONFIG_BACKLIGHT_PWM=y
Regards,
Andreas
Signature · 2 lines
SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 Nürnberg, Germany GF: Jeff Hawn, Jennifer Guild, Felix Imendörffer; HRB 16746 AG Nürnberg
Quoted 50 lines · Andreas Färber
Hi,
Am 07.05.2014 22:50, schrieb Tomasz Figa:
Quoted 47 lines · Ajay kumar
Quoted 45 lines
Quoted 34 lines · Tomasz Figa
Quoted 18 lines · Ajay Kumar
Add PWM backlight node for exynos5250 and enable the same on exynos5250 based snow board.
Signed-off-by Olof Johansson <[email protected]>Signed-off-by Ajay Kumar <[email protected]>--- arch/arm/boot/dts/exynos5250-pinctrl.dtsi | 7 +++++++ arch/arm/boot/dts/exynos5250-snow.dts | 5 +++++ arch/arm/boot/dts/exynos5250.dtsi | 10 ++++++++++ 3 files changed, 22 insertions(+)arch/arm/boot/dts/exynos5250-pinctrl.dtsi +0
-0arch/arm/boot/dts/exynos5250-pinctrl.dtsi line 359
Quoted 9 lines
arch/arm/boot/dts/exynos5250-pinctrl.dtsi +6
-0@@ -351,6 +351,13 @@ samsung,pin-drv = <0>; }; + backlight_pwm: backlight-pwm { + samsung,pins = "gpb2-0"; + samsung,pin-function = <2>; + samsung,pin-pud = <0>; + samsung,pin-drv = <0>; + };This looks like a generic PWM output function, not specific to backlight in
any way.Quoted 6 lines
Please see patch [1] adding PWM output pin groups for Exynos5420 for reference.
[1]
https://www.mail-archive.com/[email protected]/msg29869.htmlRight! I just referred to the manual again, and it actually reads
TOUT_0. So, I should be probably renaming this as "pwm0_out" like in the other patch?
Quoted 8 lines
Quoted 2 lines
Yes, please. You should also add remaining ones, while at it. Basically same patch as [1] but for Exynos5250.
Don't we also need patches to
exynos_defconfig? linux.git only hasCONFIG_S3C24XX_PWM=ybut for snow I've seen github.com/linux-exynos add:CONFIG_PWM=yCONFIG_PWM_SAMSUNG=yCONFIG_BACKLIGHT_PWM=y
Right. The current exynos_defconfig lacks many other options as well. But this should be fixed by separate patch. Feel free to send a patch to enable what you need on your hardware.
Best regards,
Tomasz