[PATCH v2 12/16] arm: dts: k3-am625-sk-u-boot: Add sysreset-controller node
Mattijs Korpershoek
mkorpershoek at baylibre.com
Tue Apr 16 11:59:37 CEST 2024
Hi Jon,
On jeu., avril 11, 2024 at 15:30, Jon Humphreys <j-humphreys at ti.com> wrote:
> Mattijs Korpershoek <mkorpershoek at baylibre.com> writes:
>
>> Hi Jonathan,
>>
>> Thank you for the patch.
>>
>> On lun., avril 08, 2024 at 17:31, Jonathan Humphreys <j-humphreys at ti.com> wrote:
>>
>>> Signed-off-by: Jonathan Humphreys <j-humphreys at ti.com>
>>
>> Please consider adding a commit message body.
>
> Got it. thanks.
>
> BTW, the next version of this series will drop this patch as Andrew has
> submitted another patch removing the need for this one. See
> https://lore.kernel.org/r/20240402160908.508974-1-afd@ti.com.
I was not aware of that one. thank you for pointing it out. That seems
indeed a better solution.
>
>>
>> On the TI vendor tree, there is a similar patch with a commit message:
>> https://git.ti.com/cgit/ti-u-boot/ti-u-boot/commit/?h=ti-u-boot-2023.04&id=c5296d943c2c84dd6dcb3b91305d006ac46f3157
>>
>> Before patch:
>> => reset
>> resetting ...
>> System reset not supported on this platform
>> ### ERROR ### Please RESET the board ###
>>
>> With patch applied:
>> => reset
>> resetting ...
>>
>> Tested-by: Mattijs Korpershoek <mkorpershoek at baylibre.com> # on am62x sk evm
>>
>> Andrew also suggested to me that if we are interested by A53 reset only,
>> we can PSCI reset instead for all k3 architecture:
>>
>> --- a/arch/arm/Kconfig
>> +++ b/arch/arm/Kconfig
>> @@ -784,6 +784,9 @@ config ARCH_K3
>> bool "Texas Instruments' K3 Architecture"
>> select SPL
>> select SUPPORT_SPL
>> + select PSCI_RESET if ARM64
>> + select SYSRESET if ARM64
>> + select SYSRESET_PSCI if ARM64
>> select FIT
>> select REGEX
>> select FIT_SIGNATURE if ARM64
>>
>> Has the above been considered?
>
> I am not aware. I would think that you want full reset, unless you are
> thinking about specifying a reset level?
On my end, I was mostly interested in resetting from the A53 core, but
the solution you linked previously should work for me.
>
> Jon
>
>>
>>
>>> ---
>>> arch/arm/dts/k3-am625-sk-u-boot.dtsi | 9 +++++++++
>>> 1 file changed, 9 insertions(+)
>>>
>>> diff --git a/arch/arm/dts/k3-am625-sk-u-boot.dtsi b/arch/arm/dts/k3-am625-sk-u-boot.dtsi
>>> index fa778b0ff4c..35bfeae75a0 100644
>>> --- a/arch/arm/dts/k3-am625-sk-u-boot.dtsi
>>> +++ b/arch/arm/dts/k3-am625-sk-u-boot.dtsi
>>> @@ -46,3 +46,12 @@
>>> &cpsw_port2 {
>>> status = "disabled";
>>> };
>>> +
>>> +&dmsc {
>>> + bootph-pre-ram;
>>> +
>>> + k3_sysreset: sysreset-controller {
>>> + compatible = "ti,sci-sysreset";
>>> + bootph-pre-ram;
>>> + };
>>> +};
>>> --
>>> 2.34.1
More information about the U-Boot
mailing list