From patchwork Mon Nov 26 12:54:56 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Horman X-Patchwork-Id: 10698375 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id DCAAF17D5 for ; Mon, 26 Nov 2018 13:24:22 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id CB1B628E91 for ; Mon, 26 Nov 2018 13:24:22 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id BFDEB29430; Mon, 26 Nov 2018 13:24:22 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=unavailable version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 6F32828E91 for ; Mon, 26 Nov 2018 13:24:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:References: In-Reply-To:Message-Id:Date:Subject:To:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=69/QO4p+GFYG+PiZ02go8qlF7JPoKaOr30+BeAhxSaA=; b=tuPjsylDJEVgv06RYXR+gsHzVX AlLxqBtAZlri+VwBJe9FHA6/eTOfgoZzvZWsNprOvWANm8IrGqPITAto9ecK7BtynlQkC9VmmZVbD 7nPjrDQlkI9RNHRKINP3qiEQphbl9r0gnClzkzDuXWgJSm+6EDqVQHezIH9djzyDsT3iIQjp1Dvrj Q6A+ADluG4hLH6HwvM54e2AHeXSvvcUnQ4w5npdfpizE6ddhaHuq6ONXEK8U4LURImTZzC7twhSCa /T7EUuMteHKq1MOjlZPFaH6TCffKRM5hJwuUW/1DrU5OTO/d4UNTQpAD4OXBBdiPJCxu2xA81U6YD Bh67v6zQ==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1gRGs9-0006Ji-EV; Mon, 26 Nov 2018 13:24:21 +0000 Received: from casper.infradead.org ([85.118.1.10]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gRGgF-0005GJ-6b for linux-arm-kernel@bombadil.infradead.org; Mon, 26 Nov 2018 13:12:03 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=References:In-Reply-To:Message-Id:Date: Subject:Cc:To:From:Sender:Reply-To:MIME-Version:Content-Type: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=8/Ou+j0FYfRvgYt6mixG9jVbuQf4vWD2HtnZRRkX78M=; b=trkZAfgy/MPLv1eHe7y4j2emd O2z4uG/AhPVAVeePlWmMDNKSgwJh8uN3bWUvHswLlYMP6fWcepMCsqg10emuSqmnRDUYR+MxtY+ej YZFAJA+o0KR7rHpAmXovY6acoDEgn7shI7+aOYU3M4bgjBK4qBUny7BmH2cgCXcMvwS3FsqaASr0I B+dUI285uToNPVCdJqNAe6ogP0FJ3qHr/vnKNoInPmfGfbCM27FvIRDrt1x20Zg16dIFbRCiIH7IF p+oI8emucluqL82n2jX6fLNLddcaI9JsGhJZ805HXd6TikxOgVjwnSrSSdxFlwlfcdxrqUJYX3dDb s+y+6sscA==; Received: from kirsty.vergenet.net ([202.4.237.240]) by casper.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1gRGbG-0005w7-FR for linux-arm-kernel@lists.infradead.org; Mon, 26 Nov 2018 13:07:00 +0000 Received: from reginn.horms.nl (watermunt.horms.nl [80.127.179.77]) by kirsty.vergenet.net (Postfix) with ESMTPA id CCC3825BEF9; Mon, 26 Nov 2018 23:55:15 +1100 (AEDT) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=verge.net.au; s=mail; t=1543236916; bh=9LPPCkMqK9hSqU8RPZredv8M0eTYQedfLS982JLZgNw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=i8AUhw9m3HcisYxZrFxWDlbFREDWowvU2evlejICRWPFs7OzZT+NVvTqgFHZFeHDZ 2HibjpSwq79Ysi9c76lSUP//9ZAW245dtDCpnEu1FscVH5NAS3uYoziKOc08ZqXprK lB1aOLvnlYCO6OB6LN80TRaWO1hItkyoVnFvg4bY= Received: by reginn.horms.nl (Postfix, from userid 7100) id 9D120940AEF; Mon, 26 Nov 2018 13:55:09 +0100 (CET) From: Simon Horman To: linux-renesas-soc@vger.kernel.org Subject: [PATCH 30/40] arm64: dts: renesas: Add CPU topology on R-Car Gen3 SoCs Date: Mon, 26 Nov 2018 13:54:56 +0100 Message-Id: X-Mailer: git-send-email 2.11.0 In-Reply-To: References: X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20181126_130654_782218_18555B7B X-CRM114-Status: GOOD ( 11.03 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Simon Horman , Gaku Inami , Magnus Damm , linux-arm-kernel@lists.infradead.org MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP From: Gaku Inami This patch adds the "cpu-map" into r8a7795/r8a7796 composed of multi-cluster. This definition is used to parse the cpu topology. Signed-off-by: Gaku Inami Reviewed-by: Geert Uytterhoeven Signed-off-by: Simon Horman --- arch/arm64/boot/dts/renesas/r8a7795.dtsi | 32 ++++++++++++++++++++++++++++++++ arch/arm64/boot/dts/renesas/r8a7796.dtsi | 26 ++++++++++++++++++++++++++ 2 files changed, 58 insertions(+) diff --git a/arch/arm64/boot/dts/renesas/r8a7795.dtsi b/arch/arm64/boot/dts/renesas/r8a7795.dtsi index 660fd54d384b..408ff4e8170a 100644 --- a/arch/arm64/boot/dts/renesas/r8a7795.dtsi +++ b/arch/arm64/boot/dts/renesas/r8a7795.dtsi @@ -116,6 +116,38 @@ #address-cells = <1>; #size-cells = <0>; + cpu-map { + cluster0 { + core0 { + cpu = <&a57_0>; + }; + core1 { + cpu = <&a57_1>; + }; + core2 { + cpu = <&a57_2>; + }; + core3 { + cpu = <&a57_3>; + }; + }; + + cluster1 { + core0 { + cpu = <&a53_0>; + }; + core1 { + cpu = <&a53_1>; + }; + core2 { + cpu = <&a53_2>; + }; + core3 { + cpu = <&a53_3>; + }; + }; + }; + a57_0: cpu@0 { compatible = "arm,cortex-a57", "arm,armv8"; reg = <0x0>; diff --git a/arch/arm64/boot/dts/renesas/r8a7796.dtsi b/arch/arm64/boot/dts/renesas/r8a7796.dtsi index 3baee26ae372..b12bf73bb03b 100644 --- a/arch/arm64/boot/dts/renesas/r8a7796.dtsi +++ b/arch/arm64/boot/dts/renesas/r8a7796.dtsi @@ -127,6 +127,32 @@ #address-cells = <1>; #size-cells = <0>; + cpu-map { + cluster0 { + core0 { + cpu = <&a57_0>; + }; + core1 { + cpu = <&a57_1>; + }; + }; + + cluster1 { + core0 { + cpu = <&a53_0>; + }; + core1 { + cpu = <&a53_1>; + }; + core2 { + cpu = <&a53_2>; + }; + core3 { + cpu = <&a53_3>; + }; + }; + }; + a57_0: cpu@0 { compatible = "arm,cortex-a57", "arm,armv8"; reg = <0x0>;