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