From patchwork Tue Dec 15 22:26:01 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: John Stultz X-Patchwork-Id: 58470 Delivered-To: patches@linaro.org Received: by 10.112.89.199 with SMTP id bq7csp329687lbb; Tue, 15 Dec 2015 14:27:08 -0800 (PST) X-Received: by 10.66.100.163 with SMTP id ez3mr58937948pab.5.1450218428566; Tue, 15 Dec 2015 14:27:08 -0800 (PST) Return-Path: Received: from mail-pa0-x22f.google.com (mail-pa0-x22f.google.com. [2607:f8b0:400e:c03::22f]) by mx.google.com with ESMTPS id 80si375766pfa.0.2015.12.15.14.27.08 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 15 Dec 2015 14:27:08 -0800 (PST) Received-SPF: pass (google.com: domain of john.stultz@linaro.org designates 2607:f8b0:400e:c03::22f as permitted sender) client-ip=2607:f8b0:400e:c03::22f; Authentication-Results: mx.google.com; spf=pass (google.com: domain of john.stultz@linaro.org designates 2607:f8b0:400e:c03::22f as permitted sender) smtp.mailfrom=john.stultz@linaro.org; dkim=pass header.i=@linaro.org Received: by mail-pa0-x22f.google.com with SMTP id nt2so2399380pab.3 for ; Tue, 15 Dec 2015 14:27:08 -0800 (PST) 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=Jvr+9vRJKGHHaU1wSYvDUGFrjq23UsrNMChQE1yRdtc=; b=J6pWsMgXXysjj1DIykm9/aNsIPEJJ5R8cnv/uLLq0xXMebVn5BlkZX5j91AtXpdhZt WhDDUaq4mP7gQtF/9zrjtbTPlSQhnu3pwjvM5J51IaHIIG5M/bMkaZZmwTEAhHnj6nFc u+jBN/8b8Nhob6sONJJDzlMwaBUEKlGW7W34w= 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=Jvr+9vRJKGHHaU1wSYvDUGFrjq23UsrNMChQE1yRdtc=; b=diUidMX2cDQtDowc+YwYwec+ZY0p1+6UMBP7JuKABxPn8IFLWP8l2JI0miYkbbdlnj /MmxVBFwp37Yyt2QKcp/MbF/spHxoZGPzhwbUCMz6UUmVdOpC79X55R1uNre9/HqZa+e cp61UtmjTTPpuJtHolc1W7cQpNbqQoD10ms1YQ9OSrEZeTGadst7TiVY1wMFormMSGqQ cW+rq1rfjodWVa8j/8Tbw1jgZEaYpQMBD6QzOWC8ByYX1+ZaiPG01eDWi60AQLiwjsWs i8LPjBI+21HyGPcg2H1yxuloAALZ6zIcy6r2TOkFvy5Pe10GzyVYKS62JD6gVQKcDLVW +P/Q== X-Gm-Message-State: ALoCoQm44RvEpFC6hpxUjFyEMkyYLi0tvYAiz+8D/sWYolSF3KB6y61X7HJt9NO648BfYdKoyiQHN9JnaB4NGYAyBmY5aPzhmg== X-Received: by 10.66.100.228 with SMTP id fb4mr28285943pab.84.1450218428178; Tue, 15 Dec 2015 14:27:08 -0800 (PST) Return-Path: Received: from localhost.localdomain (c-76-115-103-22.hsd1.or.comcast.net. [76.115.103.22]) by smtp.gmail.com with ESMTPSA id sv8sm4585389pab.13.2015.12.15.14.27.07 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 15 Dec 2015 14:27:07 -0800 (PST) From: John Stultz To: dev@lists.96boards.org Cc: John Stultz , Vishal Bhoj , haojian.zhuang@linaro.org, guodong.xu@linaro.org, John Stultz Subject: [PATCH 2/2] dts: hikey: Add reboot reason support Date: Tue, 15 Dec 2015 14:26:01 -0800 Message-Id: <1450218361-9144-2-git-send-email-john.stultz@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1450218361-9144-1-git-send-email-john.stultz@linaro.org> References: <1450218361-9144-1-git-send-email-john.stultz@linaro.org> Add support in the DT to enable the reboot reason support for "adb reboot bootloader" functionality. Cc: Vishal Bhoj Cc: haojian.zhuang@linaro.org Cc: guodong.xu@linaro.org Signed-off-by: John Stultz --- arch/arm64/boot/dts/hisilicon/hi6220-hikey.dts | 14 ++++++++++++++ 1 file changed, 14 insertions(+) -- 1.9.1 diff --git a/arch/arm64/boot/dts/hisilicon/hi6220-hikey.dts b/arch/arm64/boot/dts/hisilicon/hi6220-hikey.dts index 3c13965..f0cd5fa 100644 --- a/arch/arm64/boot/dts/hisilicon/hi6220-hikey.dts +++ b/arch/arm64/boot/dts/hisilicon/hi6220-hikey.dts @@ -52,12 +52,26 @@ <0x0 0x0740f000 0x0 0x00001000>; /* MCU firmware section */ }; + reboot-reason@05f01000 { + no-map; + reg = <0x0 0x05f01000 0x0 0x00001000>; + }; + mbox-buf@06dff000 { no-map; reg = <0x0 0x06dff000 0x0 0x00001000>; /* Mailbox message buf */ }; }; + reboot_reason: reboot-reason@05f01000 { + compatible = "linux,reboot-reason-sram"; + reg = <0x0 0x05F01000 0x0 0x4>; + reason,none = <0x77665501>; + reason,bootloader = <0x77665500>; + reason,recovery = <0x77665502>; + reason,oem = <0x6f656d00>; + }; + smb { uart0: uart@f8015000 { /* console */ status = "ok";