Received: by 2002:a5b:505:0:0:0:0:0 with SMTP id o5csp6395403ybp; Tue, 15 Oct 2019 14:23:36 -0700 (PDT) X-Google-Smtp-Source: APXvYqzALk9wLBeibNjpTRqXpm4JLthBYr+YWouVHJOqqhHr8GMdfB0F4uqwfC1k36EBJDdEgJq4 X-Received: by 2002:a17:906:6bcd:: with SMTP id t13mr36287582ejs.133.1571174616638; Tue, 15 Oct 2019 14:23:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571174616; cv=none; d=google.com; s=arc-20160816; b=AsT47zo0hLoqx9FPzXp0T8GvLwITxKGeDX84C7kNVVg3hQYtZaTa0zaclGLiOKxehk //FYTleXYVyOA1dP1MhZmA8hN8eXb4sOqsSwjrU8xpDKs1m97wSsu+/x60V/blLJcN3G yZlhqGhzXGXODgHGjSjntmUNZhuJjxyXah8v0LfuxNUPG2bceffgqDpfK5n76zcwMEkq PSxPCaLnfLUQILngMKORJAjklCDgmSNA6lIkL3UC7WNiQbfiZH7uiwATIaXhVhMOIdFJ luGC4DeLCedzJQ5A+Ls7/2W0bzlC1//ngy8gtam7n3QGB/mYoaWjMFHiH3o+gwilNdNd wWmw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=bUFnMAhLdZo66UxH4Nz/QTxopTRB08DaHE+CGH72qTI=; b=Aes74MvOETbnmJ4porE1Cb8HWYhd4fyzSVYI9Peuu2DXm6q3Tcbr3viLRvwq1b0mWA rgTjVY1Kfd6vKQIUfTys4J0039p/APv/hAWVsaCxLUJQG4066Rk1zlcrIM/8ci1r9jIf 2GxuwjjG1cN3vvXb6YkB3ooeoQaKA1BoZAyifYKts5aAxySq0e+uEUM6Tb8QpdQmPUiU YDO/pcS4CmItCElIghh1pHR1xqJrfcnlGy/cv0JJbwU8eeyBe8l+XSAnyBXmBh2U8q09 yYLmV3GrrxgC6XLSGE8FmM99Q9HbaD8W7xx1DQ7AuqpCfcTZQzAvfy3ZbfdirQegDi5C NFYQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass (test mode) header.i=@ideasonboard.com header.s=mail header.b=eXlx+rz4; 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 z42si16722441edz.23.2019.10.15.14.23.12; Tue, 15 Oct 2019 14:23:36 -0700 (PDT) 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=eXlx+rz4; 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 S2389033AbfJOSGN (ORCPT + 99 others); Tue, 15 Oct 2019 14:06:13 -0400 Received: from perceval.ideasonboard.com ([213.167.242.64]:57592 "EHLO perceval.ideasonboard.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725820AbfJOSGM (ORCPT ); Tue, 15 Oct 2019 14:06:12 -0400 Received: from pendragon.ideasonboard.com (81-175-216-236.bb.dnainternet.fi [81.175.216.236]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id 63B93324; Tue, 15 Oct 2019 20:06:08 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1571162768; bh=gGZ92IHX4aErxdxSECBpzax+mh5hsPtQqSv5CKMIOcw=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=eXlx+rz4JfFCNkXO/MpQUDisyDAnlsYX4gM3rx5ozAyNJNmhB+JupPV/wfmXsVEWP jE/RuY6ozqxR+qiDsAi9vtvEzVADlTCYPE0N7m4C2wpXZDBYZ3QnkHhQIwiUHLP6rf gryuhbu+fleqi8xI2VRp3+YtGhYfe0YxhmVs0QmU= Date: Tue, 15 Oct 2019 21:06:05 +0300 From: Laurent Pinchart To: Kieran Bingham Cc: Jacopo Mondi , geert@linux-m68k.org, horms@verge.net.au, uli+renesas@fpond.eu, VenkataRajesh.Kalakodima@in.bosch.com, airlied@linux.ie, daniel@ffwll.ch, koji.matsuoka.xm@renesas.com, muroya@ksk.co.jp, Harsha.ManjulaMallikarjun@in.bosch.com, ezequiel@collabora.com, seanpaul@chromium.org, linux-renesas-soc@vger.kernel.org, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, robh+dt@kernel.org, mark.rutland@arm.com Subject: Re: [PATCH v5 7/8] arm64: dts: renesas: Add CMM units to Gen3 SoCs Message-ID: <20191015180605.GO4875@pendragon.ideasonboard.com> References: <20191015104621.62514-1-jacopo+renesas@jmondi.org> <20191015104621.62514-8-jacopo+renesas@jmondi.org> <84f7b344-6a3a-edcc-3f3d-588825516bc2@ideasonboard.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <84f7b344-6a3a-edcc-3f3d-588825516bc2@ideasonboard.com> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Jacopo and Kieran, On Tue, Oct 15, 2019 at 01:52:29PM +0100, Kieran Bingham wrote: > On 15/10/2019 11:46, Jacopo Mondi wrote: > > Add CMM units to Renesas R-Car Gen3 SoC that support it, and reference them > > from the Display Unit they are connected to. > > > > Sort the 'vsps', 'renesas,cmm' and 'status' properties in the DU unit > > consistently in all the involved DTS. > > Going through this, I think I'm happy, except for a 'future' gotcha > detailed below. > > The H3-N is possibly going to cause some issues (not > supporting/connecting/using the CMM2) ... but as we don't really have > that yet ... I'm going to say "la la la " ... and put this here: > > Reviewed-by: Kieran Bingham > > > Signed-off-by: Jacopo Mondi > > --- > > arch/arm64/boot/dts/renesas/r8a7795.dtsi | 39 +++++++++++++++++++++++ > > arch/arm64/boot/dts/renesas/r8a7796.dtsi | 31 +++++++++++++++++- > > arch/arm64/boot/dts/renesas/r8a77965.dtsi | 31 +++++++++++++++++- > > arch/arm64/boot/dts/renesas/r8a77990.dtsi | 21 ++++++++++++ > > arch/arm64/boot/dts/renesas/r8a77995.dtsi | 21 ++++++++++++ > > 5 files changed, 141 insertions(+), 2 deletions(-) > > > > diff --git a/arch/arm64/boot/dts/renesas/r8a7795.dtsi b/arch/arm64/boot/dts/renesas/r8a7795.dtsi > > index 6675462f7585..e16757af8c27 100644 > > --- a/arch/arm64/boot/dts/renesas/r8a7795.dtsi > > +++ b/arch/arm64/boot/dts/renesas/r8a7795.dtsi > > @@ -2939,6 +2939,42 @@ > > iommus = <&ipmmu_vi1 10>; > > }; > > > > + cmm0: cmm@fea40000 { > > + compatible = "renesas,r8a7795-cmm", > > + "renesas,rcar-gen3-cmm"; > > + reg = <0 0xfea40000 0 0x1000>; > > + power-domains = <&sysc R8A7795_PD_ALWAYS_ON>; > > + clocks = <&cpg CPG_MOD 711>; > > + resets = <&cpg 711>; > > + }; > > + > > + cmm1: cmm@fea50000 { > > + compatible = "renesas,r8a7795-cmm", > > + "renesas,rcar-gen3-cmm"; > > + reg = <0 0xfea50000 0 0x1000>; > > + power-domains = <&sysc R8A7795_PD_ALWAYS_ON>; > > + clocks = <&cpg CPG_MOD 710>; > > + resets = <&cpg 710>; > > + }; > > + > > + cmm2: cmm@fea60000 { > > + compatible = "renesas,r8a7795-cmm", > > + "renesas,rcar-gen3-cmm"; > > + reg = <0 0xfea60000 0 0x1000>; > > + power-domains = <&sysc R8A7795_PD_ALWAYS_ON>; > > + clocks = <&cpg CPG_MOD 709>; > > + resets = <&cpg 709>; > > + }; > > Yeouch. CMM2 is not available on the H3-N - but as far as I can tell the > H3-N is an R8A7795 ... > > Geert, How will we differentiate this, or perhaps it just won't matter. > > The key part here will be handling it in the DU perhaps anyway. I think we'll figure it out when we'll have more information about the H3-N, and in particular if DU2 will be present (but not usable) or completely absent. In the latter case we'll need a separate .dtsi. Reviewed-by: Laurent Pinchart > > + > > + cmm3: cmm@fea70000 { > > + compatible = "renesas,r8a7795-cmm", > > + "renesas,rcar-gen3-cmm"; > > + reg = <0 0xfea70000 0 0x1000>; > > + power-domains = <&sysc R8A7795_PD_ALWAYS_ON>; > > + clocks = <&cpg CPG_MOD 708>; > > + resets = <&cpg 708>; > > + }; > > + > > csi20: csi2@fea80000 { > > compatible = "renesas,r8a7795-csi2"; > > reg = <0 0xfea80000 0 0x10000>; > > @@ -3142,7 +3178,10 @@ > > <&cpg CPG_MOD 722>, > > <&cpg CPG_MOD 721>; > > clock-names = "du.0", "du.1", "du.2", "du.3"; > > + > > + renesas,cmms = <&cmm0>, <&cmm1>, <&cmm2>, <&cmm3>; > > vsps = <&vspd0 0>, <&vspd1 0>, <&vspd2 0>, <&vspd0 1>; > > + > > status = "disabled"; > > > > ports { > > diff --git a/arch/arm64/boot/dts/renesas/r8a7796.dtsi b/arch/arm64/boot/dts/renesas/r8a7796.dtsi > > index 822c96601d3c..597c47f3f994 100644 > > --- a/arch/arm64/boot/dts/renesas/r8a7796.dtsi > > +++ b/arch/arm64/boot/dts/renesas/r8a7796.dtsi > > @@ -2641,6 +2641,33 @@ > > renesas,fcp = <&fcpvi0>; > > }; > > > > + cmm0: cmm@fea40000 { > > + compatible = "renesas,r8a7796-cmm", > > + "renesas,rcar-gen3-cmm"; > > + reg = <0 0xfea40000 0 0x1000>; > > + power-domains = <&sysc R8A7796_PD_ALWAYS_ON>; > > + clocks = <&cpg CPG_MOD 711>; > > + resets = <&cpg 711>; > > + }; > > + > > + cmm1: cmm@fea50000 { > > + compatible = "renesas,r8a7796-cmm", > > + "renesas,rcar-gen3-cmm"; > > + reg = <0 0xfea50000 0 0x1000>; > > + power-domains = <&sysc R8A7796_PD_ALWAYS_ON>; > > + clocks = <&cpg CPG_MOD 710>; > > + resets = <&cpg 710>; > > + }; > > + > > + cmm2: cmm@fea60000 { > > + compatible = "renesas,r8a7796-cmm", > > + "renesas,rcar-gen3-cmm"; > > + reg = <0 0xfea60000 0 0x1000>; > > + power-domains = <&sysc R8A7796_PD_ALWAYS_ON>; > > + clocks = <&cpg CPG_MOD 709>; > > + resets = <&cpg 709>; > > + }; > > + > > csi20: csi2@fea80000 { > > compatible = "renesas,r8a7796-csi2"; > > reg = <0 0xfea80000 0 0x10000>; > > @@ -2791,10 +2818,12 @@ > > <&cpg CPG_MOD 723>, > > <&cpg CPG_MOD 722>; > > clock-names = "du.0", "du.1", "du.2"; > > - status = "disabled"; > > > > + renesas,cmms = <&cmm0>, <&cmm1>, <&cmm2>; > > vsps = <&vspd0 0>, <&vspd1 0>, <&vspd2 0>; > > > > + status = "disabled"; > > + > > ports { > > #address-cells = <1>; > > #size-cells = <0>; > > diff --git a/arch/arm64/boot/dts/renesas/r8a77965.dtsi b/arch/arm64/boot/dts/renesas/r8a77965.dtsi > > index 4ae163220f60..c3da8d26ccba 100644 > > --- a/arch/arm64/boot/dts/renesas/r8a77965.dtsi > > +++ b/arch/arm64/boot/dts/renesas/r8a77965.dtsi > > @@ -2320,6 +2320,33 @@ > > resets = <&cpg 611>; > > }; > > > > + cmm0: cmm@fea40000 { > > + compatible = "renesas,r8a77965-cmm", > > + "renesas,rcar-gen3-cmm"; > > + reg = <0 0xfea40000 0 0x1000>; > > + power-domains = <&sysc R8A77965_PD_ALWAYS_ON>; > > + clocks = <&cpg CPG_MOD 711>; > > + resets = <&cpg 711>; > > + }; > > + > > + cmm1: cmm@fea50000 { > > + compatible = "renesas,r8a77965-cmm", > > + "renesas,rcar-gen3-cmm"; > > + reg = <0 0xfea50000 0 0x1000>; > > + power-domains = <&sysc R8A77965_PD_ALWAYS_ON>; > > + clocks = <&cpg CPG_MOD 710>; > > + resets = <&cpg 710>; > > + }; > > + > > + cmm3: cmm@fea70000 { > > + compatible = "renesas,r8a77965-cmm", > > + "renesas,rcar-gen3-cmm"; > > + reg = <0 0xfea70000 0 0x1000>; > > + power-domains = <&sysc R8A77965_PD_ALWAYS_ON>; > > + clocks = <&cpg CPG_MOD 708>; > > + resets = <&cpg 708>; > > + }; > > + > > csi20: csi2@fea80000 { > > compatible = "renesas,r8a77965-csi2"; > > reg = <0 0xfea80000 0 0x10000>; > > @@ -2467,10 +2494,12 @@ > > <&cpg CPG_MOD 723>, > > <&cpg CPG_MOD 721>; > > clock-names = "du.0", "du.1", "du.3"; > > - status = "disabled"; > > > > + renesas,cmms = <&cmm0>, <&cmm1>, <&cmm3>; > > vsps = <&vspd0 0>, <&vspd1 0>, <&vspd0 1>; > > > > + status = "disabled"; > > + > > ports { > > #address-cells = <1>; > > #size-cells = <0>; > > diff --git a/arch/arm64/boot/dts/renesas/r8a77990.dtsi b/arch/arm64/boot/dts/renesas/r8a77990.dtsi > > index 455954c3d98e..bab9b7f96c72 100644 > > --- a/arch/arm64/boot/dts/renesas/r8a77990.dtsi > > +++ b/arch/arm64/boot/dts/renesas/r8a77990.dtsi > > @@ -1727,6 +1727,24 @@ > > iommus = <&ipmmu_vi0 9>; > > }; > > > > + cmm0: cmm@fea40000 { > > + compatible = "renesas,r8a77990-cmm", > > + "renesas,rcar-gen3-cmm"; > > + reg = <0 0xfea40000 0 0x1000>; > > + power-domains = <&sysc R8A77990_PD_ALWAYS_ON>; > > + clocks = <&cpg CPG_MOD 711>; > > + resets = <&cpg 711>; > > + }; > > + > > + cmm1: cmm@fea50000 { > > + compatible = "renesas,r8a77990-cmm", > > + "renesas,rcar-gen3-cmm"; > > + reg = <0 0xfea50000 0 0x1000>; > > + power-domains = <&sysc R8A77990_PD_ALWAYS_ON>; > > + clocks = <&cpg CPG_MOD 710>; > > + resets = <&cpg 710>; > > + }; > > + > > csi40: csi2@feaa0000 { > > compatible = "renesas,r8a77990-csi2"; > > reg = <0 0xfeaa0000 0 0x10000>; > > @@ -1768,7 +1786,10 @@ > > clock-names = "du.0", "du.1"; > > resets = <&cpg 724>; > > reset-names = "du.0"; > > + > > + renesas,cmms = <&cmm0>, <&cmm1>; > > vsps = <&vspd0 0>, <&vspd1 0>; > > + > > status = "disabled"; > > > > ports { > > diff --git a/arch/arm64/boot/dts/renesas/r8a77995.dtsi b/arch/arm64/boot/dts/renesas/r8a77995.dtsi > > index 183fef86cf7c..871c70cc2d2e 100644 > > --- a/arch/arm64/boot/dts/renesas/r8a77995.dtsi > > +++ b/arch/arm64/boot/dts/renesas/r8a77995.dtsi > > @@ -993,6 +993,24 @@ > > iommus = <&ipmmu_vi0 9>; > > }; > > > > + cmm0: cmm@fea40000 { > > + compatible = "renesas,r8a77995-cmm", > > + "renesas,rcar-gen3-cmm"; > > + reg = <0 0xfea40000 0 0x1000>; > > + power-domains = <&sysc R8A77995_PD_ALWAYS_ON>; > > + clocks = <&cpg CPG_MOD 711>; > > + resets = <&cpg 711>; > > + }; > > + > > + cmm1: cmm@fea50000 { > > + compatible = "renesas,r8a77995-cmm", > > + "renesas,rcar-gen3-cmm"; > > + reg = <0 0xfea50000 0 0x1000>; > > + power-domains = <&sysc R8A77995_PD_ALWAYS_ON>; > > + clocks = <&cpg CPG_MOD 710>; > > + resets = <&cpg 710>; > > + }; > > + > > du: display@feb00000 { > > compatible = "renesas,du-r8a77995"; > > reg = <0 0xfeb00000 0 0x40000>; > > @@ -1003,7 +1021,10 @@ > > clock-names = "du.0", "du.1"; > > resets = <&cpg 724>; > > reset-names = "du.0"; > > + > > + renesas,cmms = <&cmm0>, <&cmm1>; > > vsps = <&vspd0 0>, <&vspd1 0>; > > + > > status = "disabled"; > > > > ports { -- Regards, Laurent Pinchart