* [PATCH v4 0/2] arm64: dts: ti: k3-j784s4: Mark tps659413
@ 2024-11-13 9:15 Enric Balletbo i Serra
2024-11-13 9:15 ` [PATCH v4 1/2] arm64: dts: ti: k3-j784s4-evm: Mark tps659413 regulators as bootph-all Enric Balletbo i Serra
` (3 more replies)
0 siblings, 4 replies; 5+ messages in thread
From: Enric Balletbo i Serra @ 2024-11-13 9:15 UTC (permalink / raw)
To: Nishanth Menon, Vignesh Raghavendra, Tero Kristo, Rob Herring,
Krzysztof Kozlowski, Conor Dooley
Cc: linux-arm-kernel, devicetree, linux-kernel, Andrew Halaney,
Andrew Halaney, Enric Balletbo i Serra, Udit Kumar,
Beleswar Padhi
This series marks tps659413's regulators as bootph-all in order for
the nodes (and parent nodes) to be accessible during MCU's u-boot SPL.
This in turn is desired since the tps659413 needs its MCU ESM
state machine setup in order for the watchdog to reset the board.
This took me a little while to track down, as enabling the ESM, TPS6594,
etc in u-boot would result in the below boot failure:
U-Boot SPL 2024.10-rc4-00007-g44b12cbcd1b3-dirty (Sep 06 2024 - 14:25:52 -0500)
SYSFW ABI: 3.1 (firmware rev 0x0009 '9.2.4--v09.02.04 (Kool Koala)')
Initialized 4 DRAM controllers
SPL initial stack usage: 13408 bytes
### ERROR ### Please RESET the board ###
Which turns out to actually have failed far earlier in spl_early_init(),
due to these nodes not being accessible in u-boot. That's hard to tell
though since console isn't setup until later (and for that reason I
think spl_early_init()'s return value in j784s4_init.c isn't
evaluated since a panic() at that point would leave a user with *no*
information at all).
I've tested this in conjunction with a u-boot series which I'll link in
a follow-up response on the k3-j784s4-evm. I'd appreciate someone testing
on the k3-am69-sk at a minimum, as it should suffer the same fate if things
aren't setup appropriately.
Signed-off-by: Andrew Halaney <ahalaney@redhat.com>
Signed-off-by: Enric Balletbo i Serra <eballetb@redhat.com>
---
Changes in v4:
- Rebased on top of ti-k3-dts-next branch
Changes in v3:
- Added Udit's Tested-by tags
- Reordered bootph-all to align with dts-coding-style (Beleswar)
- Link to v2: https://lore.kernel.org/r/20240911-j784s4-tps6594-bootph-v2-0-a83526264ab1@redhat.com
Changes in v2:
- Only mark the regulator nodes as bootph-all since parents are implied
- Link to v1: https://lore.kernel.org/r/20240906-j784s4-tps6594-bootph-v1-0-c5b58d43bf04@redhat.com
---
Andrew Halaney (2):
arm64: dts: ti: k3-j784s4-evm: Mark tps659413 regulators as bootph-all
arm64: dts: ti: k3-am69-sk: Mark tps659413 regulators as bootph-all
arch/arm64/boot/dts/ti/k3-am69-sk.dts | 8 ++++++++
arch/arm64/boot/dts/ti/k3-j784s4-j742s2-evm-common.dtsi | 8 ++++++++
2 files changed, 16 insertions(+)
---
base-commit: 767b6a0d0900c951e8b42306bd636268481a97ae
change-id: 20241113-b4-j784s4-tps6594-bootph-348ef98086a9
Best regards,
--
Enric Balletbo i Serra <eballetb@redhat.com>
^ permalink raw reply [flat|nested] 5+ messages in thread
* [PATCH v4 1/2] arm64: dts: ti: k3-j784s4-evm: Mark tps659413 regulators as bootph-all
2024-11-13 9:15 [PATCH v4 0/2] arm64: dts: ti: k3-j784s4: Mark tps659413 Enric Balletbo i Serra
@ 2024-11-13 9:15 ` Enric Balletbo i Serra
2024-11-13 9:15 ` [PATCH v4 2/2] arm64: dts: ti: k3-am69-sk: " Enric Balletbo i Serra
` (2 subsequent siblings)
3 siblings, 0 replies; 5+ messages in thread
From: Enric Balletbo i Serra @ 2024-11-13 9:15 UTC (permalink / raw)
To: Nishanth Menon, Vignesh Raghavendra, Tero Kristo, Rob Herring,
Krzysztof Kozlowski, Conor Dooley
Cc: linux-arm-kernel, devicetree, linux-kernel, Andrew Halaney,
Andrew Halaney, Enric Balletbo i Serra, Udit Kumar,
Beleswar Padhi
From: Andrew Halaney <ahalaney@redhat.com>
In order for the MCU domain to access this PMIC, a regulator
needs to be marked appropriately otherwise it is not seen by SPL and
therefore not configured.
This is necessary if the MCU domain is to program the TPS6594 MCU ESM
state machine, which is required to wire up the watchdog in a manner
that will reset the board.
Tested-by: Udit Kumar <u-kumar1@ti.com>
Signed-off-by: Andrew Halaney <ahalaney@redhat.com>
Reviewed-by: Beleswar Padhi <b-padhi@ti.com>
Signed-off-by: Enric Balletbo i Serra <eballetb@redhat.com>
---
arch/arm64/boot/dts/ti/k3-j784s4-j742s2-evm-common.dtsi | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/arch/arm64/boot/dts/ti/k3-j784s4-j742s2-evm-common.dtsi b/arch/arm64/boot/dts/ti/k3-j784s4-j742s2-evm-common.dtsi
index b2e2b9f507a9828d49b1eb94d098b2c6682cef0e..2664f74a9c7a4dbf6625f12fe52ba4b57d5636c0 100644
--- a/arch/arm64/boot/dts/ti/k3-j784s4-j742s2-evm-common.dtsi
+++ b/arch/arm64/boot/dts/ti/k3-j784s4-j742s2-evm-common.dtsi
@@ -635,6 +635,7 @@ bucka12: buck12 {
regulator-max-microvolt = <1100000>;
regulator-boot-on;
regulator-always-on;
+ bootph-all;
};
bucka3: buck3 {
@@ -643,6 +644,7 @@ bucka3: buck3 {
regulator-max-microvolt = <850000>;
regulator-boot-on;
regulator-always-on;
+ bootph-all;
};
bucka4: buck4 {
@@ -651,6 +653,7 @@ bucka4: buck4 {
regulator-max-microvolt = <1800000>;
regulator-boot-on;
regulator-always-on;
+ bootph-all;
};
bucka5: buck5 {
@@ -659,6 +662,7 @@ bucka5: buck5 {
regulator-max-microvolt = <850000>;
regulator-boot-on;
regulator-always-on;
+ bootph-all;
};
ldoa1: ldo1 {
@@ -667,6 +671,7 @@ ldoa1: ldo1 {
regulator-max-microvolt = <1800000>;
regulator-boot-on;
regulator-always-on;
+ bootph-all;
};
ldoa2: ldo2 {
@@ -675,6 +680,7 @@ ldoa2: ldo2 {
regulator-max-microvolt = <3300000>;
regulator-boot-on;
regulator-always-on;
+ bootph-all;
};
ldoa3: ldo3 {
@@ -683,6 +689,7 @@ ldoa3: ldo3 {
regulator-max-microvolt = <800000>;
regulator-boot-on;
regulator-always-on;
+ bootph-all;
};
ldoa4: ldo4 {
@@ -691,6 +698,7 @@ ldoa4: ldo4 {
regulator-max-microvolt = <1800000>;
regulator-boot-on;
regulator-always-on;
+ bootph-all;
};
};
};
--
2.47.0
^ permalink raw reply related [flat|nested] 5+ messages in thread
* [PATCH v4 2/2] arm64: dts: ti: k3-am69-sk: Mark tps659413 regulators as bootph-all
2024-11-13 9:15 [PATCH v4 0/2] arm64: dts: ti: k3-j784s4: Mark tps659413 Enric Balletbo i Serra
2024-11-13 9:15 ` [PATCH v4 1/2] arm64: dts: ti: k3-j784s4-evm: Mark tps659413 regulators as bootph-all Enric Balletbo i Serra
@ 2024-11-13 9:15 ` Enric Balletbo i Serra
2024-12-24 15:44 ` [PATCH v4 0/2] arm64: dts: ti: k3-j784s4: Mark tps659413 Andrew Halaney
2024-12-26 20:30 ` Nishanth Menon
3 siblings, 0 replies; 5+ messages in thread
From: Enric Balletbo i Serra @ 2024-11-13 9:15 UTC (permalink / raw)
To: Nishanth Menon, Vignesh Raghavendra, Tero Kristo, Rob Herring,
Krzysztof Kozlowski, Conor Dooley
Cc: linux-arm-kernel, devicetree, linux-kernel, Andrew Halaney,
Andrew Halaney, Enric Balletbo i Serra, Udit Kumar,
Beleswar Padhi
From: Andrew Halaney <ahalaney@redhat.com>
In order for the MCU domain to access this PMIC, a regulator
needs to be marked appropriately otherwise it is not seen by SPL and
therefore not configured.
This is necessary if the MCU domain is to program the TPS6594 MCU ESM
state machine, which is required to wire up the watchdog in a manner
that will reset the board.
Tested-by: Udit Kumar <u-kumar1@ti.com>
Signed-off-by: Andrew Halaney <ahalaney@redhat.com>
Reviewed-by: Beleswar Padhi <b-padhi@ti.com>
Signed-off-by: Enric Balletbo i Serra <eballetb@redhat.com>
---
arch/arm64/boot/dts/ti/k3-am69-sk.dts | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/arch/arm64/boot/dts/ti/k3-am69-sk.dts b/arch/arm64/boot/dts/ti/k3-am69-sk.dts
index 1e36965a14032ca07143230855e04b9549f1d0d1..5f24a1608bdc4fef0610e2ba9a210264e3c4917e 100644
--- a/arch/arm64/boot/dts/ti/k3-am69-sk.dts
+++ b/arch/arm64/boot/dts/ti/k3-am69-sk.dts
@@ -755,6 +755,7 @@ bucka12: buck12 {
regulator-max-microvolt = <1100000>;
regulator-boot-on;
regulator-always-on;
+ bootph-all;
};
bucka3: buck3 {
@@ -763,6 +764,7 @@ bucka3: buck3 {
regulator-max-microvolt = <850000>;
regulator-boot-on;
regulator-always-on;
+ bootph-all;
};
bucka4: buck4 {
@@ -771,6 +773,7 @@ bucka4: buck4 {
regulator-max-microvolt = <1800000>;
regulator-boot-on;
regulator-always-on;
+ bootph-all;
};
bucka5: buck5 {
@@ -779,6 +782,7 @@ bucka5: buck5 {
regulator-max-microvolt = <850000>;
regulator-boot-on;
regulator-always-on;
+ bootph-all;
};
ldoa1: ldo1 {
@@ -787,6 +791,7 @@ ldoa1: ldo1 {
regulator-max-microvolt = <1800000>;
regulator-boot-on;
regulator-always-on;
+ bootph-all;
};
ldoa2: ldo2 {
@@ -795,6 +800,7 @@ ldoa2: ldo2 {
regulator-max-microvolt = <3300000>;
regulator-boot-on;
regulator-always-on;
+ bootph-all;
};
ldoa3: ldo3 {
@@ -803,6 +809,7 @@ ldoa3: ldo3 {
regulator-max-microvolt = <800000>;
regulator-boot-on;
regulator-always-on;
+ bootph-all;
};
ldoa4: ldo4 {
@@ -811,6 +818,7 @@ ldoa4: ldo4 {
regulator-max-microvolt = <1800000>;
regulator-boot-on;
regulator-always-on;
+ bootph-all;
};
};
};
--
2.47.0
^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: [PATCH v4 0/2] arm64: dts: ti: k3-j784s4: Mark tps659413
2024-11-13 9:15 [PATCH v4 0/2] arm64: dts: ti: k3-j784s4: Mark tps659413 Enric Balletbo i Serra
2024-11-13 9:15 ` [PATCH v4 1/2] arm64: dts: ti: k3-j784s4-evm: Mark tps659413 regulators as bootph-all Enric Balletbo i Serra
2024-11-13 9:15 ` [PATCH v4 2/2] arm64: dts: ti: k3-am69-sk: " Enric Balletbo i Serra
@ 2024-12-24 15:44 ` Andrew Halaney
2024-12-26 20:30 ` Nishanth Menon
3 siblings, 0 replies; 5+ messages in thread
From: Andrew Halaney @ 2024-12-24 15:44 UTC (permalink / raw)
To: Enric Balletbo i Serra
Cc: Nishanth Menon, Vignesh Raghavendra, Tero Kristo, Rob Herring,
Krzysztof Kozlowski, Conor Dooley, linux-arm-kernel, devicetree,
linux-kernel, Andrew Halaney, Udit Kumar, Beleswar Padhi
On Wed, Nov 13, 2024 at 10:15:15AM +0100, Enric Balletbo i Serra wrote:
> This series marks tps659413's regulators as bootph-all in order for
> the nodes (and parent nodes) to be accessible during MCU's u-boot SPL.
>
Merry xmas eve, going through my queue and thought
this could use a gentle ping :)
Seems to apply fine on next still and it would be
nice to land the associated u-boot changes eventually
to get the watchdog working!
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH v4 0/2] arm64: dts: ti: k3-j784s4: Mark tps659413
2024-11-13 9:15 [PATCH v4 0/2] arm64: dts: ti: k3-j784s4: Mark tps659413 Enric Balletbo i Serra
` (2 preceding siblings ...)
2024-12-24 15:44 ` [PATCH v4 0/2] arm64: dts: ti: k3-j784s4: Mark tps659413 Andrew Halaney
@ 2024-12-26 20:30 ` Nishanth Menon
3 siblings, 0 replies; 5+ messages in thread
From: Nishanth Menon @ 2024-12-26 20:30 UTC (permalink / raw)
To: Vignesh Raghavendra, Tero Kristo, Rob Herring,
Krzysztof Kozlowski, Conor Dooley, Enric Balletbo i Serra
Cc: Nishanth Menon, linux-arm-kernel, devicetree, linux-kernel,
Andrew Halaney, Andrew Halaney, Udit Kumar, Beleswar Padhi
Hi Enric Balletbo i Serra,
On Wed, 13 Nov 2024 10:15:15 +0100, Enric Balletbo i Serra wrote:
> This series marks tps659413's regulators as bootph-all in order for
> the nodes (and parent nodes) to be accessible during MCU's u-boot SPL.
>
> This in turn is desired since the tps659413 needs its MCU ESM
> state machine setup in order for the watchdog to reset the board.
>
> This took me a little while to track down, as enabling the ESM, TPS6594,
> etc in u-boot would result in the below boot failure:
>
> [...]
I have applied the following to branch ti-k3-dts-next on [1].
Thank you!
[1/2] arm64: dts: ti: k3-j784s4-evm: Mark tps659413 regulators as bootph-all
commit: 0cd578054e7107cab921ff0c24f4ac6d14d3661b
[2/2] arm64: dts: ti: k3-am69-sk: Mark tps659413 regulators as bootph-all
commit: 0a41157c5a988520debb656325722f401163eca3
All being well this means that it will be integrated into the linux-next
tree (usually sometime in the next 24 hours) and sent up the chain during
the next merge window (or sooner if it is a relevant bug fix), however if
problems are discovered then the patch may be dropped or reverted.
You may get further e-mails resulting from automated or manual testing
and review of the tree, please engage with people reporting problems and
send followup patches addressing any issues that are reported if needed.
If any updates are required or you are submitting further changes they
should be sent as incremental updates against current git, existing
patches will not be replaced.
Please add any relevant lists and maintainers to the CCs when replying
to this mail.
[1] https://git.kernel.org/pub/scm/linux/kernel/git/ti/linux.git
--
Regards,
Nishanth Menon
Key (0xDDB5849D1736249D) / Fingerprint: F8A2 8693 54EB 8232 17A3 1A34 DDB5 849D 1736 249D
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2024-12-26 20:32 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-11-13 9:15 [PATCH v4 0/2] arm64: dts: ti: k3-j784s4: Mark tps659413 Enric Balletbo i Serra
2024-11-13 9:15 ` [PATCH v4 1/2] arm64: dts: ti: k3-j784s4-evm: Mark tps659413 regulators as bootph-all Enric Balletbo i Serra
2024-11-13 9:15 ` [PATCH v4 2/2] arm64: dts: ti: k3-am69-sk: " Enric Balletbo i Serra
2024-12-24 15:44 ` [PATCH v4 0/2] arm64: dts: ti: k3-j784s4: Mark tps659413 Andrew Halaney
2024-12-26 20:30 ` Nishanth Menon
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).