Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp5463764imm; Wed, 12 Sep 2018 06:26:38 -0700 (PDT) X-Google-Smtp-Source: ANB0VdZ3HBo3JH5tnKmeyR8XlE7g34KCGroFk5fcX3mveuPx6cisBtewbv2MH2ALPqkpl+IG2hhT X-Received: by 2002:a63:6446:: with SMTP id y67-v6mr2319466pgb.443.1536758797976; Wed, 12 Sep 2018 06:26:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536758797; cv=none; d=google.com; s=arc-20160816; b=mVh5lyHlPG7MmsbF3k7WJ9WaIx+OUxxyndjruabXkfKDlxCPi3hYvKYfYiwIrkE4gV bxVChXSu32TUb0r1Hpk+j/dPfWum240A9zh/1stR7rKC9V5egGOLtB8loDoSk101FNkW Vk0m/lSO/98WF1rfhBQ9A6nfekqC/aWtEu32S4I/rOu3qYIFjls8KqAe4wvoMluqYlTV cuMtd0/UIkVUMrpb1ZWZSpj4jl/hQj79k7AesKWzQ/GGGHNGyrD8cqefYzvv1iorfPqh e7rYuYTq7ldSDgXrzhn3i/foJByb5J07u9nw47wJ+n82TnjJaLXh8TV3DFFKqE33Xixg t+rQ== 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=YUy9cC2oQQnP7qNk04Pib4MWrUlofwm90LhJOOEROaU=; b=IeRjwFJJMjzwlOToko6voB4ZAQedNRO4/a6MK1h4GIqeP0B/1/kt67snEeelXSTbsZ u5D/6xsfZeQTjpjH56nMtTefGoCcNxff1fCZ+Vt/RBAT9re1MkupyH3fl43K53KTrexg 4Ds75T0WB781JjpGM8V57T5zhRm1is51DRMJmK3lPI1fyswkoeF+ax4Xj5jwfUA+RSdd hILNqwUTC2fSPVCOQ9qq0K2tPn9VAOEoMvRSvK+6aVgOk1Yjz69+D4UZGNPDYJ0p919G 0KzfaH3Xzr5A2mvPn71uosXGzQ73tufY+4usXA/1una4UnKcisQSBUNmmuQd9Ez9KLGO oRPw== 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 q9-v6si1090617pgj.134.2018.09.12.06.26.13; Wed, 12 Sep 2018 06:26:37 -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 S1728076AbeILSaG (ORCPT + 99 others); Wed, 12 Sep 2018 14:30:06 -0400 Received: from smtp2200-217.mail.aliyun.com ([121.197.200.217]:45960 "EHLO smtp2200-217.mail.aliyun.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727790AbeILSaF (ORCPT ); Wed, 12 Sep 2018 14:30:05 -0400 X-Alimail-AntiSpam: AC=CONTINUE;BC=0.08221229|-1;CH=green;FP=0|0|0|0|0|-1|-1|-1;HT=e01e01546;MF=ren_guo@c-sky.com;NM=1;PH=DS;RN=15;RT=15;SR=0;TI=SMTPD_---.CpvjkjF_1536758716; Received: from localhost(mailfrom:ren_guo@c-sky.com fp:SMTPD_---.CpvjkjF_1536758716) by smtp.aliyun-inc.com(10.147.44.145); Wed, 12 Sep 2018 21:25:16 +0800 From: Guo Ren To: linux-arch@vger.kernel.org, linux-kernel@vger.kernel.org, tglx@linutronix.de, daniel.lezcano@linaro.org, jason@lakedaemon.net, arnd@arndb.de, devicetree@vger.kernel.org, andrea.parri@amarulasolutions.com, peterz@infradead.org Cc: c-sky_gcc_upstream@c-sky.com, gnu-csky@mentor.com, thomas.petazzoni@bootlin.com, wbx@uclibc-ng.org, ren_guo@c-sky.com, green.hu@gmail.com Subject: [PATCH V3 18/27] dt-bindings: csky CPU Bindings Date: Wed, 12 Sep 2018 21:24:52 +0800 Message-Id: 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 Signed-off-by: Guo Ren --- Documentation/devicetree/bindings/csky/cpus.txt | 70 +++++++++++++++++++++++++ 1 file changed, 70 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..ee3901d --- /dev/null +++ b/Documentation/devicetree/bindings/csky/cpus.txt @@ -0,0 +1,70 @@ +================== +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 + - status: + Usage: required + Value type: + Definition: "ok" means enable the cpu-core + "disabled" means disable the cpu-core + +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