[RFC PATCH 0/2] env: sf: remove the static env_flash variable

2021-02-24 Thread Patrick Delaunay
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

[RFC PATCH 1/2] env: sf: add missing spi_flash_free

2021-02-24 Thread Patrick Delaunay
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

[RFC PATCH 2/2] env: sf: remove the static env_flash variable

2021-02-24 Thread Patrick Delaunay
: 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] board: st: remove the nand MTD configuration for NOR boot in stm32mp1 board

2021-02-25 Thread Patrick Delaunay
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

[PATCH 1/4] stm32mp: stm32prog: Add Kconfig file for stm32prog command

2021-02-25 Thread Patrick Delaunay
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

[PATCH 3/4] stm32mp: stm32prog: reactivate console and display serial error

2021-02-25 Thread Patrick Delaunay
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

[PATCH 2/4] stm32mp: stm32prog: Add CONFIG_CMD_STM32PROG_SERIAL and _USB

2021-02-25 Thread Patrick Delaunay
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

[PATCH 4/4] stm32mp: stm32prog: replace alias by serial device sequence number

2021-02-25 Thread Patrick Delaunay
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

[PATCH] stm32mp: bsec: manage clock when present in device tree

2021-02-25 Thread Patrick Delaunay
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

Re: [PATCH] configs: stm32mp1: enable uefi related commands

2021-02-26 Thread Patrick DELAUNAY
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

Re: [PATCH] spi: Update speed/mode on change

2021-02-26 Thread Patrick DELAUNAY
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

Re: [PATCH v2] configs: stm32mp1: enable uefi related commands

2021-02-26 Thread Patrick DELAUNAY
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

Re: [PATCH] ARM: stm32: Add USB host boot support

2021-02-26 Thread Patrick DELAUNAY
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

Re: [PATCH] arm: dts: stm32mp15: remove duplicate uart nodes

2021-02-26 Thread Patrick DELAUNAY
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

Re: [PATCH v2] configs: stm32mp1: enable uefi related commands

2021-02-26 Thread Patrick DELAUNAY
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

[PULL] Pull request for u-boot master / v2021.04 = u-boot-stm32-20210226

2021-02-26 Thread Patrick DELAUNAY
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

[PATCH] board: stm32mp1: use CONFIG_SYS_MMC_ENV_DEV when available

2021-03-01 Thread Patrick Delaunay
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

[PATCH] configs: stm32mp15: move bootdelay configuration in defconfig

2021-03-01 Thread Patrick Delaunay
: 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

Re: [PATCH v3 1/4] firmware: scmi: voltage regulator

2021-03-03 Thread Patrick DELAUNAY
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

Re: [PATCH 0/5] lmb: Add config for the number of memory and reserved regions

2021-03-03 Thread Patrick DELAUNAY
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

[PATCH] video: stm32: remove all child of DSI bridge when its probe failed

2021-03-04 Thread Patrick Delaunay
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

[PATCH 1/2] video: dw_mipi_dsi: missing device to log debug

2021-03-04 Thread Patrick Delaunay
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

[PATCH 2/2] video: dw_mipi_dsi: update log of dphy_enable

2021-03-04 Thread Patrick Delaunay
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.

[PATCH] dfu: dfu_mtd: set max_buf_size to erasesize also for NOR devices

2021-03-04 Thread Patrick Delaunay
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

[PATCH v2 2/8] lmb: remove lmb_region.size

2021-03-10 Thread Patrick Delaunay
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)

[PATCH v2 6/8] test: lmb: add test for overflow protection in lmb_add_region

2021-03-10 Thread Patrick Delaunay
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

[PATCH v2 3/8] lmb: add a max parameter in the struct lmb_region

2021-03-10 Thread Patrick Delaunay
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

[PATCH v2 4/8] lmb: move MAX_LMB_REGIONS value in Kconfig

2021-03-10 Thread Patrick Delaunay
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

[PATCH v2 7/8] lmb: Add 2 config to define the max number of regions

2021-03-10 Thread Patrick Delaunay
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 ++

[PATCH v2 8/8] configs: stm32mp15: increase the number of reserved memory region in lmb

2021-03-10 Thread Patrick Delaunay
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

[PATCH v2 5/8] lmb: correct size of the regions array

2021-03-10 Thread Patrick Delaunay
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

[PATCH] dfu: dfu_mtd: remove the mtd_block_op error when mtd_lock is not supported

