Received: by 10.223.185.116 with SMTP id b49csp1972871wrg; Thu, 15 Feb 2018 04:42:07 -0800 (PST) X-Google-Smtp-Source: AH8x227rPdk+XjZ7RtbNXjxDWDfbf0NlMffRjuUg9dDNnQE349hFlKo2m9vJhKQ6jAv0egfjbE0I X-Received: by 2002:a17:902:7e0d:: with SMTP id b13-v6mr2419425plm.97.1518698526992; Thu, 15 Feb 2018 04:42:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518698526; cv=none; d=google.com; s=arc-20160816; b=DAurhJ+Xm8SGOTll9MrCWDACmkpZChWc0KtYJRyGIplKc7V3n1QsY4YuM60D4FD8Hn if1Z1oDMD2NoDjD8EwzqYM0KeEUIP8ziyb4x4ZLaaUewo8eRq4BopFzaK8+O92Up2BH2 ie7xsiPuJssL6x17Wyo0VAXPbXuLZAk1LZ+An3h7b6MobZb4d9nlYNj0tfD4r+I4uOL0 4emr3nGGT5Q635ZGnwZ27eKcMW50bRimgvnVE1CUZ39Udm2NUY9D/mxftdJcfUEoQEt2 V+NIrBPiMLOm0/EXu9ko9U0p0u2HJd9ozKhT3z/k0AtEVVde1aMy4KkfDLbk1eCHRuai 0ikg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:organization:from:references:cc:to:subject :dkim-signature:arc-authentication-results; bh=NLZ1WVvyVBsHWBDQ99EOX3n4kUkL9Bpz7szExsVzJ9o=; b=aavj6c4bpX11VxOrc9YET0qtmF19a1Ni8siNHFiWAV6q5AmQ4r9GhqvpXP75f9vH9P oZE1XkD+aaVlKC2GpybRUhZBtjzBRXjfTz0UTG2qgb4PDJpvAfKBT6sIgy4iXVWOaKNT l7fM0sCwj30uTLjuIztOY+GSWCH9tCween2BeNtAVK6fbPN6VCuu6NngavGc3GbtvQTO hbBocYfETINziSrEUA6jnR0olsKreE44rrkWcn6MrD3Nyq8gHaikKzGqnLnv6rGlcdp9 KUmy5MAQNa4YluN2kC0wHSt+YMiRHog6aY+nqVVjE3x3sN3dUe5dbq/vXP8JzTRT55pk 0X1Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass (test mode) header.i=@ideasonboard.com header.s=mail header.b=WFSWF6Zm; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k78si1151903pfk.95.2018.02.15.04.41.51; Thu, 15 Feb 2018 04:42:06 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass (test mode) header.i=@ideasonboard.com header.s=mail header.b=WFSWF6Zm; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S968012AbeBOMlL (ORCPT + 99 others); Thu, 15 Feb 2018 07:41:11 -0500 Received: from galahad.ideasonboard.com ([185.26.127.97]:48227 "EHLO galahad.ideasonboard.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S967920AbeBOMlJ (ORCPT ); Thu, 15 Feb 2018 07:41:09 -0500 Received: from [192.168.0.20] (cpc89242-aztw30-2-0-cust488.18-1.cable.virginm.net [86.31.129.233]) by galahad.ideasonboard.com (Postfix) with ESMTPSA id 304E6200BF; Thu, 15 Feb 2018 13:39:34 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1518698374; bh=0uh55luSFR/Y6trPYFINJfFEbXjpvurerl3WFS8dNOc=; h=Subject:To:Cc:References:From:Date:In-Reply-To:From; b=WFSWF6ZmNn4pss9V/YkPjIYah/S74KXvVvnW5KIUQyw3ktWd3wHpmiVvUx153jBO9 4vApISalIZlJ1uW2GHZQZoSMgPeZZTNo7zU75QURHZdYM3i08QAZMNhDXDjSu+ZuFA V/aEhQi4R2uaT7CQ+GsdMWQmm/Rm9EJCtd8u1zws= Subject: Re: [PATCH 5/8] arm64: dts: renesas: r8a77995: Add LVDS support To: Geert Uytterhoeven Cc: Linux-Renesas , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , linux-arm-kernel@lists.infradead.org, Kieran Bingham , Laurent Pinchart , Simon Horman , Kieran Bingham , Magnus Damm , Rob Herring , Mark Rutland , Catalin Marinas , Will Deacon , open list References: <1518683903-10681-1-git-send-email-kbingham@kernel.org> <1518683903-10681-6-git-send-email-kbingham@kernel.org> From: Kieran Bingham Organization: Ideas on Board Message-ID: Date: Thu, 15 Feb 2018 12:41:05 +0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.5.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-GB Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Geert, On 15/02/18 09:07, Geert Uytterhoeven wrote: > Hi Kieran, > > On Thu, Feb 15, 2018 at 9:38 AM, Kieran Bingham wrote: >> From: Kieran Bingham >> >> The r8a77995 D3 platform has 2 LVDS channels connected to the DU. >> >> Signed-off-by: Kieran Bingham > > I love your patch! > Yet something to improve... > >> --- a/arch/arm64/boot/dts/renesas/r8a77995.dtsi >> +++ b/arch/arm64/boot/dts/renesas/r8a77995.dtsi >> @@ -773,18 +773,70 @@ >> port@1 { >> reg = <1>; >> du_out_lvds0: endpoint { >> + remote-endpoint = <&du_out_lvds0>; >> }; >> }; >> >> port@2 { >> reg = <2>; >> du_out_lvds1: endpoint { >> + remote-endpoint = <&du_out_lvds1>; >> }; >> }; >> }; >> }; >> }; >> >> + lvds0: lvds@feb90000 { >> + compatible = "renesas,lvds-r8a77995"; >> + reg = <0 0xfeb90000 0 0x20>; >> + clocks = <&cpg CPG_MOD 727>; >> + status = "disabled"; > > Missing resets, power-domains Both lvds0, and lvds1 are actually the same 'module' (just different mappings within the same IP block). That means they will share clock, reset etc. Will specifying the resets cause one to affect the other unduly? like if one becomes un-used, will it power down? or is it refcounted, and will gracefully handle both device nodes from the same device? I'm already fairly sure clocks is fine for this - but it's just the reset's that worry me. If the reset module tries to reset lvds0 for some reason - would lvds1 get reset as a side effect ... Or perhaps that won't ever happen with an : power-domains = <&sysc R8A77995_PD_ALWAYS_ON>; resets = <&cpg 727>; Regards -- Kieran > > Gr{oetje,eeting}s, > > Geert > > -- > Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org > > In personal conversations with technical people, I call myself a hacker. But > when I'm talking to journalists I just say "programmer" or something like that. > -- Linus Torvalds >