Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp3561734ybk; Tue, 19 May 2020 07:39:39 -0700 (PDT) X-Google-Smtp-Source: ABdhPJytSXiTXYNOr/wgwl6iOBNA2iO/S9PZ0JKrhLVD6/mSvqAQhSCUVo2MA4hPM0Wpq2lAFTwP X-Received: by 2002:a17:906:9142:: with SMTP id y2mr19921720ejw.205.1589899179436; Tue, 19 May 2020 07:39:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1589899179; cv=none; d=google.com; s=arc-20160816; b=cs1+8Yjlr9AoucYJyVMvGomTIiX6Gpjyu2YBMtje0YuBEHVygG3Zn7DVaFeomPFuEO xHKQWYiGlnlhS+a3FHGcr4e+uPe+mQmkJNORJGW8DRokwi7Z2JQcmzkzTcbq751pYm5/ 8iXJPc49CUDZwXy97Q8UgTx8m7LLWAhNNKLHrJv41iKM6k6jbnSrMOjI43DqCsbJD6+E 2lSLVmpcr9NT3zMesunBQnNJXpx6RrJFP7KJNIk2c9kqnJ/rDAMe/SUpyjY/d7kPX2GE K943Dg3iY08rurEUXPxDSB3FRg46/tUgKiU2QAKB2jSGgfEiu1auTixVAOSbUp/Z671V 2bfA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=1u268nW8WH448uAXjnSSVCnFi7sP3wrrlILTSe4tXJU=; b=OQSRVmo6m6u6lH5ehg2yEav6n3bZ/HKtuCIZjtmePDSPmB6LjdNri/lErGDsQdwdzs WLkQJLYfJFNm/2hxDuBbnFc/FqJv6L1IAS3iibbs7jdDayvHaI0dCHi1Bz8oYsCEfKIq GOGevKwPfOV+Vv2me2F5q0D5/mt0EE+lNCiYqN7VT5ywaou1g0tVTVCxvVEnDchoDD6l QMeaPJ49pdOWhbAqmiSAFaKI+3bOF29vCTgLmS1nseEE+jV3wwvRbP68NTCVsKDyyOGa 72GR3qIFRbF3i0DRG1BKwEGOkMvp4Js/26gu5hHooNx0h8Vr/SAtx4A7pwcknUg1KA4b X+Vw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id ny24si8515037ejb.445.2020.05.19.07.39.16; Tue, 19 May 2020 07:39:39 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729258AbgESOgz (ORCPT + 99 others); Tue, 19 May 2020 10:36:55 -0400 Received: from out28-100.mail.aliyun.com ([115.124.28.100]:60037 "EHLO out28-100.mail.aliyun.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729142AbgESOgy (ORCPT ); Tue, 19 May 2020 10:36:54 -0400 X-Alimail-AntiSpam: AC=CONTINUE;BC=0.2139776|-1;CH=green;DM=|CONTINUE|false|;DS=CONTINUE|ham_regular_dialog|0.0138233-0.000220315-0.985956;FP=0|0|0|0|0|-1|-1|-1;HT=e02c03308;MF=zhouyanjie@wanyeetech.com;NM=1;PH=DS;RN=20;RT=20;SR=0;TI=SMTPD_---.HalgxFh_1589898954; Received: from localhost.localdomain(mailfrom:zhouyanjie@wanyeetech.com fp:SMTPD_---.HalgxFh_1589898954) by smtp.aliyun-inc.com(10.147.42.198); Tue, 19 May 2020 22:36:24 +0800 From: =?UTF-8?q?=E5=91=A8=E7=90=B0=E6=9D=B0=20=28Zhou=20Yanjie=29?= To: linux-mips@vger.kernel.org Cc: linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, tsbogend@alpha.franken.de, paulburton@kernel.org, jiaxun.yang@flygoat.com, chenhc@lemote.com, tglx@linutronix.de, robh+dt@kernel.org, daniel.lezcano@linaro.org, keescook@chromium.org, paul@crapouillou.net, krzk@kernel.org, hns@goldelico.com, ebiederm@xmission.com, dongsheng.qiu@ingenic.com, yanfei.li@ingenic.com, rick.tyliu@ingenic.com, sernia.zhou@foxmail.com, zhenwenjin@gmail.com Subject: [PATCH v8 4/6] dt-bindings: MIPS: Document Ingenic SoCs binding. Date: Tue, 19 May 2020 22:35:21 +0800 Message-Id: <1589898923-60048-6-git-send-email-zhouyanjie@wanyeetech.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1589898923-60048-1-git-send-email-zhouyanjie@wanyeetech.com> References: <1589898923-60048-1-git-send-email-zhouyanjie@wanyeetech.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Document the available properties for the SoC root node and the CPU nodes of the devicetree for the Ingenic XBurst SoCs. Tested-by: H. Nikolaus Schaller Tested-by: Paul Boddie Signed-off-by: 周琰杰 (Zhou Yanjie) --- Notes: v1->v2: Change the two Document from txt to yaml. v2->v3: Fix formatting errors. v3->v4: Fix bugs in the two yaml files. v4->v5: No change. v5->v6: Rewrite the two yaml files. v6->v7: 1.Update compatible strings in "ingenic,cpu.yaml". 2.Fix formatting errors, and enum for compatible strings. 3.Remove unnecessary "ingenic,soc.yaml". v7->v8: No change. .../bindings/mips/ingenic/ingenic,cpu.yaml | 57 ++++++++++++++++++++++ 1 file changed, 57 insertions(+) create mode 100644 Documentation/devicetree/bindings/mips/ingenic/ingenic,cpu.yaml diff --git a/Documentation/devicetree/bindings/mips/ingenic/ingenic,cpu.yaml b/Documentation/devicetree/bindings/mips/ingenic/ingenic,cpu.yaml new file mode 100644 index 00000000..afb0207 --- /dev/null +++ b/Documentation/devicetree/bindings/mips/ingenic/ingenic,cpu.yaml @@ -0,0 +1,57 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/mips/ingenic/ingenic,cpu.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Bindings for Ingenic XBurst family CPUs + +maintainers: + - 周琰杰 (Zhou Yanjie) + +description: + Ingenic XBurst family CPUs shall have the following properties. + +properties: + compatible: + oneOf: + + - description: Ingenic XBurst®1 CPU Cores + items: + enum: + - ingenic,xburst-mxu1.0 + - ingenic,xburst-fpu1.0-mxu1.1 + - ingenic,xburst-fpu2.0-mxu2.0 + + - description: Ingenic XBurst®2 CPU Cores + items: + enum: + - ingenic,xburst2-fpu2.1-mxu2.1-smt + + reg: + maxItems: 1 + +required: + - device_type + - compatible + - reg + +examples: + - | + cpus { + #address-cells = <1>; + #size-cells = <0>; + + cpu0: cpu@0 { + device_type = "cpu"; + compatible = "ingenic,xburst-fpu1.0-mxu1.1"; + reg = <0>; + }; + + cpu1: cpu@1 { + device_type = "cpu"; + compatible = "ingenic,xburst-fpu1.0-mxu1.1"; + reg = <1>; + }; + }; +... -- 2.7.4