mbox series

[0/9] Generalize PHYTEC Overlay Handling

Message ID 20240703054202.2812540-1-d.schultz@phytec.de
Headers show
Series Generalize PHYTEC Overlay Handling | expand

Message

Daniel Schultz July 3, 2024, 5:41 a.m. UTC
The overlays are specified in the bootenv.txt file that is loaded into
the environment. Then these overlays get loaded and applied via a script.
These scripts for loading and applying devicetree overlays are identical
for many phytec boards.
Create a common overlays.env that can be included.
Add support for devicetree overlays to phycore-imx8mp and include the
overlays.env for phycore-imx93.
Rename existing environment variables according to bootstd doc.
Move MMC boot logic into a common k3_mmc.env file and include the new
overlays.env file as well.

Benjamin Hahn (5):
  include: env: phytec: Create env file for loading and applying
    overlays
  phycore-imx8mp: Add overlay and bootenv.txt support
  phycore_imx93: include common overlays.env
  board: phytec: renaming of variables according to bootstd doc
  include: env: phytec: renaming of variables according to bootstd doc

Daniel Schultz (4):
  include: env: phytec: Add common mmc boot for K3 SoMs
  include: env: phytec: k3_mmc: Apply overlays during boot
  board: phytec: phycore_am62x: Use k3_mmc.env logic
  board: phytec: phycore_am64x: Use k3_mmc.env logic

 board/phytec/phycore_am62x/phycore_am62x.env  | 11 +----
 board/phytec/phycore_am64x/phycore_am64x.env  | 12 +----
 .../phytec/phycore_imx8mp/phycore_imx8mp.env  | 27 ++++++++---
 board/phytec/phycore_imx93/phycore_imx93.env  | 45 +++++--------------
 configs/phycore-imx8mp_defconfig              |  6 +--
 include/env/phytec/k3_mmc.env                 | 21 +++++++++
 include/env/phytec/overlays.env               | 38 ++++++++++++++++
 7 files changed, 98 insertions(+), 62 deletions(-)
 create mode 100644 include/env/phytec/k3_mmc.env
 create mode 100644 include/env/phytec/overlays.env

Comments

Tom Rini July 3, 2024, 4:47 p.m. UTC | #1
On Tue, Jul 02, 2024 at 10:41:53PM -0700, Daniel Schultz wrote:

> The overlays are specified in the bootenv.txt file that is loaded into
> the environment. Then these overlays get loaded and applied via a script.
> These scripts for loading and applying devicetree overlays are identical
> for many phytec boards.
> Create a common overlays.env that can be included.
> Add support for devicetree overlays to phycore-imx8mp and include the
> overlays.env for phycore-imx93.
> Rename existing environment variables according to bootstd doc.
> Move MMC boot logic into a common k3_mmc.env file and include the new
> overlays.env file as well.

Looks good, thanks for doing this!
Wadim Egorov July 3, 2024, 5:17 p.m. UTC | #2
Am 03.07.24 um 07:41 schrieb Daniel Schultz:
> The overlays are specified in the bootenv.txt file that is loaded into
> the environment. Then these overlays get loaded and applied via a script.
> These scripts for loading and applying devicetree overlays are identical
> for many phytec boards.
> Create a common overlays.env that can be included.
> Add support for devicetree overlays to phycore-imx8mp and include the
> overlays.env for phycore-imx93.
> Rename existing environment variables according to bootstd doc.
> Move MMC boot logic into a common k3_mmc.env file and include the new
> overlays.env file as well.
> 
> Benjamin Hahn (5):
>    include: env: phytec: Create env file for loading and applying
>      overlays
>    phycore-imx8mp: Add overlay and bootenv.txt support
>    phycore_imx93: include common overlays.env
>    board: phytec: renaming of variables according to bootstd doc
>    include: env: phytec: renaming of variables according to bootstd doc
> 
> Daniel Schultz (4):
>    include: env: phytec: Add common mmc boot for K3 SoMs
>    include: env: phytec: k3_mmc: Apply overlays during boot
>    board: phytec: phycore_am62x: Use k3_mmc.env logic
>    board: phytec: phycore_am64x: Use k3_mmc.env logic

For this series,

Reviewed-by: Wadim Egorov <w.egorov@phytec.de>
Tom Rini July 16, 2024, 7:07 p.m. UTC | #3
On Tue, Jul 02, 2024 at 10:41:53PM -0700, Daniel Schultz wrote:

> The overlays are specified in the bootenv.txt file that is loaded into
> the environment. Then these overlays get loaded and applied via a script.
> These scripts for loading and applying devicetree overlays are identical
> for many phytec boards.
> Create a common overlays.env that can be included.
> Add support for devicetree overlays to phycore-imx8mp and include the
> overlays.env for phycore-imx93.
> Rename existing environment variables according to bootstd doc.
> Move MMC boot logic into a common k3_mmc.env file and include the new
> overlays.env file as well.

Can you please rebase this to current master? Thanks.