All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jan Kiszka <jan.kiszka@siemens.com>
To: u-boot@lists.denx.de
Subject: [PATCH v2 0/3] watchdog: K3: Add RTI watchdog support
Date: Mon, 17 Aug 2020 13:31:11 +0200	[thread overview]
Message-ID: <f1b2f9c4-3268-e43a-26e7-e539156b59f6@siemens.com> (raw)
In-Reply-To: <8751a9c7-02bb-081c-2500-ada94e4bfefe@siemens.com>

On 13.08.20 14:12, Jan Kiszka wrote:
> On 11.08.20 20:01, Lokesh Vutla wrote:
>>
>>
>> On 11/08/20 8:28 pm, Jan Kiszka wrote:
>>> On 11.08.20 16:36, Lokesh Vutla wrote:
>>>> Hi Jan,
>>>>
>>>> On 11/08/20 6:07 pm, Jan Kiszka wrote:
>>>>> On 11.08.20 12:46, Lokesh Vutla wrote:
>>>>>>
>>>>>>
>>>>>> On 11/08/20 4:12 pm, Jan Kiszka wrote:
>>>>>>> On 11.08.20 12:33, Lokesh Vutla wrote:
>>>>>>>>
>>>>>>>>
>>>>>>>> On 23/06/20 4:45 pm, Jan Kiszka wrote:
>>>>>>>>> This brings watchdog support for the TI K3 SoCs, derived from
>>>>>>>>> the Linux
>>>>>>>>> kernel, augmented with firmware loading as needed on the AM65x.
>>>>>>>>>
>>>>>>>>> Tested on the AM65x EVM and the IOT2050 (also AM65x-based,
>>>>>>>>> upstream
>>>>>>>>> support will be posted soon).
>>>>>>>>>
>>>>>>>>> Changes in v2:
>>>>>>>>> ???? - keep watchdog powered when handing over to Linux
>>>>>>>>> ???? - drop unneeded explicit power-on
>>>>>>>>> ???? - account for RTI firmware locking the power domain
>>>>>>>>
>>>>>>>> Patch 1 and 3 merged applied.
>>>>>>>>
>>>>>>>
>>>>>>> Thanks. Still taking workable suggestions for loading the firmware.
>>>>>>
>>>>>> FIT image is the one that I can think off. Since SPL is loading
>>>>>> the FIT image,
>>>>>> SPL_HANDOFF can be used to pass on the loadaddr from SPL to U-Boot
>>>>>> and U-Boot
>>>>>> can start the remote cores using this info.
>>>>>
>>>>> OK, just the ensure I got the idea correctly:
>>>>>
>>>>> ???- extend struct spl_handoff or arch_spl_handoff with the fit image
>>>>> ???? loadaddr that spl is processing
>>>>
>>>> Yes
>>>>
>>>>>
>>>>> ???- stick the watchdog firmware into the u-boot proper fit image
>>>>> ???? (generated by tools/k3_fit_atf.sh or shipped via the board
>>>>> folder, as
>>>>> ???? in our case)
>>>>
>>>> IMHO, not via board folder. k3_fit_atf is used to generate a53 spl
>>>> images. May
>>>
>>> Yeah, right. We also have a fit image for u-boot proper, that
>>> confused me.
>>>
>>>> be create a new one that packs fit image with u-boot and firmware.
>>>> Or can you
>>>> check if binman in u-boot works for you?
>>>
>>> You mean, pack the u-boot proper with the firmware? Then we could
>>> stick the
>>> result in an signed fit image when needed. And I could read the
>>> offset of the
>>> firmware from the generated dtb - provided binman can deal with multiple
>>> configurations like we have.
>>
>> If that is possible I am okay with it.
>>
> 
> I will definitely try to switch our SPI flash image generation to
> binman, but I didn't figure out how to use it for appending a binary to
> u-boot-nodtb.bin.
> 
> To my current understanding of the tool, it is only able to write back
> the offsets of image elements to a single dtb. That breaks when you have
> multiple configurations to choose from. I also have to handle
> https://github.com/siemens/u-boot/blob/jan/iot2050/board/siemens/iot2050/u-boot.its,
> not just u-boot.dtb.

Just updated the branch to use binman for the flash image and also for
replacing u-boot.its [1][2]. However, I still don't see how to use it
for adding a firmware image into the fit parts AND finding it later on
from U-Boot proper. Adding Simon, in case he has some idea.

Jan

[1]
https://github.com/siemens/u-boot/commit/951e5294f14196a502e7fe238c23c49de49b8e29
[2]
https://github.com/siemens/u-boot/blob/951e5294f14196a502e7fe238c23c49de49b8e29/arch/arm/dts/iot2050-boot-image.dtsi

-- 
Siemens AG, Corporate Technology, CT RDA IOT SES-DE
Corporate Competence Center Embedded Linux

      reply	other threads:[~2020-08-17 11:31 UTC|newest]

Thread overview: 27+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-06-23 11:15 [PATCH v2 0/3] watchdog: K3: Add RTI watchdog support Jan Kiszka
2020-06-23 11:15 ` [PATCH v2 1/3] watchdog: Add support for K3 RTI watchdog Jan Kiszka
2020-06-23 11:47   ` Lokesh Vutla
2020-06-23 12:26     ` Jan Kiszka
2020-06-23 11:15 ` [PATCH v2 2/3] watchdog: rti_wdt: Add support for loading firmware Jan Kiszka
2020-06-23 11:50   ` Lokesh Vutla
2020-06-23 12:37     ` Jan Kiszka
2020-06-23 14:41       ` Jan Kiszka
2020-06-29  2:26         ` Lokesh Vutla
2020-06-29  4:50           ` Jan Kiszka
2020-06-29  4:54             ` Lokesh Vutla
2020-06-29  7:44               ` Jan Kiszka
2020-06-29 12:37           ` Tom Rini
2020-06-29 18:44             ` Jan Kiszka
2020-07-20  9:36               ` Jan Kiszka
2020-07-21  5:27                 ` Lokesh Vutla
2020-07-21  6:26                   ` Jan Kiszka
2020-06-23 11:15 ` [PATCH v2 3/3] arm: dts: k3: Add RTI watchdogs Jan Kiszka
2020-08-11 10:33 ` [PATCH v2 0/3] watchdog: K3: Add RTI watchdog support Lokesh Vutla
2020-08-11 10:42   ` Jan Kiszka
2020-08-11 10:46     ` Lokesh Vutla
2020-08-11 12:37       ` Jan Kiszka
2020-08-11 14:36         ` Lokesh Vutla
2020-08-11 14:58           ` Jan Kiszka
2020-08-11 18:01             ` Lokesh Vutla
2020-08-13 12:12               ` Jan Kiszka
2020-08-17 11:31                 ` Jan Kiszka [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=f1b2f9c4-3268-e43a-26e7-e539156b59f6@siemens.com \
    --to=jan.kiszka@siemens.com \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.