Received: by 10.192.165.148 with SMTP id m20csp1770175imm; Thu, 26 Apr 2018 01:54:38 -0700 (PDT) X-Google-Smtp-Source: AIpwx4++EQwmWGqqU6HFFry3px/ZjiFxhlSsQ9edrlyuE3OhfnkCzum9H7ttZWTL6BZp50MNX9IJ X-Received: by 10.98.12.202 with SMTP id 71mr31222963pfm.61.1524732878008; Thu, 26 Apr 2018 01:54:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524732877; cv=none; d=google.com; s=arc-20160816; b=sZuXzs+gh2G1n6YfN+d/sk+yNGoRArnYnRaDUcumTsrXvPbMgeKY1ngzUQpvFeGK6v VjwMlq1JqefcUnySrPP116E4uQ9TKBQje1hDAoTWCuXIsHMZ+wEfg5t+itugC3fSt/aQ QnPy3TpkNo8h9UxPpiFLQ1pDYToAZQFus9h2rmOqJWq1cfcp3lccNcDPxyP2Lb0ASAoM hryyt6Hg0lBR3MM5s0GZDziU6kGj7QZcgeCocqP6T4Htps3IX0/rvAy7/je5/n9Op0KO DNfJza8i2FdOkMlwHmRcvrBijO38k31zZM/7ZhO4shHTjBWFG1avDc9ees8UVAFwXwEJ il+w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:organisation:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature:arc-authentication-results; bh=9zduQ2x7F2BqE2IvPIFqNzKZcdSS1xux5eIyUzrQYdI=; b=uKrl15zHTwrPg5rlVjGMCLERprIbUJsT7loZlPafsch4zs+iNcogtEBP1r1aUTVsjj 5Yf+sks/xF3wBuZTC07RZP66gGyxbcdeHCHbQ83I0Q4Kuv2T4Rdc7KNPfg2peiEBmOZc yxoh9ezX83ORmhGaG44PwxjbhigHDzghvPfXK3zJV8a4DjpN+NaPfw9jRSu012LDrqAd 8TZu/lEnXioxN54hajcro72l6QegdohbJSKpktb3rNNeVvUt/YWeGnKsd+58LyFGngor /HhXLjMwo/4nYCf553Fc5HB8uDlTf0Q4LIdSnUAfNMeAKP9qAz/9QsO5pZPmmlnWa6AL nz9A== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@verge.net.au header.s=mail header.b=L1kxpDMK; 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 f15si15203526pgr.138.2018.04.26.01.54.23; Thu, 26 Apr 2018 01:54:37 -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=fail header.i=@verge.net.au header.s=mail header.b=L1kxpDMK; 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 S1754293AbeDZIxI (ORCPT + 99 others); Thu, 26 Apr 2018 04:53:08 -0400 Received: from kirsty.vergenet.net ([202.4.237.240]:39254 "EHLO kirsty.vergenet.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752419AbeDZIxF (ORCPT ); Thu, 26 Apr 2018 04:53:05 -0400 Received: from reginn.horms.nl (82-95-191-104.ip.xs4all.nl [82.95.191.104]) by kirsty.vergenet.net (Postfix) with ESMTPA id 4345925B7D2; Thu, 26 Apr 2018 18:53:03 +1000 (AEST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=verge.net.au; s=mail; t=1524732783; bh=j2w3kggk4L9wDvWA7cRUbjpRmVp7IZChLQ/PDGJBi+Q=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=L1kxpDMKYhLs8v7TEiyaDZ3sHFaD/mjSi9B3Oq4Zfc7C7j5jlw0oyUoQ5z0nBUdzI atV0YrFEPnN77X2S91mGE+0aSmT3znov/04AySnttqylTnCeCqWg/Kr2sM9V3MBuJn 9nLtKmYdfy8Fc2q3KVI1P0rvF6tn3XmScqflrlnM= Received: by reginn.horms.nl (Postfix, from userid 7100) id 49213940749; Thu, 26 Apr 2018 10:53:00 +0200 (CEST) Date: Thu, 26 Apr 2018 10:53:00 +0200 From: Simon Horman To: jacopo mondi Cc: Jacopo Mondi , geert@linux-m68k.org, robh+dt@kernel.org, mark.rutland@arm.com, linux-renesas-soc@vger.kernel.org, linux-media@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 2/2] ARM: dts: r8a7740: Enable CEU0 Message-ID: <20180426085259.lqxr4emk75oz7vug@verge.net.au> References: <1524654920-18749-1-git-send-email-jacopo+renesas@jmondi.org> <1524654920-18749-3-git-send-email-jacopo+renesas@jmondi.org> <20180426061124.hvgl3ijf6ulrdkmn@verge.net.au> <20180426072609.GH17088@w540> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180426072609.GH17088@w540> Organisation: Horms Solutions BV User-Agent: NeoMutt/20170113 (1.7.2) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Apr 26, 2018 at 09:26:09AM +0200, jacopo mondi wrote: > Hi Simon, > > On Thu, Apr 26, 2018 at 08:11:30AM +0200, Simon Horman wrote: > > Thanks Jacopo, > > > > I'm very pleased to see this series. > > Credits to Geert that pointed out to me R-Mobile A1 comes with a CEU. > I should mention him in next iteration actually, sorry about that. > > > > > On Wed, Apr 25, 2018 at 01:15:20PM +0200, Jacopo Mondi wrote: > > > Enable CEU0 peripheral for Renesas R-Mobile A1 R8A7740. > > > > Given 'status = "disabled"' below I think you > > are describing but not enabling CEU0. Also in the subject. > > Right. > > > > > Should we also describe CEU1? > > Armadillo board file only describe CEU0. If there are R-Mobile A1 > board files where I can steal informations from I can do that. If > there's a public datasheet, that would be even better. I have the datasheet, so perhaps I can add CEU1 after you have added CEU0. > > > Signed-off-by: Jacopo Mondi > > > --- > > > arch/arm/boot/dts/r8a7740.dtsi | 10 ++++++++++ > > > 1 file changed, 10 insertions(+) > > > > > > diff --git a/arch/arm/boot/dts/r8a7740.dtsi b/arch/arm/boot/dts/r8a7740.dtsi > > > index afd3bc5..05ec41e 100644 > > > --- a/arch/arm/boot/dts/r8a7740.dtsi > > > +++ b/arch/arm/boot/dts/r8a7740.dtsi > > > @@ -67,6 +67,16 @@ > > > power-domains = <&pd_d4>; > > > }; > > > > > > + ceu0: ceu@fe910000 { > > > + reg = <0xfe910000 0x100>; > > > > Should the size of the range be 0x3000 ? > > That would seem to match my reading of table 32.3 > > and also be consistent with r7s72100.dtsi. > > I got this from > > static struct resource ceu0_resources[] = { > [0] = { > .name = "CEU", > .start = 0xfe910000, > .end = 0xfe91009f, > .flags = IORESOURCE_MEM, > }, > but I also noticed the r7s72100 one was bigger. > I'm fine enlarging this, if that's what the manual reports too. I think that would be best. > > > + compatible = "renesas,r8a7740-ceu"; > > > + interrupts = ; > > > + clocks = <&mstp1_clks R8A7740_CLK_CEU20>; > > > + clock-names = "ceu20"; > > > + power-domains = <&pd_a4mp>; > > > > My reading of table 1.7 is that the power domain should be A4R (&pd_a4r). > > Ah yes, my bad. > > The long time goal would be describe the camera module (mt9t112) which > is installed on armadillo. Unfortunately that would probably require > some more work on the CEU side. Thanks, understood.