Received: by 10.223.185.116 with SMTP id b49csp2273655wrg; Thu, 15 Feb 2018 09:06:17 -0800 (PST) X-Google-Smtp-Source: AH8x227pFHP6Xqp0uvQSjip7G+NL45YV+xFBU17LEt5wriunBm3sEwKfbm7f36hELGORrr7fl8GB X-Received: by 10.98.23.136 with SMTP id 130mr3225533pfx.43.1518714376993; Thu, 15 Feb 2018 09:06:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518714376; cv=none; d=google.com; s=arc-20160816; b=Jmx6qRzwry/N4qUjQGkrWZ7Se1k42k89wX0TbTFopxwTjjng8uE2D21GlvE3qv2yhh AnFR3ujpfDWFO9QkUNRZE9Q9xA9uR5a9H9ehG4YxL8wdu4SmWD3AOghIxIXP3YCBJDGU GPc7dBtxUlxcmQZqnbYD6zVTpM94pwkTvuLfgNpKeMKiNegMBWUYi7mvGhkaKawCVw3r UDEgfPOgaotZQl+yg9CnRwdc0+i5Sa2oTEsqkTcCqHlqZGp+/uDbFCd0W2n1ovmstfNJ H7EeTkLnjMCIR5hHDpYsaTaCRo2gKBFZrXbyvUg4Xbxzt3J2cPqhAadHOV/fV9MNSkmT yCSg== 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=1juif2ShiZ1lAH+AmBJD96AfG2L2CJcpBR58C1/5iqk=; b=WoeKQ7BRgiCZNg2wuA1jJvYJbjdm1bgKvngqN/LNckiO9QIOXtWUpU2pxq9uCe+hcG ETb0jW212rwc6OghC4Lc5uMUB4tWd7bye4PwhuLDbFBjWMadfWdrOXRSL5ueTmnuPB+3 enEM3L6h1jY5MCYWJ2LjTTKUbOThGhZY5xXZd+vb2VDsC0W80lTCzIv5eUfa5Isd56pB Sg+WFW6JhIsdO0TiW9XgbJ3UqxMZOfk1Ex2SOsMLrT/b/EHlqgFiNIvDB7/G1Gw8SPRM AzRB0QFHKr6JTGnHwdizWupDnYbRDbsSZxnhlHNJ+P84e01D3AV9+zf6TtZlnoGe4L7P x/hw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@verge.net.au header.s=mail header.b=k1htyany; 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 t1si1506589pgv.668.2018.02.15.09.06.00; Thu, 15 Feb 2018 09:06:16 -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=fail header.i=@verge.net.au header.s=mail header.b=k1htyany; 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 S1426893AbeBORDa (ORCPT + 99 others); Thu, 15 Feb 2018 12:03:30 -0500 Received: from kirsty.vergenet.net ([202.4.237.240]:50558 "EHLO kirsty.vergenet.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1423381AbeBOPit (ORCPT ); Thu, 15 Feb 2018 10:38:49 -0500 Received: from reginn.horms.nl (52D9BC73.cm-11-1c.dynamic.ziggo.nl [82.217.188.115]) by kirsty.vergenet.net (Postfix) with ESMTPA id A64EB25B830; Fri, 16 Feb 2018 02:38:46 +1100 (AEDT) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=verge.net.au; s=mail; t=1518709127; bh=K6FpiYX+kWymEjErnrhKqssI8D9fQPXTn169/4pOe4U=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=k1htyanywNL82tEP7XC/+p/hDsXQuYlK3Gu7hJ9ca2Aafse/okyCl4ZvsSxnLOymZ vZW7ygJ2huupY2PP209IkIlPbMQhbWp8lzFKSAjLpg0QxoNHNwaPwEqgD5/n4uKOTF 9OKFUMnoD4PNkLuxANQO6CcLFMqF+8wdkI40Tr7M= Received: by reginn.horms.nl (Postfix, from userid 7100) id 5ACE19403FF; Thu, 15 Feb 2018 16:38:44 +0100 (CET) Date: Thu, 15 Feb 2018 16:38:44 +0100 From: Simon Horman To: Geert Uytterhoeven Cc: Jacopo Mondi , Magnus Damm , Rob Herring , Mark Rutland , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , linux-arm-kernel@lists.infradead.org, Linux-Renesas , Linux Kernel Mailing List Subject: Re: [PATCH 05/15] ARM64: dts: Add R-Car Salvator-x M3-N support Message-ID: <20180215153843.b33svmvuhofstw4e@verge.net.au> References: <1518515162-23663-1-git-send-email-jacopo+renesas@jmondi.org> <1518515162-23663-6-git-send-email-jacopo+renesas@jmondi.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: 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 Wed, Feb 14, 2018 at 02:58:34PM +0100, Geert Uytterhoeven wrote: > Hi Jacopo, > > On Tue, Feb 13, 2018 at 10:45 AM, Jacopo Mondi > wrote: > > Add initial support for R-Car M3-N Salvator-x and r8a77965 SoC in > > device tree with cpg-mssr, reset and clock nodes. > > > > Add place-holder device nodes for all nodes referred by > > "salvator-common.dtsi" > > > > Signed-off-by: Jacopo Mondi > > Thanks for your patch! > > Looks mostly fine to me. > > P.S. scripts/dtc/dtx_diff arch/arm64/boot/dts/renesas/r8a7796{,5}-salvator-x.dtb > is your friend. > > > arch/arm64/Kconfig.platforms | 6 + > > arch/arm64/boot/dts/renesas/Makefile | 1 + > > .../arm64/boot/dts/renesas/r8a77965-salvator-x.dts | 30 ++ > > arch/arm64/boot/dts/renesas/r8a77965.dtsi | 495 +++++++++++++++++++++ > > 4 files changed, 532 insertions(+) > > create mode 100644 arch/arm64/boot/dts/renesas/r8a77965-salvator-x.dts > > create mode 100644 arch/arm64/boot/dts/renesas/r8a77965.dtsi > > The maintainer will probably ask you to split this in three parts: > - ARCH_R8A77965 > - r8a77965.dtsi > - r8a77965-salvator-x.dts Yes, I would like to ask for that. > > --- /dev/null > > +++ b/arch/arm64/boot/dts/renesas/r8a77965-salvator-x.dts > > @@ -0,0 +1,30 @@ > > +// SPDX-License-Identifier: GPL-2. > > +/* > > + * Device Tree Source for the Salvator-X board > > with R-Car M3-N > > > + * > > + * Copyright (C) 2018 Jacopo Mondi > > + */ > > + > > +/dts-v1/; > > +#include "r8a77965.dtsi" > > +#include "salvator-x.dtsi" > > + > > +/ { > > + model = "Renesas Salvator-X board based on r8a77965"; > > + compatible = "renesas,salvator-x", "renesas,r8a77965"; > > + > > + aliases { > > + serial0 = &scif2; > > + }; > > + > > + chosen { > > + bootargs = "ignore_loglevel rw root=/dev/nfs ip=dhcp"; > > + stdout-path = "serial0:115200n8"; > > + }; > > Both aliases and chosen are already defined in salvator-common.dtsi, > included via salvator-x.dtsi. > > > --- /dev/null > > +++ b/arch/arm64/boot/dts/renesas/r8a77965.dtsi > > @@ -0,0 +1,495 @@ > > +// SPDX-License-Identifier: GPL-2. > > +/* > > + * Device Tree Source for the r8a77965 SoC > > + * > > + * Copyright (C) 2018 Jacopo Mondi > > + * > > + * Based on r8a7796.dtsi > > + * Copyright (C) 2016 Renesas Electronics Corp. > > + */ > > + > > +#include > > +#include > > +#include > > + > > +#define CPG_AUDIO_CLK_I R8A77965_CLK_S0D4 > > + > > +/ { > > > + soc { > > + compatible = "simple-bus"; > > + interrupt-parent = <&gic>; > > + #address-cells = <2>; > > + #size-cells = <2>; > > + ranges; > > > + timer { > > + compatible = "arm,armv8-timer"; > > + interrupts = > + (GIC_CPU_MASK_SIMPLE(2) | IRQ_TYPE_LEVEL_LOW)>, > > + > + (GIC_CPU_MASK_SIMPLE(2) | IRQ_TYPE_LEVEL_LOW)>, > > + > + (GIC_CPU_MASK_SIMPLE(2) | IRQ_TYPE_LEVEL_LOW)>, > > + > + (GIC_CPU_MASK_SIMPLE(2) | IRQ_TYPE_LEVEL_LOW)>; > > + }; > > Please move the timer out of the soc node, as it does't have a unit address > and a reg property. > > > + pmu_a57 { > > + compatible = "arm,cortex-a57-pmu"; > > + interrupts = , > > + ; > > + interrupt-affinity = <&a57_0>, > > + <&a57_1>; > > + }; > > Please move the pmu out of the soc node, as it does't have a unit address > and a reg property. Please refer to one of the upstream Gen3 dtsi files for examples of the above.