Skip to content

Commit 98be2d6

Browse files
andredkrzk
authored andcommitted
arm64: dts: exynos: gs101: switch to gs101 specific reboot
gs101 (Google Pixel 6 and Pixel 6 Pro) supports cold- and warm-reboot. Cold-reset is useful because it is more secure, e.g. wiping all RAM contents, while the warm-reboot allows RAM contents to be retained across the reboot, e.g. to collect potential crash information. Add the required DT changes to switch to the gs101-specific reboot method, which knows how to issue either reset as requested by the OS. The PMIC plays a role in this as well, so mark it as 'system-power-controller', which in this case ensures that the device will wake up again after a cold-reboot, ensuring the full power-cycle is successful. Signed-off-by: André Draszik <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Krzysztof Kozlowski <[email protected]>
1 parent cb98b8a commit 98be2d6

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

arch/arm64/boot/dts/exynos/google/gs101-pixel-common.dtsi

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,7 @@
106106
interrupts-extended = <&gpa0 6 IRQ_TYPE_LEVEL_LOW>;
107107
pinctrl-names = "default";
108108
pinctrl-0 = <&pmic_int>;
109+
system-power-controller;
109110
wakeup-source;
110111

111112
regulators {

arch/arm64/boot/dts/exynos/google/gs101.dtsi

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1419,10 +1419,7 @@
14191419
};
14201420

14211421
reboot: syscon-reboot {
1422-
compatible = "syscon-reboot";
1423-
offset = <0x3a00>; /* SYSTEM_CONFIGURATION */
1424-
mask = <0x2>; /* SWRESET_SYSTEM */
1425-
value = <0x2>; /* reset value */
1422+
compatible = "google,gs101-reboot";
14261423
};
14271424

14281425
reboot-mode {

0 commit comments

Comments
 (0)