Received: by 10.223.185.116 with SMTP id b49csp6173063wrg; Wed, 28 Feb 2018 05:15:37 -0800 (PST) X-Google-Smtp-Source: AH8x225JagW8cjbhLI2L6eti55vZORFmPmDhWBN2atbnVLEIgOxfCCq1+Wumt5xEe03sLCHrgwKk X-Received: by 10.99.100.196 with SMTP id y187mr14363752pgb.362.1519823737860; Wed, 28 Feb 2018 05:15:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519823737; cv=none; d=google.com; s=arc-20160816; b=f4dzQMwOKtpMFLhZEpGuzLd18RFRwA9AtcNpHRywbd4kSB3EprecHPjQXY06QPOoAW hx8CVL3eYjvj0zpFo3WAmh2bZbS50jfdLDUZ/42ajJYBY/SK2LziWF/0qHWPwZS13NPj ChkmAPmU/1vYFpMVSzkFN9cz/yMsYOoouZAjhWFrjHhQDsZSam4slXMOUu8nByGY0Ftr m9iXFGA2CaHKsCr75NdjoeanpiVNBg3Hw4LqoorCue408eXZQ0K3oMByq1XctZ58J/AZ n14t6zMg2jBoHGZAewVAifb6o3QuChQ16B7XbAT+ugpSAWFFyLOrkcU2AZBBdJmKbWtj 248Q== 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:arc-authentication-results; bh=+Dx9NTGI8qfQOtnBh6TEvOkLJ0tkfnZFap7WK0np5lY=; b=TAZUzhTjq2ZRUz2EFCE57l9RHNZa2WZsU87Gl9z4gHtGnh4cqFg1Gk4fAwy92u9Fhr GPBbrstvUiU4w61EyrSeYNZTEwpBisLIOcnISSvIV0aLunwYI5c5CfM61fD8sywm32yK tdQiAz338KqIWMOi1a97iGo7JSO2fuRRXmRk58fUj9CydnFR5yClWLlphhIWrgoL95kK f/XNbSsdz02tRWQ1LOkw9tUlEE2eOiKo77aQ4Tau5v15LIpiwcbu2JYJL+/4+f6koYqG S3xKz9w0OzGqBS3nDBBJXwR5Cf+Y8P4HJk3mBJ80s6JHvmPVn0qkPWsY1SVsI0NtibAA kSeg== ARC-Authentication-Results: i=1; mx.google.com; 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 a61-v6si1260474pla.248.2018.02.28.05.15.23; Wed, 28 Feb 2018 05:15:37 -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; 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 S1752640AbeB1NOF (ORCPT + 99 others); Wed, 28 Feb 2018 08:14:05 -0500 Received: from mail.bootlin.com ([62.4.15.54]:60763 "EHLO mail.bootlin.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752478AbeB1NOE (ORCPT ); Wed, 28 Feb 2018 08:14:04 -0500 Received: by mail.bootlin.com (Postfix, from userid 110) id 94BDD207C1; Wed, 28 Feb 2018 14:14:01 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on mail.free-electrons.com X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=ALL_TRUSTED,SHORTCIRCUIT shortcircuit=ham autolearn=disabled version=3.4.0 Received: from localhost (unknown [37.71.171.242]) by mail.bootlin.com (Postfix) with ESMTPSA id 47CBF2036E; Wed, 28 Feb 2018 14:14:01 +0100 (CET) Date: Wed, 28 Feb 2018 14:14:02 +0100 From: Alexandre Belloni To: Jonas Gorski Cc: James Hogan , Ralf Baechle , MIPS Mailing List , linux-kernel@vger.kernel.org Subject: Re: [PATCH v3 5/8] MIPS: mscc: add ocelot dtsi Message-ID: <20180228131402.GL1479@piout.net> References: <20180116101240.5393-1-alexandre.belloni@free-electrons.com> <20180116101240.5393-6-alexandre.belloni@free-electrons.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.9.3 (2018-01-21) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 27/02/2018 at 22:01:37 +0100, Jonas Gorski wrote: > On 16 January 2018 at 11:12, Alexandre Belloni > wrote: > > Add a device tree include file for the Microsemi Ocelot SoC. > > > > Signed-off-by: Alexandre Belloni > > --- > > arch/mips/boot/dts/Makefile | 1 + > > arch/mips/boot/dts/mscc/Makefile | 4 ++ > > arch/mips/boot/dts/mscc/ocelot.dtsi | 110 ++++++++++++++++++++++++++++++++++++ > > 3 files changed, 115 insertions(+) > > create mode 100644 arch/mips/boot/dts/mscc/Makefile > > create mode 100644 arch/mips/boot/dts/mscc/ocelot.dtsi > > > > diff --git a/arch/mips/boot/dts/Makefile b/arch/mips/boot/dts/Makefile > > index e2c6f131c8eb..1e79cab8e269 100644 > > --- a/arch/mips/boot/dts/Makefile > > +++ b/arch/mips/boot/dts/Makefile > > @@ -4,6 +4,7 @@ subdir-y += cavium-octeon > > subdir-y += img > > subdir-y += ingenic > > subdir-y += lantiq > > +subdir-y += mscc > > subdir-y += mti > > subdir-y += netlogic > > subdir-y += ni > > diff --git a/arch/mips/boot/dts/mscc/Makefile b/arch/mips/boot/dts/mscc/Makefile > > new file mode 100644 > > index 000000000000..f0a155a74e02 > > --- /dev/null > > +++ b/arch/mips/boot/dts/mscc/Makefile > > @@ -0,0 +1,4 @@ > > +obj-y += $(patsubst %.dtb, %.dtb.o, $(dtb-y)) > > + > > +# Force kbuild to make empty built-in.o if necessary > > +obj- += dummy.o > > diff --git a/arch/mips/boot/dts/mscc/ocelot.dtsi b/arch/mips/boot/dts/mscc/ocelot.dtsi > > new file mode 100644 > > index 000000000000..b2f936e1fbb9 > > --- /dev/null > > +++ b/arch/mips/boot/dts/mscc/ocelot.dtsi > > @@ -0,0 +1,110 @@ > > +/* SPDX-License-Identifier: (GPL-2.0 OR MIT) */ > > +/* Copyright (c) 2017 Microsemi Corporation */ > > + > > +/ { > > + #address-cells = <1>; > > + #size-cells = <1>; > > + compatible = "mscc,ocelot"; > > + > > + cpus { > > + #address-cells = <1>; > > + #size-cells = <0>; > > + > > + mips-hpt-frequency = <250000000>; > > + > > + cpu@0 { > > + compatible = "mscc,ocelot"; > > You are using the same compatible string for the whole chip as well as > the cpu core of it, this doesn't seem right. > > Also is this really a custom cpu core? Your product brief suggests > this is a "normal" 24KEc MIPS CPU, at least for ocelot-10 (VSC7514). > So something like "mips,mips24KEc" might be more appropriate here. > Indeed, that is something I forgot to change before sending. > > Regards > Jonas -- Alexandre Belloni, Bootlin (formerly Free Electrons) Embedded Linux and Kernel engineering https://bootlin.com