Commit Graph

82037 Commits

Author SHA1 Message Date
f5fbab35b5 usb: onboard-hub: Don't disable regulator in remove() callback
In case USB hub regulator is shared, unexpected behavior occurs.
On stm32mp135f-dk, stm32mp157c-ev1 and stm32mp157x-dkx, regulator
v3v3 is shared between several IP/devices (USB, panel, ethernet phy,
camera, ...).
Running command "usb stop", v3v3 regulator is switched off and
the splashscreen content disappear.

v3v3 shouldn't be disabled on usb_onboard_hub_remove() callback.

Signed-off-by: Patrice Chotard <patrice.chotard@foss.st.com>
Change-Id: If7ed2ccb5a1c1a84637d29d763cc1935d9b8815e
Reviewed-on: https://gerrit.st.com/c/mpu/oe/st/u-boot/+/299563
ACI: CITOOLS <MDG-smet-aci-reviews@list.st.com>
Reviewed-by: Fabrice GASNIER <fabrice.gasnier@foss.st.com>
Domain-Review: Fabrice GASNIER <fabrice.gasnier@foss.st.com>
2023-06-01 15:26:51 +02:00
9dd8dd873d stm32mp: bsec: add check on null size in misc ops
Add a protection in misc bsec ops for request with null size.

For example OP-TEE error occurs when get_eth_nb() return 0 in
setup_mac_address() for unknown part number because U-Boot read 0 OTPs.

Signed-off-by: Patrick Delaunay <patrick.delaunay@foss.st.com>
Change-Id: Ie06da6845013adef7bc23ff4c379fda001542fa6
Reviewed-on: https://gerrit.st.com/c/mpu/oe/st/u-boot/+/252403
Reviewed-on: https://gerrit.st.com/c/mpu/oe/st/u-boot/+/298140
Reviewed-by: Patrice CHOTARD <patrice.chotard@foss.st.com>
ACI: CITOOLS <MDG-smet-aci-reviews@list.st.com>
ACI: CIBUILD <MDG-smet-aci-builds@list.st.com>
Domain-Review: Patrice CHOTARD <patrice.chotard@foss.st.com>
2023-06-01 15:26:51 +02:00
44931a106d mtd: rawnand: stm32_fmc2: remove unsupported EDO mode
Remove the EDO mode support from as the FMC2 controller does not
support the feature.

Change-Id: Ie8c73673094c88ba05612df3e6714240d82033b9
Signed-off-by: Christophe Kerello <christophe.kerello@foss.st.com>
Reviewed-on: https://gerrit.st.com/c/mpu/oe/st/u-boot/+/297765
Tested-by: Christophe KERELLO <christophe.kerello@st.com>
Reviewed-by: Christophe KERELLO <christophe.kerello@st.com>
Reviewed-by: Patrice CHOTARD <patrice.chotard@foss.st.com>
Domain-Review: Christophe KERELLO <christophe.kerello@st.com>
ACI: CITOOLS <MDG-smet-aci-reviews@list.st.com>
ACI: CIBUILD <MDG-smet-aci-builds@list.st.com>
2023-06-01 15:26:51 +02:00
8f9c09de0d efi_loader: fix device-path for USB devices
EFI device paths for block devices must be unique. If a non-unique device
path is discovered, probing of the block device fails.

Currently we use UsbClass() device path nodes. As multiple devices may
have the same vendor and product id these are non-unique. Instead we
should use Usb() device path nodes. They include the USB port on the
parent hub. Hence they are unique.

A USB storage device may contain multiple logical units. These can be
modeled as Ctrl() nodes.

