]> www.infradead.org Git - users/willy/xarray.git/commitdiff
arm64: dts: exynos990: Add pmu and syscon-reboot nodes
authorIgor Belwon <igor.belwon@mentallysanemainliners.org>
Wed, 4 Dec 2024 14:55:59 +0000 (15:55 +0100)
committerKrzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Mon, 9 Dec 2024 10:46:21 +0000 (11:46 +0100)
Add PMU syscon, and syscon-reboot nodes to the Exynos990 dtsi.

Reboot of the Exynos990 SoC is handled by setting bit(SWRESET_TRIGGER[1])
of SWRESET register (PMU + 0x3a00).

Tested using the "reboot" command.

Signed-off-by: Igor Belwon <igor.belwon@mentallysanemainliners.org>
Reviewed-by: Alim Akhtar <alim.akhtar@samsung.com>
Link: https://lore.kernel.org/r/20241204145559.524932-3-igor.belwon@mentallysanemainliners.org
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
arch/arm64/boot/dts/exynos/exynos990.dtsi

index c1986f00e4438b88aa631e223b9a060896745aa5..2619f821bc7ca8ed7a49ca817f025819201e0e95 100644 (file)
                        };
                };
 
+               pmu_system_controller: system-controller@15860000 {
+                       compatible = "samsung,exynos990-pmu",
+                                    "samsung,exynos7-pmu", "syscon";
+                       reg = <0x15860000 0x10000>;
+
+                       reboot: syscon-reboot {
+                               compatible = "syscon-reboot";
+                               regmap = <&pmu_system_controller>;
+                               offset = <0x3a00>; /* SWRESET */
+                               mask = <0x2>; /* SWRESET_TRIGGER */
+                               value = <0x2>;
+                       };
+               };
+
                pinctrl_cmgp: pinctrl@15c30000 {
                        compatible = "samsung,exynos990-pinctrl";
                        reg = <0x15c30000 0x1000>;