Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp4673617imm; Mon, 15 Oct 2018 20:31:11 -0700 (PDT) X-Google-Smtp-Source: ACcGV61+wqXvhNBp2pBGYMYyR2eab41H+IubbysC0nlkDDFeAZAf+iC1I7yNfEeCRGrlzu+Ji5QH X-Received: by 2002:a17:902:b182:: with SMTP id s2-v6mr19579916plr.84.1539660671133; Mon, 15 Oct 2018 20:31:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1539660671; cv=none; d=google.com; s=arc-20160816; b=fSZzal/JZVNkLY/5pqIo1B7e6NPRiwhWJ80hhDFkD8oQtO+ggb2i2Q6WnTjeVgeqje HxbSKspEX9Wrj8G+sZN5vxS18EQ8eqO6xS4eQ5WVVfj4kzg1sehYiI6XYCRc8CogiGld Ia1m3gpL3rbN28g7ae5AXym3spGKQP7xuOQKjv635QpyTaSNd+/1ZrW59r/h54QJ20bi PT+3253QjRditRw6V3+GXE5xYUhllEHZ/8mTlXIHyvVCpGDaeFNUVifQPuFchEZrXNDB wP6Yy6G01ug9CjWXnGdWTjX8i43Fqp92q6IEuY4eNKg23+cGIUsLUhpms26DcO4AcRqJ Y1YQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:references :in-reply-to:message-id:date:subject:cc:to:from; bh=lULmkDHANmjM5PdRcszh+BcQYhb7xyPlo5V2xfwyKfs=; b=K6dmA8JbPg0ZUW07kwTmceiFGyWS4+47Cr3K0myYt+JbDrfbbykBNYgiab5ahLZ2jD O35sUU5PVtsT7COq8MZyvQZwd27p6VzvfEuQXkP+exKpMGuJmWnF54fjx4d5wOtw/19f 7ogwZo5iu0ld+478r6uXdLLVNeVav/72oQcP6W/HJC/MPWJzN0bIBJiTThH77BtZytAp LnQIxzLhDxJks1GaZRBsHFZ0z4zfBNqSPWKvkjtDEbLFnv/S7m4g/ZfyMx08hd3JbhWg RlenCsWTuZOnh0FwjkN02StZQuKSA2urtVUCSx9kWHiO7F3V6v4GTJO6gzAbC1hb1WV1 EpEQ== 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 o15-v6si12501067pgh.61.2018.10.15.20.30.55; Mon, 15 Oct 2018 20:31:11 -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 S1727437AbeJPLSd (ORCPT + 99 others); Tue, 16 Oct 2018 07:18:33 -0400 Received: from smtp2200-217.mail.aliyun.com ([121.197.200.217]:34032 "EHLO smtp2200-217.mail.aliyun.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726934AbeJPLSd (ORCPT ); Tue, 16 Oct 2018 07:18:33 -0400 X-Alimail-AntiSpam: AC=CONTINUE;BC=0.07683962|-1;CH=green;FP=0|0|0|0|0|-1|-1|-1;HT=e02c03298;MF=ren_guo@c-sky.com;NM=1;PH=DS;RN=17;RT=17;SR=0;TI=SMTPD_---.D2fZ7e3_1539660607; Received: from localhost(mailfrom:ren_guo@c-sky.com fp:SMTPD_---.D2fZ7e3_1539660607) by smtp.aliyun-inc.com(10.147.41.231); Tue, 16 Oct 2018 11:30:07 +0800 From: Guo Ren To: akpm@linux-foundation.org, arnd@arndb.de, daniel.lezcano@linaro.org, davem@davemloft.net, gregkh@linuxfoundation.org, hch@infradead.org, marc.zyngier@arm.com, mark.rutland@arm.com, peterz@infradead.org, robh@kernel.org, tglx@linutronix.de Cc: linux-kernel@vger.kernel.org, linux-arch@vger.kernel.org, devicetree@vger.kernel.org, robh+dt@kernel.org, c-sky_gcc_upstream@c-sky.com, Guo Ren Subject: [PATCH V9 18/21] dt-bindings: csky CPU Bindings Date: Tue, 16 Oct 2018 10:58:37 +0800 Message-Id: <867b2328e3dbaef58d0b5e7fc58e8545d1510951.1539655732.git.ren_guo@c-sky.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: References: In-Reply-To: References: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This patch adds the documentation to describe that how to add cpu nodes in dts for SMP. Signed-off-by: Guo Ren Cc: Rob Herring --- Changelog: - Add compatible. - Remove status part. --- --- Documentation/devicetree/bindings/csky/cpus.txt | 73 +++++++++++++++++++++++++ 1 file changed, 73 insertions(+) create mode 100644 Documentation/devicetree/bindings/csky/cpus.txt diff --git a/Documentation/devicetree/bindings/csky/cpus.txt b/Documentation/devicetree/bindings/csky/cpus.txt new file mode 100644 index 0000000..ae79412 --- /dev/null +++ b/Documentation/devicetree/bindings/csky/cpus.txt @@ -0,0 +1,73 @@ +================== +C-SKY CPU Bindings +================== + +The device tree allows to describe the layout of CPUs in a system through +the "cpus" node, which in turn contains a number of subnodes (ie "cpu") +defining properties for every cpu. + +Only SMP system need to care about the cpus node and single processor +needn't define cpus node at all. + +===================================== +cpus and cpu node bindings definition +===================================== + +- cpus node + + Description: Container of cpu nodes + + The node name must be "cpus". + + A cpus node must define the following properties: + + - #address-cells + Usage: required + Value type: + Definition: must be set to 1 + - #size-cells + Usage: required + Value type: + Definition: must be set to 0 + +- cpu node + + Description: Describes one of SMP cores + + PROPERTIES + + - device_type + Usage: required + Value type: + Definition: must be "cpu" + - reg + Usage: required + Value type: + Definition: CPU index + - compatible: + Usage: required + Value type: + Definition: must contain "csky", eg: + "csky,610" + "csky,807" + "csky,810" + "csky,860" + +Example: +-------- + + cpus { + #address-cells = <1>; + #size-cells = <0>; + cpu@0 { + device_type = "cpu"; + reg = <0>; + status = "ok"; + }; + + cpu@1 { + device_type = "cpu"; + reg = <1>; + status = "ok"; + }; + }; -- 2.7.4