Received: by 10.223.176.46 with SMTP id f43csp1155885wra; Fri, 19 Jan 2018 07:39:14 -0800 (PST) X-Google-Smtp-Source: ACJfBoumt/0/0XplIQ7VSuFNOkGnIryJ75ckPMhFZ3SkBQMInEN9+C/zN5ImmTrQdGNHUxCGlqVQ X-Received: by 10.98.201.69 with SMTP id k66mr6395312pfg.105.1516376354515; Fri, 19 Jan 2018 07:39:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1516376354; cv=none; d=google.com; s=arc-20160816; b=jFn8+ZGFvSfYl3qc4Aw6NDh6sUa5owZ8dX3+b+/YktStPIG7t9p/L/vmXEWYFvQSX5 vejwxdRmo899np/VP3/O+UZPRNhIij83No21MCA77CumIHzmiHHaLZSq4cHq++Ocmv4o qkqV6NFtZdwAPOnvBiyauMStJ6Eu+RdGZ09VIiXxZNV+bpnBbMlkk5Lt4hOqzIqKPTKU 7yJOreFNKIeTNPCm2mFm7fkqhMnf+FhTz77jxg+BwOhZ4gmo1OLLbHFZ7MbeQSa+ynHD HWwCRsXthUSSoorkWvn5eBrB0f9ZNZdKXa6NmpOBxwxHpt19Ljd5HdYxkYIyM/WBEi08 946w== 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=f8z00GSZXupcwIIfttdfcUlvfE8cnmKFKKrDZpkAE0w=; b=cNkwix+cGBDGtel89GHVZWZmJMSAcPmJS9/1X6z7LuIX2ksZg0XXFuz+mnU/gqWAM9 tAVM3ppnG1Y1EZniGBoOcZqBDzph4Cit5csw5UjnUaT+hT93taSFW7Yz/qYU/X+IKres ds7xuNxA5n2a0O6QNCB65nmxPRtsZx1O9Psid6kPel/ZsRL7ipQHEbOZKP9T5lfovwKW xUwfvlyP6KQyK3NobZO4lQ0DtnCLsXaxROIBOVjkBBdJS303AuSmA1c0G//yCkU3HYDu vxXoUj4AbXHExxYGHtcV8QRxgo7u0HDgjv0G7E0qU4nhcsIxE+PlsvpF/PRmNe1jpn5a KiaQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=A456DPSx; 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 u77si9485712pfd.165.2018.01.19.07.39.00; Fri, 19 Jan 2018 07:39:14 -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=A456DPSx; 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 S932389AbeASPiF (ORCPT + 99 others); Fri, 19 Jan 2018 10:38:05 -0500 Received: from mail-qt0-f196.google.com ([209.85.216.196]:44353 "EHLO mail-qt0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932321AbeASPhz (ORCPT ); Fri, 19 Jan 2018 10:37:55 -0500 Received: by mail-qt0-f196.google.com with SMTP id l20so3393195qtj.11; Fri, 19 Jan 2018 07:37:55 -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=f8z00GSZXupcwIIfttdfcUlvfE8cnmKFKKrDZpkAE0w=; b=A456DPSxgV+rTRsq63dDDuKMCt61dgNAFkt/SHgmnJUKxd19c5Zbnjvh4GUOk2IEKQ e1sXUCyvy5YBLegydMGriylL1/FGncmxMgI8Ob1iZFlFRkh3wgCfOqsX6Vi/JCsT5JIg +CIJkUpIbTzJhlCBiQBup+F0lwGkIWFg6HDjKvEVtNc6jtZ6f4p9j0SaVlEvwV3qaAt2 Hw/JvtNu3hVGyz1uUSRkUAYVOoGWZXulPDlSwj4bH6EjwcoEIeKRkjY5/jQO5gcsLSHU cwGmqNGxDZR4LVuJWy47bsKX2g15AkJxsFkafY5jlo3kfiajvuI1cg6YFPxHtIm0xGHT 9/KQ== 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=f8z00GSZXupcwIIfttdfcUlvfE8cnmKFKKrDZpkAE0w=; b=Q/ttvJRuZv+t77Puj2xone4bzNH7BQNyZ/YDyplSSA0yq4F/eVV20frZcPxCyBtIpw BtZCBsso4LslKUwRZTVoGZFk9P4pAjtSRyhHsSlF0ApuDqZxSUPr4uLOGfWieiNoUXqh 9vRQR53cYxLKRKP6emOvpuGQ4n3o61wIrDdbz/NSFYgTZeDKmhDuM3EgLSSZgNYRhG2M 9xSZTwC2DpuXne+pi2cF7OXHl06PPnOjnbxwYRpVSdBc9b6k8gg/DWiie2XZWRTAc7gl LOn7AsTcgCm/piHm+vAdg8MG+O792pqv2lLro8y5Wgo6W5lTVIqOYmtLetUccHRS+uRz 6CHQ== X-Gm-Message-State: AKwxyteNunVYIbaPMdgMIU+hhs9kN+yzTfoHpBG/kJsHJZWNytStJt9h WlB7pQovSqoig4UUckOvtXI4aaPEo2mRsmRMTqg= X-Received: by 10.55.197.20 with SMTP id p20mr66711367qki.337.1516376274847; Fri, 19 Jan 2018 07:37:54 -0800 (PST) MIME-Version: 1.0 Received: by 10.200.45.161 with HTTP; Fri, 19 Jan 2018 07:37:54 -0800 (PST) In-Reply-To: References: From: Geert Uytterhoeven Date: Fri, 19 Jan 2018 16:37:54 +0100 X-Google-Sender-Auth: qDauvz4oQFHS5HCCormpFHtdRuo 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:35 PM, Greentime Hu wrote: > 2018-01-19 23:29 GMT+08:00 Geert Uytterhoeven : >> 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! > > Hi, Geert: > > Thank you and your example. > I get it. I will update this document like this. > - compatible: Should be "andestech,", "andestech,nds32v3" > as fallback. And please keep a list of supported values of "andestech," in the DT binding document, so checkpatch can validate compatible values. 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