summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilippe Schenker <philippe.schenker@toradex.com>2020-01-28 17:46:22 +0100
committerPhilippe Schenker <philippe.schenker@toradex.com>2020-02-06 15:00:36 +0100
commit693ad5b982fe8fce6acfb2da3af7c645afc21d08 (patch)
tree4be97dc9bbf3f357aae7ff35f5b8a5940bcdc77f
parent8a9e44182e2b8319f6c0c8824af2d3bff1d4c381 (diff)
ARM64: dts: imx8mm-verdin: add backlight
Related-to: ELB-2289 Signed-off-by: Philippe Schenker <philippe.schenker@toradex.com>
-rwxr-xr-xarch/arm64/boot/dts/freescale/fsl-imx8mm-verdin.dtsi17
1 files changed, 14 insertions, 3 deletions
diff --git a/arch/arm64/boot/dts/freescale/fsl-imx8mm-verdin.dtsi b/arch/arm64/boot/dts/freescale/fsl-imx8mm-verdin.dtsi
index e839854..656c783 100755
--- a/arch/arm64/boot/dts/freescale/fsl-imx8mm-verdin.dtsi
+++ b/arch/arm64/boot/dts/freescale/fsl-imx8mm-verdin.dtsi
@@ -3,6 +3,7 @@
* Copyright 2019 Toradex
*/
+#include "dt-bindings/pwm/pwm.h"
#include "fsl-imx8mm.dtsi"
/ {
@@ -11,6 +12,17 @@
stdout-path = &uart1;
};
+ backlight: backlight {
+ compatible = "pwm-backlight";
+ pinctrl-names = "default";
+ pinctrl-0 = <&pinctrl_dsi_bkl_en>;
+ brightness-levels = <0 45 63 88 119 158 203 255>;
+ default-brightness-level = <4>;
+ enable-gpios = <&gpio3 3 GPIO_ACTIVE_HIGH>;
+ pwms = <&pwm1 0 6666667 PWM_POLARITY_INVERTED>;
+ status = "okay";
+ };
+
/* fixed clock dedicated to SPI CAN controller */
clk20m: oscillator {
compatible = "fixed-clock";
@@ -688,9 +700,8 @@
&iomuxc {
pinctrl-names = "default";
- pinctrl-0 = <&pinctrl_dsi_bkl_en>, <&pinctrl_gpio3>,
- <&pinctrl_gpio4>,<&pinctrl_gpio7>,
- <&pinctrl_gpio8>,<&pinctrl_gpio_hog1>,
+ pinctrl-0 = <&pinctrl_gpio3>, <&pinctrl_gpio4>, <&pinctrl_gpio7>,
+ <&pinctrl_gpio8>, <&pinctrl_gpio_hog1>,
<&pinctrl_gpio_hog2>, <&pinctrl_gpio_hog3>;
pinctrl_can1_int: can1intgrp {