Module Name: src Committed By: jmcneill Date: Sun May 6 10:43:52 UTC 2018
Modified Files: src/sys/arch/arm/dts: sun50i-a64-pinebook.dts Log Message: Add backlight node and enable pwm To generate a diff of this commit: cvs rdiff -u -r1.7 -r1.8 src/sys/arch/arm/dts/sun50i-a64-pinebook.dts Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/arch/arm/dts/sun50i-a64-pinebook.dts diff -u src/sys/arch/arm/dts/sun50i-a64-pinebook.dts:1.7 src/sys/arch/arm/dts/sun50i-a64-pinebook.dts:1.8 --- src/sys/arch/arm/dts/sun50i-a64-pinebook.dts:1.7 Sat May 5 11:16:30 2018 +++ src/sys/arch/arm/dts/sun50i-a64-pinebook.dts Sun May 6 10:43:52 2018 @@ -1,4 +1,4 @@ -/* $NetBSD: sun50i-a64-pinebook.dts,v 1.7 2018/05/05 11:16:30 jmcneill Exp $ */ +/* $NetBSD: sun50i-a64-pinebook.dts,v 1.8 2018/05/06 10:43:52 jmcneill Exp $ */ /*- * Copyright (c) 2017 Jared McNeill <jmcne...@invisible.ca> @@ -34,6 +34,7 @@ #include <dt-bindings/gpio/gpio.h> #include <dt-bindings/input/linux-event-codes.h> #include <dt-bindings/interrupt-controller/irq.h> +#include <dt-bindings/pwm/pwm.h> / { model = "Pine64 Pinebook"; @@ -63,6 +64,14 @@ }; }; + backlight: backlight { + compatible = "pwm-backlight"; + pwms = <&pwm 0 50000 0>; + brightness-levels = <0 30 40 50 60 70 80 90 100>; + default-brightness-level = <6>; + enable-gpios = <&pio 3 23 GPIO_ACTIVE_HIGH>; /* PD23 */ + }; + reg_vcc3v3: vcc3v3 { regulator-fixed; regulator-name = "vcc3v3"; @@ -136,6 +145,12 @@ status = "okay"; }; +&pwm { + pinctrl-names = "default"; + pinctrl-0 = <&pwm0_pins>; + status = "okay"; +}; + &r_rsb { status = "okay";