From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jiaxun Yang Subject: Re: [PATCH 11/13] dt-bindings: mips: Add loongson cpus & boards Date: Tue, 27 Aug 2019 22:18:46 +0800 Message-ID: References: <20190827085302.5197-1-jiaxun.yang@flygoat.com> <20190827085302.5197-12-jiaxun.yang@flygoat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Return-path: In-Reply-To: Content-Language: en-US Sender: linux-kernel-owner@vger.kernel.org To: Rob Herring Cc: "open list:MIPS" , Huacai Chen , Paul Burton , Thomas Gleixner , Jason Cooper , Marc Zyngier , "linux-kernel@vger.kernel.org" , Mark Rutland , devicetree@vger.kernel.org List-Id: devicetree@vger.kernel.org On 2019/8/27 下午8:45, Rob Herring wrote: > On Tue, Aug 27, 2019 at 3:55 AM Jiaxun Yang wrote: >> Prepare for later dts. >> >> Signed-off-by: Jiaxun Yang >> --- >> .../bindings/mips/loongson/cpus.yaml | 38 +++++++++++ >> .../bindings/mips/loongson/devices.yaml | 64 +++++++++++++++++++ >> 2 files changed, 102 insertions(+) >> create mode 100644 Documentation/devicetree/bindings/mips/loongson/cpus.yaml >> create mode 100644 Documentation/devicetree/bindings/mips/loongson/devices.yaml >> >> diff --git a/Documentation/devicetree/bindings/mips/loongson/cpus.yaml b/Documentation/devicetree/bindings/mips/loongson/cpus.yaml >> new file mode 100644 >> index 000000000000..410d896a0078 >> --- /dev/null >> +++ b/Documentation/devicetree/bindings/mips/loongson/cpus.yaml >> @@ -0,0 +1,38 @@ >> +# SPDX-License-Identifier: GPL-2.0 > Dual license for new bindings please: > > (GPL-2.0-only OR BSD-2-Clause) > >> +%YAML 1.2 >> +--- >> +$id: http://devicetree.org/schemas/mips/loongson/cpus.yaml# >> +$schema: http://devicetree.org/meta-schemas/core.yaml# >> + >> +title: Loongson CPUs bindings >> + >> +maintainers: >> + - Jiaxun Yang >> + >> +description: |+ >> + 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. >> + >> + Bindings for CPU nodes follow the Devicetree Specification, available from: >> + >> + https://www.devicetree.org/specifications/ >> + >> +properties: >> + reg: >> + maxItems: 1 >> + description: | >> + Physical ID of a CPU, Can be read from CP0 EBase.CPUNum. > Is this definition specific to Loongson CPUs or all MIPS? Currently it's specific to Loongson CPU only, as other processors may using different method to express CPU map. Different from Arm, MIPS family of processors seems less uniform and have their own designs. For this point, we'd better ask Paul's opinion. -- Jiaxun Yang