mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-26 01:25:40 +07:00
1462b1373d
All Exynos SoCs have the same syscon reboot and poweroff device nodes so there is no need to duplicate the same on each SoC dtsi and can be moved to a common dtsi that can be included by all the SoCs dtsi files. Suggested-by: Krzysztof Kozlowski <k.kozlowski@samsung.com> Signed-off-by: Javier Martinez Canillas <javier@osg.samsung.com> Reviewed-by: Alim Akhtar <alim.akhtar@samsung,com> Signed-off-by: Krzysztof Kozlowski <k.kozlowski@samsung.com>
28 lines
664 B
Plaintext
28 lines
664 B
Plaintext
/*
|
|
* Samsung's Exynos SoC syscon reboot/poweroff nodes common definition.
|
|
*
|
|
* This program is free software; you can redistribute it and/or modify
|
|
* it under the terms of the GNU General Public License version 2 as
|
|
* published by the Free Software Foundation.
|
|
*/
|
|
|
|
/ {
|
|
soc {
|
|
compatible = "simple-bus";
|
|
|
|
poweroff: syscon-poweroff {
|
|
compatible = "syscon-poweroff";
|
|
regmap = <&pmu_system_controller>;
|
|
offset = <0x330C>; /* PS_HOLD_CONTROL */
|
|
mask = <0x5200>; /* reset value */
|
|
};
|
|
|
|
reboot: syscon-reboot {
|
|
compatible = "syscon-reboot";
|
|
regmap = <&pmu_system_controller>;
|
|
offset = <0x0400>; /* SWRESET */
|
|
mask = <0x1>;
|
|
};
|
|
};
|
|
};
|