From: wxt@rock-chips.com (Caesar Wang) Date: Wed, 13 Jan 2016 10:08:50 +0800 Subject: [PATCH] ARM: dts: rockchip: add reboot-mode node for rk3036 SoCs In-Reply-To: <1452650930-22883-1-git-send-email-wxt@rock-chips.com> References: <1452650930-22883-1-git-send-email-wxt@rock-chips.com> Message-ID: <1452650930-22883-2-git-send-email-wxt@rock-chips.com> To: linux-arm-kernel@lists.infradead.org List-Id: linux-arm-kernel.lists.infradead.org Add reboot mode driver DT node for rk3036 platform. Signed-off-by: Caesar Wang --- arch/arm/boot/dts/rk3036.dtsi | 33 ++++++++++++++++++++++++++++++++- 1 file changed, 32 insertions(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/rk3036.dtsi b/arch/arm/boot/dts/rk3036.dtsi index ccc69ab..2e583f5 100644 --- a/arch/arm/boot/dts/rk3036.dtsi +++ b/arch/arm/boot/dts/rk3036.dtsi @@ -43,6 +43,7 @@ #include #include #include +#include #include "skeleton.dtsi" / { @@ -307,8 +308,38 @@ }; grf: syscon at 20008000 { - compatible = "rockchip,rk3036-grf", "syscon"; + compatible = "rockchip,rk3036-grf", "syscon", "simple-mfd"; reg = <0x20008000 0x1000>; + + reboot-mode { + compatible = "syscon-reboot-mode"; + offset = <0x1d8>; + + normal { + linux,mode = "normal"; + loader,magic = ; + }; + + loader { + linux,mode = "loader"; + loader,magic = ; + }; + + maskrom { + linux,mode = "maskrom"; + loader,magic = ; + }; + + recovery { + linux,mode = "recovery"; + loader,magic = ; + }; + + fastboot { + linux,mode = "fastboot"; + loader,magic = ; + }; + }; }; acodec: acodec-ana at 20030000 { -- 1.9.1