From patchwork Thu May 21 01:21:49 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Magnus Damm X-Patchwork-Id: 6451191 X-Patchwork-Delegate: horms@verge.net.au Return-Path: X-Original-To: patchwork-linux-sh@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 5324E9F318 for ; Thu, 21 May 2015 01:19:42 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 79B4720429 for ; Thu, 21 May 2015 01:19:41 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 7D889203EC for ; Thu, 21 May 2015 01:19:40 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753686AbbEUBTk (ORCPT ); Wed, 20 May 2015 21:19:40 -0400 Received: from mail-pa0-f51.google.com ([209.85.220.51]:35580 "EHLO mail-pa0-f51.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753055AbbEUBTj (ORCPT ); Wed, 20 May 2015 21:19:39 -0400 Received: by pacwv17 with SMTP id wv17so86555850pac.2; Wed, 20 May 2015 18:19:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:date:message-id:in-reply-to:references:subject; bh=y4l9QmTINEve1RAUoqfQ/h/Nz21E0dCxf680SQhobNU=; b=OugtOzv6DpSBG808Iov0grCCgO//TfMw6TTm1G1pQArmLJmVYddIvJGzg7S8CEB+lp VLQwYsnwX7MEA6F9Q7nGQ8hCYsylzLbdwLp60oiuq+3OljIz3cLUNextjJbBWthxNGTs LYnVOLWabbtx9zxPicZwmMnQJt8Jpt9vqRkuMylEEF15XUGvcOC1FQrt3e31wmbDq57n VfoinyrUQWk9wV/rCmNeJb87sgzZ4em84m+GUdwPNpPI7b716PRKJC0r9PVKHuhxVNfQ guZC0FLBIruwyPWrSCTBnlkMlZFw18BF7fQkVhnlP3BWCBAVZf5d8rHvXQEI3JUMa4lY MMEg== X-Received: by 10.68.132.103 with SMTP id ot7mr348647pbb.81.1432171179116; Wed, 20 May 2015 18:19:39 -0700 (PDT) Received: from [127.0.0.1] (s214090.ppp.asahi-net.or.jp. [220.157.214.90]) by mx.google.com with ESMTPSA id og11sm17340562pdb.91.2015.05.20.18.19.35 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 20 May 2015 18:19:37 -0700 (PDT) From: Magnus Damm To: linux-sh@vger.kernel.org Cc: mark.rutland@arm.com, devicetree@vger.kernel.org, lorenzo.pieralisi@arm.com, keita.kobayashi.ym@renesas.com, horms@verge.net.au, Magnus Damm Date: Thu, 21 May 2015 10:21:49 +0900 Message-Id: <20150521012149.25972.28452.sendpatchset@little-apple> In-Reply-To: <20150521012138.25972.91336.sendpatchset@little-apple> References: <20150521012138.25972.91336.sendpatchset@little-apple> Subject: [PATCH 01/04] devicetree: bindings: Renesas APMU and SMP Enable method Sender: linux-sh-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-sh@vger.kernel.org X-Spam-Status: No, score=-6.8 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, T_DKIM_INVALID, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Magnus Damm Add DT binding documentation for the APMU hardware and add "renesas,apmu" to the list of enable methods for the ARM cpus. Signed-off-by: Magnus Damm --- Documentation/devicetree/bindings/arm/cpus.txt | 1 Documentation/devicetree/bindings/power/renesas,apmu.txt | 31 ++++++++++++++ 2 files changed, 32 insertions(+) -- To unsubscribe from this list: send the line "unsubscribe linux-sh" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html --- 0001/Documentation/devicetree/bindings/arm/cpus.txt +++ work/Documentation/devicetree/bindings/arm/cpus.txt 2015-05-20 21:55:51.912366518 +0900 @@ -197,6 +197,7 @@ nodes to be present and contain the prop "qcom,gcc-msm8660" "qcom,kpss-acc-v1" "qcom,kpss-acc-v2" + "renesas,apmu" "rockchip,rk3066-smp" - cpu-release-addr --- /dev/null +++ work/Documentation/devicetree/bindings/power/renesas,apmu.txt 2015-05-20 22:39:34.872366518 +0900 @@ -0,0 +1,31 @@ +DT bindings for the Renesas Advanced Power Management Unit + +Renesas R-Car line of SoCs utilize one or more APMU hardware units +for CPU core power domain control including SMP boot and CPU Hotplug. + +Required properties: + +- compatible: Should be "renesas,apmu-", "renesas,apmu" as fallback. + Examples with soctypes are: + - "renesas,apmu-r8a7790" (R-Car H2) + - "renesas,apmu-r8a7791" (R-Car M2-W) + - "renesas,apmu-r8a7792" (R-Car V2H) + - "renesas,apmu-r8a7793" (R-Car M2-N) + - "renesas,apmu-r8a7794" (R-Car E2) + +- reg: Base address and length of the I/O registers used by the APMU. + +- cpus: This node contains a list of CPU cores, which should match the order + of CPU cores used by the WUPCR and PSTR registers in the Advanced Power + Management Until section of the device's datasheet. + + +Example: + +This shows the r8a7791 APMU that can control CPU0 and CPU1. + + apmu@e6152000 { + compatible = "renesas,apmu-r8a7791", "renesas,apmu"; + reg = <0 0xe6152000 0 0x188>; + cpus = <&cpu0 &cpu1>; + };