arm64: dts: allwinner: add backlight regulator for Pinebook
Subsystems (2)
PATCH 1/1 arm64: dts: allwinner: add backlight regulator for Pinebook
Backlight power is controlled by PH6 GPIO, so add corresponding regulator-fixed node for it. Otherwise backlight won't light up if bootloader doesn't enable it.
Signed-off-by Vasily Khoruzhick <[email protected]>
--- arch/arm64/boot/dts/allwinner/sun50i-a64-pinebook.dts | 10 ++++++++++ 1 file changed, 10 insertions(+)
arch/arm64/boot/dts/allwinner/sun50i-a64-pinebook.dts +10 -0
@@ -22,12 +22,22 @@ ethernet0 = &rtl8723cs; }; + vdd_bl: regulator at 0 { + compatible = "regulator-fixed"; + regulator-name = "bl-3v3"; + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; + gpio = <&pio 7 6 GPIO_ACTIVE_HIGH>; /* PH6 */ + enable-active-high; + }; + backlight: backlight { compatible = "pwm-backlight"; pwms = <&pwm 0 50000 0>; brightness-levels = <0 5 10 15 20 30 40 55 70 85 100>; default-brightness-level = <2>; enable-gpios = <&pio 3 23 GPIO_ACTIVE_HIGH>; /* PD23 */ + power-supply = <&vdd_bl>; }; chosen {
Signature · 1 line
2.19.0
Maxime Ripard
AppliedPATCH 1/1 arm64: dts: allwinner: add backlight regulator for Pinebook
Quoted 5 lines · Vasily Khoruzhick
Backlight power is controlled by PH6 GPIO, so add corresponding regulator-fixed node for it. Otherwise backlight won't light up if bootloader doesn't enable it.
Signed-off-by Vasily Khoruzhick <[email protected]>
Queued for 4.21, thanks!
Maxime
Signature · 10 lines
Maxime Ripard, Bootlin Embedded Linux and Kernel engineering https://bootlin.com -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 833 bytes Desc: not available URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20181009/ad92b0c2/attachment.sig>