Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp698684ybe; Mon, 2 Sep 2019 07:52:17 -0700 (PDT) X-Google-Smtp-Source: APXvYqwoalnRj/m3xTEELQCmVI9XiMsQgbU3UBn8lfDhA9C6cN5483loHeJwxeS76gXlDKemLn59 X-Received: by 2002:a63:7a06:: with SMTP id v6mr25998884pgc.115.1567435936774; Mon, 02 Sep 2019 07:52:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567435936; cv=none; d=google.com; s=arc-20160816; b=TgF8TZ2Bq447FL/iPu1ZSMOlq03WdWue99oIoZIY2wq9e8RV5EEzc17WUYeKpUbLps FPwuTw8izIZc/xrCR5ImQ7U48hZz1OzzsdXpmWY684ASBpbFNBkmj3b1/b2Hu8A16qtZ yuZqqmIfdqVVdRHOyG6sOaDTIkZy0QzFjOoTF83CPxCCnsCpTGg7yrbgoECa5iCzOjKT dO59v76OvJV0lxTe2UZEWR7nviEvyDi9aagJ/Zs/Ott8n8PCwBj7CctgzN2+XZQjgesg 5UvmxWmQ/yrCY+fIGBSiZsUaxI/PajU9nG/1yUC2GTCFyEKjJ1157sNHprEm7Bj41qyv qtEA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=fq+KwHqGjjFVOlM7oAgab2dunEkZ72IKnDSJh7Jpi8E=; b=kYtzyMRHZ+3WnkUgiye2gW9jL6IiCH+VcyW42ozaKxxiWPx0f3W2q/+/xROWV3oOqO OvVnEW+WFy69Ru02hZ4wZqIaHnld8bS21I6+mCRZoP8zHU0LsGHStVParUpgHV9C/Be1 IOikZXRhsseUJAzcx+bP92fqoF/kr5r1gZM2goDYHz/FWzwj3ZyIQ5lm+cSPlxVcPXVs g2cAWlLAw9b1BQc+Yn2UtY+re1zLKB1Y24p4uMX1m78xhLUS6o8Ki088mrgMVHqwdp8n LNjViQ5XjoiABZvN3i+X66oyYdrn/v9ak/q4EIyKuCGxpzd9wuwU68Aygg+3iDT7FfSP JyUw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=IgOfV4zJ; 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=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f37si9146139pgb.262.2019.09.02.07.52.01; Mon, 02 Sep 2019 07:52:16 -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 header.i=@kernel.org header.s=default header.b=IgOfV4zJ; 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=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731691AbfIBOvA (ORCPT + 99 others); Mon, 2 Sep 2019 10:51:00 -0400 Received: from mail.kernel.org ([198.145.29.99]:52634 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726436AbfIBOvA (ORCPT ); Mon, 2 Sep 2019 10:51:00 -0400 Received: from mail-qk1-f171.google.com (mail-qk1-f171.google.com [209.85.222.171]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 2B09021897; Mon, 2 Sep 2019 14:50:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1567435859; bh=71pLWk8MdR2BOEmIJHJ2tEkCtIxRrDQMnHh6cQ1w+II=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=IgOfV4zJAO/gl7avGfHCcrRz75Z2bQ1g9P9ui20ZUBezasAoKLWDdlsReZA7CMq/w JKIIGcOPRcKEYYq/ICfGNHIZPsixxf1hEekeWvtMzGzUemhrvZ1K0XpBhzVE426Q+d X8H4Zfu+NGjbrqNPqJY8dlFGlZGlmLWjoqoH6xpc= Received: by mail-qk1-f171.google.com with SMTP id 4so12705744qki.6; Mon, 02 Sep 2019 07:50:59 -0700 (PDT) X-Gm-Message-State: APjAAAUc/mdsB9gLx+F8ByRjesmkL+KhXHXOa0nJUFpCxCdaWXBRyj8F kWMa0vFCHDpQiWqlOT8nY28RYo0//RznoO8S2g== X-Received: by 2002:a37:8905:: with SMTP id l5mr29175066qkd.152.1567435858286; Mon, 02 Sep 2019 07:50:58 -0700 (PDT) MIME-Version: 1.0 References: <20190827085302.5197-1-jiaxun.yang@flygoat.com> <20190827085302.5197-12-jiaxun.yang@flygoat.com> <20190827204105.7nyt4pi7lvxse5ij@pburton-laptop> In-Reply-To: <20190827204105.7nyt4pi7lvxse5ij@pburton-laptop> From: Rob Herring Date: Mon, 2 Sep 2019 15:50:47 +0100 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH 11/13] dt-bindings: mips: Add loongson cpus & boards To: Paul Burton Cc: Jiaxun Yang , "open list:MIPS" , Huacai Chen , Thomas Gleixner , Jason Cooper , Marc Zyngier , "linux-kernel@vger.kernel.org" , Mark Rutland , "devicetree@vger.kernel.org" Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Aug 27, 2019 at 9:41 PM Paul Burton wrote: > > Hi guys, > > On Tue, Aug 27, 2019 at 10:18:46PM +0800, Jiaxun Yang wrote: > > On 2019/8/27 =E4=B8=8B=E5=8D=888:45, Rob Herring wrote: > > > On Tue, Aug 27, 2019 at 3:55 AM Jiaxun Yang = wrote: > > > > diff --git a/Documentation/devicetree/bindings/mips/loongson/cpus.y= aml b/Documentation/devicetree/bindings/mips/loongson/cpus.yaml > > > > new file mode 100644 > > > > index 000000000000..410d896a0078 > > > > --- /dev/null > > > > +++ b/Documentation/devicetree/bindings/mips/loongson/cpus.yaml > > > > @@ -0,0 +1,38 @@ > > > > +# SPDX-License-Identifier: GPL-2.0 > > > Dual license for new bindings please: > > > > > > (GPL-2.0-only OR BSD-2-Clause) > > > > > > > +%YAML 1.2 > > > > +--- > > > > +$id: http://devicetree.org/schemas/mips/loongson/cpus.yaml# > > > > +$schema: http://devicetree.org/meta-schemas/core.yaml# > > > > + > > > > +title: Loongson CPUs bindings > > > > + > > > > +maintainers: > > > > + - Jiaxun Yang > > > > + > > > > +description: |+ > > > > + The device tree allows to describe the layout of CPUs in a syste= m through > > > > + the "cpus" node, which in turn contains a number of subnodes (ie= "cpu") > > > > + defining properties for every cpu. > > > > + > > > > + Bindings for CPU nodes follow the Devicetree Specification, avai= lable from: > > > > + > > > > + https://www.devicetree.org/specifications/ > > > > + > > > > +properties: > > > > + reg: > > > > + maxItems: 1 > > > > + description: | > > > > + Physical ID of a CPU, Can be read from CP0 EBase.CPUNum. > > > Is this definition specific to Loongson CPUs or all MIPS? > > > > Currently it's specific to Loongson CPU only, as other processors may u= sing > > different method to express CPU map. > > > > Different from Arm, MIPS family of processors seems less uniform and ha= ve > > their own designs. > > > > For this point, we'd better ask Paul's opinion. > > In general on MIPS we detect CPU properties at runtime from coprocessor > 0 registers & similar sources of information, so there's not really a > need to specify anything about the CPU in devicetree. We thought the same thing initially for Arm... Mostly what is in DT is not what is discoverable. Are clock speeds, power domains, low power states, etc. all discoverable? > For example here > you say yourself that the value for this property can be read from > EBase.CPUNum - so why specify it in DT? To map DT nodes to cores? Rob