From patchwork Tue Dec 15 05:59:07 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: John Stultz X-Patchwork-Id: 58377 Delivered-To: patches@linaro.org Received: by 10.112.73.68 with SMTP id j4csp1922231lbv; Mon, 14 Dec 2015 21:59:12 -0800 (PST) X-Received: by 10.67.22.137 with SMTP id hs9mr51763423pad.66.1450159151921; Mon, 14 Dec 2015 21:59:11 -0800 (PST) Return-Path: Received: from mail-pf0-x233.google.com (mail-pf0-x233.google.com. [2607:f8b0:400e:c00::233]) by mx.google.com with ESMTPS id z8si22405435pfa.80.2015.12.14.21.59.11 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 14 Dec 2015 21:59:11 -0800 (PST) Received-SPF: pass (google.com: domain of john.stultz@linaro.org designates 2607:f8b0:400e:c00::233 as permitted sender) client-ip=2607:f8b0:400e:c00::233; Authentication-Results: mx.google.com; spf=pass (google.com: domain of john.stultz@linaro.org designates 2607:f8b0:400e:c00::233 as permitted sender) smtp.mailfrom=john.stultz@linaro.org; dkim=pass header.i=@linaro.org Received: by pfbu66 with SMTP id u66so74260311pfb.3 for ; Mon, 14 Dec 2015 21:59:11 -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=kfKOaQsNnyOcHbXiWhvNvvd2ykPn2QtbixkOKl3bcZu4d78mMJmEBYYYqZfMK5EvyD VkRlr7fJY3AFdlk6wj96Q4PPGoWHqKBja99t5Q+Bi3LCzM3gsBAkp6U56Xw/OffrlLXE KybDo7h2GO+XZLvoXLU+yil09k01g6fP3/bwU= 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=T0SBoyQBCFoVB7epKZCPl2b2NJ2l2hH673KvPKFXXwFZN0lU5/DRCFYtsmfRJVCtTy IQDHO0pcqdqIw2tA7LklV0TIObNvxz7xa4rnruTXRI7s/7Sl+rroUVijUlNsWU7+BbTx jIFQNZPvjckL4eYpk/pOTJs/dOOUumqyLKfGwFmKtDbNGgaoOos8o+oCrrhSLC2dr6Yu Yg2S/yXzE1pFhrNBq1770tVLxBySDkOJk7pvA2Ht5akyoUNqQYdDLlJp6+im7HsOw6Ny yttsX4Rx+jlRyqPlY7qS+TDWVxZuntkaXeO89lfc92me7J8fgiWgirpf9vuhlZF5ji7F cJVw== X-Gm-Message-State: ALoCoQlxv0OcKvPS8MG2V8xVyeLmU0+YEtFOyGEKYTg3VjFlil8AVW/cR/J1JhX4H4xY/orBwczHvigtUaYW0qofT93CWypEEA== X-Received: by 10.98.64.199 with SMTP id f68mr16273449pfd.95.1450159151585; Mon, 14 Dec 2015 21:59:11 -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 dg1sm46563156pad.18.2015.12.14.21.59.10 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 14 Dec 2015 21:59:11 -0800 (PST) From: John Stultz To: 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: Mon, 14 Dec 2015 21:59:07 -0800 Message-Id: <1450159147-13626-2-git-send-email-john.stultz@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1450159147-13626-1-git-send-email-john.stultz@linaro.org> References: <1450159147-13626-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";