From patchwork Tue Jun 21 22:03:22 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sergei Shtylyov X-Patchwork-Id: 9191477 X-Patchwork-Delegate: horms@verge.net.au 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 EA032601C0 for ; Tue, 21 Jun 2016 22:08:30 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id CDF9F28358 for ; Tue, 21 Jun 2016 22:08:30 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id BF388283DF; Tue, 21 Jun 2016 22:08:30 +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=-6.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,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 203CF28383 for ; Tue, 21 Jun 2016 22:08:30 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751519AbcFUWI3 (ORCPT ); Tue, 21 Jun 2016 18:08:29 -0400 Received: from mail-lf0-f48.google.com ([209.85.215.48]:33338 "EHLO mail-lf0-f48.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751099AbcFUWI2 (ORCPT ); Tue, 21 Jun 2016 18:08:28 -0400 Received: by mail-lf0-f48.google.com with SMTP id f6so45924219lfg.0 for ; Tue, 21 Jun 2016 15:08:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cogentembedded-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:organization:user-agent :in-reply-to:references:mime-version:content-transfer-encoding; bh=CnkbE40o7/yTc1/LbPAeTge/m9IZe/yEGgx5dm8QKtE=; b=vrIaIl+yNiqfSuZInmSyixzj+hEHoPoZVW0oUQC6prk3dO+V3awiPdkviyOsQ/v6kC ONtzijgjJ+WJs4s7ZEqM+MlNAf+z4lAzr5DLf1yunOxJEqAOHKq5WyCxosiRgzujATXY ip5nUeCrsAA7Szp1tPlpLQReO+eqRDhveSW5xneB/Nw5ceH3HxPQsDi4lmiSZpyIFm4M Ig8gIqbYvEYnPK9JHijHUhqkpFZ5y7Cbj8fJ7HFf5XB69GLvH+vDPA2xPOv2wC8L7+VH bFdGU+fAlZ1WRNTFP05LEcf+XY2eD+Y1LS8uVK/DQPFXM8CLuUis6Lqnd6OvC1/Z9v3A H5gQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:organization :user-agent:in-reply-to:references:mime-version :content-transfer-encoding; bh=CnkbE40o7/yTc1/LbPAeTge/m9IZe/yEGgx5dm8QKtE=; b=duOB0HNV8LBf6zWrj3KUCu8V2Oi3MMHO/kCKwIWbjUbUpw4WzVQ2M3XcuiDzsj9PQV /1Y9MRVNdB2bqSyijOb8ixK1zc0SN/ViolRILwh6RB37DV6cLoXDCT1gnXkP7szJGGqY hTHX66JghqrIsYbH4PmLOwcakWb+pJem575l1tGijCZEkGS5o5mxG8YCNYGTR3X7g1Dz stywYQ02gTdX+OpZSo2Yt5njmmVIUf/NaMFvL2MB6eoscXxcCVIOpov2PUwmn9eLXICX 9nS2GwuX+jiHAsqJX0y4hMF52MkeFSonjKsp/rJ4psiBBM4ESqumtKhd9ChL7cjD1UXs XHtA== X-Gm-Message-State: ALyK8tLHcWx9GzuAiTqgyf6wkBSSJrochck0iFP1RGulIJsIJfxIDU9JmKIIFn92GVkQ9Q== X-Received: by 10.25.41.83 with SMTP id p80mr8191793lfp.32.1466546906823; Tue, 21 Jun 2016 15:08:26 -0700 (PDT) Received: from wasted.cogentembedded.com ([31.173.85.29]) by smtp.gmail.com with ESMTPSA id p8sm6717601lba.30.2016.06.21.15.08.26 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 21 Jun 2016 15:08:26 -0700 (PDT) From: Sergei Shtylyov To: horms@verge.net.au, linux-renesas-soc@vger.kernel.org, robh+dt@kernel.org, mark.rutland@arm.com, devicetree@vger.kernel.org Cc: magnus.damm@gmail.com, linux@arm.linux.org.uk, linux-arm-kernel@lists.infradead.org Subject: [PATCH] ARM: dts: r8a7794: add SMP support Date: Wed, 22 Jun 2016 01:03:22 +0300 Message-ID: <27171008.uuY7altQup@wasted.cogentembedded.com> Organization: Cogent Embedded Inc. User-Agent: KMail/4.14.10 (Linux/4.4.12-200.fc22.x86_64; KDE/4.14.17; x86_64; ; ) In-Reply-To: <14666252.G84Ipxe6EL@wasted.cogentembedded.com> References: <14666252.G84Ipxe6EL@wasted.cogentembedded.com> MIME-Version: 1.0 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 tree node for the Advanced Power Management Unit (APMU). Use the "enable-method" prop to point out that the APMU should be used for the SMP support. Signed-off-by: Sergei Shtylyov Reviewed-by: Geert Uytterhoeven --- This patch is against the 'renesas-devel-20160621-v4.7-rc4' tag of Simon Horman's 'renesas.git' repo. It depends on Magnus'/Geert's SMP patchset... SMP/PM basically works but you can't offline CPU0 (system hangs)... arch/arm/boot/dts/r8a7794.dtsi | 7 +++++++ 1 file changed, 7 insertions(+) Index: renesas/arch/arm/boot/dts/r8a7794.dtsi =================================================================== --- renesas.orig/arch/arm/boot/dts/r8a7794.dtsi +++ renesas/arch/arm/boot/dts/r8a7794.dtsi @@ -37,6 +37,7 @@ cpus { #address-cells = <1>; #size-cells = <0>; + enable-method = "renesas,apmu"; cpu0: cpu@0 { device_type = "cpu"; @@ -65,6 +66,12 @@ }; }; + apmu@e6151000 { + compatible = "renesas,r8a7794-apmu", "renesas,apmu"; + reg = <0 0xe6151000 0 0x188>; + cpus = <&cpu0 &cpu1>; + }; + gic: interrupt-controller@f1001000 { compatible = "arm,gic-400"; #interrupt-cells = <3>;