From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jisheng Zhang Subject: Re: [PATCH 3/3] arm64: dts: synaptics: add dtsi file for Synaptics AS370 SoC Date: Tue, 24 Jul 2018 13:58:37 +0800 Message-ID: <20180724135837.7a85fedc@xhacker.debian> References: <20180713171712.05f58a74@xhacker.debian> <20180713172626.5ca0e30f@xhacker.debian> <20180720152117.GB26487@rob-hp-laptop> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20180720152117.GB26487@rob-hp-laptop> Sender: linux-kernel-owner@vger.kernel.org To: Rob Herring Cc: Mark Rutland , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Sebastian Hesselbarth List-Id: devicetree@vger.kernel.org Hi Rob, On Fri, 20 Jul 2018 09:21:17 -0600 Rob Herring wrote: > On Fri, Jul 13, 2018 at 05:26:26PM +0800, Jisheng Zhang wrote: > > Add initial dtsi file to support Synaptics AS370 SoC with quad > > Cortex-A53 CPUs. > > > > Signed-off-by: Jisheng Zhang > > --- > > arch/arm64/boot/dts/synaptics/as370.dtsi | 177 +++++++++++++++++++++++ > > 1 file changed, 177 insertions(+) > > create mode 100644 arch/arm64/boot/dts/synaptics/as370.dtsi > > > > diff --git a/arch/arm64/boot/dts/synaptics/as370.dtsi b/arch/arm64/boot/dts/synaptics/as370.dtsi > > new file mode 100644 > > index 000000000000..20f3d658c566 > > --- /dev/null > > +++ b/arch/arm64/boot/dts/synaptics/as370.dtsi > > @@ -0,0 +1,177 @@ > > +// SPDX-License-Identifier: (GPL-2.0 OR MIT) > > +/* > > + * Copyright (C) 2018 Synaptics Incorporated > > + * > > + * Author: Jisheng Zhang > > + */ > > + > > +#include > > + > > +/ { > > + compatible = "syna,as370"; > > + interrupt-parent = <&gic>; > > + #address-cells = <2>; > > + #size-cells = <2>; > > + > > + aliases { > > + serial0 = &uart0; > > This normally goes in the board file. All boards will use this? Yes. AFAIK, all boards will use uart0 as the serial console. But I could move it to the board file. > > > + }; > > + > > + psci { > > + compatible = "arm,psci-1.0"; > > + method = "smc"; > > + }; > > + > > + cpus { > > + #address-cells = <1>; > > + #size-cells = <0>; > > + > > + cpu0: cpu@0 { > > + compatible = "arm,cortex-a53", "arm,armv8"; > > + device_type = "cpu"; > > + reg = <0x0>; > > + enable-method = "psci"; > > + next-level-cache = <&l2>; > > + cpu-idle-states = <&CPU_SLEEP_0>; > > + }; > > + > > + cpu1: cpu@1 { > > + compatible = "arm,cortex-a53", "arm,armv8"; > > + device_type = "cpu"; > > + reg = <0x1>; > > + enable-method = "psci"; > > + next-level-cache = <&l2>; > > + cpu-idle-states = <&CPU_SLEEP_0>; > > + }; > > + > > + cpu2: cpu@2 { > > + compatible = "arm,cortex-a53", "arm,armv8"; > > + device_type = "cpu"; > > + reg = <0x2>; > > + enable-method = "psci"; > > + next-level-cache = <&l2>; > > + cpu-idle-states = <&CPU_SLEEP_0>; > > + }; > > + > > + cpu3: cpu@3 { > > + compatible = "arm,cortex-a53", "arm,armv8"; > > + device_type = "cpu"; > > + reg = <0x3>; > > + enable-method = "psci"; > > + next-level-cache = <&l2>; > > + cpu-idle-states = <&CPU_SLEEP_0>; > > + }; > > + > > + l2: cache { > > + compatible = "cache"; > > Why do you need this node? Doesn't define If the l2 node is missing, I will get below warning: [ 1.364795] Unable to detect cache hierarchy for CPU 0 reported by drivers/base/cacheinfo.c > > > + }; > > + > > + idle-states { > > + entry-method = "psci"; > > + CPU_SLEEP_0: cpu-sleep-0 { > > + compatible = "arm,idle-state"; > > + local-timer-stop; > > + arm,psci-suspend-param = <0x0010000>; > > + entry-latency-us = <75>; > > + exit-latency-us = <155>; > > + min-residency-us = <1000>; > > + }; > > + }; > > + }; > > + > > + osc: osc { > > + compatible = "fixed-clock"; > > + #clock-cells = <0>; > > + clock-frequency = <25000000>; > > + }; > > + > > + pmu { > > + compatible = "arm,cortex-a53-pmu"; > > + interrupts = , > > + , > > + , > > + ; > > + interrupt-affinity = <&cpu0>, > > + <&cpu1>, > > + <&cpu2>, > > + <&cpu3>; > > + }; > > + > > + timer { > > + compatible = "arm,armv8-timer"; > > + interrupts = , > > + , > > + , > > + ; > > + }; > > + > > + soc@f7000000 { > > + compatible = "simple-bus"; > > + #address-cells = <1>; > > + #size-cells = <1>; > > + ranges = <0 0 0xf7000000 0x1000000>; > > + > > + gic: interrupt-controller@901000 { > > + compatible = "arm,gic-400"; > > + #interrupt-cells = <3>; > > + interrupt-controller; > > + reg = <0x901000 0x1000>, > > + <0x902000 0x2000>, > > + <0x904000 0x2000>, > > + <0x906000 0x2000>; > > + interrupts = ; > > + }; > > + > > + apb@e80000 { > > + compatible = "simple-bus"; > > + #address-cells = <1>; > > + #size-cells = <1>; > > + ranges = <0 0xe80000 0x10000>; > > + > > + uart0: uart@0c00 { > > serial@c00 will do in v2 Thanks a lot