From patchwork Wed Dec 6 12:05:29 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabrizio Castro X-Patchwork-Id: 10095735 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 5123D60210 for ; Wed, 6 Dec 2017 12:06:20 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 4188829C7E for ; Wed, 6 Dec 2017 12:06:20 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 35AC029CE0; Wed, 6 Dec 2017 12:06:20 +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=-4.2 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.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 BDEFD29C7E for ; Wed, 6 Dec 2017 12:06:19 +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: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:In-Reply-To: References:List-Owner; bh=DSX6bJ5Lzw9gA6HSB4lcfhkg4M0SKNCb5CTFJpIUtWQ=; b=d72 Udog0FXq49ZsxdGUjIzCIJCFnM6aPxsH2c6nz6100mQoNVfpyJfMREG82PE5ds2tR31RsNSgW3X5v KQcQJo5BoymZU5M/9GDjGX6BwzSqqvdpioVLLSBDOMeF9Yt95m2qxyH5A8AHqEgDN8O32QNBYT4oR OorzgaoWyvEi7RG9/lbR1YtA5/QDSMK0GUuC1bkX85fktZUHKXqt6GWPVYf2kpIpK2v/ps+t98HQP 1Y7d49mZ61Scalbx+fly4HWp5/5QB+cqR9m2NBpfs61DCho/g8IT3m6DajtxIFkn1HBLHaBX4E3TG ly2bMLIiO5zUga3m1wqhyYewzSJZ9+w==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1eMYSw-0002Dj-KS; Wed, 06 Dec 2017 12:06:18 +0000 Received: from relmlor2.renesas.com ([210.160.252.172] helo=relmlie1.idc.renesas.com) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1eMYSo-00022O-Hh for linux-arm-kernel@lists.infradead.org; Wed, 06 Dec 2017 12:06:16 +0000 Received: from unknown (HELO relmlir1.idc.renesas.com) ([10.200.68.151]) by relmlie1.idc.renesas.com with ESMTP; 06 Dec 2017 21:05:47 +0900 Received: from relmlii1.idc.renesas.com (relmlii1.idc.renesas.com [10.200.68.65]) by relmlir1.idc.renesas.com (Postfix) with ESMTP id EFB258CAB0; Wed, 6 Dec 2017 21:05:47 +0900 (JST) X-IronPort-AV: E=Sophos;i="5.45,367,1508770800"; d="scan'208";a="264334553" Received: from unknown (HELO fabrizio-dev.ree.adwin.renesas.com) ([10.226.36.198]) by relmlii1.idc.renesas.com with ESMTP; 06 Dec 2017 21:05:45 +0900 From: Fabrizio Castro To: Simon Horman Subject: [PATCH v2] ARM: dts: r8a7745: Add APMU node and second CPU core Date: Wed, 6 Dec 2017 12:05:29 +0000 Message-Id: <1512561929-16540-1-git-send-email-fabrizio.castro@bp.renesas.com> X-Mailer: git-send-email 2.7.4 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20171206_040610_745026_7AFF2787 X-CRM114-Status: UNSURE ( 7.27 ) X-CRM114-Notice: Please train this message. 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: Fabrizio Castro , Mark Rutland , Chris Paterson , devicetree@vger.kernel.org, Magnus Damm , Russell King , linux-renesas-soc@vger.kernel.org, Rob Herring , Geert Uytterhoeven , 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 Add DT node for the Advanced Power Management Unit (APMU), add the second CPU core, and use "renesas,apmu" as "enable-method". Signed-off-by: Fabrizio Castro Signed-off-by: Chris Paterson Reviewed-by: Biju Das Reviewed-by: Geert Uytterhoeven --- Dear All, I am reposting this patch now that its dependecy ("ARM: shmobile: rcar-gen2: Make sure CNTVOFF is initialized on CA7/15") is part of v4.15-rc1, similarly to patch "ARM: dts: r8a7794: Add SMP support". v2: - rebased against renesas-devel-20171205-v4.15-rc2 Thanks arch/arm/boot/dts/r8a7745.dtsi | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/arch/arm/boot/dts/r8a7745.dtsi b/arch/arm/boot/dts/r8a7745.dtsi index de13e15..0fa7861 100644 --- a/arch/arm/boot/dts/r8a7745.dtsi +++ b/arch/arm/boot/dts/r8a7745.dtsi @@ -38,6 +38,7 @@ cpus { #address-cells = <1>; #size-cells = <0>; + enable-method = "renesas,apmu"; cpu0: cpu@0 { device_type = "cpu"; @@ -49,6 +50,15 @@ next-level-cache = <&L2_CA7>; }; + cpu1: cpu@1 { + device_type = "cpu"; + compatible = "arm,cortex-a7"; + reg = <1>; + clock-frequency = <1000000000>; + power-domains = <&sysc R8A7745_PD_CA7_CPU1>; + next-level-cache = <&L2_CA7>; + }; + L2_CA7: cache-controller-0 { compatible = "cache"; cache-unified; @@ -65,6 +75,12 @@ #size-cells = <2>; ranges; + apmu@e6151000 { + compatible = "renesas,r8a7745-apmu", "renesas,apmu"; + reg = <0 0xe6151000 0 0x188>; + cpus = <&cpu0 &cpu1>; + }; + gic: interrupt-controller@f1001000 { compatible = "arm,gic-400"; #interrupt-cells = <3>;