ARM: dts: sun4i: Add backlight node to iNet1 tablet
Subsystems (2)
PATCH 1/4 ARM: dts: sun4i: Add backlight node to iNet1 tablet
Add a node describing the lcd panel backlight on the iNet1 tablet.
--- arch/arm/boot/dts/sun4i-a10-inet1.dts | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+)
arch/arm/boot/dts/sun4i-a10-inet1.dts +24 -0
@@ -47,6 +47,7 @@ #include <dt-bindings/input/input.h> #include <dt-bindings/interrupt-controller/irq.h> #include <dt-bindings/pinctrl/sun4i-a10.h> +#include <dt-bindings/pwm/pwm.h> / { model = "iNet-1";
@@ -56,6 +57,16 @@ serial0 = &uart0; }; + backlight: backlight { + compatible = "pwm-backlight"; + pinctrl-names = "default"; + pinctrl-0 = <&bl_en_pin_inet>; + pwms = <&pwm 0 50000 PWM_POLARITY_INVERTED>; + brightness-levels = <0 10 20 30 40 50 60 70 80 90 100>; + default-brightness-level = <8>; + enable-gpios = <&pio 7 7 GPIO_ACTIVE_HIGH>; /* PH7 */ + }; + chosen { stdout-path = "serial0:115200n8"; };
@@ -164,6 +175,13 @@ }; &pio { + bl_en_pin_inet: bl_en_pin at 0 { + allwinner,pins = "PH7"; + allwinner,function = "gpio_out"; + allwinner,drive = <SUN4I_PINCTRL_10_MA>; + allwinner,pull = <SUN4I_PINCTRL_NO_PULL>; + }; + touchscreen_wake_pin: touchscreen_wake_pin at 0 { allwinner,pins = "PB13"; allwinner,function = "gpio_out";
@@ -186,6 +204,12 @@ }; }; +&pwm { + pinctrl-names = "default"; + pinctrl-0 = <&pwm0_pins_a>; + status = "okay"; +}; + ®_dcdc2 { regulator-always-on; regulator-min-microvolt = <1000000>;
Signature · 1 line
2.5.0
PATCH 2/4 ARM: dts: sun5i: Add backlight node to UTOO P66 tablet
Add a node describing the lcd panel backlight on the UTOO P66 tablet.
--- arch/arm/boot/dts/sun5i-a13-utoo-p66.dts | 16 ++++++++++++++++ 1 file changed, 16 insertions(+)
arch/arm/boot/dts/sun5i-a13-utoo-p66.dts +16 -0
@@ -47,11 +47,21 @@ #include <dt-bindings/input/input.h> #include <dt-bindings/interrupt-controller/irq.h> #include <dt-bindings/pinctrl/sun4i-a10.h> +#include <dt-bindings/pwm/pwm.h> / { model = "Utoo P66"; compatible = "utoo,p66", "allwinner,sun5i-a13"; + backlight: backlight { + compatible = "pwm-backlight"; + pwms = <&pwm 0 50000 PWM_POLARITY_INVERTED>; + /* Note levels of 10 / 20% result in backlight off */ + brightness-levels = <0 30 40 50 60 70 80 90 100>; + default-brightness-level = <6>; + /* TODO: backlight uses axp gpio1 as enable pin */ + }; + i2c_lcd: i2c at 0 { /* The lcd panel i2c interface is hooked up via gpios */ compatible = "i2c-gpio";
@@ -201,6 +211,12 @@ }; }; +&pwm { + pinctrl-names = "default"; + pinctrl-0 = <&pwm0_pins>; + status = "okay"; +}; + ®_dcdc2 { regulator-always-on; regulator-min-microvolt = <1000000>;
Signature · 1 line
2.5.0
PATCH 2/4 ARM: dts: sun5i: Add backlight node to UTOO P66 tablet
Quoted 3 lines · Hans de Goede
Add a node describing the lcd panel backlight on the UTOO P66 tablet.
Signed-off-by Hans de Goede <[email protected]>
Maxime Ripard
AppliedPATCH 2/4 ARM: dts: sun5i: Add backlight node to UTOO P66 tablet
In reply to Hans de GoedeQuoted 3 lines · Hans de Goede
Add a node describing the lcd panel backlight on the UTOO P66 tablet.
Signed-off-by Hans de Goede <[email protected]>
Applied, thanks!
Maxime
Signature · 10 lines
Maxime Ripard, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: Digital signature URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20151120/a463637e/attachment.sig>
PATCH 3/4 ARM: dts: sun4i: Add backlight node to pov protab2 ips9 tablet
In reply to Hans de GoedeAdd a node describing the lcd panel backlight on the pov protab2 ips9 tablet.
--- arch/arm/boot/dts/sun4i-a10-pov-protab2-ips9.dts | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+)
arch/arm/boot/dts/sun4i-a10-pov-protab2-ips9.dts +24 -0
@@ -47,6 +47,7 @@ #include <dt-bindings/input/input.h> #include <dt-bindings/interrupt-controller/irq.h> #include <dt-bindings/pinctrl/sun4i-a10.h> +#include <dt-bindings/pwm/pwm.h> / { model = "Point of View Protab2-IPS9";
@@ -56,6 +57,16 @@ serial0 = &uart0; }; + backlight: backlight { + compatible = "pwm-backlight"; + pinctrl-names = "default"; + pinctrl-0 = <&bl_en_pin_protab>; + pwms = <&pwm 0 50000 PWM_POLARITY_INVERTED>; + brightness-levels = <0 10 20 30 40 50 60 70 80 90 100>; + default-brightness-level = <8>; + enable-gpios = <&pio 7 7 GPIO_ACTIVE_HIGH>; /* PH7 */ + }; + chosen { stdout-path = "serial0:115200n8"; };
@@ -145,6 +156,13 @@ }; &pio { + bl_en_pin_protab: bl_en_pin at 0 { + allwinner,pins = "PH7"; + allwinner,function = "gpio_out"; + allwinner,drive = <SUN4I_PINCTRL_10_MA>; + allwinner,pull = <SUN4I_PINCTRL_NO_PULL>; + }; + touchscreen_pins: touchscreen_pins at 0 { allwinner,pins = "PA5", "PB13"; allwinner,function = "gpio_out";
@@ -167,6 +185,12 @@ }; }; +&pwm { + pinctrl-names = "default"; + pinctrl-0 = <&pwm0_pins_a>; + status = "okay"; +}; + ®_dcdc2 { regulator-always-on; regulator-min-microvolt = <1000000>;
Signature · 1 line
2.5.0
PATCH 3/4 ARM: dts: sun4i: Add backlight node to pov protab2 ips9 tablet
Quoted 4 lines · Hans de Goede
Add a node describing the lcd panel backlight on the pov protab2 ips9 tablet.
Signed-off-by Hans de Goede <[email protected]>
PATCH 3/4 ARM: dts: sun4i: Add backlight node to pov protab2 ips9 tablet
In reply to Hans de GoedeQuoted 4 lines · Hans de Goede
Add a node describing the lcd panel backlight on the pov protab2 ips9 tablet.
Signed-off-by Hans de Goede <[email protected]>
Fixed the conflict and applied. Thanks,
Maxime
Quoted 63 lines
--- arch/arm/boot/dts/sun4i-a10-pov-protab2-ips9.dts | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+)arch/arm/boot/dts/sun4i-a10-pov-protab2-ips9.dts +24
-0@@ -47,6 +47,7 @@ #include <dt-bindings/input/input.h> #include <dt-bindings/interrupt-controller/irq.h> #include <dt-bindings/pinctrl/sun4i-a10.h> +#include <dt-bindings/pwm/pwm.h> / { model = "Point of View Protab2-IPS9";@@ -56,6 +57,16 @@ serial0 = &uart0; }; + backlight: backlight { + compatible = "pwm-backlight"; + pinctrl-names = "default"; + pinctrl-0 = <&bl_en_pin_protab>; + pwms = <&pwm 0 50000 PWM_POLARITY_INVERTED>; + brightness-levels = <0 10 20 30 40 50 60 70 80 90 100>; + default-brightness-level = <8>; + enable-gpios = <&pio 7 7 GPIO_ACTIVE_HIGH>; /* PH7 */ + }; + chosen { stdout-path = "serial0:115200n8"; };@@ -145,6 +156,13 @@ }; &pio { + bl_en_pin_protab: bl_en_pin at 0 { + allwinner,pins = "PH7"; + allwinner,function = "gpio_out"; + allwinner,drive = <SUN4I_PINCTRL_10_MA>; + allwinner,pull = <SUN4I_PINCTRL_NO_PULL>; + }; + touchscreen_pins: touchscreen_pins at 0 { allwinner,pins = "PA5", "PB13"; allwinner,function = "gpio_out";@@ -167,6 +185,12 @@ }; }; +&pwm { + pinctrl-names = "default"; + pinctrl-0 = <&pwm0_pins_a>; + status = "okay"; +}; + ®_dcdc2 { regulator-always-on; regulator-min-microvolt = <1000000>;Signature · 1 line
2.5.0
Signature · 10 lines
Maxime Ripard, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: Digital signature URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20151120/838307c1/attachment-0001.sig>
PATCH 4/4 ARM: dts: sun5i: Add i2c axp152 pmic support for Auxtek T004 boards
In reply to Hans de GoedeFrom: Michael van Slingerland <[email protected]>
Add a node describing the AXP152 pmic used on Auxtek T004 boards.
--- arch/arm/boot/dts/sun5i-a10s-auxtek-t004.dts | 14 ++++++++++++++ 1 file changed, 14 insertions(+)
arch/arm/boot/dts/sun5i-a10s-auxtek-t004.dts +14 -0
@@ -86,6 +86,20 @@ status = "okay"; }; +&i2c0 { + pinctrl-names = "default"; + pinctrl-0 = <&i2c0_pins_a>; + status = "okay"; + + axp152: pmic at 30 { + compatible = "x-powers,axp152"; + reg = <0x30>; + interrupts = <0>; + interrupt-controller; + #interrupt-cells = <1>; + }; +}; + &mmc0 { pinctrl-names = "default"; pinctrl-0 = <&mmc0_pins_a>, <&mmc0_cd_pin_t004>;
Signature · 1 line
2.5.0
PATCH 4/4 ARM: dts: sun5i: Add i2c axp152 pmic support for Auxtek T004 boards
Quoted 6 lines · Hans de Goede
From: Michael van Slingerland <[email protected]>
Add a node describing the AXP152 pmic used on Auxtek T004 boards.
Signed-off-by Michael van Slingerland <[email protected]>Signed-off-by Hans de Goede <[email protected]>
PATCH 4/4 ARM: dts: sun5i: Add i2c axp152 pmic support for Auxtek T004 boards
In reply to Hans de GoedeQuoted 6 lines · Hans de Goede
From: Michael van Slingerland <[email protected]>
Add a node describing the AXP152 pmic used on Auxtek T004 boards.
Signed-off-by Michael van Slingerland <[email protected]>Signed-off-by Hans de Goede <[email protected]>
I don't really get why this patch is in the same set as the other patches, but I just applied it. Thanks!
Maxime
Signature · 10 lines
Maxime Ripard, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: Digital signature URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20151120/03946551/attachment-0001.sig>
[linux-sunxi] Re: [PATCH 4/4] ARM: dts: sun5i: Add i2c axp152 pmic support for Auxtek T004 boards
Hi,
Quoted 10 lines · Maxime Ripard
Quoted 6 lines · Hans de Goede
From: Michael van Slingerland <[email protected]>
Add a node describing the AXP152 pmic used on Auxtek T004 boards.
Signed-off-by Michael van Slingerland <[email protected]>Signed-off-by Hans de Goede <[email protected]>I don't really get why this patch is in the same set as the other patches, but I just applied it. Thanks!
The theme of the set was dts patches which do not depend on anything else :)
And sorry about the conflicts, I had the touchscreen patches in my tree before this set.
Regards,
Hans
PATCH 1/4 ARM: dts: sun4i: Add backlight node to iNet1 tablet
In reply to Hans de GoedeQuoted 3 lines · Hans de Goede
Add a node describing the lcd panel backlight on the iNet1 tablet.
Signed-off-by Hans de Goede <[email protected]>
Maxime Ripard
AppliedPATCH 1/4 ARM: dts: sun4i: Add backlight node to iNet1 tablet
In reply to Hans de GoedeQuoted 3 lines · Hans de Goede
Add a node describing the lcd panel backlight on the iNet1 tablet.
Signed-off-by Hans de Goede <[email protected]>
Applied. This patch was not applying. Please either mention the dependency between your patch sets or base them on top of linus' rc's or my branches.
Maxime
Signature · 10 lines
Maxime Ripard, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: Digital signature URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20151120/f2363890/attachment.sig>