diff options
author | John Stultz <john.stultz@linaro.org> | 2016-08-22 18:48:04 -0400 |
---|---|---|
committer | Wei Xu <xuwei5@hisilicon.com> | 2016-08-24 11:19:35 -0400 |
commit | 330fd87c21488e9165eae238ae6ae2ee6b471d11 (patch) | |
tree | be9c8c07b473e172cb1d837273a8313b4b3505ad /arch/arm64/boot/dts | |
parent | b77c23a084256ec45399a9c089919398aa9776f0 (diff) |
arm64: dts: hikey: Add hikey support for syscon-reboot-mode
Add support to hikey dts for the syscon-reboot-mode driver.
After trying an approach using a sram driver and node, a number
of issues cropped up which would make it so we would be
duplicating a lot of extra syscon infrastructure in order to
support mfds on sram. After talking with Bjorn, using the
syscon driver for this seems like an better choice.
Cc: Andy Yan <andy.yan@rock-chips.com>
Cc: Bjorn Andersson <bjorn.andersson@linaro.org>
Cc: Haojian Zhuang <haojian.zhuang@linaro.org>
Cc: Guodong Xu <guodong.xu@linaro.org>
Cc: Wei Xu <xuwei5@hisilicon.com>
Cc: Rob Herring <robh+dt@kernel.org>
Cc: Mark Rutland <mark.rutland@arm.com>
Cc: Catalin Marinas <catalin.marinas@arm.com>
Cc: Will Deacon <will.deacon@arm.com>
Cc: linux-arm-kernel@lists.infradead.org
Cc: devicetree@vger.kernel.org
Acked-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Signed-off-by: John Stultz <john.stultz@linaro.org>
Signed-off-by: Wei Xu <xuwei5@hisilicon.com>
Diffstat (limited to 'arch/arm64/boot/dts')
-rw-r--r-- | arch/arm64/boot/dts/hisilicon/hi6220-hikey.dts | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/arch/arm64/boot/dts/hisilicon/hi6220-hikey.dts b/arch/arm64/boot/dts/hisilicon/hi6220-hikey.dts index bdf93102e2b1..49d53ff0314b 100644 --- a/arch/arm64/boot/dts/hisilicon/hi6220-hikey.dts +++ b/arch/arm64/boot/dts/hisilicon/hi6220-hikey.dts | |||
@@ -29,6 +29,7 @@ | |||
29 | * Reserve below regions from memory node: | 29 | * Reserve below regions from memory node: |
30 | * | 30 | * |
31 | * 0x05e0,0000 - 0x05ef,ffff: MCU firmware runtime using | 31 | * 0x05e0,0000 - 0x05ef,ffff: MCU firmware runtime using |
32 | * 0x05f0,1000 - 0x05f0,1fff: Reboot reason | ||
32 | * 0x06df,f000 - 0x06df,ffff: Mailbox message data | 33 | * 0x06df,f000 - 0x06df,ffff: Mailbox message data |
33 | * 0x0740,f000 - 0x0740,ffff: MCU firmware section | 34 | * 0x0740,f000 - 0x0740,ffff: MCU firmware section |
34 | * 0x3e00,0000 - 0x3fff,ffff: OP-TEE | 35 | * 0x3e00,0000 - 0x3fff,ffff: OP-TEE |
@@ -36,11 +37,26 @@ | |||
36 | memory@0 { | 37 | memory@0 { |
37 | device_type = "memory"; | 38 | device_type = "memory"; |
38 | reg = <0x00000000 0x00000000 0x00000000 0x05e00000>, | 39 | reg = <0x00000000 0x00000000 0x00000000 0x05e00000>, |
39 | <0x00000000 0x05f00000 0x00000000 0x00eff000>, | 40 | <0x00000000 0x05f00000 0x00000000 0x00001000>, |
41 | <0x00000000 0x05f02000 0x00000000 0x00efd000>, | ||
40 | <0x00000000 0x06e00000 0x00000000 0x0060f000>, | 42 | <0x00000000 0x06e00000 0x00000000 0x0060f000>, |
41 | <0x00000000 0x07410000 0x00000000 0x36bf0000>; | 43 | <0x00000000 0x07410000 0x00000000 0x36bf0000>; |
42 | }; | 44 | }; |
43 | 45 | ||
46 | reboot-mode-syscon@5f01000 { | ||
47 | compatible = "syscon", "simple-mfd"; | ||
48 | reg = <0x0 0x05f01000 0x0 0x00001000>; | ||
49 | |||
50 | reboot-mode { | ||
51 | compatible = "syscon-reboot-mode"; | ||
52 | offset = <0x0>; | ||
53 | |||
54 | mode-normal = <0x77665501>; | ||
55 | mode-bootloader = <0x77665500>; | ||
56 | mode-recovery = <0x77665502>; | ||
57 | }; | ||
58 | }; | ||
59 | |||
44 | soc { | 60 | soc { |
45 | spi0: spi@f7106000 { | 61 | spi0: spi@f7106000 { |
46 | status = "ok"; | 62 | status = "ok"; |