Received: by 10.213.65.68 with SMTP id h4csp437758imn; Tue, 20 Mar 2018 06:58:01 -0700 (PDT) X-Google-Smtp-Source: AG47ELsT+doWBLxWBrPyA4unDt4/jYnh8ni7KBZWVTNAV9Fn+qjoyTG6wZQOrd5bIo9d3ym5H/Wf X-Received: by 2002:a17:902:3124:: with SMTP id w33-v6mr17172227plb.119.1521554281805; Tue, 20 Mar 2018 06:58:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521554281; cv=none; d=google.com; s=arc-20160816; b=WVIpa8odzSyFcaAskSlbkm7UPsFOsRQ57jnrAUx6jTtbdClbIpzdP69mWczNOd2yKw b/uE+hxsv0f59EPGumzgO1MWvdrEvbxo3o94DJr6stlHJ78SFhnEmu1PgStM6TO7CqSf qZaUCcszaE437JnAyfWq1EIKYN1O00MzlTTiUygWdzlibqyoOqSzOMoi0K6ugrmNe2rU b3G+Ty2BnOw8LyYBXz5dfgyI8N2NoM0Zy7dLzJip+N/NCinZTjSjlMApnsDikw3ZeNsB 3VNaIIec5zV6Xv8U2LbxwGblAd7vAwY4W7U3GHrgUo+7cdz43PEVbux4OOTiJjAiIxeE ZQiA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:arc-authentication-results; bh=Fy1qc3HKdnWTAZdsps37bBcFqLe+RGdBWga6FVepBT8=; b=kWT9P4Ee3mgb0Pc52oMM2sT2Jss90OwyLn+7P8gA+Qz1seAeuH8sk9W8A2ss6T6K3C 6GMLzG8Pbg6lcvomMH8RtIlpFdUNLcQI5rNqNcjt26fhc5QSjPVpQvhAe8NkMUCjjhYK yEmRb/N9TWBjCaMKDmF7ky2l8PyvHn+vwWSFd15WhnzetGuOvGbvXjviOqycuiMmPWHP Z6n+xUCSGUD8gQ8Jqgx8bBwY6nU5p2PuzBq2uyFfqjnEiNMF6RzA9EnVZmfozzOAaer/ F5yN3vE6pfXO6Ev0z1Ch+BgRDF9f9nZiUhFV3O38LzVnLdRgoVaK02hq4Jo2yVXV5x4t AfiQ== ARC-Authentication-Results: i=1; mx.google.com; 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 z22si1172734pgv.575.2018.03.20.06.57.46; Tue, 20 Mar 2018 06:58:01 -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; 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 S1753545AbeCTNzp (ORCPT + 99 others); Tue, 20 Mar 2018 09:55:45 -0400 Received: from smtp2200-217.mail.aliyun.com ([121.197.200.217]:43035 "EHLO smtp2200-217.mail.aliyun.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753227AbeCTNzm (ORCPT ); Tue, 20 Mar 2018 09:55:42 -0400 X-Alimail-AntiSpam: AC=CONTINUE;BC=0.02447012|-1;CH=green;FP=0|0|0|0|0|-1|-1|-1;HT=e01e01542;MF=ren_guo@c-sky.com;NM=1;PH=DS;RN=10;RT=10;SR=0;TI=SMTPD_---.BNYE2-u_1521554125; Received: from localhost(mailfrom:ren_guo@c-sky.com fp:223.93.147.148) by smtp.aliyun-inc.com(10.147.40.7); Tue, 20 Mar 2018 21:55:25 +0800 Date: Tue, 20 Mar 2018 21:55:25 +0800 From: Guo Ren To: Arnd Bergmann Cc: linux-arch , Linux Kernel Mailing List , Thomas Gleixner , Daniel Lezcano , Jason Cooper , c-sky_gcc_upstream@c-sky.com, gnu-csky@mentor.com, thomas.petazzoni@bootlin.com, wbx@uclibc-ng.org Subject: Re: [PATCH 16/19] csky: Device tree Message-ID: <20180320135524.GA12296@guoren> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Arnd, On Mon, Mar 19, 2018 at 11:28:03PM +0800, Arnd Bergmann wrote: > Please add a changelog text to each patch, and send patches that add > .dts files or > binding documents to the devicetree mailing list. Ok > It is usually better for an SoC based board to split the SoC specific into a > separate .dtsi file that gets included by the board .dts file. Ok > > +/ { > > + model = "Nationalchip gx6605s ck610"; > > + compatible = "nationalchip,gx6605s,ck610"; > > Is ck610 the name of the CPU core? The general convention is to have the > top-level "compatible" property list first the name of the board, then the > name of the soc, but not the name of the CPU core. Yes, ck610 is a cpu core of abiv1. and I will change it like this: model = "Zhuxian-sword gx6605s Development Board"; compatible = "zhuxian-sword,gx6605s"; ref: https://c-sky.github.io/docs/gx6605s.html > Here you should list the specific type of CPU in the compatible property and > document the binding for that string in the Documentations/devicetree/bindings > hierarchy. Without a binding, the 'ccr' and 'hint' properties make no sense. Sorry, I forget remove the cpu region. It's no use now. > If there is any chance that you could have SMP systems in the future, it > would be better to start with #address-cells=<1>, with appropriate reg > properties. Ok > Each node with a register property also needs the address in the > node name, e.g. "interrupt-controller@500000" Ok > Try building the dtb file with 'make W=1' to get warnings about > when you got that wrong. Thx > > + timer0 { > > + compatible = "nationalchip,timer-v1"; > > This should be "timer@400" Ok > Also, each device node should have a binding documentation > to explain the binding associated with that "compatible" > string. Ok, I will add them. > > + ohci0: ohci-hcd0 { > The names here should be "usb@...", not "ehci-hcd" Ok > > + chosen { > > + bootargs = "console=ttyS0,115200 rdinit=/sbin/init root=/dev/ram0"; > > + }; > > The bootargs should not be in the dts file normally, they should come from the > boot loader. I want to keep bootargs in dts, because the bootloader only pass the dtb to kernel. > For the console, use the "stdout-path" property. Ok Best Regards Guo Ren