Received: by 10.223.176.46 with SMTP id f43csp1154215wra; Fri, 19 Jan 2018 07:37:54 -0800 (PST) X-Google-Smtp-Source: ACJfBotnfuy3tqF5ModRU+zg+fKn3J95elQHOXREmaG3yCNnW961nSBNsFz9Wx6iFAdBby2W/5qn X-Received: by 2002:a17:902:59c2:: with SMTP id d2-v6mr1834817plj.306.1516376274441; Fri, 19 Jan 2018 07:37:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1516376274; cv=none; d=google.com; s=arc-20160816; b=IBQBo5Vr3DP/LKLTHWGAnyvzTDZ2ZPOSv7BWa0RLBZCFQd1CG30YCobrCTAnscfdmw J36830+ZQIVbgUr5SyxhGzxp6/pTbcchuv4yuAb/PmyFf0Ab5ujwaSTSb+fafOn3NXQ3 /jUmQR7T8/HGFBVFuR0P9wOfpAivaT6ZVIp4PysEtJDIs3mbnBxqAjveO6HBNs+dBOG8 ps/gdV8f+THyYQXAJ9uAsXXaS+FBGImfDbBoLutag+TjGWBujPeb32uoa9qNBvLlSaW5 e+lJNhb7LMiIXHvNejEnbBHfZoYa+bzIr+gHf6N/N/suSQQqWryDB2wWkahzCGwpjexM 50Vg== 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=NL2KLcC9dvBVie3gktOpJCa+DC4O7E+Hw0XpMHqC48Y=; b=Gkfj1RiNv4StsKJ4BirW5UaUbo9dlW/gF0G6Af+N4Bpkc0RuwMGPqHFthneTOIe5XI VoyIdcOzuPJamcMaRorC2oWT7du8UsHJWeGzSOnYzzSrql2oHs/bk/UttvLKq6c69yL5 ZQ3lLng7KajJeBqLS389sJREBnZlOfSOZNvDXGHRuUdOuRaR10t2525FQvs40EcQ1cYr wVXlqlyzh8R1SnlcH0kbBBz6TtZenOaxNqEWt5kMe+3H7vVoermhXa/6lOPE6PwaIqwA yxkKdAZrwD/eSlugLIMGFs+i5ZxSycLuO245Pudi3wJhVAGo8095K127WPnsc6d+pJTi 78Mg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=pbq+QplY; 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=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z9si9440619pfk.333.2018.01.19.07.37.40; Fri, 19 Jan 2018 07:37:54 -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=pbq+QplY; 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=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756002AbeASPgV (ORCPT + 99 others); Fri, 19 Jan 2018 10:36:21 -0500 Received: from mail-vk0-f66.google.com ([209.85.213.66]:33301 "EHLO mail-vk0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755285AbeASPgM (ORCPT ); Fri, 19 Jan 2018 10:36:12 -0500 Received: by mail-vk0-f66.google.com with SMTP id w201so1160267vkw.0; Fri, 19 Jan 2018 07:36:11 -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=NL2KLcC9dvBVie3gktOpJCa+DC4O7E+Hw0XpMHqC48Y=; b=pbq+QplY9UTM8oucgEPrTD/hAXTUOZNxiLaSrZppWVQ7qV/qD5UFhfUbXak6S1P2Rq 7h/3QgNV0lUaNUP1IwD1TDOYtkSXw3orqBOyXaUGsE8zVBMfvzNtiffHqnqBmAWZhABW lpiZA8mutUkppcR0v9gVnV9X6YBV2tq9JMZhhnvq31ZRnnTCThiEiy6ibwv4cVXajIH8 3OjacAwKB98L3Q708Bk/z5y1Ry6XRVxJ9tFfV97vt08ezOd+kcH7mR2nTTPrtH4MiT5j HiAz9gCiQXVvKIOwok1uPa5lyDf3bIO5qpd6XOocI4W3aK42G+BKNiswx4X/xjWfKG7P tMPw== 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=NL2KLcC9dvBVie3gktOpJCa+DC4O7E+Hw0XpMHqC48Y=; b=WxTQ6HohcLyLJY6cRS/m3lie7f5BUrvMupYSHOsGgDmCWFfHQYaG3h7eTBVeoCNBEU WZgjnRPAlIS224jSXkvZOUFccMeOsePFOnhazUlsLWT9tJPVrA0HpRwdcD9YqjzCXK0k IOhBacOqMVO8u5L3y8EMvhheuQxPkbXVlcDt8VmF+D/ORy0nbAe20ujsuCxKH4bD01tI 8oe9NdhwQucK1A+XBmULaO4Cg6SIViR7CSgjytildkZf0y35qdIrRH4ZIk1D2zmNVLpN jkrz5jckDVNIi54N+KNjveGzCpHU+X+IQZ1+g2OnMOSo3MOIs/9LCAqbbPH5GxFQamTf FqTw== X-Gm-Message-State: AKwxytd6wPPKlwzT8MkN6frAKjMpvgalpKPTiG3PyACQc0Dqpf60REDJ LNOjmnHk4Ufj3xzb5rF/IWiosDlUFlarNsmjTtU= X-Received: by 10.31.147.204 with SMTP id v195mr3935073vkd.37.1516376171240; Fri, 19 Jan 2018 07:36:11 -0800 (PST) MIME-Version: 1.0 Received: by 10.159.42.194 with HTTP; Fri, 19 Jan 2018 07:35:30 -0800 (PST) In-Reply-To: References: From: Greentime Hu Date: Fri, 19 Jan 2018 23:35:30 +0800 Message-ID: Subject: Re: [PATCH v6 31/36] dt-bindings: nds32 CPU Bindings To: Geert Uytterhoeven 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 2018-01-19 23:29 GMT+08:00 Geert Uytterhoeven : > 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! 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.