Add the reboot mode dts for RK3036 SoCs
Subsystems (2)
cover Add the reboot mode dts for RK3036 SoCs
This patch is depend on the Andy' patches.
http://www.spinics.net/lists/kernel/msg2160362.html
This series patches are verified by the following URL:
https://github.com/Caesar-github/rockchip/commits/kylin-develop4.4
The base version is kernel 4.4 release version.
Caesar Wang (1):
ARM: dts: rockchip: add reboot-mode node for rk3036 SoCs
arch/arm/boot/dts/rk3036.dtsi | 33 ++++++++++++++++++++++++++++++++- 1 file changed, 32 insertions(+), 1 deletion(-)
Signature · 1 line
1.9.1
PATCH 1/1 ARM: dts: rockchip: add reboot-mode node for rk3036 SoCs
Add reboot mode driver DT node for rk3036 platform.
Signed-off-by Caesar Wang <[email protected]>
---
arch/arm/boot/dts/rk3036.dtsi | 33 ++++++++++++++++++++++++++++++++- 1 file changed, 32 insertions(+), 1 deletion(-)
arch/arm/boot/dts/rk3036.dtsi +32 -1
@@ -43,6 +43,7 @@ #include <dt-bindings/interrupt-controller/arm-gic.h> #include <dt-bindings/pinctrl/rockchip.h> #include <dt-bindings/clock/rk3036-cru.h> +#include <dt-bindings/soc/rockchip_boot-mode.h> #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 = <BOOT_NORMAL>; + }; + + loader { + linux,mode = "loader"; + loader,magic = <BOOT_LOADER>; + }; + + maskrom { + linux,mode = "maskrom"; + loader,magic = <BOOT_MASKROM>; + }; + + recovery { + linux,mode = "recovery"; + loader,magic = <BOOT_RECOVERY>; + }; + + fastboot { + linux,mode = "fastboot"; + loader,magic = <BOOT_FASTBOOT>; + }; + }; }; acodec: acodec-ana at 20030000 {
Signature · 1 line
1.9.1
PATCH v2 1/1 ARM: dts: rockchip: add reboot-mode node for rk3036 SoCs
In reply to Caesar WangAdd reboot mode driver DT node for rk3036 platform.
Signed-off-by Caesar Wang <[email protected]>
---
arch/arm/boot/dts/rk3036.dtsi | 28 +++++++++++++++++++++++++++- 1 file changed, 27 insertions(+), 1 deletion(-)
arch/arm/boot/dts/rk3036.dtsi +27 -1
@@ -43,6 +43,7 @@ #include <dt-bindings/interrupt-controller/arm-gic.h> #include <dt-bindings/pinctrl/rockchip.h> #include <dt-bindings/clock/rk3036-cru.h> +#include <dt-bindings/soc/rockchip_boot-mode.h> #include "skeleton.dtsi" / {
@@ -307,8 +308,33 @@ }; 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 = <BOOT_NORMAL>; + }; + + loader { + linux,mode = "loader"; + loader,magic = <BOOT_LOADER>; + }; + + recovery { + linux,mode = "recovery"; + loader,magic = <BOOT_RECOVERY>; + }; + + fastboot { + linux,mode = "fastboot"; + loader,magic = <BOOT_FASTBOOT>; + }; + }; }; acodec: acodec-ana at 20030000 {
Signature · 1 line
1.9.1