Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp5570746imm; Wed, 12 Sep 2018 07:57:18 -0700 (PDT) X-Google-Smtp-Source: ANB0VdZ3LSd+o6GJQFO7Lubl0XTnheCCYpkH7NZvnpUM52Y5OIc+sm4diI3joh2wVe3j2J4E+m8w X-Received: by 2002:a17:902:b70f:: with SMTP id d15-v6mr2794320pls.53.1536764238647; Wed, 12 Sep 2018 07:57:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536764238; cv=none; d=google.com; s=arc-20160816; b=miv3bV9JWPjTl3oAIpOtu5MGHY3h4YlekyujxyPzn0JMJH2wZ3QUOpyOyXoqus1NLb rT0smzOxLdMOZFPBTdeitaZgALE//Q5wh/9Q/uFy9QdTCnPnjna06S+H9hcege6wle0N Zs66OrdwtCTa9ZvH5C+lLkFhOhxgKvs7FArEvuNyX0swjHOmSKb0QLplnmaIPI8lrlDz iu+SmaSPe7hDZuj3RRyDA0zjluUvFxR3FroZo1TM/kTNePixCh3zWgXB7sWiILpsyeor hoWwB51dyXtQW3vDU31AYAG5pD/qN3YQ9UCIzcIgot3t3t1cC91N0L8kYQbNhwxFqx+4 Qvjw== 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=pgkzYBacyxBd7QuqzNtPLl7+a4b6VuLoX/rA6YGxt19aRTRvDA2w/u5paIYaDDxlsX XH9ulDasdqbPxaSyjcDJZdTpOgTm9RzIIDNowtpl5sKzrQ/Q9fYXHk8oWPVwO35t09ze xzM1fX/Ii4U+1NHbdHcsFLUU4Zn59Z3oOKUejXJerFTD5yJmimwLAZJYhrM0SpjWdYwc Yfyt4FVuGG/qWcbFGC9dSYGKUan3yKAG+avV4yO/Bpl9ywchue1+Yz305RNveXDtI9yl 7sfVEznB3elXN5fVzupSXM//HuWHGvpY6c7DtndR6K2eJmviYxO6fhxaLWRVayp1QUPL BGQw== 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 d11-v6si1108120plo.91.2018.09.12.07.57.03; Wed, 12 Sep 2018 07:57:18 -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 S1728303AbeILT6W (ORCPT + 99 others); Wed, 12 Sep 2018 15:58:22 -0400 Received: from smtp2200-217.mail.aliyun.com ([121.197.200.217]:45746 "EHLO smtp2200-217.mail.aliyun.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728270AbeILT6T (ORCPT ); Wed, 12 Sep 2018 15:58:19 -0400 X-Alimail-AntiSpam: AC=CONTINUE;BC=0.0824754|-1;CH=blue;FP=17186617557674820946|2|2|12|0|-1|-1|-1;HT=e02c03296;MF=ren_guo@c-sky.com;NM=1;PH=DS;RN=15;RT=15;SR=0;TI=SMTPD_---.CpxFQLY_1536763996; Received: from localhost(mailfrom:ren_guo@c-sky.com fp:SMTPD_---.CpxFQLY_1536763996) by smtp.aliyun-inc.com(10.147.40.26); Wed, 12 Sep 2018 22:53: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 V4 18/27] dt-bindings: csky CPU Bindings Date: Wed, 12 Sep 2018 22:52:00 +0800 Message-Id: X-Mailer: git-send-email 2.7.4 In-Reply-To: <93e8b592e429c156ad4d4ca5d85ef48fd0ab8b70.1536758961.git.ren_guo@c-sky.com> References: <93e8b592e429c156ad4d4ca5d85ef48fd0ab8b70.1536758961.git.ren_guo@c-sky.com> 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