Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp3726910imm; Wed, 5 Sep 2018 05:10:13 -0700 (PDT) X-Google-Smtp-Source: ANB0VdbcCSq8APAp68oeGTI7czNL11ane+/vk3FPanp6QhW7UtyBx4D/oQAKEp3MOkP4enQdM58w X-Received: by 2002:a63:d90b:: with SMTP id r11-v6mr36518337pgg.315.1536149413234; Wed, 05 Sep 2018 05:10:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536149413; cv=none; d=google.com; s=arc-20160816; b=a/tDoO8ETVgkc77X0TU8usrlpOLce1143wJ5SU86tKezkqzHNcTpKmsmXo0p8UNX3V u9P3mbsCMKL0AMTWNzk+rZiCQ6/3ofVsrqaxjb0rUQ5/Rhl8CulQpWIzG/tM+Y6mpR71 DYAKIUuHm1+QXCwUOaxu+4LBwBC3Na9P9pIaLekEczARezgXfbKR5Y0KdqqnZzuR2fQm djXxLkiM1JfPO6Rcc7YMfWaWIjjWHMk5Mih3Sn12TmMi1SSzMs4FGuFelQoj4/nLu8eB l7L9+EYQqcQ/G7r0TBkppWw/G/tylLLOuiZ6DchqmUEEneLTyTsraR/4o2kxHcNDp+w7 hD7A== 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=AMYhlIUM44/DKy0KAIplj2zNzF0iacst9ZBSc1wQvE4/COVqDMCJVrquef+D/guFSg Jovnrqg4VWESqcxO2JqscgYbSuq3Orv0by7EteegWHVO/HUjbSYP1CVRyoY6KJQAv8fw T2ydDIe0kTuSlJ6MykeW291+Qic50QYnI3ugGvq2qocITIjPCOkzvoxIf5jB3RXNpgKM a/lvJicISn3FzFRj3vFDX7BZ/77wF6DgO02V1UwOXX4Y9vYbmeYfilor7qKG+8C+1YAi F8SxOLFfvcVLit5vc56Su7Q6359OylJNv7zyei4eEx/NK9OTb+l0aSENIDPsFhcQIZP0 pFag== 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 f3-v6si1733243plf.318.2018.09.05.05.09.57; Wed, 05 Sep 2018 05:10:13 -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 S1727814AbeIEQie (ORCPT + 99 others); Wed, 5 Sep 2018 12:38:34 -0400 Received: from smtp2200-217.mail.aliyun.com ([121.197.200.217]:35408 "EHLO smtp2200-217.mail.aliyun.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727714AbeIEQid (ORCPT ); Wed, 5 Sep 2018 12:38:33 -0400 X-Alimail-AntiSpam: AC=CONTINUE;BC=0.0822123|-1;CH=green;FP=0|0|0|0|0|-1|-1|-1;HT=e01e04486;MF=ren_guo@c-sky.com;NM=1;PH=DS;RN=12;RT=12;SR=0;TI=SMTPD_---.CmtIJRL_1536149308; Received: from localhost(mailfrom:ren_guo@c-sky.com fp:SMTPD_---.CmtIJRL_1536149308) by smtp.aliyun-inc.com(10.147.40.44); Wed, 05 Sep 2018 20:08:28 +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 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/26] dt-bindings: csky CPU Bindings Date: Wed, 5 Sep 2018 20:07:57 +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