env erase
http://patchwork.ozlabs.org/project/uboot/list/?series=228696&state=*
Patrick
Patrick Delaunay (2):
env: sf: add missing spi_flash_free
env: sf: remove the static env_flash variable
env/sf.c | 44
1 file changed, 24 insertio
Free the SPI resources by calling spi_flash_free() in each env sf
function to avoid issue for other SPI users.
Signed-off-by: Patrick Delaunay
---
env/sf.c | 9 +
1 file changed, 9 insertions(+)
diff --git a/env/sf.c b/env/sf.c
index 6b61a4b8de..acbd712aef 100644
--- a/env/sf.c
+++ b
: Patrick Delaunay
---
env/sf.c | 41 ++---
1 file changed, 18 insertions(+), 23 deletions(-)
diff --git a/env/sf.c b/env/sf.c
index acbd712aef..b7cf9c64d4 100644
--- a/env/sf.c
+++ b/env/sf.c
@@ -43,9 +43,7 @@ static ulong env_new_offset
patch removes these nand MTD update for nor boot and simplify nand0
and spi-nand0 support (remove the mtd_boot variable).
Signed-off-by: Patrick Delaunay
Signed-off-by: Patrick Delaunay
---
board/st/common/stm32mp_mtdparts.c | 16 +---
1 file changed, 5 insertions(+), 11 deleti
Move CONFIG_CMD_STM32PROG in a specific Kconfig file for stm32prog command.
Signed-off-by: Patrick Delaunay
---
arch/arm/mach-stm32mp/Kconfig | 18 +-
arch/arm/mach-stm32mp/cmd_stm32prog/Kconfig | 18 ++
2 files changed, 19 insertions(+), 17
When serial instance is not found in device tree, the console
should be enabled and the error should be indicated.
Signed-off-by: Patrick Delaunay
---
arch/arm/mach-stm32mp/cpu.c | 14 ++
1 file changed, 10 insertions(+), 4 deletions(-)
diff --git a/arch/arm/mach-stm32mp/cpu.c b
example).
Signed-off-by: Patrick Delaunay
---
arch/arm/mach-stm32mp/Makefile| 2 +-
arch/arm/mach-stm32mp/cmd_stm32prog/Kconfig | 20 ++--
arch/arm/mach-stm32mp/cmd_stm32prog/Makefile | 8 +++
.../cmd_stm32prog/cmd_stm32prog.c | 4 ++--
.../mach
The command "stm32prog serial " can directly use the device sequence
number of serial uclass as this sequence number is egual to alias when it
exist; this assumption simplify the code and avoid access to gd->fdt_blob
and the device tree parsing.
Signed-off-by: Pat
Enable the clocks during bsec probe when they are present in device tree.
Signed-off-by: Patrick Delaunay
---
arch/arm/mach-stm32mp/bsec.c | 10 ++
1 file changed, 10 insertions(+)
diff --git a/arch/arm/mach-stm32mp/bsec.c b/arch/arm/mach-stm32mp/bsec.c
index 88c7aec8b4..fe39bd80cf
Hi Ilias
On 2/25/21 8:37 PM, Ilias Apalodimas wrote:
The board can boot with UEFI. With the latest changes in U-Boot's
EFI subsystem we also have support for EFI runtime variables, without
SetVariable support. We can also store the EFI variables in a file on the
ESP partition and preserve them
ed-off-by: Marek Vasut
Cc: Jagan Teki
Cc: Patrick Delaunay
---
drivers/spi/spi-uclass.c | 10 ++
1 file changed, 10 insertions(+)
diff --git a/drivers/spi/spi-uclass.c b/drivers/spi/spi-uclass.c
index 7155d4aebd6..96c9a83e761 100644
--- a/drivers/spi/spi-uclass.c
+++ b/drivers/s
d-off-by: Ilias Apalodimas
---
Changes since v1:
- Apply identical changes on stm32mp15_basic_defconfig
configs/stm32mp15_basic_defconfig | 3 +++
configs/stm32mp15_trusted_defconfig | 3 +++
2 files changed, 6 insertions(+)
Reviewed-by: Patrick Delaunay
Thanks
Patrick
Hi,
On 2/12/21 1:50 PM, Marek Vasut wrote:
Add support for booting from USB pen drive, since USB host port is
available on the STM32MP1.
Signed-off-by: Marek Vasut
Cc: Patrice Chotard
Cc: Patrick Delaunay
---
include/configs/stm32mp1.h | 7 +++
1 file changed, 7 insertions
Hi,
On 2/24/21 11:00 AM, Patrick Delaunay wrote:
Remove duplicated uart nodes introduced with commit 62f95af92a3f
("ARM: dts: stm32mp1: DT alignment with Linux kernel v5.9-rc4"),
because the uart nodes wasn't correctly ordered in alphabetic order.
Only cosmetic: the generated de
On 2/26/21 2:09 PM, Patrick DELAUNAY wrote:
Hi,
On 2/26/21 1:52 PM, Ilias Apalodimas wrote:
The board can boot with UEFI. With the latest changes in U-Boot's
EFI subsystem we also have support for EFI runtime variables, without
SetVariable support. We can also store the EFI variables
evice tree
Ilias Apalodimas (1):
configs: stm32mp1: enable uefi related commands
Marek Vasut (1):
ARM: stm32: Add USB host boot support
Patrick Delaunay (1):
arm: dts: stm32mp15: remove duplicate uart nodes
arch/arm/dts/stm32mp15-pinctrl
V = 0.
On STMicroelectronics boards, the current behavior is kept with
CONFIG_SYS_MMC_ENV_DEV = -1.
Signed-off-by: Patrick Delaunay
---
board/st/stm32mp1/stm32mp1.c| 8 +++-
configs/stm32mp15_basic_defconfig | 1 +
configs/stm32mp15_trusted_defconfig | 1 +
3 files changed, 9 insert
: Patrick Delaunay
---
configs/stm32mp15_basic_defconfig | 1 +
configs/stm32mp15_dhcom_basic_defconfig | 1 +
configs/stm32mp15_dhcor_basic_defconfig | 1 +
configs/stm32mp15_trusted_defconfig | 1 +
include/configs/stm32mp1.h | 1 -
5 files changed, 4 insertions(+), 1 deletion
Hi Etienne,
On 2/22/21 8:27 AM, Etienne Carriere wrote:
Implement voltage regulators interfaced by the SCMI voltage domain
protocol. The DT bindings are defined in the Linux kernel since
SCMI voltage domain and regulators patches [1] and [2] integration
in v5.11-rc7.
Link: [1]
https://github.c
Hi Tom,
On 3/2/21 9:50 PM, Tom Rini wrote:
On Tue, Feb 02, 2021 at 01:59:07PM +0100, Patrick Delaunay wrote:
Hi,
I propose a update of the lmb library to allow the configuration
with Kconfig of the number of memory and reserved regions in lmb
libary:
- CONFIG_LMB_RESERVED_REGIONS
From: Patrick Delaunay
Remove the child device of the STM32 DSI bridge when the driver probe
failed to stop futher probe request on panels used with STMicroelectronics
board (orisetech_otm8009a.c or raydium-rm68200.c driver).
This patch avoid the trace "cannot get reset GPIO" when
From: Yannick Fertre
Missing udevice to struct dw_mipi_dsi to log trace.
Signed-off-by: Yannick Fertre
Signed-off-by: Patrick Delaunay
---
drivers/video/dw_mipi_dsi.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/video/dw_mipi_dsi.c b/drivers/video/dw_mipi_dsi.c
index
vant.
This patch moves these "warning" traces to "debug" traces so
they are still available for DSI phy based on the digital
interface in debug logging mode, but not there in normal mode
for both cases.
Note: The related Linux kernel driver uses a "debug"
message too.
B timeout or WATCHDOG.
Signed-off-by: Patrick Delaunay
---
drivers/dfu/dfu_mtd.c | 5 +
1 file changed, 1 insertion(+), 4 deletions(-)
diff --git a/drivers/dfu/dfu_mtd.c b/drivers/dfu/dfu_mtd.c
index ca67585a7e..7efb3cbd79 100644
--- a/drivers/dfu/dfu_mtd.c
+++ b/drivers/dfu/dfu_mtd.c
Remove the unused field size of struct lmb_region as it is initialized to 0
and never used after in lmb library.
See Linux kernel commit 4734b594c6ca ("memblock: Remove memblock_type.size
and add memblock.memory_size instead")
Signed-off-by: Patrick Delaunay
---
(no changes since v1)
Add test for max number of memory regions and in reserved regions.
Signed-off-by: Patrick Delaunay
---
Changes in v2:
- new in V2: add test for overflow protection in lmb libary
test/lib/lmb.c | 64 ++
1 file changed, 64 insertions(+)
diff
Add a max parameter in lmb_region struct to handle test
in lmb_add_region without using the MAX_LMB_REGIONS
define.
This patch allows to modify these size independently for
memory of reserved regions in the next patches.
Signed-off-by: Patrick Delaunay
---
Changes in v2:
- add a max parameter
Move MAX_LMB_REGIONS value in Kconfig, the max number of the regions
in lmb library.
Signed-off-by: Patrick Delaunay
---
Changes in v2:
- new in v2: introduced MAX_LMB_REGIONS
include/lmb.h | 4 +---
lib/Kconfig | 10 +-
lib/lmb.c | 4 ++--
3 files changed, 12 insertions(+), 6
rrays
to static storage in memblock.c and make their size a variable")
Signed-off-by: Patrick Delaunay
---
Changes in v2:
- rework v1 [4/5] to keep current optimization by default
when CONFIG_LMB_USE_MAX_REGIONS=n
include/lmb.h | 34 ++
the max number of
supported reserved memory in lmb library to 16.
Signed-off-by: Patrick Delaunay
---
Changes in v2:
- Add CONFIG_LMB_USE_MAX_REGIONS=n and reduce LMB_MEMORY_REGIONS
to reduce the used size in stack
configs/stm32mp15_basic_defconfig | 3 +++
configs
As in lmb_region, cnt < max and in the lmb library
use region[i] only with i in 0...cnt, this region array size
can be reduced by 1 element without overflow.
This patch allows to reduce the struct lmb size.
Signed-off-by: Patrick Delaunay
---
Changes in v2:
- new in V2: reduce size impact
oad done.
state(10) = dfuERROR, status(14) = Something went wrong,
but the device does not know what it was Done!
Fixes: 65f3fc18fc1e ("dfu_mtd: Add provision to unlock mtd device")
Signed-off-by: Patrick Delaunay
---
drivers/dfu/dfu_mtd.c | 4 +++-
1 file changed, 3 insertions(+
b libary
- rework v1 [4/5] to keep current optimization by default
when CONFIG_LMB_USE_MAX_REGIONS=n
- Add CONFIG_LMB_USE_MAX_REGIONS=n and reduce LMB_MEMORY_REGIONS
to reduce the used size in stack
Patrick Delaunay (8):
lmb: move CONFIG_LMB in Kconfig
lmb: remove lmb_region.size
lmb: a
Migrate CONFIG_LMB in Kconfig.
Signed-off-by: Patrick Delaunay
---
(no changes since v1)
arch/arc/include/asm/config.h| 2 --
arch/arm/include/asm/config.h| 1 -
arch/m68k/include/asm/config.h | 1 -
arch/microblaze/include/asm/config.h | 2 --
arch/mips/include/asm
Hi Tom
> From: Tom Rini
> Sent: vendredi 26 juin 2020 22:55
>
> On Thu, Jun 25, 2020 at 09:59:52AM +0200, Patrick Delaunay wrote:
>
> > Add the new command 'env select' to force the persistent storage of
> > environment, saved in gd->env_load_prio.
uot;;
> +
> + aliases {
> + ethernet0 = ðernet0;
> + serial0 = &uart4;
> + };
> +
> + chosen {
> + stdout-path = "serial0:115200n8";
> + };
> +
> + led {
> + compatible = "gpio-leds";
> + blue {
> + label = "heartbeat";
> + gpios = <&gpiog 3 GPIO_ACTIVE_HIGH>;
> + linux,default-trigger = "heartbeat";
> + default-state = "off";
> + };
> + };
> +
> +};
> +
> +&adc {
> + pinctrl-names = "default";
> + pinctrl-0 = <&adc12_ain_pins_a>, <&adc12_usb_cc_pins_a>;
> + vdd-supply = <&vdd>;
> + vdda-supply = <&vdd>;
> + vref-supply = <&vrefbuf>;
> + status = "disabled";
> + adc1: adc@0 {
> + /*
> + * Type-C USB_PWR_CC1 & USB_PWR_CC2 on in18 & in19.
> + * Use at least 5 * RC time, e.g. 5 * (Rp + Rd) * C:
> + * 5 * (56 + 47kOhms) * 5pF => 2.5us.
> + * Use arbitrary margin here (e.g. 5us).
> + */
> + st,min-sample-time-nsecs = <5000>;
> + /* AIN connector, USB Type-C CC1 & CC2 */
> + st,adc-channels = <0 1 6 13 18 19>;
> + status = "okay";
> + };
> + adc2: adc@100 {
> + /* AIN connector, USB Type-C CC1 & CC2 */
> + st,adc-channels = <0 1 2 6 18 19>;
> + st,min-sample-time-nsecs = <5000>;
> + status = "okay";
> + };
> +};
> +
> +&cec {
> + pinctrl-names = "default", "sleep";
> + pinctrl-0 = <&cec_pins_b>;
> + pinctrl-1 = <&cec_pins_sleep_b>;
> + status = "okay";
> +};
> +
> +ðernet0 {
> + status = "okay";
> + pinctrl-0 = <ðernet0_rgmii_pins_a>;
> + pinctrl-1 = <ðernet0_rgmii_pins_sleep_a>;
> + pinctrl-names = "default", "sleep";
> + phy-mode = "rgmii-id";
> + max-speed = <1000>;
> + phy-handle = <&phy0>;
> +
> + mdio0 {
> + #address-cells = <1>;
> + #size-cells = <0>;
> + compatible = "snps,dwmac-mdio";
> + phy0: ethernet-phy@0 {
> + reg = <0>;
> + };
> + };
> +};
> +
> +&gpu {
> + contiguous-area = <&gpu_reserved>;
> + status = "okay";
> +};
> +
> +&i2c1 {
> + pinctrl-names = "default", "sleep";
> + pinctrl-0 = <&i2c1_pins_a>;
> + pinctrl-1 = <&i2c1_pins_sleep_a>;
> + i2c-scl-rising-time-ns = <100>;
> + i2c-scl-falling-time-ns = <7>;
> + status = "okay";
> + /delete-property/dmas;
> + /delete-property/dma-names;
> +};
> +
> +&i2s2 {
> + clocks = <&rcc SPI2>, <&rcc SPI2_K>, <&rcc PLL3_Q>, <&rcc PLL3_R>;
> + clock-names = "pclk", "i2sclk", "x8k", "x11k";
> + pinctrl-names = "default", "sleep";
> + pinctrl-0 = <&i2s2_pins_a>;
> + pinctrl-1 = <&i2s2_pins_sleep_a>;
> + status = "okay";
> +};
> +
> +&pwr_regulators {
> + vdd-supply = <&vdd>;
> + vdd_3v3_usbfs-supply = <&vdd_usb>;
> +};
> +
> +&sdmmc1 {
> + pinctrl-names = "default", "opendrain", "sleep";
> + pinctrl-0 = <&sdmmc1_b4_pins_a>;
> + pinctrl-1 = <&sdmmc1_b4_od_pins_a>;
> + pinctrl-2 = <&sdmmc1_b4_sleep_pins_a>;
> + cd-gpios = <&gpiob 7 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>;
> + disable-wp;
> + st,neg-edge;
> + bus-width = <4>;
> + vmmc-supply = <&v3v3>;
> + status = "okay";
> +};
> +
> +&uart4 {
> + pinctrl-names = "default";
> + pinctrl-0 = <&uart4_pins_a>;
> + status = "okay";
> +};
> +
> +&usbh_ehci {
> + phys = <&usbphyc_port0>;
> + status = "okay";
> +};
> +
> +&usbotg_hs {
> + dr_mode = "peripheral";
> + phys = <&usbphyc_port1 0>;
> + phy-names = "usb2-phy";
> + status = "okay";
> +};
> +
> +&usbphyc {
> + status = "okay";
> +};
> +
> +&usbphyc_port0 {
> + phy-supply = <&vdd_usb>;
> +};
> +
> +&usbphyc_port1 {
> + phy-supply = <&vdd_usb>;
> +};
> +
> --
> 2.26.2
If you correct the minor remarks
Reviewed-by: Patrick Delaunay
Thanks
Patrick
Hi,
> From: Patrick DELAUNAY
> Sent: mercredi 1 juillet 2020 11:59
>
> Hi Marcin,
>
> > From: Marcin Sloniewski
> > Sent: mardi 30 juin 2020 22:02
> >
> > This commit adds device tree files supporting SBC from Seeed Studio
> > based on STM32MP1
supported in DWC2 driver.
This patch reduces the difference between U-Boot and Linux kernel
device-tree.
Signed-off-by: Patrick Delaunay
---
arch/arm/dts/stm32mp157a-dk1-u-boot.dtsi | 1 -
1 file changed, 1 deletion(-)
diff --git a/arch/arm/dts/stm32mp157a-dk1-u-boot.dtsi
b/arch/arm/dts/stm32mp157a
Hi Anatolij
> From: U-Boot On Behalf Of Anatolij Gustschin
> Sent: vendredi 19 juin 2020 15:56
>
> On Sat, 23 May 2020 17:11:20 +0200
> Anatolij Gustschin ag...@denx.de wrote:
>
> > cfb_console driver use 'vga' console name and we still have board
> > environments defining this name. Re-use exi
video: extend stdout video console work-around for 'vga'")
Signed-off-by: Patrick Delaunay
---
Hi,
It is fix for stm32mp157c-ev1 boot on next branch.
The option names are not perfect but it is only a temporarily
work around (up to end of 2020).
You can see other example of b
+
> + chosen {
> + stdout-path = "serial0:115200n8";
> + };
> +
> + led {
> + compatible = "gpio-leds";
> + blue {
> + label = "heartbeat";
> + gpios = <&gpiog 3 GPIO_ACTIVE_HIGH>;
> + linux,default-trigger = "heartbeat";
> + default-state = "off";
> + };
> + };
> +
> +};
> +
> +&adc {
> + pinctrl-names = "default";
> + pinctrl-0 = <&adc12_ain_pins_a>, <&adc12_usb_cc_pins_a>;
> + vdd-supply = <&vdd>;
> + vdda-supply = <&vdd>;
> + vref-supply = <&vrefbuf>;
> + status = "disabled";
> + adc1: adc@0 {
> + /*
> + * Type-C USB_PWR_CC1 & USB_PWR_CC2 on in18 & in19.
> + * Use at least 5 * RC time, e.g. 5 * (Rp + Rd) * C:
> + * 5 * (56 + 47kOhms) * 5pF => 2.5us.
> + * Use arbitrary margin here (e.g. 5us).
> + */
> + st,min-sample-time-nsecs = <5000>;
> + /* AIN connector, USB Type-C CC1 & CC2 */
> + st,adc-channels = <0 1 6 13 18 19>;
> + status = "okay";
> + };
> + adc2: adc@100 {
> + /* AIN connector, USB Type-C CC1 & CC2 */
> + st,adc-channels = <0 1 2 6 18 19>;
> + st,min-sample-time-nsecs = <5000>;
> + status = "okay";
> + };
> +};
> +
> +&cec {
> + pinctrl-names = "default", "sleep";
> + pinctrl-0 = <&cec_pins_b>;
> + pinctrl-1 = <&cec_pins_sleep_b>;
> + status = "okay";
> +};
> +
> +ðernet0 {
> + status = "okay";
> + pinctrl-0 = <ðernet0_rgmii_pins_a>;
> + pinctrl-1 = <ðernet0_rgmii_pins_sleep_a>;
> + pinctrl-names = "default", "sleep";
> + phy-mode = "rgmii-id";
> + max-speed = <1000>;
> + phy-handle = <&phy0>;
> +
> + mdio0 {
> + #address-cells = <1>;
> + #size-cells = <0>;
> + compatible = "snps,dwmac-mdio";
> + phy0: ethernet-phy@0 {
> + reg = <0>;
> + };
> + };
> +};
> +
> +&gpu {
> + contiguous-area = <&gpu_reserved>;
> + status = "okay";
> +};
> +
> +&i2c1 {
> + pinctrl-names = "default", "sleep";
> + pinctrl-0 = <&i2c1_pins_a>;
> + pinctrl-1 = <&i2c1_pins_sleep_a>;
> + i2c-scl-rising-time-ns = <100>;
> + i2c-scl-falling-time-ns = <7>;
> + status = "okay";
> + /delete-property/dmas;
> + /delete-property/dma-names;
> +};
> +
> +&i2s2 {
> + clocks = <&rcc SPI2>, <&rcc SPI2_K>, <&rcc PLL3_Q>, <&rcc PLL3_R>;
> + clock-names = "pclk", "i2sclk", "x8k", "x11k";
> + pinctrl-names = "default", "sleep";
> + pinctrl-0 = <&i2s2_pins_a>;
> + pinctrl-1 = <&i2s2_pins_sleep_a>;
> + status = "okay";
> +};
> +
> +&pwr_regulators {
> + vdd-supply = <&vdd>;
> + vdd_3v3_usbfs-supply = <&vdd_usb>;
> +};
> +
> +&sdmmc1 {
> + pinctrl-names = "default", "opendrain", "sleep";
> + pinctrl-0 = <&sdmmc1_b4_pins_a>;
> + pinctrl-1 = <&sdmmc1_b4_od_pins_a>;
> + pinctrl-2 = <&sdmmc1_b4_sleep_pins_a>;
> + cd-gpios = <&gpiob 7 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>;
> + disable-wp;
> + st,neg-edge;
> + bus-width = <4>;
> + vmmc-supply = <&v3v3>;
> + status = "okay";
> +};
> +
> +&uart4 {
> + pinctrl-names = "default";
> + pinctrl-0 = <&uart4_pins_a>;
> + status = "okay";
> +};
> +
> +&usbh_ehci {
> + phys = <&usbphyc_port0>;
> + status = "okay";
> +};
> +
> +&usbotg_hs {
> + dr_mode = "peripheral";
> + phys = <&usbphyc_port1 0>;
> + phy-names = "usb2-phy";
> + status = "okay";
> +};
> +
> +&usbphyc {
> + status = "okay";
> +};
> +
> +&usbphyc_port0 {
> + phy-supply = <&vdd_usb>;
> +};
> +
> +&usbphyc_port1 {
> + phy-supply = <&vdd_usb>;
> +};
> +
> --
> 2.26.2
Except this minor remark:
Reviewed-by: Patrick Delaunay
Thanks
Patrick
This patch update the current gpio hog implementation with
the new API gpio_hog_probe_all() activated with CONFIG_GPIO_HOG.
Signed-off-by: Patrick Delaunay
Reviewed-by: Patrice Chotard
---
Changes in v2:
- correct commit message and add review by Patrice
board/dhelectronics/dh_stm32mp1
e target") test CONFIG_ENV_IS_NOWHERE is not
enough; see also commit 953db29a1e9c6 ("env: enable saveenv
command when one CONFIG_ENV_IS_IN is activated").
This patch avoids issue for this command in stm32mp1 platform.
Signed-off-by: Patrick Delaunay
Reviewed-by: Simon Glass
Activate CMD_NVEDIT_INFO and use the new command "env info -d -p -q"
to automatically save the environment on first boot.
This patch allows to remove the env_default variable.
Signed-off-by: Patrick Delaunay
---
Previously sent in serie
cmd: env: add option for quiet output on env
Activate the new option -q in command "env info"
to avoid unnecessary trace during boot.
Signed-off-by: Patrick Delaunay
Reviewed-by: Patrice Chotard
---
Hi,
This patch was previous included in V3 serie 158105.
This patch have dependency with serie 184539 for -q option
and with se
remove = "Commit-\w*:"
but 'END' is kept in commit message.
Signed-off-by: Patrick Delaunay
---
tools/patman/patchstream.py | 4
1 file changed, 4 insertions(+)
diff --git a/tools/patman/patchstream.py b/tools/patman/patchstream.py
index 4fe465e9ab..a575c09b47
note:)
NB: no issue for Series-xxx option as only the supported
options are accepted (see valid_series in series.py)
Signed-off-by: Patrick Delaunay
---
tools/patman/patchstream.py | 3 +++
1 file changed, 3 insertions(+)
diff --git a/tools/patman/patchstream.py b/tools/patman/patchstream
se address for buffer = address + size / 2 is not word
aligned.
This patch avoid test error for unsupported size value.
Reviewed-by: Patrice Chotard
Signed-off-by: Patrick Delaunay
---
(no changes since v1)
drivers/ram/stm32mp1/stm32mp1_tests.c | 37 ++-
1 file changed,
Add a parameter addr in test FrequencySelectivePattern to select
the base address used to execute the tests.
Default value (when the parameter is absent) is STM32_DDR_BASE,
selected in get_addr() function.
Reviewed-by: Patrice Chotard
Signed-off-by: Patrick Delaunay
---
(no changes since v1
et_bufsize() selects
the correct value for bufsize when this parameter is absent =
full size of the DDDR
On EV1 board :
DDR> test 4
running at 0xC000 length 0x4000
On DK2 board
DDR> test 4
running at 0xC000 length 0x2000
Reviewed-by: Patrice Chotard
Signed-off-by: Patrick Delaunay
[pattern] = "-" (new: force default pattern)
Example to use:
DDR>test 0 1 0x2
DDR>test 0 1 0x100 0xD000
Reviewed-by: Patrice Chotard
Signed-off-by: Patrick Delaunay
---
(no changes since v1)
drivers/ram/stm32mp1/stm32mp1_tests.c | 47 +--
As the error message is now displayed by generic phy functions,
the pr_err can be change to pr_idebug.
Signed-off-by: Patrick Delaunay
---
(no changes since v1)
board/sunxi/board.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/board/sunxi/board.c b/board/sunxi/board.c
As the error message is now displayed by generic phy functions,
the dev_err can be change to dev_dbg.
Signed-off-by: Patrick Delaunay
---
(no changes since v1)
drivers/usb/host/ohci-generic.c | 8
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/drivers/usb/host/ohci
As the error message is now displayed by generic phy functions,
the pr_err can be change to pr_debug.
Signed-off-by: Patrick Delaunay
---
(no changes since v1)
drivers/ata/dwc_ahci.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/ata/dwc_ahci.c b/drivers/ata
As the error message is now displayed by generic phy functions,
the pr_err can be change to pr_debug.
Signed-off-by: Patrick Delaunay
---
(no changes since v1)
drivers/usb/host/ehci-hcd.c | 8
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/drivers/usb/host/ehci-hcd.c b
Add an error trace for PHY errors directly in generic phy
functions provided by PHY uclass.
Signed-off-by: Patrick Delaunay
---
This patch is requested by Marek Vasut to avoid code duplication
in usb host serie for dwc2:
See http://patchwork.ozlabs.org/patch/1176048/#2297595
[U-Boot,RESEND,1/5
As the error message is now displayed by generic phy functions,
the dev_err/pr_err can be change to dev_dbg/pr_debug.
Signed-off-by: Patrick Delaunay
---
(no changes since v2)
Changes in v2:
- Added patch after rebase: new generic_phy API usage
drivers/usb/musb-new/sunxi.c | 8
1
base
- simplify test on ops presence after Marek review
- add update for mach-meson board-gx: new generic_phy API usage
Changes in v2:
- Rebase and add include dm/device_compat.h
- Added patch after rebase: new generic_phy API usage
Patrick Delaunay (7):
phy: generic: add error trace to detect PHY i
As the error message is now displayed by generic phy functions,
the pr_err can be change to pr_debug.
Signed-off-by: Patrick Delaunay
---
Changes in v3:
- add update for mach-meson board-gx: new generic_phy API usage
arch/arm/mach-meson/board-gx.c | 8
1 file changed, 4 insertions
Update management of misc_read, which now return length of data
after the commit 8729b1ae2cbd ("misc: Update read() and write()
methods to return bytes xfered")
Fixes: 8b8b3d6b55b9 ("stm32mp1: board: add environment variable for board id
and board rev")
Signed-off-
Hi Eugeniu,
> From: U-Boot On Behalf Of Eugeniu Rosca
> Sent: samedi 11 janvier 2020 00:30
>
> Hi Tom,
>
> On Fri, Jan 10, 2020 at 04:50:52PM -0500, Tom Rini wrote:
> > On Tue, Dec 24, 2019 at 05:51:08PM +0100, Eugeniu Rosca wrote:
> > > Signed-off-by: Eugeniu Rosca
> > > Reviewed-by: Sam Prot
s on attempt to disable an always-on regulator'")
and use the API introduced by commit cc4a224af226 ("power: regulator:
Introduce regulator_set_enable_if_allowed api").
Signed-off-by: Patrick Delaunay
---
drivers/phy/phy-stm32-usbphyc.c | 2 +-
1 file changed, 1 insertion(+), 1 de
Check result of find_mmc_device() before calling mmc_init().
This patch avoid a data abort when the command try to acces
to sd/mmc device deactivated in device tree.
Fixes: aff4c5dd8265 ("stm32mp: stm32prog: add MMC device")
Signed-off-by: Patrick Delaunay
---
arch/arm/ma
Alignment with pins name used in Linux kernel v5.8.
It is a preleminary step for device tree alignment.
Signed-off-by: Patrick Delaunay
---
arch/arm/dts/stm32mp15-pinctrl.dtsi | 4 ++--
arch/arm/dts/stm32mp15xx-dhcor-avenger96.dts | 4 ++--
2 files changed, 4 insertions(+), 4
Add a new compatible "st,stm32mp15-i2c" introduced in Linux kernel v5.8
Signed-off-by: Patrick Delaunay
---
drivers/i2c/stm32f7_i2c.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/i2c/stm32f7_i2c.c b/drivers/i2c/stm32f7_i2c.c
index ada8f4095e..593f713d6b 100644
--- a/d
DT alignment with Linux kernel v5.8-rc1 for the STM32MP15x soc
device tree files and the STMicroelectronics boards device tree files.
Signed-off-by: Patrick Delaunay
---
arch/arm/dts/stm32mp15-pinctrl.dtsi | 562 ++--
arch/arm/dts/stm32mp15-u-boot.dtsi | 4 +
arch
registers
are separated while on the other platforms (F7 or H7) the control
is done in a unique register.
Signed-off-by: Patrick Delaunay
---
drivers/i2c/stm32f7_i2c.c | 74 ++-
1 file changed, 73 insertions(+), 1 deletion(-)
diff --git a/drivers/i2c/stm32f7_i2c.c
reset property won't be not added in Linux kernel device tree
as this reset is not used in Linux STM32 serial driver.
Signed-off-by: Patrick Delaunay
---
arch/arm/dts/stm32mp15-u-boot.dtsi | 32 ++
1 file changed, 32 insertions(+)
diff --git a/arch/arm/dts/stm32m
Activate the support of the command adtimg to handle android images.
Signed-off-by: Patrick Delaunay
---
configs/stm32mp15_basic_defconfig | 1 +
configs/stm32mp15_trusted_defconfig | 1 +
2 files changed, 2 insertions(+)
diff --git a/configs/stm32mp15_basic_defconfig
b/configs
’
[-Wmissing-prototypes]
Fixes: dc7e5f190de5 ("arm: stm32mp: activate data cache on DDR in SPL")
Signed-off-by: Patrick Delaunay
---
arch/arm/mach-stm32mp/spl.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/arm/mach-stm32mp/spl.c b/arch/arm/mach-stm32mp/s
Replace the function spl_board_prepare_for_boot_linux by the correct
name of the weak function spl_board_prepare_for_linux defined in spl.h.
Signed-off-by: Patrick Delaunay
---
arch/arm/mach-k3/common.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/arm/mach-k3
vrefbuf: fix a possible overshoot when re-enabling
Fabrice Gasnier (1):
power: regulator: stm32: vrefbuf: fix a possible overshoot when
re-enabling
Patrick Delaunay (35):
net: dwc_eth_qos: update the compatible supported for STM32
arm: stm32mp: spl: add bsec driver in SPL
Since commit f13ff88b61c3 ("gpio: stm32: add ops set_dir_flags")
the gpio flags are aupported by stm32 pinctrl driver.
The cd-gpios is correctly handle in U-Boot and the patch on the
device tree can be removed.
This reverts commit 3c2e2a1a79608c5e046313a8c47586d9a734e2a3.
Signed-off-b
ned-off-by: Patrick Delaunay
---
Changes in v2:
- correct commit message
arch/arm/dts/stm32mp15xx-dhcom-u-boot.dtsi | 3 ---
1 file changed, 3 deletions(-)
diff --git a/arch/arm/dts/stm32mp15xx-dhcom-u-boot.dtsi
b/arch/arm/dts/stm32mp15xx-dhcom-u-boot.dtsi
index 69c5af4241..f96de9e7a3 100644
--- a/ar
Since commit f13ff88b61c3 ("gpio: stm32: add ops set_dir_flags")
the gpio flags are supported by stm32 pinctrl driver.
The cd-gpios is correctly handle in U-Boot and the patch on the
device tree can be removed.
This reverts commit 792919241b3d750cd5295dfe6dd1d0958b9be468.
Signed-off-b
Thanks,
> From: Eugeniu Rosca
> Sent: lundi 6 juillet 2020 08:47
>
> Hi Patrick,
>
> On Fri, Jul 03, 2020 at 04:40:28PM +, Patrick DELAUNAY wrote:
> > > From: U-Boot On Behalf Of Eugeniu
> > > Rosca
> > > Sent: samedi 11 janvier 2020 00:30
&
else if CONFIG_IS_ENABLED(CMD_BOOTZ)
> + else if (CONFIG_IS_ENABLED(CMD_BOOTZ))
> do_bootz(cmdtp, 0, 4, bootm_argv);
> }
>
> --
> 2.7.4
Reviewed-by: Patrick Delaunay
Thanks
Patrick
Hi Heiko
> From: Heiko Schocher
> Sent: mardi 7 juillet 2020 07:21
>
> Hello Patrick,
>
> Am 06.07.2020 um 13:31 schrieb Patrick Delaunay:
> > Read SYSCFG bindings to set Fast Mode Plus bits if Fast Mode Plus
> > speed is selected.
> >
> > Handle t
0644 arch/arm/dts/stm32mp157c-odyssey-som.dtsi
> create mode 100644 arch/arm/dts/stm32mp157c-odyssey-u-boot.dtsi
> create mode 100644 arch/arm/dts/stm32mp157c-odyssey.dts
>
Reviewed-by: Patrick Delaunay
Thanks
Patrick
requested by board_f.c::print_resetinfo()).
When EFI_LOADER is activated, this variable in already located in the
.data.efi_runtime section by __efi_runtime_data.
Signed-off-by: Yann Gautier
Signed-off-by: Patrick Delaunay
---
drivers/firmware/psci.c | 4
1 file changed, 4 insertions(+)
diff
Add basic test to persistent environment in ext4:
save and load in host ext4 file 'uboot.env'.
On first execution a empty EXT4 file system is created in
persistent data dir: env.ext4.img.
Signed-off-by: Patrick Delaunay
---
test/py/tests/test_e
he environment is
re-loaded.
Signed-off-by: Patrick Delaunay
---
board/sandbox/sandbox.c | 40 +++-
1 file changed, 39 insertions(+), 1 deletion(-)
diff --git a/board/sandbox/sandbox.c b/board/sandbox/sandbox.c
index 01f356be31..023a71d5f0 100644
--- a/board/san
The default environment is still used with "ENVL_NOWHERE"
indicated by the weak function env_get_location() and
activated by CONFIG_ENV_IS_NOWHERE.
Signed-off-by: Patrick Delaunay
---
board/sandbox/sandbox.c| 12
configs/sandbox64_defconfig| 4 +++
o add the support of
the command "env erase" for EXT4 env location.
Regards
Patrick
Patrick Delaunay (10):
env: add absolute path at CONFIG_ENV_EXT4_FILE
env: ext4: set gd->env_valid
env: correctly handle result in env_init
sandbox: activate env in ext4 support
sandbox: s
Add a missing initialization of gd->env_valid in env_ext4_load
as it is already done in some other env device.
Set gd->env_valid = ENV_VALID in env_ext4_save() and env_ext4_load().
This patch allows to have a correct information in 'env info' command.
Signed-off-by: Patrick Del
oesn't define an ops .init
Signed-off-by: Patrick Delaunay
---
env/env.c | 5 -
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/env/env.c b/env/env.c
index 9237bb9c74..e4df1715e4 100644
--- a/env/env.c
+++ b/env/env.c
@@ -292,7 +292,10 @@ int env_init(void)
int p
Add test for the erase command tested on ENV in EXT4.
Signed-off-by: Patrick Delaunay
---
configs/sandbox64_defconfig| 1 +
configs/sandbox_defconfig | 1 +
configs/sandbox_flattree_defconfig | 1 +
configs/sandbox_spl_defconfig | 1 +
test/py/tests/test_env.py
Add the absolute path to the default value of
CONFIG_ENV_EXT4_FILE = "/uboot.env".
This patch avoid the error :
Saving Environment to EXT4... File System is consistent
Please supply Absolute path
Signed-off-by: Patrick Delaunay
---
For information, it is the value used today
Fix possible compilation issue in env ext4 support when
CONFIG_CMD_SAVEENV is not activated.
Signed-off-by: Patrick Delaunay
---
env/ext4.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/env/ext4.c b/env/ext4.c
index e3bbf4a4e0..aa77261649 100644
--- a/env/ext4.c
+++ b/env/ext4.c
Split the function env_ext4_save to prepare the erase support
Signed-off-by: Patrick Delaunay
---
env/ext4.c | 32 +++-
1 file changed, 23 insertions(+), 9 deletions(-)
diff --git a/env/ext4.c b/env/ext4.c
index aa77261649..49ed06659f 100644
--- a/env/ext4.c
+++ b
Add support of opts erase for env in ext4,
this opts is used by command 'env erase'.
This command only fill the env file (CONFIG_ENV_EXT4_FILE)
with 0, the CRC and the saved environment becomes invalid.
Signed-off-by: Patrick Delaunay
---
env/ext4.c | 24 ++
Update management of misc_write, which now return length of data
after the commit 8729b1ae2cbd ("misc: Update read() and write()
methods to return bytes xfered")
Signed-off-by: Patrick Delaunay
---
board/st/common/cmd_stboard.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
Hi,
Few patches for board and SOC identifications on STM32MP15x
- update command stboard for STMicroelectronics board
identification (MB with OTP 59)
- update kernel device tree with SOC part number
Regards
Patrick
Patrick Delaunay (10):
board: stm32mp1: update command stboard on
) => BOM (01, 255)
the command is:
stboard [-y]
Signed-off-by: Patrick Delaunay
---
board/st/common/cmd_stboard.c | 31 ---
board/st/stm32mp1/stm32mp1.c | 3 ++-
2 files changed, 22 insertions(+), 12 deletions(-)
diff --git a/board/st/common/cmd_stboa
Read the value directly from the OTP and no more of the shadows
to avoid the need of reboot after stboard command to have correct value.
Signed-off-by: Patrick Delaunay
---
board/st/common/cmd_stboard.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/board/st/common
Add the SMC code and operation for trace on errors.
Signed-off-by: Patrick Delaunay
---
arch/arm/mach-stm32mp/include/mach/stm32mp1_smc.h | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/arch/arm/mach-stm32mp/include/mach/stm32mp1_smc.h
b/arch/arm/mach-stm32mp/include
fs < 0 || (offs % 4) || (size % 4))
| ^
In function ‘stm32mp_bsec_write’:
arch/arm/mach-stm32mp/bsec.c:405:11: warning:
comparison of unsigned expression < 0 is always false [-Wtype-limits]
405 | if (offs < 0 || (offs % 4) || (size % 4))
| ^
Signed-off-by: P
Display the reference MB found in OTP49
only for STMicroelectronics boards when CONFIG_CMD_STBOARD
is activated.
Signed-off-by: Patrick Delaunay
---
board/st/stm32mp1/stm32mp1.c | 27 ++-
1 file changed, 14 insertions(+), 13 deletions(-)
diff --git a/board/st
Lock the OTP used for board identification for the ST boards after
programming.
Signed-off-by: Patrick Delaunay
---
board/st/common/cmd_stboard.c | 21 -
1 file changed, 20 insertions(+), 1 deletion(-)
diff --git a/board/st/common/cmd_stboard.c b/board/st/common
Add a function get_soc_name to get a string with the full name
of the SOC "STM32MP15xxx Rev.x"
Signed-off-by: Patrick Delaunay
---
arch/arm/mach-stm32mp/cpu.c| 14 +++---
arch/arm/mach-stm32mp/include/mach/sys_proto.h | 4
2 files changed, 15 insert
901 - 1000 of 3503 matches
Mail list logo