[Backport of commit e472ef8a3d ("efi_loader: fix device-path for
 USB devices")]

Reported-by: Patrick Delaunay <patrick.delaunay@foss.st.com>
Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
Change-Id: Ie4c356c0b597fcd8b461c2e0d219740db4a8473d
Reviewed-on: https://gerrit.st.com/c/mpu/oe/st/u-boot/+/297489
Tested-by: Patrick DELAUNAY <patrick.delaunay@foss.st.com>
Reviewed-by: Patrick DELAUNAY <patrick.delaunay@foss.st.com>
Reviewed-by: Patrice CHOTARD <patrice.chotard@foss.st.com>
ACI: CIBUILD <MDG-smet-aci-builds@list.st.com>
Domain-Review: Patrice CHOTARD <patrice.chotard@foss.st.com>
2023-06-01 15:26:51 +02:00
2ff9b306cd efi_loader: support for Ctrl() device path node
* Add the definitions for Ctrl() device path nodes.
* Implement Ctrl() nodes in the device path to text protocol.

[Backport of commit c5cc6da855 ("efi_loader: support for Ctrl()
 device path node")]

Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
Change-Id: Iaeb50dd08cfe13b636535508ca5e8a2389d1f52a
Reviewed-on: https://gerrit.st.com/c/mpu/oe/st/u-boot/+/297488
Tested-by: Patrick DELAUNAY <patrick.delaunay@foss.st.com>
Reviewed-by: Patrick DELAUNAY <patrick.delaunay@foss.st.com>
Reviewed-by: Patrice CHOTARD <patrice.chotard@foss.st.com>
ACI: CIBUILD <MDG-smet-aci-builds@list.st.com>
Domain-Review: Patrice CHOTARD <patrice.chotard@foss.st.com>
2023-06-01 15:26:51 +02:00
0cac875d11 pinctrl: pinctrl_stm32: Add slew rate support for stm32_pinctrl_get_pin_muxing()
For debug purpose, it should be useful to indicate the slew rate for
each pins.
Add ospeed register information for pins which are configured in
either alternate function or gpio output.

Signed-off-by: Patrice Chotard <patrice.chotard@foss.st.com>
Change-Id: I876bee065a27fc2a9bb651a1600a89aa02fa5f5a
Reviewed-on: https://gerrit.st.com/c/mpu/oe/st/u-boot/+/297402
Tested-by: Fabrice GASNIER <fabrice.gasnier@foss.st.com>
ACI: CITOOLS <MDG-smet-aci-reviews@list.st.com>
ACI: CIBUILD <MDG-smet-aci-builds@list.st.com>
2023-06-01 15:26:51 +02:00
ee2ac3112b stm32mp: stm32prog: fix OTP read/write error management
Avoid to ignore the OTP read/write error and transmits the error
to STM32CubeProgrammer.

Today the error is only displayed in log error:
#optee optee: TA_NVMEM invoke failed TEE err: ffff000a, err:0
so the user on HOST thinks the OTP operation is performed.

Reported-by: Mickael GARDET <m.gardet@overkiz.com>
Signed-off-by: Patrick Delaunay <patrick.delaunay@foss.st.com>
Fixes: 75ea9e7593 ("stm32mp: stm32prog: add TEE support in stm32prog command")
Change-Id: I8515a57201b19ed2af357f96106ede4b4cf078b7
Signed-off-by: Patrick Delaunay <patrick.delaunay@foss.st.com>
Reviewed-on: https://gerrit.st.com/c/mpu/oe/st/u-boot/+/297066
Reviewed-by: Patrice CHOTARD <patrice.chotard@foss.st.com>
ACI: CIBUILD <MDG-smet-aci-builds@list.st.com>
Domain-Review: Patrice CHOTARD <patrice.chotard@foss.st.com>
2023-06-01 15:26:51 +02:00
6bd75b7512 configs: stm32mp1: reduce DDR_CACHEABLE_SIZE to supported 256MB DDR
Reduces the CONFIG_DDR_CACHEABLE_SIZE, the size of DDR mapped cacheable
before relocation, to support DDR with only 256MB because the OP-TEE
reserved memory is located at end of the DDR.

By default the new size of 128MB cacheable memory is enough
in dram_bank_mmu_setup() for early_enable_caches() in arch_cpu_init()
and is correct for DDR size = 256MB.

After relocation the real size of DDR, excluding the no-map reserved
memory, is used after the U-Boot device tree parsing.

Signed-off-by: Patrick Delaunay <patrick.delaunay@foss.st.com>
Change-Id: Ib054753be65d3ea7a0b3fd189c0a0422d19b37c2
Reviewed-on: https://gerrit.st.com/c/mpu/oe/st/u-boot/+/294875
ACI: CITOOLS <MDG-smet-aci-reviews@list.st.com>
ACI: CIBUILD <MDG-smet-aci-builds@list.st.com>
Reviewed-by: Patrice CHOTARD <patrice.chotard@foss.st.com>
Domain-Review: Patrice CHOTARD <patrice.chotard@foss.st.com>
2023-06-01 15:26:51 +02:00
da44f95dc3 spi: stm32_qspi: Remove useless struct stm32_qspi_flash
Currently, in stm32_qspi_claim_bus(), QSPI_CR and QSPI_DCR registers
are saved in stm32_ospi_flash struct on first flash memory initialization
and restored on each flash accesses.

As the logic of spi-uclass.c changed since commit
741280e9ac ("spi: spi-uclass: Fix spi_claim_bus() speed/mode setup logic"),
set_speed() and set_mode() callbacks are called systematically when bus
speed or bus mode need to be updated, QSPI_CR and QSPI_DCR registers are
set accordingly.

So stm32_qspi_claim_bus() can be updated by removing QSPI_CR and QSPI_DCR
save/restore code and struct stm32_ospi_flash can be removed as well.

Signed-off-by: Patrice Chotard <patrice.chotard@foss.st.com>
Change-Id: Ib14cd764550191e02a7c587bc4b62d29d1c08765
Reviewed-on: https://gerrit.st.com/c/mpu/oe/st/u-boot/+/295910
ACI: CIBUILD <MDG-smet-aci-builds@list.st.com>
Domain-Review: Christophe KERELLO <christophe.kerello@st.com>
2023-06-01 15:26:51 +02:00
22ab8631f9 stm32mp: stm32prog: use the decimal format by default for offset parsing
Change the default base for offset parsing with simple_strtoull(),
so offset in flashlayout is coded in base 10 by default, even if string
start with '0'. The Octal encoding is not supported. The base 16
is still supported when the '0x' header is detected.

This patch solve unexpected parsing result when the address,
provided by decimal value is starting by 0, for example 0x4400 = 00017408
is a invalid with current code.

...
P	0x04	fsbl1	Binary	mmc0	00017408	        tf-a.stm32
....

Signed-off-by: Patrick Delaunay <patrick.delaunay@foss.st.com>
Change-Id: Icec632d485db8fb4f25d878dd3b90253a7b2c706
Reviewed-on: https://gerrit.st.com/c/mpu/oe/st/u-boot/+/296166
Reviewed-by: Patrice CHOTARD <patrice.chotard@foss.st.com>
ACI: CITOOLS <MDG-smet-aci-reviews@list.st.com>
ACI: CIBUILD <MDG-smet-aci-builds@list.st.com>
Domain-Review: Patrice CHOTARD <patrice.chotard@foss.st.com>
2023-06-01 15:26:51 +02:00
cdf5f2ee0f configs: stm32mp15: Increase usb_pgood_delay for ST boards
With some USB device, the current usb_pgood_delay value is not long
enough to ensure a correct detection.

Signed-off-by: Patrice Chotard <patrice.chotard@foss.st.com>
Change-Id: I20311f285657381eadcd57bce5c503851e89e3f2
Reviewed-on: https://gerrit.st.com/c/mpu/oe/st/u-boot/+/295519
ACI: CITOOLS <MDG-smet-aci-reviews@list.st.com>
ACI: CIBUILD <MDG-smet-aci-builds@list.st.com>
Reviewed-by: Fabrice GASNIER <fabrice.gasnier@foss.st.com>
Domain-Review: Patrick DELAUNAY <patrick.delaunay@foss.st.com>
2023-06-01 15:26:51 +02:00
982942bc2f configs: stm32mp13: Increase usb_pgood_delay for ST boards
With some USB device, the current usb_pgood_delay value is not long
enough to ensure a correct detection.

Signed-off-by: Patrice Chotard <patrice.chotard@foss.st.com>
Change-Id: I24055f338faeb6dc65eaf4840829ce61df2d9b6e
Reviewed-on: https://gerrit.st.com/c/mpu/oe/st/u-boot/+/295518
ACI: CITOOLS <MDG-smet-aci-reviews@list.st.com>
ACI: CIBUILD <MDG-smet-aci-builds@list.st.com>
Reviewed-by: Fabrice GASNIER <fabrice.gasnier@foss.st.com>
Domain-Review: Patrick DELAUNAY <patrick.delaunay@foss.st.com>
2023-06-01 15:26:51 +02:00
21aafaf824 stm32mp: add support of STM32MP15x Rev.Y
Add support of STM32MP15x Rev.Y for the Silicon revision REV_ID = 0x2002.

Signed-off-by: Patrick Delaunay <patrick.delaunay@foss.st.com>
Change-Id: I6aa05833267d4f481cd4b93967b34341002e2566
Reviewed-on: https://gerrit.st.com/c/mpu/oe/st/u-boot/+/286003
Reviewed-by: Patrice CHOTARD <patrice.chotard@foss.st.com>
Domain-Review: Patrice CHOTARD <patrice.chotard@foss.st.com>
2023-06-01 15:26:51 +02:00
24167e4e80 arm: dts: stm32: Add partitions in flash0 and nand node for stm32mp15xx-dhcom/dhcor
Add partitions subnode in flash0 for stm32mp157xx-dhcom/dhcor boards.

Signed-off-by: Patrick Delaunay <patrick.delaunay@foss.st.com>
Change-Id: I7d7a0b6c2347082f9b3c03a5fe72a53cad4c23ef
Reviewed-on: https://gerrit.st.com/c/mpu/oe/st/u-boot/+/288904
ACI: CITOOLS <MDG-smet-aci-reviews@list.st.com>
ACI: CIBUILD <MDG-smet-aci-builds@list.st.com>
Reviewed-by: Patrice CHOTARD <patrice.chotard@foss.st.com>
Domain-Review: Patrice CHOTARD <patrice.chotard@foss.st.com>
2023-06-01 15:26:51 +02:00
c933a003f9 stm32mp: stm32prog: Remove fsbl_nor_detected from stm32prog_data struct
No more need to test if a fsbl partition is present on NOR when booting
from serial or USB. Now MTD devices are automatically populated with
partition information found in DT. Remove fsbl_nor_detected boolean from
stm32prog_data struct and all code using it.

Signed-off-by: Patrice Chotard <patrice.chotard@foss.st.com>
Change-Id: Ia9a19e344f925f7fc576fa6048cad53bd0655268
Reviewed-on: https://gerrit.st.com/c/mpu/oe/st/u-boot/+/288903
ACI: CITOOLS <MDG-smet-aci-reviews@list.st.com>
ACI: CIBUILD <MDG-smet-aci-builds@list.st.com>
Tested-by: Patrick DELAUNAY <patrick.delaunay@foss.st.com>
Reviewed-by: Patrick DELAUNAY <patrick.delaunay@foss.st.com>
2023-06-01 15:26:51 +02:00
e31d94a0e4 stm32mp: stm32prog: Remove tee_detected from stm32prog_data struct
As stm32prog_get_tee_partitions() is no more used, remove tee_detected
boolean from stm32prog_data struct and all code using it.

Signed-off-by: Patrice Chotard <patrice.chotard@foss.st.com>
Change-Id: I244f84db09e1225f509e2b1072e974810f2024df
Reviewed-on: https://gerrit.st.com/c/mpu/oe/st/u-boot/+/288902
ACI: CITOOLS <MDG-smet-aci-reviews@list.st.com>
2023-06-01 15:26:51 +02:00
0b2c99fbcb board: st: remove board_mtdparts_default
Remove the function board_mtdparts_default and the associated file
or configs, only used by the CONFIG_SYS_MTDPARTS_RUNTIME now removed.

Signed-off-by: Patrick Delaunay <patrick.delaunay@foss.st.com>
Change-Id: I762bbd3d98a9b9c886a85a8bedd2666b721f7002
Reviewed-on: https://gerrit.st.com/c/mpu/oe/st/u-boot/+/288901
Tested-by: Patrice CHOTARD <patrice.chotard@foss.st.com>
Reviewed-by: Patrice CHOTARD <patrice.chotard@foss.st.com>
Domain-Review: Patrice CHOTARD <patrice.chotard@foss.st.com>
2023-06-01 15:26:51 +02:00
c4fe3872f3 dfu: mtd: remove direct call of mtdparts_init function
With MTD support in driver model, the direct call of mtdparts_init
should be avoided and replaced by mtd_probe_devices.

With the modificaton when MTDIDS/MTDPARTS are empty the OF fallback
with partition describe in device tree is correctly performed.

Signed-off-by: Patrick Delaunay <patrick.delaunay@foss.st.com>
Change-Id: I620daeba9c6dbeed0f0164229d65403d36291bb1
Reviewed-on: https://gerrit.st.com/c/mpu/oe/st/u-boot/+/289326
ACI: CITOOLS <MDG-smet-aci-reviews@list.st.com>
ACI: CIBUILD <MDG-smet-aci-builds@list.st.com>
Reviewed-by: Patrice CHOTARD <patrice.chotard@foss.st.com>
Domain-Review: Patrice CHOTARD <patrice.chotard@foss.st.com>
2023-06-01 15:26:51 +02:00
bcae9c3d27 cmd: nand/sf: update legacy mtd code
Base the legacy code to found MTD partition on MTD stack.

This patch allows to found a MTD partition when they are
are not defined in mtdparts variable but in device tree
after commit dc339bf784 ("mtd: add support for parsing
partitions defined in OF").

This patch also removes dependency with CONFIG_CMD_MTDPARTS
as the selection of MTD partitions is not linked to the
command to modified the mtdparts variables.

Signed-off-by: Patrick Delaunay <patrick.delaunay@foss.st.com>
Change-Id: I797845e1a7cb936f822bc1b2e554babf70cf1ea5
Reviewed-on: https://gerrit.st.com/c/mpu/oe/st/u-boot/+/289325
ACI: CITOOLS <MDG-smet-aci-reviews@list.st.com>
ACI: CIBUILD <MDG-smet-aci-builds@list.st.com>
Reviewed-by: Patrice CHOTARD <patrice.chotard@foss.st.com>
Domain-Review: Patrice CHOTARD <patrice.chotard@foss.st.com>
2023-05-29 09:44:49 +02:00
d5a1622ae1 cmd: mtdparts: build default variable value with MTD partitions
Manage the default value of mtdparts and mtdids when the partitions
are found in device tree, after commit dc339bf784 ("mtd: add support
for parsing partitions defined in OF").

Change-Id: Ia7fd690abfd69b1ba789d0d3e5a9b2e34d9e5d9f
Signed-off-by: Patrick Delaunay <patrick.delaunay@foss.st.com>
Reviewed-on: https://gerrit.st.com/c/mpu/oe/st/u-boot/+/289324
ACI: CITOOLS <MDG-smet-aci-reviews@list.st.com>
ACI: CIBUILD <MDG-smet-aci-builds@list.st.com>
Reviewed-by: Patrice CHOTARD <patrice.chotard@foss.st.com>
Domain-Review: Patrice CHOTARD <patrice.chotard@foss.st.com>
2023-05-29 09:44:49 +02:00
d773c646e2 mtd: parsing partitions defined in OF when mtdparts/mtdids are empty
When mtdparts and mtdids are empty, the parsing of partitions defined in
device-trees via the `partitions` node with `fixed-partitions` compatible
should be executed one time but it not the case now because
old_mtdparts = mtdparts = old_mtdids = mtdids = NULL
so the first test is always true.

The test on mtd_dev_list_updated() resutl should be done unconditionally
to parse again the device tree is the MTD DEV list change after the call of
mtd_probe_uclass_mtd_devs() / mtd_probe_uclass_spi_nor_devs().

Fixes: dc339bf784 ("mtd: add support for parsing partitions defined in OF")
Signed-off-by: Patrick Delaunay <patrick.delaunay@foss.st.com>
Change-Id: Ib7980b3efd19fd542a4b6e60d47f8136fdfd1454
Reviewed-on: https://gerrit.st.com/c/mpu/oe/st/u-boot/+/289323
ACI: CITOOLS <MDG-smet-aci-reviews@list.st.com>
ACI: CIBUILD <MDG-smet-aci-builds@list.st.com>
Reviewed-by: Patrice CHOTARD <patrice.chotard@foss.st.com>
Domain-Review: Patrice CHOTARD <patrice.chotard@foss.st.com>
2023-05-29 09:44:49 +02:00
8dfdcfbac6 board: stm32mp1: use fdt_copy_fixed_partitions
Copy the fixed partition nodes from U-Boot device tree to Linux kernel
device tree to dynamically configure the MTD partitions.

fdt_copy_fixed_partitions is only based on device tree
and replace the function fdt_fixup_mtdparts based on mtdparts variable;
the variable mtdid and mtdparts are not more required.

Signed-off-by: Patrick Delaunay <patrick.delaunay@foss.st.com>
Change-Id: I7bf81c0580c1c801def7453d5d05c323a1b8d620
Reviewed-on: https://gerrit.st.com/c/mpu/oe/st/u-boot/+/288900
ACI: CITOOLS <MDG-smet-aci-reviews@list.st.com>
ACI: CIBUILD <MDG-smet-aci-builds@list.st.com>
Reviewed-by: Patrice CHOTARD <patrice.chotard@foss.st.com>
Domain-Review: Patrice CHOTARD <patrice.chotard@foss.st.com>
2023-05-29 09:44:49 +02:00
952945d06c configs: stm32mp: Disable SYS_MTDPARTS_RUNTIME for stm32mp15 and stm32mp13
As we don't use anymore MTDPARTS_xx Kconfig variables
(MTDPARTS_NAND0_BOOT, MTDPARTS_NOR0_BOOT...),
disable SYS_MTDPARTS_RUNTIME.

Signed-off-by: Patrice Chotard <patrice.chotard@foss.st.com>
Change-Id: I26c6ed678ca158380032e3a31fc6b3a77ef6a33f
Reviewed-on: https://gerrit.st.com/c/mpu/oe/st/u-boot/+/288897
ACI: CITOOLS <MDG-smet-aci-reviews@list.st.com>
2023-05-29 09:44:49 +02:00
38baf43692 arm: dts: stm32: Add partitions in flash0 and nand node for stm32mp15xx-ev1
Add partitions subnode in flash0 and nand nodes for all stm32mp157xx-ev1
boards. Update only the file stm32mp157c-ev1-u-boot.dtsi, included by
other files  stm32mp15*-ev1-u-boot.dtsi.

Signed-off-by: Patrice Chotard <patrice.chotard@foss.st.com>
Change-Id: Ic6e6157ff0175b60d31738882e11485ea60b8b61
Reviewed-on: https://gerrit.st.com/c/mpu/oe/st/u-boot/+/288895
ACI: CITOOLS <MDG-smet-aci-reviews@list.st.com>
ACI: CIBUILD <MDG-smet-aci-builds@list.st.com>
Tested-by: Patrick DELAUNAY <patrick.delaunay@foss.st.com>
Reviewed-by: Patrick DELAUNAY <patrick.delaunay@foss.st.com>
2023-05-29 09:44:49 +02:00
0c60d26c26 stm32mp: stm32prog: Remove usage of "mtdparts" function
Motivation for this patch is to remove usage of function define
in cmd/mtdparts.c interface, based on env variables mtdids and mtdparts:
mtdparts_init() and find_dev_and_part().
See commit 938db6fe5d ("cmd: mtdparts: describe as legacy")

Now, all MTD devices are populated with their partition's information
found in DT, accessible in MTD devices. Use these information to find
the wanted partitions, no more need of find_dev_and_part() usage.

Signed-off-by: Patrice Chotard <patrice.chotard@foss.st.com>
Signed-off-by: Patrick Delaunay <patrick.delaunay@foss.st.com>
Reviewed-on: https://gerrit.st.com/c/mpu/oe/st/u-boot/+/245456
Reviewed-on: https://gerrit.st.com/c/mpu/oe/st/u-boot/+/268132
Change-Id: Ib033df552a0517a23e3fa74a4468ec5126775e93
Reviewed-on: https://gerrit.st.com/c/mpu/oe/st/u-boot/+/288896
ACI: CITOOLS <MDG-smet-aci-reviews@list.st.com>
ACI: CIBUILD <MDG-smet-aci-builds@list.st.com>
2023-05-29 09:42:55 +02:00
883c240bf4 fdt_support: add fdt_copy_fixed_partitions function
Add a new function fdt_copy_fixed_partitions to copy the fixed
partition nodes from U-Boot device tree to Linux kernel
device tree and to dynamically configure the MTD partitions.

This function fdt_copy_fixed_partitions is only based on device tree
with livetree compatible funtcion and replace the function
fdt_fixup_mtdparts based on mtdparts variable.

Signed-off-by: Patrick Delaunay <patrick.delaunay@foss.st.com>
Change-Id: Idd521a274f1b0524963a501324a1702a5a8b52c1
Reviewed-on: https://gerrit.st.com/c/mpu/oe/st/u-boot/+/288899
ACI: CITOOLS <MDG-smet-aci-reviews@list.st.com>
ACI: CIBUILD <MDG-smet-aci-builds@list.st.com>
Reviewed-by: Patrice CHOTARD <patrice.chotard@foss.st.com>
Domain-Review: Patrice CHOTARD <patrice.chotard@foss.st.com>
2023-05-29 09:42:54 +02:00
5e3603f400 fdt_support: include dm/ofnode.h
This patch is a preliminary patch to use ofnode function
is fdt_support to read the U-Boot device tree with livetree
compatible functions.

Signed-off-by: Patrick Delaunay <patrick.delaunay@foss.st.com>
Change-Id: I21f10cd5db605f5c0fbdfd04328958518fa508aa
Reviewed-on: https://gerrit.st.com/c/mpu/oe/st/u-boot/+/288898
ACI: CITOOLS <MDG-smet-aci-reviews@list.st.com>
ACI: CIBUILD <MDG-smet-aci-builds@list.st.com>
Reviewed-by: Patrice CHOTARD <patrice.chotard@foss.st.com>
Domain-Review: Patrice CHOTARD <patrice.chotard@foss.st.com>
2023-05-29 09:42:54 +02:00
fa8916c59d env: mmc: Fix offset issue for env save
Fix the issue in commit 46c9016 ("env: mcc: Drop unnecessary #ifdefs")
If CONFIG_SYS_REDUNDAND_ENVIRONMENT is not defined, the offset value
becomes undetermined, so write env to unexpected offset.

[Backport of commit ccd0542ab2 ("env: mmc: Fix offset issue for env
 save")]

Signed-off-by: Ye Li <ye.li@nxp.com>
Reviewed-by: Jaehoon Chung <jh80.chung@samsung.com>
Change-Id: I295672256587b06ee79ca26ce52207e471e4c6aa
Reviewed-on: https://gerrit.st.com/c/mpu/oe/st/u-boot/+/294479
Tested-by: Patrick DELAUNAY <patrick.delaunay@foss.st.com>
Reviewed-by: Patrick DELAUNAY <patrick.delaunay@foss.st.com>
Reviewed-by: Patrice CHOTARD <patrice.chotard@foss.st.com>
ACI: CIBUILD <MDG-smet-aci-builds@list.st.com>
Domain-Review: Patrice CHOTARD <patrice.chotard@foss.st.com>
2023-05-29 09:42:54 +02:00
a3ecc896b8 env: mmc: cosmetic: remove unused macro STR(X)
Remove the unused macro STR(X) since the commit 2b2f727500 ("env: mmc:
allow support of mmc_get_env_dev with OF_CONTROL")

[Backport of commit 6a90e92564 ("env: mmc: cosmetic: remove unused macro STR(X)")]

Signed-off-by: Patrick Delaunay <patrick.delaunay@foss.st.com>
Reviewed-by: Patrice Chotard <patrice.chotard@foss.st.com>
Change-Id: Id12ca5aeecf5ebb4cbc0a597ad100feccbf389f8
Reviewed-on: https://gerrit.st.com/c/mpu/oe/st/u-boot/+/284269
Reviewed-by: Patrice CHOTARD <patrice.chotard@foss.st.com>
ACI: CIBUILD <MDG-smet-aci-builds@list.st.com>
Domain-Review: Patrice CHOTARD <patrice.chotard@foss.st.com>
2023-05-29 09:42:54 +02:00
52415efb5d env: mmc: add debug message when mmc-env-partition is not found
Add a debug message to indicate a potential issue when
"u-boot,mmc-env-partition" is present in config node of device tree
but this partition name is not found in the mmc device.

[Backport of commit 52e9aa3cd2 ("env: mmc: add debug message when
 mmc-env-partition is not found")]

Signed-off-by: Patrick Delaunay <patrick.delaunay@foss.st.com>
Reviewed-by: Patrice Chotard <patrice.chotard@foss.st.com>
Change-Id: Ied36ff06bb5b269692615f03ebf88e15a93b195e
Reviewed-on: https://gerrit.st.com/c/mpu/oe/st/u-boot/+/284268
Reviewed-by: Patrice CHOTARD <patrice.chotard@foss.st.com>
ACI: CIBUILD <MDG-smet-aci-builds@list.st.com>
Domain-Review: Patrice CHOTARD <patrice.chotard@foss.st.com>
2023-05-29 09:42:54 +02:00
7ee8f72650 env: mmc: select GPT env partition by type guid
Since commit c0364ce1c6 ("doc/README.gpt: define partition type GUID for
U-Boot environment"), a specific type GUID can be used to indicate
the U-Boot environment partition on the device with GPT partition table.

This patch uses this type GUID to found the env partition as fallback
when the partition name property "u-boot,mmc-env-partition" is not present
in config node or if the indicated partition name is not found.

The mmc_offset_try_partition() function is reused, it selects the first
partition with the correct type GUID when the parameter 'str' is NULL.

[Backport of commit 80105d8fd5 ("env: mmc: select GPT env partition by
 type guid")]

Signed-off-by: Patrick Delaunay <patrick.delaunay@foss.st.com>
Reviewed-by: Patrice Chotard <patrice.chotard@foss.st.com>
Change-Id: I0a9d81be69475c89cac4f007332fc368197d2868
Reviewed-on: https://gerrit.st.com/c/mpu/oe/st/u-boot/+/284267
Reviewed-by: Patrice CHOTARD <patrice.chotard@foss.st.com>
ACI: CIBUILD <MDG-smet-aci-builds@list.st.com>
Domain-Review: Patrice CHOTARD <patrice.chotard@foss.st.com>
2023-05-29 09:42:54 +02:00
cbe766d001 configs: stm32mp: activate CONFIG_ENV_MMC_USE_DT
Activate by default CONFIG_ENV_MMC_USE_DT as "u-boot,mmc-env-partition"
should be always use in STMicroelectronics boards device tree to locate
the environment for mmc backend. The 2 defines:
  CONFIG_ENV_OFFSET=0x280000
  CONFIG_ENV_OFFSET_REDUND=0x2C0000
are only valid for spi-nor and not for SD-Card or eMMC.

[Backport of commit 0902bcdbb3 ("configs: stm32mp: activate
 CONFIG_ENV_MMC_USE_DT")]

Signed-off-by: Patrick Delaunay <patrick.delaunay@foss.st.com>
Reviewed-by: Patrice Chotard <patrice.chotard@foss.st.com>
Change-Id: I0bc109d437812cbb99876e1e14a2427a0a78250e
Reviewed-on: https://gerrit.st.com/c/mpu/oe/st/u-boot/+/284266
Reviewed-by: Patrice CHOTARD <patrice.chotard@foss.st.com>
ACI: CIBUILD <MDG-smet-aci-builds@list.st.com>
Domain-Review: Patrice CHOTARD <patrice.chotard@foss.st.com>
2023-05-29 09:42:54 +02:00
2ded33f914 env: mmc: add CONFIG_ENV_MMC_USE_DT
Add a new config CONFIG_ENV_MMC_USE_DT to force configuration of the
U-Boot environment offset with device tree config node.

This patch avoids issues when several CONFIG_ENV_IS_IN_XXX are activated,
the defconfig file uses the same value for CONFIG_ENV_OFFSET or
CONFIG_ENV_OFFSET_REDUND for the several ENV backends (SPI_FLASH, EEPROM
NAND, SATA, MMC).

After this patch a bad offset value is not possible when the selected
partition in device tree is not found.

[Backport of commit d2103e20a9 ("env: mmc: add CONFIG_ENV_MMC_USE_DT")]

Signed-off-by: Patrick Delaunay <patrick.delaunay@foss.st.com>
Reviewed-by: Patrice Chotard <patrice.chotard@foss.st.com>
Change-Id: I18a4322bc0a4cbe82fbc904deea8736ee06906e6
Reviewed-on: https://gerrit.st.com/c/mpu/oe/st/u-boot/+/284265
Reviewed-by: Patrice CHOTARD <patrice.chotard@foss.st.com>
ACI: CIBUILD <MDG-smet-aci-builds@list.st.com>
Domain-Review: Patrice CHOTARD <patrice.chotard@foss.st.com>
2023-05-29 09:42:54 +02:00
3fe76e866a env: mcc: fix compilation error with ENV_IS_EMBEDDED
When ENV_IS_EMBEDDED is enabled, ret is not defined but is used as a
return value in env_mmc_load().
This patch correct this issue and simplify the existing code, test only
one time #if defined(ENV_IS_EMBEDDED) and not in the function.

[Backport of commit 8566050e24 ("env: mcc: fix compilation error with
 ENV_IS_EMBEDDED")]

Signed-off-by: Patrick Delaunay <patrick.delaunay@foss.st.com>
Reviewed-by: Patrice Chotard <patrice.chotard@foss.st.com>
Change-Id: I5104e96f3e935ed4cb5e0535de3c571742686784
Reviewed-on: https://gerrit.st.com/c/mpu/oe/st/u-boot/+/284264
ACI: CIBUILD <MDG-smet-aci-builds@list.st.com>
Reviewed-by: Patrice CHOTARD <patrice.chotard@foss.st.com>
Domain-Review: Patrice CHOTARD <patrice.chotard@foss.st.com>
2023-05-29 09:42:54 +02:00
646dc430be env: mcc: Drop unnecessary #ifdefs
This file has a lot of conditional code and much of it is unnecessary.
Clean this up to reduce the number of build combinations.

This patch replaces the test on CONFIG_ENV_OFFSET_REDUND for the
more coherent CONFIG_SYS_REDUNDAND_ENVIRONMENT.

This patch also corrects a compilation issue in init_mmc_for_env()
when CONFIG_SYS_MMC_ENV_PART is not activated, env_mmc_orig_hwpart is
not defined.

[Backport of commit 46c9016b7f ("env: mcc: Drop unnecessary #ifdefs")]

Signed-off-by: Patrick Delaunay <patrick.delaunay@foss.st.com>
Reviewed-by: Patrice Chotard <patrice.chotard@foss.st.com>
Change-Id: I580f48ee15bb77074eed8d66b85950a133476f17
Reviewed-on: https://gerrit.st.com/c/mpu/oe/st/u-boot/+/284263
ACI: CIBUILD <MDG-smet-aci-builds@list.st.com>
Reviewed-by: Patrice CHOTARD <patrice.chotard@foss.st.com>
Domain-Review: Patrice CHOTARD <patrice.chotard@foss.st.com>
2023-05-29 09:42:54 +02:00
031d4d9d5e env: mmc: introduced ENV_MMC_OFFSET
Introduce ENV_MMC_OFFSET defines.
It is a preliminary step to the next patches to simplify the code.

[Backport of commit f7e07a7ef4 ("env: mmc: introduced ENV_MMC_OFFSET")]

Signed-off-by: Patrick Delaunay <patrick.delaunay@foss.st.com>
Reviewed-by: Patrice Chotard <patrice.chotard@foss.st.com>
Change-Id: Iabf37dee11b11943ce7393db4c75b11f7216f09a
Reviewed-on: https://gerrit.st.com/c/mpu/oe/st/u-boot/+/284262
ACI: CIBUILD <MDG-smet-aci-builds@list.st.com>
Reviewed-by: Patrice CHOTARD <patrice.chotard@foss.st.com>
Domain-Review: Patrice CHOTARD <patrice.chotard@foss.st.com>
2023-05-29 09:42:54 +02:00
638d3e162d efi: Improve logging in efi_disk
When this fails it can be time-consuming to debug. Add some debugging
to help with this. Also try to return error codes instead of just using
-1.

[Backport of commit 3722cc973f ("efi: Improve logging in efi_disk")]

Signed-off-by: Simon Glass <sjg@chromium.org>
Change-Id: Iae499a47776cbaad390054e15f46a2401c5185a4
Reviewed-on: https://gerrit.st.com/c/mpu/oe/st/u-boot/+/291889
ACI: CITOOLS <MDG-smet-aci-reviews@list.st.com>
ACI: CIBUILD <MDG-smet-aci-builds@list.st.com>
Tested-by: Patrick DELAUNAY <patrick.delaunay@foss.st.com>
Reviewed-by: Patrick DELAUNAY <patrick.delaunay@foss.st.com>
Reviewed-by: Patrice CHOTARD <patrice.chotard@foss.st.com>
Domain-Review: Patrice CHOTARD <patrice.chotard@foss.st.com>
2023-05-29 09:42:54 +02:00
a8d4550160 efi_loader: efi_dp_part_node check dp_alloc return value
dp_alloc() may return NULL. This needs to be caught.

[Backport of commit 01caf28778 ("efi_loader: efi_dp_part_node
 check dp_alloc return value")]

Fixes: 98d48bdf41 ("efi_loader: provide a function to create a partition node")
Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
Change-Id: If94b8dc35b47e4a70d93c1cc7db7bca32b0c4ff9
Reviewed-on: https://gerrit.st.com/c/mpu/oe/st/u-boot/+/291888
ACI: CIBUILD <MDG-smet-aci-builds@list.st.com>
Tested-by: Patrick DELAUNAY <patrick.delaunay@foss.st.com>
Reviewed-by: Patrick DELAUNAY <patrick.delaunay@foss.st.com>
Reviewed-by: Patrice CHOTARD <patrice.chotard@foss.st.com>
Domain-Review: Patrice CHOTARD <patrice.chotard@foss.st.com>
2023-05-29 09:42:54 +02:00
4ede2790cf fs: ext4: check the minimal partition size
No need to try to mount ext4 parttion when a partition is small to handle
a EXT4 file system, when its size is lower than SUPERBLOCK_SIZE.

This patch avoids traces when EFI try to detect FS type on one LBA (512)
partition:

  fs_devread read outside partition 2
  Failed to mount ext2 filesystem..

Change-Id: I852b2b0fb85539e986a45dcfaf765f92e0924536
Signed-off-by: Patrick Delaunay <patrick.delaunay@foss.st.com>
Reviewed-on: https://gerrit.st.com/c/mpu/oe/st/u-boot/+/291860
Reviewed-by: Patrice CHOTARD <patrice.chotard@foss.st.com>
ACI: CITOOLS <MDG-smet-aci-reviews@list.st.com>
ACI: CIBUILD <MDG-smet-aci-builds@list.st.com>
Domain-Review: Patrice CHOTARD <patrice.chotard@foss.st.com>
2023-05-29 09:42:54 +02:00
5c1a18429b fs: Quieten down the filesystems more
When looking for a filesystem on a partition we should do so quietly. At
present if the filesystem is very small (e.g. 512 bytes) we get a host of
messages.

Update these to only show when debugging.

[Backport of commit f337fb9ea8 ("fs: Quieten down the filesystems more")]

Signed-off-by: Simon Glass <sjg@chromium.org>
Change-Id: I534324c537298aa4a0137f4ece94fd8991b2444a
Reviewed-on: https://gerrit.st.com/c/mpu/oe/st/u-boot/+/291859
ACI: CITOOLS <MDG-smet-aci-reviews@list.st.com>
ACI: CIBUILD <MDG-smet-aci-builds@list.st.com>
Tested-by: Patrick DELAUNAY <patrick.delaunay@foss.st.com>
Reviewed-by: Patrick DELAUNAY <patrick.delaunay@foss.st.com>
Reviewed-by: Patrice CHOTARD <patrice.chotard@foss.st.com>
Domain-Review: Patrice CHOTARD <patrice.chotard@foss.st.com>
2023-05-29 09:42:54 +02:00
d04d7c51de ARM: dts: stm32: update i2c nodes interrupt/dma/power-domains in stm32mp151
Update all i2c nodes with the following properties:
 - replace interrupts with interrupts-extended and rely on exti
 - add dma properties
 - add power-domains property

[See kernel Change-Id: I549e43b9434d899f6cfe9719c850e8a6e9402157]
Signed-off-by: Alain Volmat <alain.volmat@foss.st.com>
Signed-off-by: Amelie Delaunay <amelie.delaunay@foss.st.com>
Change-Id: I4005b3bd305528eeae0f388ee24bcee80fae93fc
Reviewed-on: https://gerrit.st.com/c/mpu/oe/st/u-boot/+/289963
Reviewed-by: Patrice CHOTARD <patrice.chotard@foss.st.com>
ACI: CITOOLS <MDG-smet-aci-reviews@list.st.com>
ACI: CIBUILD <MDG-smet-aci-builds@list.st.com>
2023-05-29 09:42:54 +02:00
15166ac22a reset: remove reset_assert call in reset_release_all
The API reset_release_all should only release the reset bulk resources
and not change the reset level with de-assert.

In U-Boot, it is the responsibility of the caller (each driver) to call
reset_assert_all if the reset level need to be handle, as it is done by
the single reset API: reset_request/reset_free.

This patch avoids issue when a reset line is shared by several drivers;
the bulk resets are requested and de-asserted in probe
with reset_get_bulk()/reset_deassert_bulk() and the reset_release_all()
is called in remove to release the associated resource
but the de-assert must not be performed for shared reset.

It is it the case for shared reset for generic EHCI / OHCI, the common
reset linux is managed in Linux kernel by shared reset API
devm_reset_control_get_shared() = performs de-assert only for the last
users.

I think it is the good time to change this behavior as the reset bulk
API is not yet massively used in driver.

Fixes: 3b9d1bdd4e ("reset: add reset_release_all()")
Signed-off-by: Patrick Delaunay <patrick.delaunay@foss.st.com>
Change-Id: Ia77c62ce3ca45336d9126875d5bbfba74214a7b4
Reviewed-on: https://gerrit.st.com/c/mpu/oe/st/u-boot/+/293200
ACI: CITOOLS <MDG-smet-aci-reviews@list.st.com>
Reviewed-by: Fabrice GASNIER <fabrice.gasnier@foss.st.com>
Reviewed-by: Patrice CHOTARD <patrice.chotard@foss.st.com>
Domain-Review: Patrice CHOTARD <patrice.chotard@foss.st.com>
2023-05-29 09:42:54 +02:00
5fe8189b45 usb: host: ohci-generic: Make usage of clock/reset bulk() API
Make usage of clock and reset bulk API in order to simplify the code

Change-Id: I72bb0b7b352fab1df0e60111e18c37bb834140db
Signed-off-by: Fabrice Gasnier <fabrice.gasnier@foss.st.com>
Reviewed-on: https://gerrit.st.com/c/mpu/oe/st/u-boot/+/289908
ACI: CITOOLS <MDG-smet-aci-reviews@list.st.com>
ACI: CIBUILD <MDG-smet-aci-builds@list.st.com>
Reviewed-by: Patrick DELAUNAY <patrick.delaunay@foss.st.com>
Reviewed-by: Patrice CHOTARD <patrice.chotard@foss.st.com>
Domain-Review: Patrick DELAUNAY <patrick.delaunay@foss.st.com>
2023-05-29 09:42:54 +02:00
c219c5821c usb: host: ehci-generic: check for companion controller
EHCI is usually used with companion controller (like OHCI) as companion
controller. This information on the companion is missing currently in
companion drivers.
So, if the usb-uclass isn't aware, it may scan busses in any order: OHCI
first, then EHCI.
This is seen on STM32MP1 where DT probing makes the probe order to occur
by increasing address (OHCI address < EHCI address).

When a low speed or full-speed device is plugged in, it's not detected as
EHCI should first detect it, and give ownership (handover) to OHCI.

Current situation on STM32MP1 (with a low speed device plugged-in)
STM32MP> usb start
starting USB...
Bus usb@5800c000: USB OHCI 1.0
Bus usb@5800d000: USB EHCI 1.00
scanning bus usb@5800c000 for devices... 1 USB Device(s) found
scanning bus usb@5800d000 for devices... 1 USB Device(s) found
       scanning usb for storage devices... 0 Storage Device(s) found

The "companion" property in the device tree allow to retrieve companion
controller information, from the EHCI node. This allow marking the
companion driver as such.

With this patch (same low speed device plugged in):
STM32MP> usb start
starting USB...
Bus usb@5800c000: USB OHCI 1.0
Bus usb@5800d000: USB EHCI 1.00
scanning bus usb@5800d000 for devices... 1 USB Device(s) found
scanning bus usb@5800c000 for devices... 2 USB Device(s) found
       scanning usb for storage devices... 0 Storage Device(s) found
STM32MP> usb tree
USB device tree:
  1  Hub (12 Mb/s, 0mA)
  |   U-Boot Root Hub
  |
  +-2  Human Interface (1.5 Mb/s, 100mA)
       HP HP USB 1000dpi Laser Mouse

  1  Hub (480 Mb/s, 0mA)
     u-boot EHCI Host Controller

This also optimize bus scan when a High speed device is plugged in, as
the usb-uclass skips OHCI in this case:

STM32MP> usb reset
resetting USB...
Bus usb@5800c000: USB OHCI 1.0
Bus usb@5800d000: USB EHCI 1.00
scanning bus usb@5800d000 for devices... 2 USB Device(s) found
       scanning usb for storage devices... 1 Storage Device(s) found
STM32MP> usb tree
USB device tree:
  1  Hub (480 Mb/s, 0mA)
  |  u-boot EHCI Host Controller
  |
  +-2  Mass Storage (480 Mb/s, 200mA)
       SanDisk Cruzer Blade 03003432021922011407

Change-Id: I42ee83786bfdd9d715c229eae8f8b5fa50f42b7c
Signed-off-by: Fabrice Gasnier <fabrice.gasnier@foss.st.com>
Reviewed-on: https://gerrit.st.com/c/mpu/oe/st/u-boot/+/289910
ACI: CITOOLS <MDG-smet-aci-reviews@list.st.com>
ACI: CIBUILD <MDG-smet-aci-builds@list.st.com>
Reviewed-by: Patrick DELAUNAY <patrick.delaunay@foss.st.com>
Reviewed-by: Patrice CHOTARD <patrice.chotard@foss.st.com>
Domain-Review: Patrick DELAUNAY <patrick.delaunay@foss.st.com>
2023-05-29 09:42:54 +02:00
938cc66897 configs: stm32: enable USB OHCI generic driver
OHCI may be used to handle full-speed or low-speed traffic, on boards
without an onboard High-Speed HUB.

Change-Id: Ief125ce44e95bc0437c8428044c164bdea39dae1
Signed-off-by: Fabrice Gasnier <fabrice.gasnier@foss.st.com>
Reviewed-on: https://gerrit.st.com/c/mpu/oe/st/u-boot/+/289909
ACI: CITOOLS <MDG-smet-aci-reviews@list.st.com>
ACI: CIBUILD <MDG-smet-aci-builds@list.st.com>
Reviewed-by: Patrice CHOTARD <patrice.chotard@foss.st.com>
Domain-Review: Patrick DELAUNAY <patrick.delaunay@foss.st.com>
2023-05-29 09:42:54 +02:00
1b8e52c825 clk: manage CLK_SET_RATE_PARENT flags on clk_set_rate()
Add possibility to propagate rate change up one level

Change-Id: I866d25a89cd351ea75cf7e4605397ebe20a60661
Signed-off-by: Gabriel Fernandez <gabriel.fernandez@foss.st.com>
Reviewed-on: https://gerrit.st.com/c/mpu/oe/st/u-boot/+/235018
Reviewed-by: CITOOLS <MDG-smet-aci-reviews@list.st.com>
Reviewed-by: Patrice CHOTARD <patrice.chotard@foss.st.com>
Reviewed-by: Patrick DELAUNAY <patrick.delaunay@foss.st.com>
Reviewed-on: https://gerrit.st.com/c/mpu/oe/st/u-boot/+/292634
ACI: CITOOLS <MDG-smet-aci-reviews@list.st.com>
ACI: CIBUILD <MDG-smet-aci-builds@list.st.com>
Domain-Review: Patrick DELAUNAY <patrick.delaunay@foss.st.com>
2023-05-29 09:42:54 +02:00
07bad8b7bd ARM: dts: stm32: add USB OTG UTMI clock on stm32mp151
UTMI clock is an output of USBPHYC. Align with kernel DT.

Change-Id: Ib9716358ed4ff352b20eda9f6f1dc021f713af1e
Signed-off-by: Fabrice Gasnier <fabrice.gasnier@foss.st.com>
Reviewed-on: https://gerrit.st.com/c/mpu/oe/st/u-boot/+/291416
Tested-by: Patrice CHOTARD <patrice.chotard@foss.st.com>
Reviewed-by: Patrice CHOTARD <patrice.chotard@foss.st.com>
Domain-Review: Patrice CHOTARD <patrice.chotard@foss.st.com>
2023-05-29 09:42:52 +02:00
6f76ce1607 pmic: stpmic1: support new prefix node name for regulator
The '_' character is dicouraged in the node name, this patch adds the
new prefix of regulator subnode, with the '-' character, in STM32MP1 driver
to support the new  naming rule in Linux kernel device trees.

It is a preliminary patch before Linux device tree synchronization
for STMicroelectronics boards.

Signed-off-by: Patrick Delaunay <patrick.delaunay@foss.st.com>
Change-Id: I332950b93da113030cd4c2f00a727b2f2c79602d
Reviewed-on: https://gerrit.st.com/c/mpu/oe/st/u-boot/+/291015
ACI: CITOOLS <MDG-smet-aci-reviews@list.st.com>
ACI: CIBUILD <MDG-smet-aci-builds@list.st.com>
Reviewed-by: Pascal PAILLET <p.paillet@st.com>
Reviewed-by: Patrice CHOTARD <patrice.chotard@foss.st.com>
2023-05-29 09:41:46 +02:00
8cb6016e09 clk: stm32mp13: SPIx clocks are missing
These clocks are needed for I2S driver.

Change-Id: Iad529377d26bcb1539bf7379775ebb2d2f425bc2
Signed-off-by: Gabriel Fernandez <gabriel.fernandez@foss.st.com>
Reviewed-on: https://gerrit.st.com/c/mpu/oe/st/u-boot/+/288629
ACI: CITOOLS <MDG-smet-aci-reviews@list.st.com>
ACI: CIBUILD <MDG-smet-aci-builds@list.st.com>
Reviewed-by: Patrice CHOTARD <patrice.chotard@foss.st.com>
Domain-Review: Patrick DELAUNAY <patrick.delaunay@foss.st.com>
2023-05-29 09:41:46 +02:00
fe142f205a dt-bindings: clk: stm32mp13: SPIx bus clocks are missing
Add SPI1, SPI2, SPI3, SPI4, SPI5 bus clocks

Change-Id: I4229c64ad899c33fdf6eb3ff10e67187456bec83
Signed-off-by: Gabriel Fernandez <gabriel.fernandez@foss.st.com>
Reviewed-on: https://gerrit.st.com/c/mpu/oe/st/u-boot/+/288628
ACI: CITOOLS <MDG-smet-aci-reviews@list.st.com>
ACI: CIBUILD <MDG-smet-aci-builds@list.st.com>
Reviewed-by: Patrice CHOTARD <patrice.chotard@foss.st.com>
Domain-Review: Patrick DELAUNAY <patrick.delaunay@foss.st.com>
2023-05-29 09:41:46 +02:00