This patch set adds syscon reboot/poweroff device nodes to support reboot and
poweroff features on X-Gene platform.
Tai Nguyen (2):
power: reset: Add syscon reboot device node for APM X-Gene platform
power: reset: Add syscon poweroff device node for APM X-Gene Mustang platform
arch/arm64/boot/dts/apm/apm-mustang.dts | 12 ++++++++++++
arch/arm64/boot/dts/apm/apm-storm.dtsi | 12 ++++++++++++
2 files changed, 24 insertions(+)
--
1.7.9.5
This patch adds syscon reboot device node to support reboot feature on APM X-Gene platform
Signed-off-by: Feng Kan <[email protected]>
Signed-off-by: Tai Nguyen <[email protected]>
---
arch/arm64/boot/dts/apm/apm-storm.dtsi | 12 ++++++++++++
1 file changed, 12 insertions(+)
diff --git a/arch/arm64/boot/dts/apm/apm-storm.dtsi b/arch/arm64/boot/dts/apm/apm-storm.dtsi
index c8d3e0e..16efcf7 100644
--- a/arch/arm64/boot/dts/apm/apm-storm.dtsi
+++ b/arch/arm64/boot/dts/apm/apm-storm.dtsi
@@ -710,5 +710,17 @@
dma-coherent;
clocks = <&dmaclk 0>;
};
+
+ scu: system-clk-controller@17000000 {
+ compatible = "apm,xgene-scu","syscon";
+ reg = <0x0 0x17000000 0x0 0x400>;
+ };
+
+ reboot: reboot@17000014 {
+ compatible = "syscon-reboot";
+ regmap = <&scu>;
+ offset = <0x14>;
+ mask = <0x1>;
+ };
};
};
--
1.7.9.5
This patch adds syscon poweroff device node to support poweroff feature
on APM X-Gene Mustang platform
Signed-off-by: Tai Nguyen <[email protected]>
---
arch/arm64/boot/dts/apm/apm-mustang.dts | 12 ++++++++++++
1 file changed, 12 insertions(+)
diff --git a/arch/arm64/boot/dts/apm/apm-mustang.dts b/arch/arm64/boot/dts/apm/apm-mustang.dts
index 83578e7..910d561 100644
--- a/arch/arm64/boot/dts/apm/apm-mustang.dts
+++ b/arch/arm64/boot/dts/apm/apm-mustang.dts
@@ -23,6 +23,18 @@
device_type = "memory";
reg = < 0x1 0x00000000 0x0 0x80000000 >; /* Updated by bootloader */
};
+
+ poweroff_mbox: poweroff_mbox@10548000 {
+ compatible = "syscon";
+ reg = <0x0 0x10548000 0x0 0x30>;
+ };
+
+ poweroff: poweroff@10548010 {
+ compatible = "syscon-poweroff";
+ regmap = <&poweroff_mbox>;
+ offset = <0x10>;
+ mask = <0x1>;
+ };
};
&pcie0clk {
--
1.7.9.5
Hello,
Any comment on these patches, please?
Thanks,
Tai
On Fri, May 1, 2015 at 1:11 PM, Tai Nguyen <[email protected]> wrote:
> This patch set adds syscon reboot/poweroff device nodes to support reboot and
> poweroff features on X-Gene platform.
>
> Tai Nguyen (2):
> power: reset: Add syscon reboot device node for APM X-Gene platform
> power: reset: Add syscon poweroff device node for APM X-Gene Mustang platform
>
> arch/arm64/boot/dts/apm/apm-mustang.dts | 12 ++++++++++++
> arch/arm64/boot/dts/apm/apm-storm.dtsi | 12 ++++++++++++
> 2 files changed, 24 insertions(+)
>
> --
> 1.7.9.5
>
--
Tai