-
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add reset and power down support for both ODROID SM1 units
Signed-off-by: Patrick Yavitz <[email protected]>
- Loading branch information
1 parent
d16287b
commit 12c2ff9
Showing
4 changed files
with
74 additions
and
70 deletions.
There are no files selected for viewing
37 changes: 37 additions & 0 deletions
37
patch/kernel/archive/meson64-6.12/board-odroid-sm1-reset.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
From c32d87bcbabb6a22624964c3dce7aabf0467de92 Mon Sep 17 00:00:00 2001 | ||
From: Patrick Yavitz <[email protected]> | ||
Date: Sun, 2 Mar 2025 09:02:09 -0500 | ||
Subject: [PATCH] board odroid sm1 reset | ||
|
||
Add reset and power down support for both ODROID SM1 units. | ||
|
||
Signed-off-by: Ash Hughes <[email protected]> | ||
Signed-off-by: Patrick Yavitz <[email protected]> | ||
--- | ||
arch/arm64/boot/dts/amlogic/meson-sm1-odroid.dtsi | 10 ++++++++++ | ||
1 file changed, 10 insertions(+) | ||
|
||
diff --git a/arch/arm64/boot/dts/amlogic/meson-sm1-odroid.dtsi b/arch/arm64/boot/dts/amlogic/meson-sm1-odroid.dtsi | ||
index 7b0e9817a615..104389b4874e 100644 | ||
--- a/arch/arm64/boot/dts/amlogic/meson-sm1-odroid.dtsi | ||
+++ b/arch/arm64/boot/dts/amlogic/meson-sm1-odroid.dtsi | ||
@@ -23,6 +23,16 @@ memory@0 { | ||
reg = <0x0 0x0 0x0 0x40000000>; | ||
}; | ||
|
||
+ reboot: meson64-reboot { | ||
+ compatible = "meson64,reboot"; | ||
+ sys_reset = <0x84000009>; | ||
+ sys_poweroff = <0x84000008>; | ||
+ | ||
+ sd-vqen = <&gpio_ao GPIOE_2 GPIO_ACTIVE_HIGH>; | ||
+ sd-vqsw = <&gpio_ao GPIOAO_6 GPIO_ACTIVE_HIGH>; | ||
+ sd-vmmc = <&gpio_ao GPIOAO_3 GPIO_ACTIVE_HIGH>; | ||
+ }; | ||
+ | ||
emmc_pwrseq: emmc-pwrseq { | ||
compatible = "mmc-pwrseq-emmc"; | ||
reset-gpios = <&gpio BOOT_12 GPIO_ACTIVE_LOW>; | ||
-- | ||
2.39.5 | ||
|
35 changes: 0 additions & 35 deletions
35
patch/kernel/archive/meson64-6.12/board-odroidc4-reset.patch
This file was deleted.
Oops, something went wrong.
37 changes: 37 additions & 0 deletions
37
patch/kernel/archive/meson64-6.13/board-odroid-sm1-reset.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
From c32d87bcbabb6a22624964c3dce7aabf0467de92 Mon Sep 17 00:00:00 2001 | ||
From: Patrick Yavitz <[email protected]> | ||
Date: Sun, 2 Mar 2025 09:02:09 -0500 | ||
Subject: [PATCH] board odroid sm1 reset | ||
|
||
Add reset and power down support for both ODROID SM1 units. | ||
|
||
Signed-off-by: Ash Hughes <[email protected]> | ||
Signed-off-by: Patrick Yavitz <[email protected]> | ||
--- | ||
arch/arm64/boot/dts/amlogic/meson-sm1-odroid.dtsi | 10 ++++++++++ | ||
1 file changed, 10 insertions(+) | ||
|
||
diff --git a/arch/arm64/boot/dts/amlogic/meson-sm1-odroid.dtsi b/arch/arm64/boot/dts/amlogic/meson-sm1-odroid.dtsi | ||
index 7b0e9817a615..104389b4874e 100644 | ||
--- a/arch/arm64/boot/dts/amlogic/meson-sm1-odroid.dtsi | ||
+++ b/arch/arm64/boot/dts/amlogic/meson-sm1-odroid.dtsi | ||
@@ -23,6 +23,16 @@ memory@0 { | ||
reg = <0x0 0x0 0x0 0x40000000>; | ||
}; | ||
|
||
+ reboot: meson64-reboot { | ||
+ compatible = "meson64,reboot"; | ||
+ sys_reset = <0x84000009>; | ||
+ sys_poweroff = <0x84000008>; | ||
+ | ||
+ sd-vqen = <&gpio_ao GPIOE_2 GPIO_ACTIVE_HIGH>; | ||
+ sd-vqsw = <&gpio_ao GPIOAO_6 GPIO_ACTIVE_HIGH>; | ||
+ sd-vmmc = <&gpio_ao GPIOAO_3 GPIO_ACTIVE_HIGH>; | ||
+ }; | ||
+ | ||
emmc_pwrseq: emmc-pwrseq { | ||
compatible = "mmc-pwrseq-emmc"; | ||
reset-gpios = <&gpio BOOT_12 GPIO_ACTIVE_LOW>; | ||
-- | ||
2.39.5 | ||
|
35 changes: 0 additions & 35 deletions
35
patch/kernel/archive/meson64-6.13/board-odroidc4-reset.patch
This file was deleted.
Oops, something went wrong.