mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-12-16 23:45:31 +08:00
arm64: dts: renesas: hihope-rzg2-ex: Separate out lvds specific nodes into common file
Separate out LVDS specific nodes into common file hihope-rzg2-ex-lvds.dtsi so that this can be re-used by RZ/G2M[N] variants. Signed-off-by: Lad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com> Reviewed-by: Marian-Cristian Rotariu <marian-cristian.rotariu.rb@bp.renesas.com> Link: https://lore.kernel.org/r/1593004330-5039-8-git-send-email-prabhakar.mahadev-lad.rj@bp.renesas.com Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
This commit is contained in:
parent
035329301e
commit
b0990638b6
52
arch/arm64/boot/dts/renesas/hihope-rzg2-ex-lvds.dtsi
Normal file
52
arch/arm64/boot/dts/renesas/hihope-rzg2-ex-lvds.dtsi
Normal file
@ -0,0 +1,52 @@
|
||||
// SPDX-License-Identifier: GPL-2.0
|
||||
/*
|
||||
* Device Tree Source for the RZ/G2[MN] HiHope sub board LVDS common parts
|
||||
*
|
||||
* Copyright (C) 2020 Renesas Electronics Corp.
|
||||
*/
|
||||
|
||||
/ {
|
||||
backlight {
|
||||
compatible = "pwm-backlight";
|
||||
pwms = <&pwm0 0 50000>;
|
||||
|
||||
brightness-levels = <0 2 8 16 32 64 128 255>;
|
||||
default-brightness-level = <6>;
|
||||
};
|
||||
};
|
||||
|
||||
&gpio1 {
|
||||
/*
|
||||
* When GP1_20 is LOW LVDS0 is connected to the LVDS connector
|
||||
* When GP1_20 is HIGH LVDS0 is connected to the LT8918L
|
||||
*/
|
||||
lvds-connector-en-gpio {
|
||||
gpio-hog;
|
||||
gpios = <20 GPIO_ACTIVE_HIGH>;
|
||||
output-low;
|
||||
line-name = "lvds-connector-en-gpio";
|
||||
};
|
||||
};
|
||||
|
||||
&lvds0 {
|
||||
ports {
|
||||
port@1 {
|
||||
lvds_connector: endpoint {
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
&pfc {
|
||||
pwm0_pins: pwm0 {
|
||||
groups = "pwm0";
|
||||
function = "pwm0";
|
||||
};
|
||||
};
|
||||
|
||||
&pwm0 {
|
||||
pinctrl-0 = <&pwm0_pins>;
|
||||
pinctrl-names = "default";
|
||||
|
||||
status = "okay";
|
||||
};
|
@ -13,14 +13,6 @@
|
||||
chosen {
|
||||
bootargs = "ignore_loglevel rw root=/dev/nfs ip=on";
|
||||
};
|
||||
|
||||
backlight {
|
||||
compatible = "pwm-backlight";
|
||||
pwms = <&pwm0 0 50000>;
|
||||
|
||||
brightness-levels = <0 2 8 16 32 64 128 255>;
|
||||
default-brightness-level = <6>;
|
||||
};
|
||||
};
|
||||
|
||||
&avb {
|
||||
@ -51,35 +43,6 @@
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&gpio1 {
|
||||
/*
|
||||
* When GP1_20 is LOW LVDS0 is connected to the LVDS connector
|
||||
* When GP1_20 is HIGH LVDS0 is connected to the LT8918L
|
||||
*/
|
||||
lvds-connector-en-gpio {
|
||||
gpio-hog;
|
||||
gpios = <20 GPIO_ACTIVE_HIGH>;
|
||||
output-low;
|
||||
line-name = "lvds-connector-en-gpio";
|
||||
};
|
||||
};
|
||||
|
||||
&lvds0 {
|
||||
/*
|
||||
* Please include the LVDS panel .dtsi file and uncomment the below line
|
||||
* to enable LVDS panel connected to RZ/G2[MN] boards.
|
||||
*/
|
||||
|
||||
/* status = "okay"; */
|
||||
|
||||
ports {
|
||||
port@1 {
|
||||
lvds_connector: endpoint {
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
&pciec0 {
|
||||
status = "okay";
|
||||
};
|
||||
|
@ -7,46 +7,9 @@
|
||||
*/
|
||||
|
||||
#include "r8a774a1-hihope-rzg2m-rev2-ex.dts"
|
||||
#include "hihope-rzg2-ex-lvds.dtsi"
|
||||
#include "rzg2-advantech-idk-1110wr-panel.dtsi"
|
||||
|
||||
/ {
|
||||
backlight {
|
||||
compatible = "pwm-backlight";
|
||||
pwms = <&pwm0 0 50000>;
|
||||
|
||||
brightness-levels = <0 2 8 16 32 64 128 255>;
|
||||
default-brightness-level = <6>;
|
||||
};
|
||||
|
||||
};
|
||||
|
||||
&gpio1 {
|
||||
/*
|
||||
* When GP1_20 is LOW LVDS0 is connected to the LVDS connector
|
||||
* When GP1_20 is HIGH LVDS0 is connected to the LT8918L
|
||||
*/
|
||||
lvds-connector-en-gpio {
|
||||
gpio-hog;
|
||||
gpios = <20 GPIO_ACTIVE_HIGH>;
|
||||
output-low;
|
||||
line-name = "lvds-connector-en-gpio";
|
||||
};
|
||||
};
|
||||
|
||||
&lvds0 {
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&pfc {
|
||||
pwm0_pins: pwm0 {
|
||||
groups = "pwm0";
|
||||
function = "pwm0";
|
||||
};
|
||||
};
|
||||
|
||||
&pwm0 {
|
||||
pinctrl-0 = <&pwm0_pins>;
|
||||
pinctrl-names = "default";
|
||||
|
||||
status = "okay";
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user