Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp2392833pxk; Sun, 27 Sep 2020 06:05:04 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwx1nH+J5MIlmMSQbALsFXlm8ogz811lymnG78SCCk0zAEcknhIn9TSKbnCBflR/gDYvdj2 X-Received: by 2002:a50:9355:: with SMTP id n21mr10687914eda.237.1601211903911; Sun, 27 Sep 2020 06:05:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1601211903; cv=none; d=google.com; s=arc-20160816; b=0TamfVkvsavYZA1Zc2AT8QRI/oRVYCKeyJD4XLYRsa7HIWJVVHNT2fZk24WargvMNC dCnkAQ0fn7T5trowUE1GRuZKmRxX2i3nli52OI5c5MPqOP/qBeBb+W3wm8A4toJP7Vc7 Vz90n9UvCxkRnFxLQ+epDvdVfuotOzDRcsr6uzhULfl9Fg912uvRPow16aZus3S4W645 HVNX8e9TW8GGkRNkdZJQ8b5buRgdGpqhfIbwym7R0XBEOVwb9bUukTBJOaVYYZHUBYme W5IJWC3tEg6+4cpXfe9oQTYWR4rmq0Yz4JOk6ZDeUbJM4Jp4k34QMDzWTmMlbviH/2xx UBcw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=SAgGtci5pGecpxPxGPjkaSEL4OVE7rwFSl1wZa7p8ZY=; b=Z/jUC+6+h8n7HtbSBg238dj9Rx4ysMb5dAvcHfwEoaX4YpVR8ueD9P7MommLE/qpKl VtauBO1qlcik5/PfeauhxTEHiLuTvOSO5FJ3Dkx6qf5HZh90OXdDm6B7oaEXH9NO/4Hl qGYOxmtgLitBZcLBL8WZ30PGr1bQt8wpmislhJtRdRalIJzwGfGQIGIGfl9YlSmmgcjN AyURcz9i5pHz9DIrsB8GSaWDGNToikBh4bTKv2YuKaEk7y7MpCXhdizMYnhHprO5dz+c TVUN2vIbXAf3cn375SLqgJSFtAZrXPEhFWeSybFZZVqx+NYOnPn9tA/48pAgadggb/2a Lrfg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=ZM4F3xWD; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id b18si5385213eju.731.2020.09.27.06.04.40; Sun, 27 Sep 2020 06:05:03 -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 header.i=@gmail.com header.s=20161025 header.b=ZM4F3xWD; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726583AbgI0NCS (ORCPT + 99 others); Sun, 27 Sep 2020 09:02:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59296 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726358AbgI0NCS (ORCPT ); Sun, 27 Sep 2020 09:02:18 -0400 Received: from mail-yb1-xb43.google.com (mail-yb1-xb43.google.com [IPv6:2607:f8b0:4864:20::b43]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C629BC0613CE; Sun, 27 Sep 2020 06:02:17 -0700 (PDT) Received: by mail-yb1-xb43.google.com with SMTP id s19so5758266ybc.5; Sun, 27 Sep 2020 06:02:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=SAgGtci5pGecpxPxGPjkaSEL4OVE7rwFSl1wZa7p8ZY=; b=ZM4F3xWDK6Hw1/9ibUUgPDIAgYDxVN3QLZsTkuSfAokHTmaggKeC633Lxv3P17nn3a okJzI1AnjcabtKEquUqGeCMD9S+DN93vG6imDFp5bUccfj0dX9VG7I+f9YFIiav3QMBw IQAFr9I1oJU0QAn7mCskfQ++jD5vouovrj/e563oA1YGT3ptndyrVhNtUJ9JGfUnGsuX sNJSiG8tIJ/kZFxOIn7s8fdG/6AH1xdfr6y8k+2a831tTL8dcGfT3UkmK5cdYBA3I5hc 70wXMZj9nVM4pZVRb1yef5SV6GGTxp8YpfA+UdC9N5wymUKfCZKrEZ/MnRj39mcWzNVa CCEw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=SAgGtci5pGecpxPxGPjkaSEL4OVE7rwFSl1wZa7p8ZY=; b=ak4SpPiufcGs95/8f7mJub+dh/32RLjZlbw0C7izpH7Enw1V8Ct7/ZYrf946FRtz58 dPuS3E3O994zeMP/frHXtCUZ70gpUPySJdXOvF7iy1nL7ZyZQ6FnmkpXqAnhKoSv5r6Z 253SksR/7QRVGMp8dgBjUhUxSTADDYfQxjwMHLsMueawI0qj+6wzgrVy1yUQgJi5FL6n WkILZ1bkzL9oKuojvxBvbX5iX519sfeCtJSSXVwDqN7t9/Qwtm5wM4JaerWGP0NzJ1oX T6qHV2VFa020PCgk7+7JEBbG6EKILNgYK/3x89Gjs7bJY8/HAYdmi4d7D3dWAqD1n8AW TQvg== X-Gm-Message-State: AOAM530loovb2bjSausakrSoFJtn0aeW1JboVZWUve5xHm3UxOpDyS1m WKwTlEva4ezVID6IIwnnijXT3Y1cBorHfSu4rMY= X-Received: by 2002:a25:6849:: with SMTP id d70mr9684946ybc.395.1601211736814; Sun, 27 Sep 2020 06:02:16 -0700 (PDT) MIME-Version: 1.0 References: <20200813140041.5082-1-prabhakar.mahadev-lad.rj@bp.renesas.com> <20200824004816.GS6002@pendragon.ideasonboard.com> In-Reply-To: <20200824004816.GS6002@pendragon.ideasonboard.com> From: "Lad, Prabhakar" Date: Sun, 27 Sep 2020 14:01:50 +0100 Message-ID: Subject: Re: [PATCH v2] ARM: dts: r8a7742-iwg21d-q7: Add LCD support To: Laurent Pinchart Cc: Lad Prabhakar , Geert Uytterhoeven , Magnus Damm , Rob Herring , DRI Development , Linux-Renesas , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , LKML Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Laurent, On Mon, Aug 24, 2020 at 1:48 AM Laurent Pinchart wrote: > > Hi Prabhakar, > > Thank you for the patch. > > 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 ? Cheers, Prabhakar > > 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