2021-03-10 Thread Patrick Delaunay
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(+

[PATCH v2 0/8] lmb: Add config for the number of memory and reserved regions

2021-03-10 Thread Patrick Delaunay
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

[PATCH v2 1/8] lmb: move CONFIG_LMB in Kconfig

2021-03-10 Thread Patrick Delaunay
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

RE: [PATCH v3 08/14] cmd: env: add env select command

2020-06-30 Thread Patrick DELAUNAY
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.

RE: [PATCH v2] ARM: dts: stm32: add seeed studio odyssey-stm32mp157c board

2020-07-02 Thread Patrick DELAUNAY
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

RE: [PATCH v2] ARM: dts: stm32: add seeed studio odyssey-stm32mp157c board

2020-07-02 Thread Patrick DELAUNAY
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

[PATCH] ARM: dts: stm32mp: remove hnp-srp-disable for usbotg on dk1

2020-07-02 Thread Patrick Delaunay
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

RE: [PATCH] video: extend stdout video console work-around for 'vga'

2020-07-02 Thread Patrick DELAUNAY
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

[PATCH] video: restore CONFIG_VIDCONSOLE_AS_LCD as boolean

2020-07-02 Thread Patrick Delaunay
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

RE: [PATCH v3] ARM: dts: stm32: add seeed studio odyssey-stm32mp157c board

2020-07-02 Thread Patrick DELAUNAY
+ > + 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

[PATCH v2] board: dh_stm32mp1: update the gpio hog support

2020-07-02 Thread Patrick Delaunay
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

[PATCH v2 1/2] cmd: env: use ENV_IS_IN_DEVICE in env info

2020-07-02 Thread Patrick Delaunay
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

[PATCH v2 2/2] stm32mp1: use the command env info in env_check

2020-07-02 Thread Patrick Delaunay
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

[PATCH v2] stm32mp1: use the command env info -q in env_check

2020-07-02 Thread Patrick Delaunay
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

[PATCH] patman: Detect unexpected END

2020-07-02 Thread Patrick Delaunay
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

[PATCH] Add information for skipped commit options

2020-07-02 Thread Patrick Delaunay
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

[PATCH v2 1/4] ram: stm32mp1: protect minimum value in get_bufsize

2020-07-02 Thread Patrick Delaunay
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,

[PATCH v2 2/4] ram: stm32mp1: add parameter addr in test FrequencySelectivePattern

2020-07-02 Thread Patrick Delaunay
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

[PATCH v2 3/4] ram: stm32mp1: use the DDR size by default in the test addressBus

2020-07-02 Thread Patrick Delaunay
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

[PATCH v2 4/4] ram: stm32mp1: add size and addr parameter to test all

2020-07-02 Thread 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 +--

[PATCH v3 2/7] board: sunxi: change trace level for phy errors managed by uclass

2020-07-03 Thread Patrick Delaunay
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

[PATCH v3 3/7] usb: host: ohci: change trace level for phy errors managed by uclass

2020-07-03 Thread Patrick Delaunay
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

[PATCH v3 5/7] ata: dwc-ahci: change trace level for phy errors managed by uclass

2020-07-03 Thread Patrick Delaunay
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

[PATCH v3 4/7] usb: host: ehci-hcd: change trace level for phy errors managed by uclass

2020-07-03 Thread Patrick Delaunay
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

[PATCH v3 1/7] phy: generic: add error trace to detect PHY issue in uclass

2020-07-03 Thread Patrick Delaunay
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

[PATCH v3 6/7] usb: musb-new: sunxi: change trace level for phy errors managed by uclass

2020-07-03 Thread Patrick Delaunay
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

[PATCH v3 0/7] phy: generic: add error trace to detect PHY issue in uclass

2020-07-03 Thread Patrick Delaunay
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

[PATCH v3 7/7] arm: meson: change trace level for phy errors managed by uclass

2020-07-03 Thread Patrick Delaunay
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

[PATCH] board: update test on misc_read result in board_late_init

2020-07-03 Thread Patrick Delaunay
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-

RE: [PATCH 3/3] cmd: adtimg: Refactor usage style

2020-07-03 Thread Patrick DELAUNAY
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

[PATCH] phy: usbphyc: use regulator_set_enable_if_allowed for disabling vdd supply

2020-07-03 Thread Patrick Delaunay
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

[PATCH] arm: stm32mp: stm32prog: check result of find_mmc_device

2020-07-06 Thread Patrick Delaunay
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

[PATCH 1/3] ARM: dts: rename stm32mp15xx-avenger96 ethernet0_rgmii_pins

2020-07-06 Thread Patrick Delaunay
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

[PATCH 2/3] i2c: stm32f7: add stm32mp15 compatible

2020-07-06 Thread Patrick Delaunay
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

[PATCH 3/3] ARM: dts: stm32mp1: DT alignment with Linux kernel v5.8-rc1

2020-07-06 Thread Patrick Delaunay
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

[PATCH] i2c: stm32f7: SYSCFG Fast Mode Plus support for I2C STM32F7

2020-07-06 Thread Patrick Delaunay
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

[PATCH] ARM: dts: stm32: add reset support to uart nodes on stm32mp15x

2020-07-06 Thread Patrick Delaunay
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

[PATCH] configs: stm32mp15: activate CMD_ADTIMG

2020-07-06 Thread Patrick Delaunay
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

[PATCH] arm: stm32mp: use correct weak function name spl_board_prepare_for_linux

2020-07-07 Thread Patrick Delaunay
’ [-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

[PATCH] arm: k3: use correct weak function name spl_board_prepare_for_linux

2020-07-07 Thread Patrick Delaunay
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

[PULL] Pull request: u-boot-stm32 for v2020.10= u-boot-stm32-20200707

2020-07-07 Thread Patrick DELAUNAY
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

[PATCH] Revert "ARM: dts: stm32: Reinstate card detect behavior on DHSOM"

2020-07-07 Thread Patrick Delaunay
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

[PATCH v2] Revert "ARM: dts: stm32: Reinstate card detect behavior on DHSOM"

2020-07-07 Thread Patrick Delaunay
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

[PATCH] Revert "ARM: dts: stm32: Reinstate card detect behavior on ST boards"

2020-07-07 Thread Patrick Delaunay
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

RE: [PATCH 3/3] cmd: adtimg: Refactor usage style

2020-07-08 Thread Patrick DELAUNAY
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 &

RE: [PATCH] arm: cmd_stm32prog: Fix the CONFIG_IS_ENABLED() usage

2020-07-08 Thread Patrick DELAUNAY
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

RE: [PATCH] i2c: stm32f7: SYSCFG Fast Mode Plus support for I2C STM32F7

2020-07-08 Thread Patrick DELAUNAY
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

RE: [PATCH v6] ARM: dts: stm32: add seeed studio odyssey-stm32mp157c board

2020-07-09 Thread Patrick DELAUNAY
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

[PATCH] psci: put psci_method in .data section if EFI_LOADER is not enabled

2020-07-17 Thread Patrick Delaunay
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

[PATCH 06/10] test: environment in ext4

2020-02-12 Thread Patrick Delaunay
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

[PATCH 05/10] sandbox: support the change of env location

2020-02-12 Thread Patrick Delaunay
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

[PATCH 04/10] sandbox: activate env in ext4 support

2020-02-12 Thread Patrick Delaunay
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 +++

[PATCH 00/10]

2020-02-12 Thread Patrick Delaunay
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

[PATCH 02/10] env: ext4: set gd->env_valid

2020-02-12 Thread Patrick Delaunay
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

[PATCH 03/10] env: correctly handle result in env_init

2020-02-12 Thread Patrick Delaunay
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

[PATCH 10/10] test: sandbox: add test for erase command

2020-02-12 Thread Patrick Delaunay
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

[PATCH 01/10] env: add absolute path at CONFIG_ENV_EXT4_FILE

2020-02-12 Thread Patrick Delaunay
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

[PATCH 07/10] env: ext4: fix possible compilation issue

2020-02-12 Thread Patrick Delaunay
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

[PATCH 08/10] env: ext4: introduce new function env_ext4_save_buffer

2020-02-12 Thread Patrick Delaunay
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

[PATCH 09/10] env: ext4: add support of command env erase

2020-02-12 Thread Patrick Delaunay
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 ++

[PATCH 01/10] board: stm32mp1: update command stboard on misc_write result

2020-02-12 Thread Patrick Delaunay
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(-)

[PATCH 00/10] stm32mp1: board and SOC identifications

2020-02-12 Thread Patrick Delaunay
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

[PATCH 07/10] board: stm32mp1: add finished good in board identifier OTP

2020-02-12 Thread Patrick Delaunay
) => 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

[PATCH 02/10] board: stm32mp1: read OTP in command stboard

2020-02-12 Thread Patrick Delaunay
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

[PATCH 06/10] arm: stm32mp: improve the error message for smc

2020-02-12 Thread Patrick Delaunay
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

[PATCH 03/10] arm: stm32mp: bsec: remove unneeded test

2020-02-12 Thread Patrick Delaunay
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

[PATCH 08/10] board: stm32mp1: display reference only for STMicroelectronics board

2020-02-12 Thread Patrick Delaunay
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

[PATCH 05/10] board: stm32mp1: stboard: lock the OTP after programming

2020-02-12 Thread Patrick Delaunay
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

[PATCH 09/10] arm: stm32mp: add function get_soc_name

2020-02-12 Thread Patrick Delaunay
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

<    5   6   7   8   9   10   11   12   13   14   >