From patchwork Thu Sep 22 16:48:35 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Wolfgang Wiedmeyer X-Patchwork-Id: 9345815 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 D16C7607D0 for ; Thu, 22 Sep 2016 17:03:05 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id BCBB02A94C for ; Thu, 22 Sep 2016 17:03:05 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id B10E12ABC8; Thu, 22 Sep 2016 17:03:05 +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=-1.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, T_DKIM_INVALID autolearn=no 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 99A512A94C for ; Thu, 22 Sep 2016 17:02:53 +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 1bn7Mv-0005RI-MY; Thu, 22 Sep 2016 17:01:05 +0000 Received: from wiedmeyer.de ([85.116.192.112]) by bombadil.infradead.org with esmtps (Exim 4.85_2 #1 (Red Hat Linux)) id 1bn7Mo-0005N9-R3 for linux-arm-kernel@lists.infradead.org; Thu, 22 Sep 2016 17:01:00 +0000 Received: from localhost (localhost.localdomain [127.0.0.1]) by wiedmeyer.localdomain (Postfix) with ESMTP id C246B8E7437 for ; Thu, 22 Sep 2016 18:49:26 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=wiedmeyer.de; s=dkim; t=1474562966; bh=G6APN4MzsyYcgG5DrHBtV2oJcoamVcG4n5zuuOJhIoE=; h=From:To:Cc:Subject:Date:From; b=juZDsU/Ojrpamh1AdnIucW+fKJxQcujd6BgqzmL6ltPCXImnEi8WDhxw4sj+CA8qd nH9z/ossvELTDN9YbkSU803E1ai6n7sFbt2JGsZuiovk+d6Rqg+KvjSthrWlPs/gjB BEBPkhykWkxiKebE2Jh8kio0ksn+zrSEp/vfh6ulcNT7G1Il5cx0yeSdWpbzMBoPha UAOf5YRAmVbBDGPsf4LI6gMWN/zRybrbBeqLLwHz2eMiqSRU4wc8PE7DWMUNuAn3Yc J22k4OiaUlUmioKUvzSMmmQ8h1KtKUsYSPMI4tMTw9DO3hHm2ZK+MYQS+BNLwOKcmn wLTVJNznd5qRw== X-Virus-Scanned: Debian amavisd-new at wiedmeyer.de Received: from wiedmeyer.de ([127.0.0.1]) by localhost (wiedmeyer.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id dfXd4qph-Bdw for ; Thu, 22 Sep 2016 18:49:24 +0200 (CEST) Received: from machinist.lan (OpenWrt.lan [192.168.1.1]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (Client did not present a certificate) by wiedmeyer.localdomain (Postfix) with ESMTPSA id F20108E7431; Thu, 22 Sep 2016 18:49:18 +0200 (CEST) From: Wolfgang Wiedmeyer To: krzk@kernel.org, kgene@kernel.org Subject: [PATCH] ARM: dts: exynos: Add reboot reason support for Trats2 Date: Thu, 22 Sep 2016 18:48:35 +0200 Message-Id: <1474562915-4319-1-git-send-email-wolfgit@wiedmeyer.de> X-Mailer: git-send-email 2.8.0.rc3 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20160922_100059_161611_1427F249 X-CRM114-Status: UNSURE ( 9.83 ) 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: mark.rutland@arm.com, devicetree@vger.kernel.org, linux-samsung-soc@vger.kernel.org, Wolfgang Wiedmeyer , linux@armlinux.org.uk, linux-kernel@vger.kernel.org, javier@osg.samsung.com, robh+dt@kernel.org, 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 This allows to reboot the device into recovery mode and into the download mode of the bootloader. Signed-off-by: Wolfgang Wiedmeyer --- arch/arm/boot/dts/exynos4412-trats2.dts | 14 ++++++++++++++ arch/arm/boot/dts/exynos4x12.dtsi | 2 +- 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/exynos4412-trats2.dts b/arch/arm/boot/dts/exynos4412-trats2.dts index 129e973..a38d1e3 100644 --- a/arch/arm/boot/dts/exynos4412-trats2.dts +++ b/arch/arm/boot/dts/exynos4412-trats2.dts @@ -1294,3 +1294,17 @@ vtmu-supply = <&ldo10_reg>; status = "okay"; }; + +&pmu { + compatible = "syscon", "simple-mfd"; + + reboot-mode { + compatible = "syscon-reboot-mode"; + offset = <0x80c>; + + mode-normal = <0x12345670>; + mode-bootloader = <0x12345671>; + mode-download = <0x12345671>; + mode-recovery = <0x12345674>; + }; +}; diff --git a/arch/arm/boot/dts/exynos4x12.dtsi b/arch/arm/boot/dts/exynos4x12.dtsi index c452499..b58c14e 100644 --- a/arch/arm/boot/dts/exynos4x12.dtsi +++ b/arch/arm/boot/dts/exynos4x12.dtsi @@ -179,7 +179,7 @@ ranges; status = "disabled"; - pmu@10020000 { + pmu: pmu@10020000 { reg = <0x10020000 0x3000>; };