summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Kocialkowski <[email protected]>2024-09-26 20:31:09 +0200
committerTom Rini <[email protected]>2025-01-10 18:56:15 -0600
commit95433be7ac9b22e4704a6e7a18c3b3a5876cc1f2 (patch)
tree280da64407a84b57d91ee67e1be881886667cec8
parentd7882f556efb11f00fbb93ce13ef2df297b6b1c7 (diff)
rockchip: rk3399-rockpro64: Hook sysreset gpio to enable full reset
The reset mechanism used by Linux to reset the SoC is known to only partially reset the logic. A mechanism is implemented in rk3399_force_power_on_reset to use a GPIO connected to the PMIC's over-temperature (OTP) reset pin, which fully resets all logic. Hook the associated GPIO where the function expects it to enable this reset mechanism and avoid any possible side-effect of partially-reset units. Signed-off-by: Paul Kocialkowski <[email protected]> Reviewed-by: Quentin Schulz <[email protected]>
-rw-r--r--arch/arm/dts/rk3399-rockpro64-u-boot.dtsi8
1 files changed, 8 insertions, 0 deletions
diff --git a/arch/arm/dts/rk3399-rockpro64-u-boot.dtsi b/arch/arm/dts/rk3399-rockpro64-u-boot.dtsi
index 43b67991fe5..cd84269dab4 100644
--- a/arch/arm/dts/rk3399-rockpro64-u-boot.dtsi
+++ b/arch/arm/dts/rk3399-rockpro64-u-boot.dtsi
@@ -7,6 +7,10 @@
#include "rk3399-sdram-lpddr4-100.dtsi"
/ {
+ config {
+ sysreset-gpio = <&gpio1 RK_PA6 GPIO_ACTIVE_HIGH>;
+ };
+
smbios {
compatible = "u-boot,sysinfo-smbios";
smbios {
@@ -32,6 +36,10 @@
bootph-pre-ram;
};
+&gpio1 {
+ bootph-pre-ram;
+};
+
&sdhci {
cap-mmc-highspeed;
mmc-ddr-1_8v;