Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/arm/dts Add backlight node and enable pwm
details: https://anonhg.NetBSD.org/src/rev/8f9506276d6a
branches: trunk
changeset: 318833:8f9506276d6a
user: jmcneill <jmcneill%NetBSD.org@localhost>
date: Sun May 06 10:43:52 2018 +0000
description:
Add backlight node and enable pwm
diffstat:
sys/arch/arm/dts/sun50i-a64-pinebook.dts | 17 ++++++++++++++++-
1 files changed, 16 insertions(+), 1 deletions(-)
diffs (45 lines):
diff -r 4e3e7d0acea1 -r 8f9506276d6a sys/arch/arm/dts/sun50i-a64-pinebook.dts
--- a/sys/arch/arm/dts/sun50i-a64-pinebook.dts Sun May 06 10:43:32 2018 +0000
+++ b/sys/arch/arm/dts/sun50i-a64-pinebook.dts Sun May 06 10:43:52 2018 +0000
@@ -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 <jmcneill%invisible.ca@localhost>
@@ -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";
Home |
Main Index |
Thread Index |
Old Index