Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754808AbaK0Lvk (ORCPT ); Thu, 27 Nov 2014 06:51:40 -0500 Received: from cam-admin0.cambridge.arm.com ([217.140.96.50]:40752 "EHLO cam-admin0.cambridge.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753329AbaK0Lvh (ORCPT ); Thu, 27 Nov 2014 06:51:37 -0500 Date: Thu, 27 Nov 2014 11:50:43 +0000 From: Mark Rutland To: Chunyan Zhang Cc: "grant.likely@linaro.org" , "robh+dt@kernel.org" , Catalin Marinas , "gregkh@linuxfoundation.org" , "ijc+devicetree@hellion.org.uk" , "jslaby@suse.cz" , "galak@codeaurora.org" , "broonie@linaro.org" , "m-karicheri2@ti.com" , Pawel Moll , "artagnon@gmail.com" , "rrichter@cavium.com" , Will Deacon , "arnd@arndb.de" , "gnomes@lxorguk.ukuu.org.uk" , "corbet@lwn.net" , "jason@lakedaemon.net" , "broonie@kernel.org" , "heiko@sntech.de" , "shawn.guo@freescale.com" , "florian.vaussard@epfl.ch" , "andrew@lunn.ch" , "hytszk@gmail.com" , "orsonzhai@gmail.com" , "geng.ren@spreadtrum.com" , "zhizhou.zhang@spreadtrum.com" , "lanqing.liu@spreadtrum.com" , "zhang.lyra@gmail.com" , "wei.qiao@spreadtrum.com" , "devicetree@vger.kernel.org" , "linux-arm-kernel@lists.infradead.org" , "linux-kernel@vger.kernel.org" , "sprdlinux@freelists.org" , "linux-doc@vger.kernel.org" , "linux-serial@vger.kernel.org" , "linux-api@vger.kernel.org" , marc.zyngier@arm.com Subject: Re: [PATCH v3 3/5] arm64: dts: Add support for Spreadtrum SC9836 SoC in dts and Makefile Message-ID: <20141127115042.GE857@leverpostej> References: <1416917818-10506-1-git-send-email-chunyan.zhang@spreadtrum.com> <1416917818-10506-4-git-send-email-chunyan.zhang@spreadtrum.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1416917818-10506-4-git-send-email-chunyan.zhang@spreadtrum.com> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Nov 25, 2014 at 12:16:56PM +0000, Chunyan Zhang wrote: > From: Zhizhou Zhang > > Adds the device tree support for Spreadtrum SC9836 SoC which is based on > Sharkl64 platform. > > Sharkl64 platform contains the common nodes of Spreadtrum's arm64-based SoCs. > > Signed-off-by: Zhizhou Zhang > Signed-off-by: Chunyan Zhang > Signed-off-by: Orson Zhai > --- > arch/arm64/boot/dts/Makefile | 1 + > arch/arm64/boot/dts/sprd-sc9836-openphone.dts | 85 ++++++++++++++++++++ > arch/arm64/boot/dts/sprd-sc9836.dtsi | 103 ++++++++++++++++++++++++ > arch/arm64/boot/dts/sprd-sharkl64.dtsi | 105 +++++++++++++++++++++++++ > 4 files changed, 294 insertions(+) > create mode 100644 arch/arm64/boot/dts/sprd-sc9836-openphone.dts > create mode 100644 arch/arm64/boot/dts/sprd-sc9836.dtsi > create mode 100644 arch/arm64/boot/dts/sprd-sharkl64.dtsi > > diff --git a/arch/arm64/boot/dts/Makefile b/arch/arm64/boot/dts/Makefile > index f8001a6..d0aff8a 100644 > --- a/arch/arm64/boot/dts/Makefile > +++ b/arch/arm64/boot/dts/Makefile > @@ -1,4 +1,5 @@ > dtb-$(CONFIG_ARCH_THUNDER) += thunder-88xx.dtb > +dtb-$(CONFIG_ARCH_SHARKL64) += sprd-sc9836-openphone.dtb > dtb-$(CONFIG_ARCH_VEXPRESS) += rtsm_ve-aemv8a.dtb foundation-v8.dtb > dtb-$(CONFIG_ARCH_XGENE) += apm-mustang.dtb [...] > + gic: interrupt-controller@12001000 { > + compatible = "arm,cortex-a15-gic", "arm,cortex-a9-gic"; > + #interrupt-cells = <3>; > + interrupt-controller; > + reg = <0 0x12001000 0 0x1000>, > + <0 0x12002000 0 0x1000>, > + <0 0x12004000 0 0x2000>, > + <0 0x12006000 0 0x2000>; > + }; I believe GICC should be 8KiB here. > + > + psci { > + compatible = "arm,psci-0.2"; > + method = "smc"; > + }; Do you have a complete PSCI 0.2 implementation (e.g. are all the mandatory functions implemented)? I take it CPUs enter the kernel at EL2? How have you tested this? > + > + timer { > + compatible = "arm,armv8-timer"; > + interrupts = <1 13 0xff01>, > + <1 14 0xff01>, > + <1 11 0xff01>, > + <1 10 0xff01>; > + clock-frequency = <26000000>; Please remove the clock-frequency property. Your FW should initialise CNTFRQ_EL0 on all CPUs (certainly PSCI 0.2 requires that you do this). [...] > + clocks { > + clk26mhz: clk26mhz { > + compatible = "fixed-clock"; > + #clock-cells = <0>; > + clock-frequency = <26000000>; > + }; > + }; Get rid of the "clocks" container node. There's no need for it. Thanks, Mark. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/