From: Harald Geyer Date: Sat, 9 Feb 2019 10:40:18 +0000 (+0000) Subject: arm64: dts: allwinner: a64: teres-i: enable backlight X-Git-Tag: v5.4-rc1~968^2~25^2~21 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=24bd5d2cb93bc282e3c15e4d10fcd3210192f954;p=platform%2Fkernel%2Flinux-rpi.git 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 Signed-off-by: Maxime Ripard --- 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 7b7b14b..0ec46b9 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";