Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp2577447pxk; Sun, 27 Sep 2020 13:08:15 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyMMrdyawXLNVGf47IPsWCWSr2jlYD/1AM5j58hEL0P8T6TKO8kI14eNe/v0s+Vy51zgmHJ X-Received: by 2002:a17:906:7116:: with SMTP id x22mr12837278ejj.426.1601237295021; Sun, 27 Sep 2020 13:08:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1601237295; cv=none; d=google.com; s=arc-20160816; b=hY4hRowqZSbVgQTQrhNPT4UewtVsl/CaZZRGJdGYXW2zuDDRALnvz/LpNfifJVyi5n tnbPCe7Q3aBDVO7BFJWC3PVgRfjPQJ+SGDU9hzDY//p9Fdy59mcX6UFpOZ9rzbLcutU0 LPZKUF8zyhK8x+1GxUoXD2RhDYuTs+ch5wVHA8yAtvWuAtPbS6H8OCpqTgzbTk1mzTHJ j/Vl/6Qb7Hrp8eU7Az+F1VdeOOIewTDMpoGd0inuIPEnyJbGU2xsmAjW7kSV9tTwqYeF JXxjV2wYY8ljvIIG9Ui19Hco4DNuiKtU/YqtN/X82G4O+QsUb7GTzfKuUX5fdfZ+y27O W9hg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=tifJyFlugNseK0yK6ycFs0L6yG0SRjvX6aRwgDfoQyM=; b=LUs4lOH8IzHFX7e3AJqYxvO1QwN61WthWSOTkOME3zxIaB6LhxyveyzSHkHU1RDXI9 QGnIFym13wiLcKfnWOvuvczKxiI1kssDk/opR84uHJ//GteaWKAHnVRFzECD/UQvhP/k x3gvU13JV0cuuMTID30VUA+UpIVKo4Gbtyhv2iySBvKe0qv07DArw4MBDjkpWElhAXyg ZmBqZdBWmF9JjVHNlJJeIh0CoA7CSdQ4n8gSRy4XhHaOqBt2V6MYupHEl259/X23jc+y HXeEoBAwYDNfMw3Nb0g34qyKxMVIqyNAbHqCcC5+gSMZ0e3Ec2AfX0ByUt0onCR8CBgl WsrQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass (test mode) header.i=@ideasonboard.com header.s=mail header.b=wgXrlocB; 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 u6si6179124edx.293.2020.09.27.13.07.52; Sun, 27 Sep 2020 13:08:15 -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; dkim=pass (test mode) header.i=@ideasonboard.com header.s=mail header.b=wgXrlocB; 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 S1726645AbgI0UFA (ORCPT + 99 others); Sun, 27 Sep 2020 16:05:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39766 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726485AbgI0UFA (ORCPT ); Sun, 27 Sep 2020 16:05:00 -0400 Received: from perceval.ideasonboard.com (perceval.ideasonboard.com [IPv6:2001:4b98:dc2:55:216:3eff:fef7:d647]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 10EFBC0613CE; Sun, 27 Sep 2020 13:05:00 -0700 (PDT) Received: from pendragon.ideasonboard.com (62-78-145-57.bb.dnainternet.fi [62.78.145.57]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id EF1A127B; Sun, 27 Sep 2020 22:04:51 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1601237092; bh=KXIz45C/Mat1tgDDrs+edL2gNNihFY9AO9VW/2BFRys=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=wgXrlocB7cOM39Ip04dmoRlg/DWQBQxHJ+k1yuq9YN7OsoLzedY8tA2HGUpcFktLo xWEI83SN8xUYCsVd7TmO65YPJ4qoquzFIdZEIEZJNAynFskS+EJmJKBEIg8xASzTI+ y6Ch4UbfaxUr/fQeIKU+wV+qASzpNrs5mXQtZAGM= Date: Sun, 27 Sep 2020 23:04:18 +0300 From: Laurent Pinchart To: "Lad, Prabhakar" Cc: Lad Prabhakar , Geert Uytterhoeven , Magnus Damm , Rob Herring , DRI Development , Linux-Renesas , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , LKML Subject: Re: [PATCH v2] ARM: dts: r8a7742-iwg21d-q7: Add LCD support Message-ID: <20200927200418.GA3986@pendragon.ideasonboard.com> References: <20200813140041.5082-1-prabhakar.mahadev-lad.rj@bp.renesas.com> <20200824004816.GS6002@pendragon.ideasonboard.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Prabhakar, On Sun, Sep 27, 2020 at 02:01:50PM +0100, Lad, Prabhakar wrote: > On Mon, Aug 24, 2020 at 1:48 AM Laurent Pinchart wrote: > > On Thu, Aug 13, 2020 at 03:00:41PM +0100, Lad Prabhakar wrote: > > > The iwg21d comes with a 7" capacitive touch screen, therefore > > > add support for it. > > > > > > Signed-off-by: Lad Prabhakar > > > Reviewed-by: Marian-Cristian Rotariu > > > > Everything seems to match the schematics :-) > > > > Reviewed-by: Laurent Pinchart > > > > > --- > > > v1->v2 > > > * This patch is part of series [1] (rest of the patches have be accepted > > > by Geert [2]). > > > * Added regulator for lvds > > > * Added reset pin for touchpanel > > > * This patch is based on series [3] > > > > > > [1] https://patchwork.kernel.org/project/linux-renesas-soc/list/ > > > ?series=330277 > > > [2] https://git.kernel.org/pub/scm/linux/kernel/git/geert/ > > > renesas-devel.git/log/?h=renesas-arm-dt-for-v5.10 > > > [3] https://patchwork.kernel.org/project/linux-renesas-soc/list/ > > > ?series=330957 > > > --- > > > arch/arm/boot/dts/r8a7742-iwg21d-q7.dts | 99 +++++++++++++++++++++++++ > > > 1 file changed, 99 insertions(+) > > Would you be queueing this patch along with DRM driver patches for v5.10 ? No, I expect Geert to do so, DT patches go through his tree. I handle the drivers and DT bindings. > > > diff --git a/arch/arm/boot/dts/r8a7742-iwg21d-q7.dts b/arch/arm/boot/dts/r8a7742-iwg21d-q7.dts > > > index b3461a61a4bf..9bf4fbd9c736 100644 > > > --- a/arch/arm/boot/dts/r8a7742-iwg21d-q7.dts > > > +++ b/arch/arm/boot/dts/r8a7742-iwg21d-q7.dts > > > @@ -30,6 +30,7 @@ > > > > > > /dts-v1/; > > > #include "r8a7742-iwg21m.dtsi" > > > +#include > > > > > > / { > > > model = "iWave Systems RainboW-G21D-Qseven board based on RZ/G1H"; > > > @@ -52,6 +53,51 @@ > > > clock-frequency = <26000000>; > > > }; > > > > > > + lcd_backlight: backlight { > > > + compatible = "pwm-backlight"; > > > + pwms = <&tpu 2 5000000 0>; > > > + brightness-levels = <0 4 8 16 32 64 128 255>; > > > + pinctrl-0 = <&backlight_pins>; > > > + pinctrl-names = "default"; > > > + default-brightness-level = <7>; > > > + enable-gpios = <&gpio3 11 GPIO_ACTIVE_HIGH>; > > > + }; > > > + > > > + lvds-receiver { > > > + compatible = "ti,ds90cf384a", "lvds-decoder"; > > > + vcc-supply = <&vcc_3v3_tft1>; > > > + > > > + ports { > > > + #address-cells = <1>; > > > + #size-cells = <0>; > > > + > > > + port@0 { > > > + reg = <0>; > > > + lvds_receiver_in: endpoint { > > > + remote-endpoint = <&lvds0_out>; > > > + }; > > > + }; > > > + port@1 { > > > + reg = <1>; > > > + lvds_receiver_out: endpoint { > > > + remote-endpoint = <&panel_in>; > > > + }; > > > + }; > > > + }; > > > + }; > > > + > > > + panel { > > > + compatible = "edt,etm0700g0dh6"; > > > + backlight = <&lcd_backlight>; > > > + power-supply = <&vcc_3v3_tft1>; > > > + > > > + port { > > > + panel_in: endpoint { > > > + remote-endpoint = <&lvds_receiver_out>; > > > + }; > > > + }; > > > + }; > > > + > > > reg_1p5v: 1p5v { > > > compatible = "regulator-fixed"; > > > regulator-name = "1P5V"; > > > @@ -75,6 +121,17 @@ > > > }; > > > }; > > > > > > + vcc_3v3_tft1: regulator-panel { > > > + compatible = "regulator-fixed"; > > > + > > > + regulator-name = "vcc-3v3-tft1"; > > > + regulator-min-microvolt = <3300000>; > > > + regulator-max-microvolt = <3300000>; > > > + enable-active-high; > > > + startup-delay-us = <500>; > > > + gpio = <&gpio5 28 GPIO_ACTIVE_HIGH>; > > > + }; > > > + > > > vcc_sdhi2: regulator-vcc-sdhi2 { > > > compatible = "regulator-fixed"; > > > > > > @@ -129,12 +186,34 @@ > > > VDDIO-supply = <®_3p3v>; > > > VDDD-supply = <®_1p5v>; > > > }; > > > + > > > + touch: touchpanel@38 { > > > + compatible = "edt,edt-ft5406"; > > > + reg = <0x38>; > > > + interrupt-parent = <&gpio0>; > > > + interrupts = <24 IRQ_TYPE_EDGE_FALLING>; > > > + /* GP1_29 is also shared with audio codec reset pin */ > > > + reset-gpios = <&gpio1 29 GPIO_ACTIVE_LOW>; > > > + vcc-supply = <&vcc_3v3_tft1>; > > > + }; > > > }; > > > > > > &cmt0 { > > > status = "okay"; > > > }; > > > > > > +&du { > > > + status = "okay"; > > > +}; > > > + > > > +&gpio0 { > > > + touch-interrupt { > > > + gpio-hog; > > > + gpios = <24 GPIO_ACTIVE_LOW>; > > > + input; > > > + }; > > > +}; > > > + > > > &hsusb { > > > pinctrl-0 = <&usb0_pins>; > > > pinctrl-names = "default"; > > > @@ -165,6 +244,11 @@ > > > function = "avb"; > > > }; > > > > > > + backlight_pins: backlight { > > > + groups = "tpu0_to2"; > > > + function = "tpu0"; > > > + }; > > > + > > > i2c2_pins: i2c2 { > > > groups = "i2c2_b"; > > > function = "i2c2"; > > > @@ -208,6 +292,17 @@ > > > }; > > > }; > > > > > > +&lvds0 { > > > + status = "okay"; > > > + ports { > > > + port@1 { > > > + lvds0_out: endpoint { > > > + remote-endpoint = <&lvds_receiver_in>; > > > + }; > > > + }; > > > + }; > > > +}; > > > + > > > &rcar_sound { > > > pinctrl-0 = <&sound_pins>; > > > pinctrl-names = "default"; > > > @@ -261,6 +356,10 @@ > > > shared-pin; > > > }; > > > > > > +&tpu { > > > + status = "okay"; > > > +}; > > > + > > > &usbphy { > > > status = "okay"; > > > }; -- Regards, Laurent Pinchart