Received: by 10.223.176.46 with SMTP id f43csp1146589wra; Fri, 19 Jan 2018 07:31:46 -0800 (PST) X-Google-Smtp-Source: ACJfBovXF1KgXrW01pILgDh9C/JnVPIPh5qRkRYXMF2+/7h6xoFyyljKbx/EgyVVvnwX3//U9HZZ X-Received: by 2002:a17:902:624:: with SMTP id 33-v6mr1761968plg.327.1516375906461; Fri, 19 Jan 2018 07:31:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1516375906; cv=none; d=google.com; s=arc-20160816; b=uvwie2p43cs/fvLLUkF/psIZFfF9OZwVUekfVsYFWX4+YbPckHHIuhtv2R183gxL3q Gmh3BcljZtcleNlWjDS2CTR2cKS0d7VmdEypTjLq1h/W9u+3JsNd/YDAFrEDJLwmBzNv LNOfRcz336KWtIeD8KNFEmoIlD3Pe1JT0NX1SjrgO8XhMDBUM11lvm/+gshut0FPp1aP X4+uTnXYrkhm9tRGw42joSTvQYwgKACfKntbuKOmvbPgIe+asBvkRfo7VtWt9IWoENlY 3X2eANXHywpBrTecSLbiOGXFABZ/ik56QIsib0h4prOL5urVdJVh13ueBqn6lE0SGMN+ 6YvQ== 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=fammRTzu1g+TZg/XIPDzAkih946LDsf0sypJtvcO+MQ=; b=PdEdB21hOdLKBaoZoQ3PlFSTnaqP84aSsKoMVRSggi+tMqqFWdcejNLHJ70psGnnX3 JMa7RQ8oVTdBZGzel/s1v8FjHf6zcreFcXMvjwDRcDZaYwNVpFMHj9MfOQl/NuNM8OWK h+P17uQQCeD7XCjOs+wXgaWQM0cvbxACMFWiFh+oKqXoZYbo9fVkyA14PnnTPbni0JNl EpGaWFoaA8/1jK5eYPscGpEu3L9YZ3zZG3u6ACeMJye24/gFMACpC3nwzRnQFsZB8eRl Et9JLGmCbA4F0qIhsAvMPaMPjusJJoSa3mF3AAwIIkhY+OdJFkfLv9GTBFGZtDpQf5/E 2cvQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=HOiFe1LS; 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 o7si8866700pgf.315.2018.01.19.07.31.32; Fri, 19 Jan 2018 07:31:46 -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=@gmail.com header.s=20161025 header.b=HOiFe1LS; 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 S1755749AbeASP3u (ORCPT + 99 others); Fri, 19 Jan 2018 10:29:50 -0500 Received: from mail-qt0-f194.google.com ([209.85.216.194]:39569 "EHLO mail-qt0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755641AbeASP3k (ORCPT ); Fri, 19 Jan 2018 10:29:40 -0500 Received: by mail-qt0-f194.google.com with SMTP id f4so4660575qtj.6; Fri, 19 Jan 2018 07:29:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=fammRTzu1g+TZg/XIPDzAkih946LDsf0sypJtvcO+MQ=; b=HOiFe1LS63cO6d9MKvuEpFBHUPeL1egFWTt00zXnD9z6/cpAtUs9nBJMk/Dpd8rPLH iYgWUtiE10/yVpkTYyUHYno+KNP5YrQJwhg+7xfLdUpzvdVNI0YaTY5NxsYfTe4tmMM5 5Z6CbSfqvxLwDC4wilo7/7Qnk2KuL4Ble3LbW58BesDyJNX6pPxJShMfmopcb35ft9lU 8ecUW/Y6B/J4vLTmf/sn0lnrx6G59BUz5tm1qTrA2bf9375P0eX9z/pDSTp9YPeN/ryI m86HgVH4v7mGDfw8AgZYnsZ4XiRbEOGfhAzZM3MS4vQgJ16lFYcxV2GPr9rG+dlZv/Vb IPZg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc; bh=fammRTzu1g+TZg/XIPDzAkih946LDsf0sypJtvcO+MQ=; b=ph/deHQDZFL+8p/M9JKaSYO/5HHJnJZI7GFTnGQ6zz/RElyN24LNXBFeYZnrTndL53 PtizTjNCRUz8avqJotqE1Q5aYh2GXMp4hXzMy4bI0ncrTcAG6H6T4NWnXt4uFOkGaTQK /2TweWtSlkMzPo5H1crjq8H4Ak/DfRjAJscCsmf3Mx7oXRaY/ljmMMdPE29JckRsZ/xF VjkIqN5JldS64GqO7kTXyGMO/8X1Ys58UFSVuYeSJBHfqMpqueRbqEUhujAVEmeFws7o WcuUZsfxlEIbiTYPNESotRS74sJnlsx4uFMn5GtOWy34vbgrMKTX8VP0bfJAzMbJdLhF epSA== X-Gm-Message-State: AKwxytfyHSSKlNlsnCOFxgL1DaBYV5hsqVGMCw4hqodgCyYgYTZmh7kR rTiXhSuoj582Xq+8i2L67246coi9xYXuibHcMaE= X-Received: by 10.55.197.20 with SMTP id p20mr66673804qki.337.1516375778957; Fri, 19 Jan 2018 07:29:38 -0800 (PST) MIME-Version: 1.0 Received: by 10.200.45.161 with HTTP; Fri, 19 Jan 2018 07:29:38 -0800 (PST) In-Reply-To: References: From: Geert Uytterhoeven Date: Fri, 19 Jan 2018 16:29:38 +0100 X-Google-Sender-Auth: 5zqiLX088O0oPG6RceHxAO1FoF0 Message-ID: Subject: Re: [PATCH v6 31/36] dt-bindings: nds32 CPU Bindings To: Greentime Hu Cc: Arnd Bergmann , Greentime , Linux Kernel Mailing List , linux-arch , Thomas Gleixner , Jason Cooper , Marc Zyngier , Rob Herring , Networking , Vincent Chen , DTML , Al Viro , David Howells , Will Deacon , Daniel Lezcano , linux-serial@vger.kernel.org, Linus Walleij , Mark Rutland , Greg KH , Guo Ren , Randy Dunlap , David Miller , Jonas Bonn , Stefan Kristiansson , Stafford Horne , Vincent Chen , Rick Chen , Zong Li 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 Hi Greentime, On Fri, Jan 19, 2018 at 4:18 PM, Greentime Hu wrote: > 2018-01-19 22:52 GMT+08:00 Arnd Bergmann : >> On Fri, Jan 19, 2018 at 3:32 PM, Greentime Hu wrote: >>> 2018-01-18 19:02 GMT+08:00 Arnd Bergmann : >>>> On Mon, Jan 15, 2018 at 6:53 AM, Greentime Hu wrote: >>>>> From: Greentime Hu >>>>> >>>>> This patch adds nds32 CPU binding documents. >>>>> >>>>> Signed-off-by: Vincent Chen >>>>> Signed-off-by: Rick Chen >>>>> Signed-off-by: Zong Li >>>>> Signed-off-by: Greentime Hu >>>>> Reviewed-by: Rob Herring >>>>> --- >>>>> Documentation/devicetree/bindings/nds32/cpus.txt | 37 ++++++++++++++++++++++ >>>>> 1 file changed, 37 insertions(+) >>>>> create mode 100644 Documentation/devicetree/bindings/nds32/cpus.txt >>>>> >>>>> diff --git a/Documentation/devicetree/bindings/nds32/cpus.txt b/Documentation/devicetree/bindings/nds32/cpus.txt >>>>> new file mode 100644 >>>>> index 0000000..9a52937 >>>>> --- /dev/null >>>>> +++ b/Documentation/devicetree/bindings/nds32/cpus.txt >>>>> @@ -0,0 +1,37 @@ >>>>> +* Andestech Processor Binding >>>>> + >>>>> +This binding specifies what properties must be available in the device tree >>>>> +representation of a Andestech Processor Core, which is the root node in the >>>>> +tree. >>>>> + >>>>> +Required properties: >>>>> + >>>>> + - compatible: >>>>> + Usage: required >>>>> + Value type: >>>>> + Definition: should be one of: >>>>> + "andestech,n13" >>>>> + "andestech,n15" >>>>> + "andestech,d15" >>>>> + "andestech,n10" >>>>> + "andestech,d10" >>>>> + "andestech,nds32v3" >>>> >>>> Based on https://lkml.org/lkml/2017/11/27/1290, this should say that >>>> the device tree should always list 'andestech,nds32v3' as the most >>>> generic 'compatible' value and list exactly one of the others in >>>> addition. >> >>> I will remove the others and just left "andestech,nds32v3" in here. >> >> No, is not what we want here, the CPU node should list exactly which core >> is used, what we need in the description is a clarification that >> andestech,nds32v3 must be used in addition to the more specific >> string. > > Hi, Arnd: > > Sorry I still don't get your point. Do you mean we should always use > compatible = "andestech,n13", "andestech,nds32v3"; > instead of > compatible = "andestech,n13"; Exactly. The first value is a device-specific compatible value, the second is a generic fallback. > And I need to add the description in this document. Indeed. See for example Documentation/devicetree/bindings/power/renesas,apmu.txt Thanks! Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds