Received: by 2002:a25:ef43:0:0:0:0:0 with SMTP id w3csp584500ybm; Wed, 27 May 2020 03:02:11 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyOzduDdetjF/8/HRb0t+09RW94R+hEvYux97Zy42pSPGVU0wPRbiVd+XyH65kMJPR94xi5 X-Received: by 2002:a05:6402:30b2:: with SMTP id df18mr22603792edb.323.1590573731436; Wed, 27 May 2020 03:02:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1590573731; cv=none; d=google.com; s=arc-20160816; b=Ng7Th946eSnWeLyPdKeb6HbKF4Si8Bd/akav4s9F0bkn7U5b6vkwj+90T+dXw/6rY8 eDJ9UEw2DWde3sdJY3gR3BpSZjUrZsj6NLyfPmRZ913H7wz9pwk/jpwM8JYoenNL04Na tJPjvzN40wJGfHGVhsLjhRBeueQICrspt0fyDWZ5bj79vNCcZ9H7ozapI7697rghyJTl GQjfB6+vKmn9Tx21/kMwoxzyIl/3xw2QcE9hm4D+BeOVn895sTVWY/PdAdwJ1TPYpBIm smzRHqqEn7kGWF6VDY32nDxFVyXGeLdzu73aTvaWUuOzl3G0kZR76hsiIE20Ksk0vqgn EJ/A== 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 :content-language:in-reply-to:mime-version:user-agent:date :message-id:references:cc:to:subject:from; bh=9ZI5bxBFJSrf2yabpU0SnFy5c6hjbcGcn/k66UAoOAQ=; b=Va4oLgA0z32yMrxx4jrsqThMUKeG+FzQE6OCtEa8U+KHlMfJe3y2/0TLEYuj/ZaJJM oH4GeCRzJsPQnmYpaYPC9x2IWqIK8E4EGbf8ZE3iKa3wszzjjpBgpZiFyFnCJsmI3jrG /sqG3GnZtbDiWAx+YjbzWEwRjwxUAeeNPN0Rug/o+I3lDZtj1NS17oz5osKZIV/yXtss SyrMJ/qztk6pFkjyhqA8cmaViqGHCTb8xWs/W5wRGXxx/r8fOC/RLpUgIg0LGr2vW4H1 3gNYWl8HgbAk9hZzDclEmxsJ7UWOXXmtA+xo3YjZFWN0UUutjyyD9OuybFOk2rvCiNkq sseg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id q25si1314860edw.313.2020.05.27.03.01.47; Wed, 27 May 2020 03:02:11 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727090AbgE0GAH (ORCPT + 99 others); Wed, 27 May 2020 02:00:07 -0400 Received: from out28-219.mail.aliyun.com ([115.124.28.219]:46416 "EHLO out28-219.mail.aliyun.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725710AbgE0GAG (ORCPT ); Wed, 27 May 2020 02:00:06 -0400 X-Alimail-AntiSpam: AC=CONTINUE;BC=0.07629988|-1;CH=green;DM=|CONTINUE|false|;DS=CONTINUE|ham_regular_dialog|0.102456-0.000676535-0.896868;FP=0|0|0|0|0|-1|-1|-1;HT=e02c03312;MF=zhouyanjie@wanyeetech.com;NM=1;PH=DS;RN=21;RT=21;SR=0;TI=SMTPD_---.HeD3p8j_1590559199; Received: from 192.168.10.205(mailfrom:zhouyanjie@wanyeetech.com fp:SMTPD_---.HeD3p8j_1590559199) by smtp.aliyun-inc.com(10.147.42.16); Wed, 27 May 2020 14:00:00 +0800 From: Zhou Yanjie Subject: Re: [PATCH v8 4/6] dt-bindings: MIPS: Document Ingenic SoCs binding. To: Rob Herring Cc: linux-mips@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, tsbogend@alpha.franken.de, paulburton@kernel.org, jiaxun.yang@flygoat.com, chenhc@lemote.com, tglx@linutronix.de, daniel.lezcano@linaro.org, keescook@chromium.org, paul@crapouillou.net, krzk@kernel.org, hns@goldelico.com, ebiederm@xmission.com, dongsheng.qiu@ingenic.com, yanfei.li@ingenic.com, rick.tyliu@ingenic.com, sernia.zhou@foxmail.com, zhenwenjin@gmail.com, aric.pzqi@ingenic.com References: <1589898923-60048-1-git-send-email-zhouyanjie@wanyeetech.com> <1589898923-60048-6-git-send-email-zhouyanjie@wanyeetech.com> <20200526192947.GA140311@bogus> Message-ID: Date: Wed, 27 May 2020 13:59:59 +0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.3.0 MIME-Version: 1.0 In-Reply-To: <20200526192947.GA140311@bogus> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 在 2020/5/27 上午3:29, Rob Herring 写道: > On Tue, May 19, 2020 at 10:35:21PM +0800, 周琰杰 (Zhou Yanjie) wrote: >> Document the available properties for the SoC root node and the >> CPU nodes of the devicetree for the Ingenic XBurst SoCs. >> >> Tested-by: H. Nikolaus Schaller >> Tested-by: Paul Boddie >> Signed-off-by: 周琰杰 (Zhou Yanjie) >> --- >> >> Notes: >> v1->v2: >> Change the two Document from txt to yaml. >> >> v2->v3: >> Fix formatting errors. >> >> v3->v4: >> Fix bugs in the two yaml files. >> >> v4->v5: >> No change. >> >> v5->v6: >> Rewrite the two yaml files. >> >> v6->v7: >> 1.Update compatible strings in "ingenic,cpu.yaml". >> 2.Fix formatting errors, and enum for compatible strings. >> 3.Remove unnecessary "ingenic,soc.yaml". >> >> v7->v8: >> No change. >> >> .../bindings/mips/ingenic/ingenic,cpu.yaml | 57 ++++++++++++++++++++++ >> 1 file changed, 57 insertions(+) >> create mode 100644 Documentation/devicetree/bindings/mips/ingenic/ingenic,cpu.yaml >> >> diff --git a/Documentation/devicetree/bindings/mips/ingenic/ingenic,cpu.yaml b/Documentation/devicetree/bindings/mips/ingenic/ingenic,cpu.yaml >> new file mode 100644 >> index 00000000..afb0207 >> --- /dev/null >> +++ b/Documentation/devicetree/bindings/mips/ingenic/ingenic,cpu.yaml >> @@ -0,0 +1,57 @@ >> +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) >> +%YAML 1.2 >> +--- >> +$id: http://devicetree.org/schemas/mips/ingenic/ingenic,cpu.yaml# >> +$schema: http://devicetree.org/meta-schemas/core.yaml# >> + >> +title: Bindings for Ingenic XBurst family CPUs >> + >> +maintainers: >> + - 周琰杰 (Zhou Yanjie) >> + >> +description: >> + Ingenic XBurst family CPUs shall have the following properties. >> + >> +properties: >> + compatible: >> + oneOf: >> + >> + - description: Ingenic XBurst®1 CPU Cores >> + items: > This is a single compatible string, right? If so, drop items. Sure, I'll drop it. And because the SMP driver has some other work that can't be completed in a short time, so I will send this patch separately. >> + enum: >> + - ingenic,xburst-mxu1.0 >> + - ingenic,xburst-fpu1.0-mxu1.1 >> + - ingenic,xburst-fpu2.0-mxu2.0 >> + >> + - description: Ingenic XBurst®2 CPU Cores >> + items: >> + enum: >> + - ingenic,xburst2-fpu2.1-mxu2.1-smt > Just: const: ingenic,xburst2-fpu2.1-mxu2.1-smt > > Continuing to append CPU features isn't going to scale well. Does > 'xburst2' imply certain features? If so, not really any need to have > them be explicit. XBurst (XBurst1) is the first generation CPU core of Ingenic, its basic property is single-issue in-order execution, XBurst2 is the second generation CPU core of Ingenic, its basic property is daul-issue limited out-of-order execution, and both CPU cores can cooperate with some extended propeties,  such as different versions of FPU, different versions of MXU instruction set, with or without simultaneous multi-threading. Currently there is only one processor entity based on XBurst2 is produced, so there is  only one string for now. Thanks and best regards! >> + >> + reg: >> + maxItems: 1 >> + >> +required: >> + - device_type >> + - compatible >> + - reg >> + >> +examples: >> + - | >> + cpus { >> + #address-cells = <1>; >> + #size-cells = <0>; >> + >> + cpu0: cpu@0 { >> + device_type = "cpu"; >> + compatible = "ingenic,xburst-fpu1.0-mxu1.1"; >> + reg = <0>; >> + }; >> + >> + cpu1: cpu@1 { >> + device_type = "cpu"; >> + compatible = "ingenic,xburst-fpu1.0-mxu1.1"; >> + reg = <1>; >> + }; >> + }; >> +... >> -- >> 2.7.4 >>