From patchwork Thu May 17 20:19:44 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sergei Shtylyov X-Patchwork-Id: 10407669 X-Patchwork-Delegate: geert@linux-m68k.org Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id AC6B960247 for ; Thu, 17 May 2018 20:19:53 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 9B9E0286FD for ; Thu, 17 May 2018 20:19:53 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 903782870C; Thu, 17 May 2018 20:19:53 +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=-7.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D9653286FD for ; Thu, 17 May 2018 20:19:52 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752384AbeEQUTv (ORCPT ); Thu, 17 May 2018 16:19:51 -0400 Received: from mail-lf0-f65.google.com ([209.85.215.65]:42230 "EHLO mail-lf0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752389AbeEQUTs (ORCPT ); Thu, 17 May 2018 16:19:48 -0400 Received: by mail-lf0-f65.google.com with SMTP id b18-v6so10615510lfa.9 for ; Thu, 17 May 2018 13:19:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cogentembedded-com.20150623.gappssmtp.com; s=20150623; h=from:subject:to:cc:references:organization:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=fke+jM+NfNbI9ZVKGZM42/X1wpmLOK9RJ+jb/uVSvjM=; b=10qcQvtBJ6pLfqxg9EfKQ2xvVGgXZ3L7l9yA7Y93CoOmiOouVT8MymsEAnhi4J6nFT ZNCCqhGJ2t3B/+Gi9pc5Yx2js0fFr/99ccj8EJ/DDMX5sCPhON+rO1XHsDQj0tVO+0/E IH+jFIRsVUlWHXPApWQFbnksLSJUsLuF+HWRt8NGdDnd1BeqoFnWQG0ZAONTYRPOfVSs 2ZncX5CFncYbRQlplhuNrDrL3+HyLivXltp7APDgBZU6vdcPBUJCJHisCuG0DLILO+Dk Y3XysruRbp+TTBIaelZc5KfXpAPKYVGoouUFAkIa4iRbb8Zf7H3GQaCN/q5IxFSbUCA6 Zl7A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:subject:to:cc:references:organization :message-id:date:user-agent:mime-version:in-reply-to :content-language:content-transfer-encoding; bh=fke+jM+NfNbI9ZVKGZM42/X1wpmLOK9RJ+jb/uVSvjM=; b=RJSmZeK0M/nHHBkmeJtzJ32W6Pu+fJ9jbv8q/vd33T+yIKr16htdEIVXpIS7pP8Jec FSsLjbNlWURJVUT+Xx7jaOj2fDPwLRCdqkNQChavgda4s6M3mCb8igMWk0jyV9q3l/2A XRdIf3F/88k1n0SE6lFgYLhWhoFf+3kb1sQOa9dJhWVr3uKj+v+qGPgGKCVf/K2Dwqq0 32NFbqqMTE+7UcBdn3txCno72TeQToQP/MwJdvnjtjwA+m7fAsgbhgGnQUw6J+NMaXW6 M3AT5P9CALU4KoWPs4cy3xKRdhLEOz1A5W+LkZ2QiKwpIHulwZWA4CBuks1+yQTnK+hM jkVg== X-Gm-Message-State: ALKqPweTx0H7CP1sIB1Wx83Kk7juOsaXhjmoo7tx2+9Encx/ZlJ/YXgg VoejN2pdBEHqMP/5Iko+GTLNTw== X-Google-Smtp-Source: AB8JxZqgSth4c9IKpXClWCa24O76e3ODH4hUbPUK32gXMKIfIeYgLFciOGg5EZT1V6ZkGISXftjNQw== X-Received: by 2002:a19:b55a:: with SMTP id e87-v6mr18588319lff.54.1526588386866; Thu, 17 May 2018 13:19:46 -0700 (PDT) Received: from wasted.cogentembedded.com ([31.173.81.43]) by smtp.gmail.com with ESMTPSA id j188-v6sm1414706lfg.52.2018.05.17.13.19.45 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 17 May 2018 13:19:45 -0700 (PDT) From: Sergei Shtylyov Subject: [PATCH] arm64: dts: renesas: r8a77980: add SMP support To: Simon Horman , linux-renesas-soc@vger.kernel.org, Rob Herring , devicetree@vger.kernel.org, Catalin Marinas , Will Deacon Cc: Mark Rutland , Magnus Damm , linux-arm-kernel@lists.infradead.org References: <14666252.G84Ipxe6EL@wasted.cogentembedded.com> Organization: Cogent Embedded Message-ID: Date: Thu, 17 May 2018 23:19:44 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.2.1 MIME-Version: 1.0 In-Reply-To: <14666252.G84Ipxe6EL@wasted.cogentembedded.com> Content-Language: en-MW Sender: linux-renesas-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-renesas-soc@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Add the device nodes for 3 more Cortex-A53 CPU cores; adjust the interrupt delivery masks for the ARM GIC and Architectured Timer. Based on the original (and large) patch by Vladimir Barinov. Signed-off-by: Vladimir Barinov Signed-off-by: Sergei Shtylyov Reviewed-by: Simon Horman Reviewed-by: Geert Uytterhoeven --- The patch is against the 'renesas-devel-20180516v2-v4.17-rc5' tag of Simon Horman's 'renesas.git' repo. Tested successfully on the V3M Starter Kit board (except offlining CPU0 hangs the kernel). arch/arm64/boot/dts/renesas/r8a77980.dtsi | 40 ++++++++++++++++++++++++++---- 1 file changed, 35 insertions(+), 5 deletions(-) Index: renesas/arch/arm64/boot/dts/renesas/r8a77980.dtsi =================================================================== --- renesas.orig/arch/arm64/boot/dts/renesas/r8a77980.dtsi +++ renesas/arch/arm64/boot/dts/renesas/r8a77980.dtsi @@ -30,6 +30,36 @@ enable-method = "psci"; }; + a53_1: cpu@1 { + device_type = "cpu"; + compatible = "arm,cortex-a53","arm,armv8"; + reg = <1>; + clocks = <&cpg CPG_CORE R8A77980_CLK_Z2>; + power-domains = <&sysc R8A77980_PD_CA53_CPU1>; + next-level-cache = <&L2_CA53>; + enable-method = "psci"; + }; + + a53_2: cpu@2 { + device_type = "cpu"; + compatible = "arm,cortex-a53","arm,armv8"; + reg = <2>; + clocks = <&cpg CPG_CORE R8A77980_CLK_Z2>; + power-domains = <&sysc R8A77980_PD_CA53_CPU2>; + next-level-cache = <&L2_CA53>; + enable-method = "psci"; + }; + + a53_3: cpu@3 { + device_type = "cpu"; + compatible = "arm,cortex-a53","arm,armv8"; + reg = <3>; + clocks = <&cpg CPG_CORE R8A77980_CLK_Z2>; + power-domains = <&sysc R8A77980_PD_CA53_CPU3>; + next-level-cache = <&L2_CA53>; + enable-method = "psci"; + }; + L2_CA53: cache-controller { compatible = "cache"; power-domains = <&sysc R8A77980_PD_CA53_SCU>; @@ -408,7 +438,7 @@ <0x0 0xf1020000 0 0x20000>, <0x0 0xf1040000 0 0x20000>, <0x0 0xf1060000 0 0x20000>; - interrupts = ; clocks = <&cpg CPG_MOD 408>; clock-names = "clk"; @@ -424,13 +454,13 @@ timer { compatible = "arm,armv8-timer"; - interrupts-extended = <&gic GIC_PPI 13 (GIC_CPU_MASK_SIMPLE(1) | + interrupts-extended = <&gic GIC_PPI 13 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>, - <&gic GIC_PPI 14 (GIC_CPU_MASK_SIMPLE(1) | + <&gic GIC_PPI 14 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>, - <&gic GIC_PPI 11 (GIC_CPU_MASK_SIMPLE(1) | + <&gic GIC_PPI 11 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>, - <&gic GIC_PPI 10 (GIC_CPU_MASK_SIMPLE(1) | + <&gic GIC_PPI 10 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>; }; };