Received: by 10.223.185.116 with SMTP id b49csp5421267wrg; Tue, 27 Feb 2018 13:03:40 -0800 (PST) X-Google-Smtp-Source: AH8x227zyCXbGxKKhX3S/PKJCZjCRkwH50ahrS5jBlkSU6ajTGvzAcrH1J1B6WfCMURnG/YyHKPP X-Received: by 2002:a17:902:7485:: with SMTP id h5-v6mr15794664pll.236.1519765420689; Tue, 27 Feb 2018 13:03:40 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519765420; cv=none; d=google.com; s=arc-20160816; b=z3M05oWG31ez/z8/DH2/kkRWoRzj4qRQiic3hGH77HcMl1ePXFd5X6SZOhXLcnMCOO ldLaUZ2ccH2WTFmMaGu6TjaMXV2FA2Ejy6nZVfSf7+gLruSR0h1tiSDV6gTczvo9BxOs HPAo0hpzAae3RWs7Y1zuBtW6Oe6V48G+xcF7pdS6UHYr8AVlG5fRjcn5QcV2ArbIjL7K fCX64HQ93uTlFkMqscvhMnVY+d9aDh29k/QV2PXCAKBhMN7wE50ue4ZZuxj0tZZOpaiv VjwHGR1WTUddfVzfDSAqgYJzeVYAS6XG7DZcbgMYJFVbjMcX/IzytJaKICjHIlwMoxPO eWsw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dkim-signature :arc-authentication-results; bh=2NVF8sQQIunL9bX6VUTg6os9cvIWt+n/ZM68gIEsooQ=; b=q9/7ySXUyGeAbu6jfx4FDkIDDBDuGZi0o3id5aqN3+o3YpOAx/7C4MxguCPm1pE3V8 mysiIVasBf1Mg06q5QcfekXMM+d/hpprYmreaoQ5eloPTsOZD8ReybcWIlN+qyvTZwVN 2N5PCVeMb+2ZVAVd13YHqmRFXFzT2N4eLNohtdc+KcIMnTiUEJ+mvOLnegssyaLF0kA7 nE2OppsoLWFHZHzMh+pWHkZ+oSi5oVtqvSXZ1His2O8SaNEXrjjrJMVx8HxmT8afL24N zTZoU0nVSQikm3rzGBGD98NdeNuZz5+V770om/L0P5f+6rOwQaCj8nIfi7R94RJVXxel AY5Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=r3GaQf81; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k198si13980pgc.545.2018.02.27.13.03.22; Tue, 27 Feb 2018 13:03:40 -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 header.i=@gmail.com header.s=20161025 header.b=r3GaQf81; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751926AbeB0VB7 (ORCPT + 99 others); Tue, 27 Feb 2018 16:01:59 -0500 Received: from mail-ua0-f196.google.com ([209.85.217.196]:38507 "EHLO mail-ua0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751518AbeB0VB6 (ORCPT ); Tue, 27 Feb 2018 16:01:58 -0500 Received: by mail-ua0-f196.google.com with SMTP id f5so152657uam.5 for ; Tue, 27 Feb 2018 13:01:58 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=2NVF8sQQIunL9bX6VUTg6os9cvIWt+n/ZM68gIEsooQ=; b=r3GaQf81waxUricW6Qsoa00PHTEDnpXvGXLAIoyzqllH7XoWzMlta1q2fbfKsvR9Dg 6uw80jCUS0WxQ4d8xYxsO8lle9TAfQAR0wvnZXk6bLRbaHErZfke0kPvcJ5xm2rRXQhW CWopLFaE0UQjlzr64CAcY/uu0eIlVuanXCT+bPqHg/qgHdorS8h2HU/AN/yYN+NuCdef moT8T+Noyp5DFZqmzdRgqI4YD0jr6m7eckDyHNUxIHt8/MJ5EK+QQQMitgygHw2PdKWM Q7fyNWFhS1p4AqAdoP91+YlK1TBNmXZkfwRvzUxW8FcOEduVHL6tS9iE9TywOqeFzLf+ qg/Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=2NVF8sQQIunL9bX6VUTg6os9cvIWt+n/ZM68gIEsooQ=; b=mOzTabLc138O1lMhlKcdE+gfxwD8WMV15FuNI6ML23n4r250/12L6KpOBEBjDTf1YA aTUZVEBJaFPu6T78xIkQxACkuScyJWW3JZRDWNTwIsThK+uNaNuNnTFgAdKFFItzZFOf DFWKBFmzz8rjvQxJ6XkhS3f5vFCb9xuKCAP5UcqCgh29bixHaWFYHRLx8jWrP/QkWD2E MCl3RBPlG610l1xWjNrMdexEAHAIsh3Q3AC1H1GIeBEPNcZ8XwXSiRt0ZFR4v/GQI5UJ hMDiE9G6495KgruIYleo6TN7kFopFPYH5xMZQeFNlyb+DVeHdkFRG52NIYw4U14BTD78 YRZw== X-Gm-Message-State: APf1xPCMbLQ8Q6hemzpq+UbgxLDTjYx3MdqgJA+o2uoXzgZrpx1G/iQ3 rZCbK9O9OyJAzZuuImL+gqjU4G2QSKFdae5npvFOWA== X-Received: by 10.176.11.21 with SMTP id b21mr11161537uak.106.1519765317519; Tue, 27 Feb 2018 13:01:57 -0800 (PST) MIME-Version: 1.0 Received: by 10.176.81.166 with HTTP; Tue, 27 Feb 2018 13:01:37 -0800 (PST) In-Reply-To: <20180116101240.5393-6-alexandre.belloni@free-electrons.com> References: <20180116101240.5393-1-alexandre.belloni@free-electrons.com> <20180116101240.5393-6-alexandre.belloni@free-electrons.com> From: Jonas Gorski Date: Tue, 27 Feb 2018 22:01:37 +0100 Message-ID: Subject: Re: [PATCH v3 5/8] MIPS: mscc: add ocelot dtsi To: Alexandre Belloni Cc: James Hogan , Ralf Baechle , MIPS Mailing List , linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. Regards Jonas