From patchwork Thu Nov 17 17:11:30 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Thierry Reding X-Patchwork-Id: 9434663 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 DEE1660469 for ; Thu, 17 Nov 2016 17:15:51 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id CD5DC29667 for ; Thu, 17 Nov 2016 17:15:51 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id C246329672; Thu, 17 Nov 2016 17:15:51 +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.1 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_MED, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 5ABC929667 for ; Thu, 17 Nov 2016 17:15:51 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.85_2 #1 (Red Hat Linux)) id 1c7QGE-0002pu-9o; Thu, 17 Nov 2016 17:14:06 +0000 Received: from mail-pg0-x243.google.com ([2607:f8b0:400e:c05::243]) by bombadil.infradead.org with esmtps (Exim 4.85_2 #1 (Red Hat Linux)) id 1c7QEY-0001kW-6V for linux-arm-kernel@lists.infradead.org; Thu, 17 Nov 2016 17:12:24 +0000 Received: by mail-pg0-x243.google.com with SMTP id p66so18092631pga.2 for ; Thu, 17 Nov 2016 09:12:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=09FchvfyvPr2Gn6WIWxaKG5ZjoJxbGaoLK34aukcgEw=; b=O/AEihcn5XOEg86rxON5HIs0/xepftMtSmFrgL8tEf5+Jm05gkPGyT1Ndx5aP4nwEA rKYRu6NwJ+wDw3Tj9EQvWMycYGfznrtkyK70vxYQS4NXtDqI/iXNK1mLkYttyUXzqn+H J6/k4S8SjgrUb15lUuV/ghrw/g41eK1GpXER8iacWpZmvMvLvG42zsu6tZZ1Q/gsygKB q9rXxCO90OnteqD2kQIybyreC2bUw28b9AsXi/W59sZag/D8JqW8/kYAdJDtWmQC4jkI ZgDiXiodGvW87Ynl+RI+EX7eQtgMk1Inp00ewu3liMgrM/YqPx0m5E1zX+xcycGHAFiP CjIQ== 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:in-reply-to :references; bh=09FchvfyvPr2Gn6WIWxaKG5ZjoJxbGaoLK34aukcgEw=; b=mjewhCyPrAiMWF8zchY9JzHgATUfuGjP0zBpfH1AXDjlO2hdRHF3eXLIS6jT40egd6 +RiM1NyHrTXRurucSQ6HMh/O+ewOKJR+sHxgL+NDu2nqHi8HWkKGyXUqw+7nrBX4pjOB VotWBW1QUm26mgXlseDOclWsb9KWF/fgaE3QBMwEwxvvn+YrOVkHZmAk52ksTI+xVnuG 6qCp4h7hm4V1EgAnsYRcEjtJ+T6Pt4/wTKzDO1UNQyPLprEDXP1v2w3V6U9ejBvg/AKw e4OjBHf95k5+KjytSrmLQMnj9eCP6TmHV33xopyV76WS88DmzLiJ7Onf3mU4g41hvvSz MmOQ== X-Gm-Message-State: ABUngvd0ft/ehGPy2wEDcJJh4aueLwnr/4Got95SIEzKsxbPVltbpxK4SnlFGmiXCqz+GQ== X-Received: by 10.98.64.195 with SMTP id f64mr6158147pfd.16.1479402722015; Thu, 17 Nov 2016 09:12:02 -0800 (PST) Received: from localhost (port-24584.pppoe.wtnet.de. [46.59.157.190]) by smtp.gmail.com with ESMTPSA id p68sm9518312pfd.11.2016.11.17.09.12.00 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 17 Nov 2016 09:12:00 -0800 (PST) From: Thierry Reding To: Thierry Reding Subject: [PATCH 8/9] arm64: tegra: Enable PSCI on P3310 Date: Thu, 17 Nov 2016 18:11:30 +0100 Message-Id: <20161117171131.20062-8-thierry.reding@gmail.com> X-Mailer: git-send-email 2.10.2 In-Reply-To: <20161117171131.20062-1-thierry.reding@gmail.com> References: <20161117171131.20062-1-thierry.reding@gmail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20161117_091222_400583_0ADF333D X-CRM114-Status: UNSURE ( 9.06 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-tegra@vger.kernel.org, Stephen Warren , Alexandre Courbot , linux-arm-kernel@lists.infradead.org, Jon Hunter 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: Thierry Reding The P3310 processor module comes ships with a firmware that implements PSCI 1.0. Enable and use it to bring up all CPUs. Signed-off-by: Thierry Reding --- arch/arm64/boot/dts/nvidia/tegra186-p3310.dtsi | 36 ++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) diff --git a/arch/arm64/boot/dts/nvidia/tegra186-p3310.dtsi b/arch/arm64/boot/dts/nvidia/tegra186-p3310.dtsi index 807af7b68761..2c158c6809a5 100644 --- a/arch/arm64/boot/dts/nvidia/tegra186-p3310.dtsi +++ b/arch/arm64/boot/dts/nvidia/tegra186-p3310.dtsi @@ -26,7 +26,43 @@ status = "okay"; }; + cpus { + cpu@0 { + enable-method = "psci"; + }; + + cpu@1 { + enable-method = "psci"; + }; + + cpu@2 { + enable-method = "psci"; + }; + + cpu@3 { + enable-method = "psci"; + }; + + cpu@4 { + enable-method = "psci"; + }; + + cpu@5 { + enable-method = "psci"; + }; + }; + bpmp { status = "okay"; }; + + psci { + compatible = "arm,psci-1.0"; + status = "okay"; + method = "smc"; + + cpu_off = <0x84000002>; + cpu_on = <0xc4000003>; + cpu_suspend = <0xc4000001>; + }; };