From patchwork Mon Aug 8 22:34:03 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: John Stultz X-Patchwork-Id: 9269895 X-Patchwork-Delegate: agross@codeaurora.org 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 6C3B160754 for ; Mon, 8 Aug 2016 22:34:43 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 57E241FFD7 for ; Mon, 8 Aug 2016 22:34:43 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 4AF3B28173; Mon, 8 Aug 2016 22:34:43 +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.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,T_DKIM_INVALID 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 D259B28159 for ; Mon, 8 Aug 2016 22:34:42 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752374AbcHHWef (ORCPT ); Mon, 8 Aug 2016 18:34:35 -0400 Received: from mail-pf0-f173.google.com ([209.85.192.173]:34922 "EHLO mail-pf0-f173.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751788AbcHHWeL (ORCPT ); Mon, 8 Aug 2016 18:34:11 -0400 Received: by mail-pf0-f173.google.com with SMTP id x72so123215351pfd.2 for ; Mon, 08 Aug 2016 15:34:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=Q13agEwup7HNA0F9x1cAZJW4HHyJVDZaprAlHt8k/Yk=; b=UUlIMAkHEnM+rw0vxrdbZKgFfb0bwJTGaIRjvskstwBAttyS1RK74uCGh4kp2dHld0 Zwxqptz3OG0ITam3KE5b8gkP+1KsWx2ynYM95kViiFM6pdDYpDkicWWtnxknGZrYI7Qh upuoxPYWoc2ppwgdkEsxLyI/n6NgVadRArHzc= 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=Q13agEwup7HNA0F9x1cAZJW4HHyJVDZaprAlHt8k/Yk=; b=Iqu+i4soXrBBI7gehsfq/sKzfbxEbCeyJR11dLpk9WPBgsoYSdI1ZptZ+c5PYFAbd6 qxz0HRUfjfBmOgFv80/BGVWtpS/jsVy3fG/IJUMJrprhClgVK2sE8gb8sK8PaQXDqSD1 jOjpr2sb4hYitIBSZvucFvad/+VH3kxAVmupKMJ3I2Ef6QLNHBCgKGcaFrkyagYbzzqd 3RyyF7sRkTX8ULUL0tx1wmx/ESaQATM7qf8WK/L05MCunSasuaBMIoNn0Vh0WDRDhrPn OSAR52XVebmEJkH5xjp1avLoaR/ekZuWPmMs0Dw0h/rwxRrKAZ3IPEBxOoZ0+KGzXu8E iAEg== X-Gm-Message-State: AEkoouv6JGb052C/zRoyMxN7xsFkN2vB2yqNr/sIkKnY4sADwc2Njo5edKEv9kKQkSpJrq/G X-Received: by 10.98.8.142 with SMTP id 14mr167507362pfi.57.1470695651248; Mon, 08 Aug 2016 15:34:11 -0700 (PDT) Received: from localhost.localdomain (c-73-67-244-238.hsd1.or.comcast.net. [73.67.244.238]) by smtp.gmail.com with ESMTPSA id d185sm50430028pfd.80.2016.08.08.15.34.10 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 08 Aug 2016 15:34:10 -0700 (PDT) From: John Stultz To: lkml Cc: John Stultz , Rob Herring , Andy Gross , Bjorn Andersson , Stephen Boyd , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org Subject: [PATCH 2/2] device-tree: nexus7: Add IMEM syscon and reboot reason support Date: Mon, 8 Aug 2016 15:34:03 -0700 Message-Id: <1470695643-32169-2-git-send-email-john.stultz@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1470695643-32169-1-git-send-email-john.stultz@linaro.org> References: <1470695643-32169-1-git-send-email-john.stultz@linaro.org> Sender: linux-arm-msm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP This patch add the IMEM syscon memory region to the DT, as well as addds support for the magic reboot reason values that are written to the address for each mode. Cc: Rob Herring Cc: Andy Gross Cc: Bjorn Andersson Cc: Stephen Boyd Cc: linux-arm-msm@vger.kernel.org Cc: devicetree@vger.kernel.org Signed-off-by: John Stultz Reviewed-by: Bjorn Andersson --- arch/arm/boot/dts/qcom-apq8064-asus-nexus7-flo.dts | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/arch/arm/boot/dts/qcom-apq8064-asus-nexus7-flo.dts b/arch/arm/boot/dts/qcom-apq8064-asus-nexus7-flo.dts index 7b05f07..ff856c3 100644 --- a/arch/arm/boot/dts/qcom-apq8064-asus-nexus7-flo.dts +++ b/arch/arm/boot/dts/qcom-apq8064-asus-nexus7-flo.dts @@ -272,5 +272,19 @@ vqmmc-supply = <&pm8921_s4>; }; }; + + imem@2a03f000 { + compatible = "syscon", "simple-mfd"; + reg = <0x2a03f000 0x1000>; + + reboot-mode { + compatible = "syscon-reboot-mode"; + offset = <0x65c>; + + mode-normal = <0x77665501>; + mode-bootloader = <0x77665500>; + mode-recovery = <0x77665502>; + }; + }; }; };