linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/1] Add the reboot mode dts for RK3036 SoCs
@ 2016-01-13  2:08 Caesar Wang
  2016-01-13  2:08 ` [PATCH] ARM: dts: rockchip: add reboot-mode node for rk3036 SoCs Caesar Wang
  2016-01-14  2:55 ` [PATCH v2] " Caesar Wang
  0 siblings, 2 replies; 3+ messages in thread
From: Caesar Wang @ 2016-01-13  2:08 UTC (permalink / raw)
  To: linux-arm-kernel


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(-)

-- 
1.9.1

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [PATCH] ARM: dts: rockchip: add reboot-mode node for rk3036 SoCs
  2016-01-13  2:08 [PATCH 0/1] Add the reboot mode dts for RK3036 SoCs Caesar Wang
@ 2016-01-13  2:08 ` Caesar Wang
  2016-01-14  2:55 ` [PATCH v2] " Caesar Wang
  1 sibling, 0 replies; 3+ messages in thread
From: Caesar Wang @ 2016-01-13  2:08 UTC (permalink / raw)
  To: linux-arm-kernel

Add reboot mode driver DT node for rk3036 platform.

Signed-off-by: Caesar Wang <wxt@rock-chips.com>

---

 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 <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 {
-- 
1.9.1

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* [PATCH v2] ARM: dts: rockchip: add reboot-mode node for rk3036 SoCs
  2016-01-13  2:08 [PATCH 0/1] Add the reboot mode dts for RK3036 SoCs Caesar Wang
  2016-01-13  2:08 ` [PATCH] ARM: dts: rockchip: add reboot-mode node for rk3036 SoCs Caesar Wang
@ 2016-01-14  2:55 ` Caesar Wang
  1 sibling, 0 replies; 3+ messages in thread
From: Caesar Wang @ 2016-01-14  2:55 UTC (permalink / raw)
  To: linux-arm-kernel

Add reboot mode driver DT node for rk3036 platform.

Signed-off-by: Caesar Wang <wxt@rock-chips.com>

---

 arch/arm/boot/dts/rk3036.dtsi | 28 +++++++++++++++++++++++++++-
 1 file changed, 27 insertions(+), 1 deletion(-)

diff --git a/arch/arm/boot/dts/rk3036.dtsi b/arch/arm/boot/dts/rk3036.dtsi
index ccc69ab..74e3bc1 100644
--- a/arch/arm/boot/dts/rk3036.dtsi
+++ b/arch/arm/boot/dts/rk3036.dtsi
@@ -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 {
-- 
1.9.1

^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2016-01-14  2:55 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-01-13  2:08 [PATCH 0/1] Add the reboot mode dts for RK3036 SoCs Caesar Wang
2016-01-13  2:08 ` [PATCH] ARM: dts: rockchip: add reboot-mode node for rk3036 SoCs Caesar Wang
2016-01-14  2:55 ` [PATCH v2] " Caesar Wang

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).