Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp572852ybt; Wed, 24 Jun 2020 06:17:13 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyAK7Zrq+18TaaTOST+2Xne1AC1dN/PScb6vSCLvMViVGnBbpUlaVGIStsQHam1Q9MvNcEP X-Received: by 2002:a17:906:6410:: with SMTP id d16mr26320182ejm.376.1593004633207; Wed, 24 Jun 2020 06:17:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1593004633; cv=none; d=google.com; s=arc-20160816; b=JgMCpZqemjxwJS7usX/GAml/pDRplO6OE8PpbWiciLVKkdEFtivsaJvgIlnrxX+eV9 /vJb67v/gCDI1FVF3qNrl+f+2aliqpFp/bczXxzzSJUvpXBQi/YMt1+qNIdrBGTvFERb hXY05iS55gddmOk40qgs60xuOl/3VxUBs/4/bKWVHORQnDDI+RRtV5c+jndwlSTOCfng FWhQVX1laT90uEh+V/gPllpMmMwg24H+EvhFxqJsvkR9y56m5/OkuLk1f8gKV6t3snGq tN/Co4rPpOXTNZQ09EWrfbUD3fMZo1X7fbJBW+1SKOFOqw3sOhqJJbDIxP6j4KCERgbZ Ssyw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from; bh=Mu89ODptLA0HvHMNCZuZUttrCyhXUCAlroyBRh1Yfjk=; b=MoJ3Rk1zZCzwzTswFKHBvJsKpBw3/VPqP4IoFMay63pyTLLEqf+AvY4qrBXFJAmTfp rieJpOXA5lz6CkkK7n+Xa4oftNeyuhBE/ILOiuVkRRjW8h3LWRyRA5aIJb0K5LnehlFN cB5ReSjj6R7qCSEjpxYfMx6ogM8Q2RpOPzXKwncl0W10tK/jHD4A7jX7aZxDfGCFLvE3 hvyoSbz0SWy8mZi/H4PdP+hwf7KUC2TvKJVCauiwFncgl4IxpCIDbEwhdr559cxSK781 Ps7mEA0WMSYt5IrL0uiriVjR4K3vXtTveyb48dBV2SOsuWbscGCsLD1X4k2a09oX3Cc4 WwTQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id g9si13642939ejj.380.2020.06.24.06.16.49; Wed, 24 Jun 2020 06:17:13 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2391004AbgFXNOp (ORCPT + 99 others); Wed, 24 Jun 2020 09:14:45 -0400 Received: from relmlor2.renesas.com ([210.160.252.172]:62151 "EHLO relmlie6.idc.renesas.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S2387938AbgFXNOl (ORCPT ); Wed, 24 Jun 2020 09:14:41 -0400 X-IronPort-AV: E=Sophos;i="5.75,275,1589209200"; d="scan'208";a="50279171" Received: from unknown (HELO relmlir5.idc.renesas.com) ([10.200.68.151]) by relmlie6.idc.renesas.com with ESMTP; 24 Jun 2020 22:14:41 +0900 Received: from localhost.localdomain (unknown [10.226.36.204]) by relmlir5.idc.renesas.com (Postfix) with ESMTP id 3ED2C40062A1; Wed, 24 Jun 2020 22:14:39 +0900 (JST) From: Lad Prabhakar To: Geert Uytterhoeven , Magnus Damm , Rob Herring Cc: linux-renesas-soc@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Prabhakar , Lad Prabhakar Subject: [PATCH v2 07/11] arm64: dts: renesas: hihope-rzg2-ex: Separate out lvds specific nodes into common file Date: Wed, 24 Jun 2020 14:12:06 +0100 Message-Id: <1593004330-5039-8-git-send-email-prabhakar.mahadev-lad.rj@bp.renesas.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1593004330-5039-1-git-send-email-prabhakar.mahadev-lad.rj@bp.renesas.com> References: <1593004330-5039-1-git-send-email-prabhakar.mahadev-lad.rj@bp.renesas.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 Reviewed-by: Marian-Cristian Rotariu Reviewed-by: Geert Uytterhoeven --- .../boot/dts/renesas/hihope-rzg2-ex-lvds.dtsi | 52 +++++++++++++++++++ .../boot/dts/renesas/hihope-rzg2-ex.dtsi | 37 ------------- ...a774a1-hihope-rzg2m-rev2-ex-idk-1110wr.dts | 39 +------------- 3 files changed, 53 insertions(+), 75 deletions(-) create mode 100644 arch/arm64/boot/dts/renesas/hihope-rzg2-ex-lvds.dtsi diff --git a/arch/arm64/boot/dts/renesas/hihope-rzg2-ex-lvds.dtsi b/arch/arm64/boot/dts/renesas/hihope-rzg2-ex-lvds.dtsi new file mode 100644 index 000000000000..40c5e8d6d841 --- /dev/null +++ b/arch/arm64/boot/dts/renesas/hihope-rzg2-ex-lvds.dtsi @@ -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"; +}; diff --git a/arch/arm64/boot/dts/renesas/hihope-rzg2-ex.dtsi b/arch/arm64/boot/dts/renesas/hihope-rzg2-ex.dtsi index 28fe17e3bc4e..acfcfd050a6c 100644 --- a/arch/arm64/boot/dts/renesas/hihope-rzg2-ex.dtsi +++ b/arch/arm64/boot/dts/renesas/hihope-rzg2-ex.dtsi @@ -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"; }; diff --git a/arch/arm64/boot/dts/renesas/r8a774a1-hihope-rzg2m-rev2-ex-idk-1110wr.dts b/arch/arm64/boot/dts/renesas/r8a774a1-hihope-rzg2m-rev2-ex-idk-1110wr.dts index 3a1dcc914985..c0e9d8ca4a8c 100644 --- a/arch/arm64/boot/dts/renesas/r8a774a1-hihope-rzg2m-rev2-ex-idk-1110wr.dts +++ b/arch/arm64/boot/dts/renesas/r8a774a1-hihope-rzg2m-rev2-ex-idk-1110wr.dts @@ -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"; -}; -- 2.17.1