diff options
author | Harald Geyer <harald@ccbib.org> | 2019-02-09 10:40:18 +0000 |
---|---|---|
committer | Maxime Ripard <maxime.ripard@bootlin.com> | 2019-03-18 08:09:23 +0100 |
commit | 24bd5d2cb93bc282e3c15e4d10fcd3210192f954 (patch) | |
tree | 39599704303a7283c2024f093fc62e72f20bdcb4 | |
parent | 9e98c678c2d6ae3a17cb2de55d17f69dddaa231b (diff) | |
download | linux-stable-24bd5d2cb93bc282e3c15e4d10fcd3210192f954.tar.gz linux-stable-24bd5d2cb93bc282e3c15e4d10fcd3210192f954.tar.bz2 linux-stable-24bd5d2cb93bc282e3c15e4d10fcd3210192f954.zip |
arm64: dts: allwinner: a64: teres-i: enable backlight
Enable pwm and add a pretty standard backlight node.
The regulator is always on, but we include it anyway, because it is
required by the binding document.
Signed-off-by: Harald Geyer <harald@ccbib.org>
Signed-off-by: Maxime Ripard <maxime.ripard@bootlin.com>
-rw-r--r-- | arch/arm64/boot/dts/allwinner/sun50i-a64-teres-i.dts | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/arch/arm64/boot/dts/allwinner/sun50i-a64-teres-i.dts b/arch/arm64/boot/dts/allwinner/sun50i-a64-teres-i.dts index 7b7b14ba58e6..0ec46b969a75 100644 --- a/arch/arm64/boot/dts/allwinner/sun50i-a64-teres-i.dts +++ b/arch/arm64/boot/dts/allwinner/sun50i-a64-teres-i.dts @@ -21,6 +21,15 @@ serial0 = &uart0; }; + backlight: backlight { + compatible = "pwm-backlight"; + pwms = <&pwm 0 50000 0>; + power-supply = <®_dcdc1>; + brightness-levels = <0 5 7 10 14 20 28 40 56 80 112>; + default-brightness-level = <5>; + enable-gpios = <&pio 3 23 GPIO_ACTIVE_HIGH>; /* PD23 */ + }; + chosen { stdout-path = "serial0:115200n8"; @@ -131,6 +140,10 @@ status = "okay"; }; +&pwm { + status = "okay"; +}; + &r_rsb { status = "okay"; |