xref: /linux/scripts/dtc/include-prefixes/arm64/renesas/r8a774a1-hihope-rzg2m-rev2-ex-idk-1110wr.dts (revision a80f301ea69e76f10099626986b4674c6f990a15)
1*a80f301eSLad Prabhakar// SPDX-License-Identifier: GPL-2.0
2*a80f301eSLad Prabhakar/*
3*a80f301eSLad Prabhakar * Device Tree Source for the HiHope RZ/G2M Rev.2.0 sub board connected to an
4*a80f301eSLad Prabhakar * Advantech IDK-1110WR 10.1" LVDS panel
5*a80f301eSLad Prabhakar *
6*a80f301eSLad Prabhakar * Copyright (C) 2020 Renesas Electronics Corp.
7*a80f301eSLad Prabhakar */
8*a80f301eSLad Prabhakar
9*a80f301eSLad Prabhakar#include "r8a774a1-hihope-rzg2m-rev2-ex.dts"
10*a80f301eSLad Prabhakar#include "rzg2-advantech-idk-1110wr-panel.dtsi"
11*a80f301eSLad Prabhakar
12*a80f301eSLad Prabhakar/ {
13*a80f301eSLad Prabhakar	backlight {
14*a80f301eSLad Prabhakar		compatible = "pwm-backlight";
15*a80f301eSLad Prabhakar		pwms = <&pwm0 0 50000>;
16*a80f301eSLad Prabhakar
17*a80f301eSLad Prabhakar		brightness-levels = <0 2 8 16 32 64 128 255>;
18*a80f301eSLad Prabhakar		default-brightness-level = <6>;
19*a80f301eSLad Prabhakar	};
20*a80f301eSLad Prabhakar
21*a80f301eSLad Prabhakar};
22*a80f301eSLad Prabhakar
23*a80f301eSLad Prabhakar&gpio1 {
24*a80f301eSLad Prabhakar	/*
25*a80f301eSLad Prabhakar	 * When GP1_20 is LOW LVDS0 is connected to the LVDS connector
26*a80f301eSLad Prabhakar	 * When GP1_20 is HIGH LVDS0 is connected to the LT8918L
27*a80f301eSLad Prabhakar	 */
28*a80f301eSLad Prabhakar	lvds-connector-en-gpio {
29*a80f301eSLad Prabhakar		gpio-hog;
30*a80f301eSLad Prabhakar		gpios = <20 GPIO_ACTIVE_HIGH>;
31*a80f301eSLad Prabhakar		output-low;
32*a80f301eSLad Prabhakar		line-name = "lvds-connector-en-gpio";
33*a80f301eSLad Prabhakar	};
34*a80f301eSLad Prabhakar};
35*a80f301eSLad Prabhakar
36*a80f301eSLad Prabhakar&lvds0 {
37*a80f301eSLad Prabhakar	status = "okay";
38*a80f301eSLad Prabhakar};
39*a80f301eSLad Prabhakar
40*a80f301eSLad Prabhakar&pfc {
41*a80f301eSLad Prabhakar	pwm0_pins: pwm0 {
42*a80f301eSLad Prabhakar		groups = "pwm0";
43*a80f301eSLad Prabhakar		function = "pwm0";
44*a80f301eSLad Prabhakar	};
45*a80f301eSLad Prabhakar};
46*a80f301eSLad Prabhakar
47*a80f301eSLad Prabhakar&pwm0 {
48*a80f301eSLad Prabhakar	pinctrl-0 = <&pwm0_pins>;
49*a80f301eSLad Prabhakar	pinctrl-names = "default";
50*a80f301eSLad Prabhakar
51*a80f301eSLad Prabhakar	status = "okay";
52*a80f301eSLad Prabhakar};
53