-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Add regulator-boot-on to meson-sm1-odroid and -hc4 to fix power cycle during boot #9217
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
ean365
wants to merge
2
commits into
armbian:main
Choose a base branch
from
ean365:patch-2
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+58
−0
Open
Changes from all commits
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
58 changes: 58 additions & 0 deletions
58
patch/kernel/archive/meson64-6.19/board-odroid-sm1-regulators-boot-on.patch
This file contains hidden or 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,58 @@ | ||
| From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 | ||
| From: Eric Neulight <[email protected]> | ||
| Date: Sat, 10 Jan 2026 08:17:14 +0000 | ||
| Subject: Fix power cycle glitch to SD, USB, HDMI, and especially SATA during | ||
| boot handoff from U-Boot to kernel (causing HDDs emergency head retract, etc.) | ||
|
|
||
| Signed-off-by: Eric Neulight <[email protected]> | ||
| --- | ||
| arch/arm64/boot/dts/amlogic/meson-sm1-odroid-hc4.dts | 2 ++ | ||
| arch/arm64/boot/dts/amlogic/meson-sm1-odroid.dtsi | 1 + | ||
| 2 files changed, 3 insertions(+) | ||
|
|
||
| diff --git a/arch/arm64/boot/dts/amlogic/meson-sm1-odroid-hc4.dts b/arch/arm64/boot/dts/amlogic/meson-sm1-odroid-hc4.dts | ||
| index 633618da9..a5ffa9b1f 100644 | ||
| --- a/arch/arm64/boot/dts/amlogic/meson-sm1-odroid-hc4.dts | ||
| +++ b/arch/arm64/boot/dts/amlogic/meson-sm1-odroid-hc4.dts | ||
| @@ -54,10 +54,11 @@ p12v_0: regulator-p12v-0 { | ||
| regulator-max-microvolt = <12000000>; | ||
| vin-supply = <&main_12v>; | ||
|
|
||
| gpio = <&gpio GPIOH_8 GPIO_OPEN_DRAIN>; | ||
| enable-active-high; | ||
| + regulator-boot-on; | ||
| regulator-always-on; | ||
| }; | ||
|
|
||
| /* Powers the SATA Disk 1 regulator, which is enabled when a disk load is detected */ | ||
| p12v_1: regulator-p12v-1 { | ||
| @@ -67,10 +68,11 @@ p12v_1: regulator-p12v-1 { | ||
| regulator-max-microvolt = <12000000>; | ||
| vin-supply = <&main_12v>; | ||
|
|
||
| gpio = <&gpio GPIOH_8 GPIO_OPEN_DRAIN>; | ||
| enable-active-high; | ||
| + regulator-boot-on; | ||
| regulator-always-on; | ||
| }; | ||
|
|
||
| sound { | ||
| model = "ODROID-HC4"; | ||
| diff --git a/arch/arm64/boot/dts/amlogic/meson-sm1-odroid.dtsi b/arch/arm64/boot/dts/amlogic/meson-sm1-odroid.dtsi | ||
| index d43e6e967..7de8edc32 100644 | ||
| --- a/arch/arm64/boot/dts/amlogic/meson-sm1-odroid.dtsi | ||
| +++ b/arch/arm64/boot/dts/amlogic/meson-sm1-odroid.dtsi | ||
| @@ -89,10 +89,11 @@ main_12v: regulator-main-12v { | ||
| vcc_5v: regulator-vcc-5v { | ||
| compatible = "regulator-fixed"; | ||
| regulator-name = "5V"; | ||
| regulator-min-microvolt = <5000000>; | ||
| regulator-max-microvolt = <5000000>; | ||
| + regulator-boot-on; | ||
| regulator-always-on; | ||
| vin-supply = <&main_12v>; | ||
| gpio = <&gpio GPIOH_8 GPIO_OPEN_DRAIN>; | ||
| enable-active-high; | ||
| }; | ||
| -- | ||
| Created with Armbian build tools https://github.com/armbian/build | ||
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.