Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp136825ybl; Mon, 2 Dec 2019 08:37:10 -0800 (PST) X-Google-Smtp-Source: APXvYqzC6O9F13JYSVTm1KRjU2zEvABk4FXpq+JVcZUqmbZdBc9N3vtyDmljufR1+56FwCW4LTUG X-Received: by 2002:a17:907:11cc:: with SMTP id va12mr59785306ejb.164.1575304630639; Mon, 02 Dec 2019 08:37:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1575304630; cv=none; d=google.com; s=arc-20160816; b=o1FGRnUSt8ihcNIgwjbnCCY4fjXJNbjvZedKwIzTeoPs8f8rg724FOR8+8M2eoaKER 4jRXwZeySM6NuaiPWTbiaaKQjWNrgIfPCHJN50oj1b3JoVty30950dUL7OI+JnGaZumS VHu0PPSkE8aRvJr5dDRSegbbPDaHbn4xmGNfgxfDtga0uCqw0LzeZRwi/7wsKx5quI4F SBURNrpxm288MlqtiTMuoH1SLV/i1fqfaspTAivW3rLVrCc3u17QGSHGrcEhoaYeupdP 51IooA0bRDlZ09we3csYbnmFvs5NB5VcRtGRacra1p9dhzWiVRV3AfSaYF0xxsF9r9EY uirQ== 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:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=14auw/bogWWHnVe7gKr3YPeUf/hDrert8lTyIeXZTgc=; b=VQS5t+KXh2GBVWLikGwAtNCm6GX18FjuzK06S/PeEoxfq8956OPoPu5C8x2iWqANek YQcP+p6mr0gDppSRJQb2FcA10Js0+7CKmVr6qPvFlT9Ft0cS6MyHmn2NEirmeWcJ0NaF ykE0CMt9costGoNBYCErhVOnES/MyG/5dpNczGBeOmAxwws3WMM5PzBYcrHRrjQwiVHf kl3BlOrPdjjLtO4DwBR52uqUzQee9JHg/cvd1Sh4HsHoxMxTCO3IFjoiNYqrPBwk91r5 BsWRoAbAZzLxtLlvXrviklKXX4GHSZ08+QcwFTI5Lw/pdH3eZkur+9uM5QMfDGyxnrEV crig== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=fuIAH6SY; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y17si12026764edu.83.2019.12.02.08.36.45; Mon, 02 Dec 2019 08:37:10 -0800 (PST) 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; dkim=pass header.i=@kernel.org header.s=default header.b=fuIAH6SY; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727549AbfLBQdg (ORCPT + 99 others); Mon, 2 Dec 2019 11:33:36 -0500 Received: from mail.kernel.org ([198.145.29.99]:57648 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727418AbfLBQdg (ORCPT ); Mon, 2 Dec 2019 11:33:36 -0500 Received: from mail-qt1-f181.google.com (mail-qt1-f181.google.com [209.85.160.181]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 8E4292084F; Mon, 2 Dec 2019 16:33:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1575304414; bh=iQH96Vs2T9TQdYzyOj/q1Gf724ykpw844ZjShyRmznY=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=fuIAH6SYDVdPq1CpdERDZdmMbR632d21p7dbAwat9pFMIKOV6wHRpeonHaAeYOuBe 1AE+UyHSBglMU6d6W5Y7qhMhR7AlDh4YCEMle2GWVDvTaAMcu2NLumtKF2XtqaED9E 1F1ZB3/PzXQy4iBjPGRL1TI5cAEhICqhL8NkQpgg= Received: by mail-qt1-f181.google.com with SMTP id i17so340039qtq.1; Mon, 02 Dec 2019 08:33:34 -0800 (PST) X-Gm-Message-State: APjAAAWD6WukdBdFMosJDQfV08nanIs8OdttREIJymxDl86I25onAMEv sPH2OUMedudj45/+oSygG/MVTe8zJdKBkHTrmQ== X-Received: by 2002:ac8:6747:: with SMTP id n7mr154447qtp.224.1575304413718; Mon, 02 Dec 2019 08:33:33 -0800 (PST) MIME-Version: 1.0 References: <20191111090230.3402-1-chunyan.zhang@unisoc.com> <20191111090230.3402-6-chunyan.zhang@unisoc.com> <20191114210516.GB16668@bogus> In-Reply-To: From: Rob Herring Date: Mon, 2 Dec 2019 10:33:21 -0600 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v2 5/5] arm64: dts: Add Unisoc's SC9863A SoC support To: Chunyan Zhang Cc: Chunyan Zhang , Mark Rutland , DTML , Linux Kernel Mailing List , Orson Zhai , Baolin Wang , Arnd Bergmann Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Nov 25, 2019 at 2:34 AM Chunyan Zhang wrote: > > On Fri, 15 Nov 2019 at 22:43, Rob Herring wrote: > > > > On Fri, Nov 15, 2019 at 2:59 AM Chunyan Zhang wr= ote: > > > > > > On Fri, 15 Nov 2019 at 05:05, Rob Herring wrote: > > > > > > > > On Mon, Nov 11, 2019 at 05:02:30PM +0800, Chunyan Zhang wrote: > > > > > > > > > > Add basic DT to support Unisoc's SC9863A, with this patch, > > > > > the board sp9863a-1h10 can run into console. > > > > > > > > > > Signed-off-by: Chunyan Zhang > > > > > --- > > > > > arch/arm64/boot/dts/sprd/Makefile | 3 +- > > > > > arch/arm64/boot/dts/sprd/sc9863a.dtsi | 536 ++++++++++++++++= ++++++ > > > > > arch/arm64/boot/dts/sprd/sharkl3.dtsi | 188 ++++++++ > > > > > arch/arm64/boot/dts/sprd/sp9863a-1h10.dts | 40 ++ > > > > > 4 files changed, 766 insertions(+), 1 deletion(-) > > > > > create mode 100644 arch/arm64/boot/dts/sprd/sc9863a.dtsi > > > > > create mode 100644 arch/arm64/boot/dts/sprd/sharkl3.dtsi > > > > > create mode 100644 arch/arm64/boot/dts/sprd/sp9863a-1h10.dts > > > > > > > > > > diff --git a/arch/arm64/boot/dts/sprd/Makefile b/arch/arm64/boot/= dts/sprd/Makefile > > > > > index 2bdc23804f40..f4f1f5148cc2 100644 > > > > > --- a/arch/arm64/boot/dts/sprd/Makefile > > > > > +++ b/arch/arm64/boot/dts/sprd/Makefile > > > > > @@ -1,3 +1,4 @@ > > > > > # SPDX-License-Identifier: GPL-2.0 > > > > > dtb-$(CONFIG_ARCH_SPRD) +=3D sc9836-openphone.dtb \ > > > > > - sp9860g-1h10.dtb > > > > > + sp9860g-1h10.dtb \ > > > > > + sp9863a-1h10.dtb > > > > > diff --git a/arch/arm64/boot/dts/sprd/sc9863a.dtsi b/arch/arm64/b= oot/dts/sprd/sc9863a.dtsi > > > > > new file mode 100644 > > > > > index 000000000000..578d71a932d9 > > > > > --- /dev/null > > > > > +++ b/arch/arm64/boot/dts/sprd/sc9863a.dtsi > > > > > @@ -0,0 +1,536 @@ > > > > > +// SPDX-License-Identifier: GPL-2.0-only > > > > > +/* > > > > > + * Unisoc SC9863A SoC DTS file > > > > > + * > > > > > + * Copyright (C) 2019, Unisoc Inc. > > > > > + */ > > > > > + > > > > > +#include > > > > > +#include "sharkl3.dtsi" > > > > > + > > > > > +/ { > > > > > + cpus { > > > > > + #address-cells =3D <2>; > > > > > + #size-cells =3D <0>; > > > > > + > > > > > + cpu-map { > > > > > + cluster0 { > > > > > + core0 { > > > > > + cpu =3D <&CPU0>; > > > > > + }; > > > > > + core1 { > > > > > + cpu =3D <&CPU1>; > > > > > + }; > > > > > + core2 { > > > > > + cpu =3D <&CPU2>; > > > > > + }; > > > > > + core3 { > > > > > + cpu =3D <&CPU3>; > > > > > + }; > > > > > + }; > > > > > + > > > > > + cluster1 { > > > > > + core0 { > > > > > + cpu =3D <&CPU4>; > > > > > + }; > > > > > + core1 { > > > > > + cpu =3D <&CPU5>; > > > > > + }; > > > > > + core2 { > > > > > + cpu =3D <&CPU6>; > > > > > + }; > > > > > + core3 { > > > > > + cpu =3D <&CPU7>; > > > > > + }; > > > > > + }; > > > > > + }; > > > > > + > > > > > + CPU0: cpu@0 { > > > > > + device_type =3D "cpu"; > > > > > + compatible =3D "arm,cortex-a55"; > > > > > + reg =3D <0x0 0x0>; > > > > > + enable-method =3D "psci"; > > > > > + cpu-idle-states =3D <&CORE_PD>; > > > > > + }; > > > > > + > > > > > + CPU1: cpu@100 { > > > > > > > > Your numbering seems odd. This follows the MPIDR reg? Normally a cl= uster > > > > would share the same number in one of the bytes. > > > > > > We're using A55, and the spec says that bit[15:8] identifies > > > individual cores within the local DynamIQ=E2=84=A2 cluster > > > > Okay. > > > > > Also, we only support one cluster. > > > > cpu-map shows 2 clusters. > > From the scheduler view, we have two clusters, but there's actually > one physical cluster only. What's the scheduler? ;) DT describes the physical system. Rob