Re: [PATCH 0/5] Add ESM driver support for AM64x R5

2022-02-22 Thread Christian Gmeiner
Hi Hari Am Mi., 2. Feb. 2022 um 18:50 Uhr schrieb Hari Nagalla : > > AM64x devices have a main ESM and a MCU ESM. The ESM driver enables > routing of the error events from various sources to different processors > or to reset hardware logic. Only the MCU ESM's high output can trigger > reset logic

Re: [PATCH] board: st: common: update test on misc_read result in command stboard

2022-02-22 Thread Patrice CHOTARD
Hi Patrick On 2/1/22 14:37, Patrick Delaunay wrote: > Update management of misc_read/misc_write, which now returns length of > data after the commit 8729b1ae2cbd ("misc: Update read() and write() > methods to return bytes xfered"): raise a error when the result is not > the expected length. > > F

Re: [PATCH] video: stm32: stm32_ltdc: fix the check of return value of clk_set_rate()

2022-02-22 Thread Patrice CHOTARD
Hi Patrick On 2/1/22 14:02, Patrick Delaunay wrote: > From: Gabriel Fernandez > > The clk_set_rate() function returns rate as an 'ulong' not > an 'int' and rate > 0 by default. > > This patch avoids to display the associated warning when > the set rate function returns the new frequency. > > F

Re: [PATCH v2] ARM: imx: imx8mn-*-evk: use DM settings for PHY configuration

2022-02-22 Thread Heiko Thiery
Hi Marek, Am Di., 22. Feb. 2022 um 19:13 Uhr schrieb Marek Vasut : > > On 2/22/22 17:00, Michael Walle wrote: > > Am 2022-02-22 16:19, schrieb Heiko Thiery: > >> With the correct settings described in the device-tree the PHY settings > >> in the board init are no longer required. The values are ta

RE: [PATCH v2] mmc: fsl_esdhc_imx: use VENDORSPEC_FRC_SDCLK_ON when necessary

2022-02-22 Thread Peng Fan (OSS)
> Subject: [PATCH v2] mmc: fsl_esdhc_imx: use VENDORSPEC_FRC_SDCLK_ON > when necessary > > From: Haibo Chen > > After commit f132aab40327 ("Revert "mmc: fsl_esdhc_imx: use > VENDORSPEC_FRC_SDCLK_ON to control card clock output""), it involve issue > in mmc_switch_voltage(), because of the specia

[PULL] u-boot-usb/master

2022-02-22 Thread Marek Vasut
This is likely the last bigger series for this cycle: The following changes since commit 17a0dc6abfdbf392f6a27074f2633608038c4221: Merge branch '2022-02-21-platform-updates' (2022-02-21 08:53:24 -0500) are available in the Git repository at: git://source.denx.de/u-boot-usb.git master for

Re: [PATCH 0/7] Migrate omap_ehci to use phy driver

2022-02-22 Thread Marek Vasut
On 2/22/22 01:24, Derald Woods wrote: On Sat, Feb 19, 2022 at 5:09 PM Adam Ford wrote: With the NOP PHY driver available, it can support toggling the GPIOS to handle coming out of reset. This series cleans up the OMAP EHCI host driver, enables PHY support, and removes the code to toggle the re

Re: [PATCH 5/7] usb: ehci-omap: Use PHY system to manage phy resets

2022-02-22 Thread Marek Vasut
On 2/20/22 00:08, Adam Ford wrote: [...] @@ -364,7 +356,21 @@ static int omap_ehci_probe(struct udevice *dev) hccr = (struct ehci_hccr *)&priv->ehci->hccapbase; hcor = (struct ehci_hcor *)&priv->ehci->usbcmd; - ret = omap_ehci_hcd_init(0, &usbhs_bdata); + /* Identify P

Re: [PATCH 01/24] moveconfig: Show the config name rather than the defconfig

2022-02-22 Thread Simon Glass
Hi Alper, On Tue, 22 Feb 2022 at 19:35, Simon Glass wrote: > > On 08/02/2022 21:49, Simon Glass wrote: > > The _defconfig suffix is unnecessary when showing matching boards. Drop > > it. > > > > Signed-off-by: Simon Glass > > --- > > > > tools/moveconfig.py | 15 ++- > > 1 file chan

Re: [PATCH 19/24] binman: Allow different operations in FIT generator nodes

2022-02-22 Thread Simon Glass
At present we only support expanding out FDT nodes. Make the operation into an @operation property, so that others can be supported. Re-arrange and tidy up the documentation so that it has separate headings for each topic. Signed-off-by: Simon Glass --- tools/binman/entries.rst |

Re: [u-boot PATCH v2] binman: Add support for TEE BL32

2022-02-22 Thread Simon Glass
On Sun, 20 Feb 2022 at 08:06, Roger Quadros wrote: > > > On 20/02/2022 00:12, Simon Glass wrote: > > On Sat, 19 Feb 2022 at 11:50, Roger Quadros wrote: > >> > >> Add an entry for OP-TEE Trusted OS 'BL32' payload. > >> This is required by platforms using Cortex-A cores with TrustZone > >> technolo

Re: [PATCH] phy: phy-uclass: check the parents for phys

2022-02-22 Thread Simon Glass
On Thu, 3 Feb 2022 at 11:08, Angus Ainslie wrote: > > The port/hub leaf nodes don't contain the phy definitions in some dts > files so check the parents. > > Signed-off-by: Angus Ainslie > --- > drivers/phy/phy-uclass.c | 20 ++-- > 1 file changed, 14 insertions(+), 6 deletions(-

Re: [PATCH 03/24] spl: x86: Correct the binman symbols for SPL

2022-02-22 Thread Simon Glass
On 08/02/2022 21:49, Simon Glass wrote: > These symbols are incorrect, meaning that binman cannot find the > associated entry. This leads to errors like: > > binman: Section '/binman/simple-bin': Symbol '_binman_spl_prop_size' >in entry '/binman/simple-bin/u-boot-spl/u-boot-spl-nodtb': >Ent

Re: [PATCH 11/24] elf: Add a way to read segment information from an ELF file

2022-02-22 Thread Simon Glass
On 08/02/2022 21:49, Simon Glass wrote: > Add a function which reads the segments and the entry address. > > Also fix a comment nit in the tests while we are here. > > Signed-off-by: Simon Glass > --- > > tools/binman/elf.py | 37 + > tools/binman/elf_test

Re: [PATCH 06/24] dtoc: Support adding a string list to a device tree

2022-02-22 Thread Simon Glass
On 08/02/2022 21:49, Simon Glass wrote: > Add a new function to add a string list. > > Signed-off-by: Simon Glass > --- > > tools/dtoc/fdt.py | 18 ++ > tools/dtoc/test_fdt.py | 8 > 2 files changed, 26 insertions(+) > Applied to u-boot-dm, thanks!

Re: [PATCH v2 5/5] binman: Update image positions of FIT subentries

2022-02-22 Thread Simon Glass
Hi Alper, On Mon, 7 Feb 2022 at 15:08, Alper Nebi Yasak wrote: > > Binman keeps track of positions of each entry in the final image, but > currently this data is wrong for things included in FIT entries, > especially since a previous patch makes FIT a subclass of Section and > inherit its impleme

Re: [PATCH] binman: Correct the error message for a bad hash algorithm

2022-02-22 Thread Simon Glass
Hi Alper, On Tue, 8 Feb 2022 at 11:54, Alper Nebi Yasak wrote: > > On 08/02/2022 20:59, Simon Glass wrote: > > This shows an internal type at present, rather than the algorithm name. > > Fix it and update the test to catch this. > > > > Signed-off-by: Simon Glass > > --- > > > > tools/binman/ft

Re: [PATCH 01/24] moveconfig: Show the config name rather than the defconfig

2022-02-22 Thread Simon Glass
On 08/02/2022 21:49, Simon Glass wrote: > The _defconfig suffix is unnecessary when showing matching boards. Drop > it. > > Signed-off-by: Simon Glass > --- > > tools/moveconfig.py | 15 ++- > 1 file changed, 14 insertions(+), 1 deletion(-) > Applied to u-boot-dm, thanks!

Re: [PATCH 04/24] spl: Allow disabling binman symbols in SPL

2022-02-22 Thread Simon Glass
On 08/02/2022 21:49, Simon Glass wrote: > When CONFIG_SPL_FIT is enabled we do not access U-Boot directly in > the image, since it is embedded in a FIT which is parsed at runtime. > > Provide a CONFIG option to drop the symbols in this case. > > Signed-off-by: Simon Glass > --- > > common/spl/Kco

Re: [PATCH 02/24] moveconfig: Allow regex matches when finding combinations

2022-02-22 Thread Simon Glass
On 08/02/2022 21:49, Simon Glass wrote: > It is useful to be able to search for CONFIG options that match a regex, > such as this, which lists boards which define SPL_FIT_GENERATOR and > anything not starting with ROCKCHIP: > >./tools/moveconfig.py -f SPL_FIT_GENERATOR ~ROCKCHIP.* > > Add suppo

Re: [PATCH 14/24] binman: Support a list of strings with the mkimage etype

2022-02-22 Thread Simon Glass
On 08/02/2022 21:49, Simon Glass wrote: > At present the 'args' property of the mkimage entry type is a string. This > makes it difficult to include CONFIG options in that property. In > particular, this does not work: > >args = "-n CONFIG_SYS_SOC -E" > > since the preprocessor does not operate

Re: [PATCH 09/24] dtoc: Support reading a list of arguments

2022-02-22 Thread Simon Glass
On 08/02/2022 21:49, Simon Glass wrote: > It is helpful to support a string or stringlist containing a list of > space-separated arguments, for example: > >args = "-n fred", "-a", "123"; > > This resolves to the list: > >-n fred -a 123 Would be clearer as ['-n', 'fred', '-a', '123'] > > w

Re: [PATCH 10/24] binman: Update docs to indicate mkimage is supported

2022-02-22 Thread Simon Glass
Now that there is a mkimage entry-type, update the docs to remove the future reference. Signed-off-by: Simon Glass --- tools/binman/binman.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) Applied to u-boot-dm, thanks!

Re: [PATCH 16/24] binman: Move entry-data collection into a Entry method

2022-02-22 Thread Simon Glass
On 08/02/2022 21:50, Simon Glass wrote: > Collecting the data from a list of entries and putting it in a file is > a useful operation that will be needed by other entry types. Put this into > a method in the Entry class. > > Add some documentation about how to collect data for an entry type. > > Si

Re: [PATCH 17/24] binman: fit: Refactor to reduce function size

2022-02-22 Thread Simon Glass
On 08/02/2022 21:50, Simon Glass wrote: > Split subnode and property processing into separate functions to make > the _AddNode() function a little smaller. Tweak a few comments. > > This does not change any functionality. > > Signed-off-by: Simon Glass > --- I know this just moves code around a b

Re: [PATCH v2] binman: Skip processing "hash" subnodes of FIT subsections

2022-02-22 Thread Simon Glass
On Wed, 9 Feb 2022 at 12:02, Alper Nebi Yasak wrote: > > Binman's FIT entry type can have image subentries with "hash" subnodes > intended to be processed by mkimage, but not binman. However, the Entry > class and any subclass that reuses its implementation tries to process > these unconditionally

Re: [PATCH] scripts: dtc: libfdt: fdt_ro.c: always define fdt_check_full

2022-02-22 Thread Simon Glass
On Wed, 9 Feb 2022 at 10:01, Philippe Reynes wrote: > > On some configs (like stm32mp15_dhcom_basic_defconfig), if configs > SPL_LOAD_FIT_FULL and SPL_FIT_FULL_CHECK are enabled. Then the compilatio > fails with the following error: > > arm-linux-gnueabi-ld.bfd: boot/image-fit.o: in function `fit_

Please pull u-boot-dm

2022-02-22 Thread Simon Glass
Hi Tom, https://source.denx.de/u-boot/custodians/u-boot-dm/-/pipelines/11053 The following changes since commit 17a0dc6abfdbf392f6a27074f2633608038c4221: Merge branch '2022-02-21-platform-updates' (2022-02-21 08:53:24 -0500) are available in the Git repository at: git://git.denx.de/u-boot

Re: [PATCH u-boot-mvebu v2 5/5] arm: mvebu: a37xx: Add support for reading Security OTP values

2022-02-22 Thread Pali Rohár
On Thursday 17 February 2022 19:50:46 Pali Rohár wrote: > It is not possible for the A53 core (on which U-Boot is running) to read it > directly. For this purpose Marvell defined mbox API for sending OTP > commands between CM3 and A53 cores. > > Implement these Marvell fuse reading mbox commands v

Re: [PATCH u-boot-mvebu 5/5] arm: mvebu: a37xx: Add support for reading Security OTP values

2022-02-22 Thread Pali Rohár
On Thursday 17 February 2022 15:31:10 Marek Behún wrote: > > +* But this command does not provide access to lock bit. > > +*/ > > + if (word < 2) { > > + in[0] = row; > > + in[1] = word * 32; > > + res = mbox_do_cmd(MBOX_CMD_OTP_READ_32B, in, 2, out, 2); > >

Re: [PATCH v2 4/5] binman: Convert FIT entry type to a subclass of Section entry type

2022-02-22 Thread Alper Nebi Yasak
On 21/02/2022 07:40, Simon Glass wrote: > On Sat, 19 Feb 2022 at 08:53, Simon Glass wrote: >> On Fri, 18 Feb 2022 at 10:34, Alper Nebi Yasak >> wrote: >>> I can reproduce this and tried a few things, but more issues just kept >>> popping up (outside u-boot as well). I got it to a point where the

[PATCH 1/3 v3] arm: init: save previous bootloader data

2022-02-22 Thread Dzmitry Sankouski
When u-boot is used as a chain-loaded bootloader (replacing OS kernel), previous bootloader leaves data in RAM, that can be reused. For example, on recent arm linux system, when chainloading u-boot, there are initramfs and fdt in RAM prepared for OS booting. Initramfs may be modified to store u-bo

[PATCH 2/3 v4] board: starqltechn: get board usable - add bootcmd and docs

2022-02-22 Thread Dzmitry Sankouski
U-boot is intended to replace linux kernel in android boot image(ABL), and it's FIT payload to replace initramfs file. The boot process is similar to boot image with linux: - android bootloader (ABL) unpacks android boot image - ABL sets `linux,initrd-start property` in chosen node in unpacked FDT

[PATCH 3/3 v2] board: axy17lte: get board usable - add bootcmd and docs

2022-02-22 Thread Dzmitry Sankouski
U-boot is intended to replace linux kernel in android boot image(ABL), and it's FIT payload to replace initramfs file. The boot process is similar to boot image with linux: - android bootloader (ABL) unpacks android boot image - ABL sets `linux,initrd-start property` in chosen node in unpacked FDT

[PATCH 0/3] save prev bootloader data, when u-boot chainloaded

2022-02-22 Thread Dzmitry Sankouski
When u-boot is used as a chain-loaded bootloader (replacing OS kernel), previous bootloader leaves data in RAM, that can be reused. For example, on recent arm linux system, when chainloading u-boot, there are initramfs and fdt in RAM prepared for OS booting. Initramfs may be modified to store u-bo

[PATCH 2/2] arm: layerscape: Disable erratum A009007 on LS1021A, LS1043A, and LS1046A

2022-02-22 Thread Sean Anderson
This erratum is reported to cause problems on these processors [1-3]. The problem is usually with the clocking, which is supposed to be configured by the RCW [4]. However, if it is not set, or if the default clocking is not correct, then this erratum will cause an SError. However, according to Ran

[PATCH 1/2] armv8: fsl-layerscape: Respect Kconfig for erratum A009007

2022-02-22 Thread Sean Anderson
There is a Kconfig for this erratum, but it is ignored for armv8. Respect it. Signed-off-by: Sean Anderson --- arch/arm/cpu/armv8/fsl-layerscape/soc.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/arm/cpu/armv8/fsl-layerscape/soc.c b/arch/arm/cpu/armv8/fsl-layerscape/soc.c index

Re: [PATCH v2] ARM: imx: imx8mn-*-evk: use DM settings for PHY configuration

2022-02-22 Thread Marek Vasut
On 2/22/22 17:00, Michael Walle wrote: Am 2022-02-22 16:19, schrieb Heiko Thiery: With the correct settings described in the device-tree the PHY settings in the board init are no longer required. The values are taken from the linux device tree. Suggested-by: Michael Walle Signed-off-by: Heiko

[PATCH 1/2] Split CONFIG_CC_OPTIMIZE_FOR_SIZE into two configs

2022-02-22 Thread Sean Anderson
This adds a separate CONFIG_CC_OPTIMIZE_FOR_SPEED option in a choice, in preparation for adding another optimization option. Also convert SH's makefile to use this new option. Signed-off-by: Sean Anderson --- Kconfig | 17 ++--- Makefile | 4 +++- arch/sh/l

[PATCH 2/2] Add option to use -Og

2022-02-22 Thread Sean Anderson
This adds support for using -Og when building U-Boot. According to the gcc man page: > -Og should be the optimization level of choice for the standard > edit-compile-debug cycle, offering a reasonable level of optimization > while maintaining fast compilation and a good debugging experience. This

[PATCH] mtd: rawnand: stm32_fmc2: add NAND Write Protect support

2022-02-22 Thread Christophe Kerello
This patch adds the support of the WP# signal. WP will be disabled before the first access to the NAND flash. Signed-off-by: Christophe Kerello --- drivers/mtd/nand/raw/stm32_fmc2_nand.c | 9 + 1 file changed, 9 insertions(+) diff --git a/drivers/mtd/nand/raw/stm32_fmc2_nand.c b/drive

[PATCH] spi: cadence-qspi: Make reset control optinal

2022-02-22 Thread Christian Gmeiner
In the TI am65 device tree files there is no reset defined. Also the Linux kernel driver uses devm_reset_control_get_optional_exclusive(..) to get the reset. Lets do the same as the kernel does and make thr reset optinal. Signed-off-by: Christian Gmeiner --- drivers/spi/cadence_qspi.c | 14

[RFC PATCH v2 4/4] efi_loader: add menu-driven UEFI Boot Variable maintenance

2022-02-22 Thread Masahisa Kojima
This commit adds the menu-driven UEFI Boot Variable maintenance. User can add and delete the Boot variable, and update the BootOrder variable through menu operation. Signed-off-by: Masahisa Kojima --- include/efi_loader.h | 27 ++ lib/efi_loader/efi_bootmgr.c | 687 +++

[RFC PATCH v2 3/4] test: unit test for u16_strlcat()

2022-02-22 Thread Masahisa Kojima
Provide a unit test for function u16_strlcat(). Signed-off-by: Masahisa Kojima --- test/unicode_ut.c | 45 + 1 file changed, 45 insertions(+) diff --git a/test/unicode_ut.c b/test/unicode_ut.c index f2f63d5367..f79b0439bc 100644 --- a/test/unicode_ut.

[RFC PATCH v2 1/4] efi_loader: add menu-driven boot device selection

2022-02-22 Thread Masahisa Kojima
This patch enables the menu-driven boot device selection. User can select the Boot included in BootOrder variable. If user quits thie menu, or the selected Boot fails to boot, efi bootmgr continues to boot in accordance with BootOrder variable. This commit also moves the user input handli

[RFC PATCH v2 2/4] lib/charset: add u16_strlcat() function

2022-02-22 Thread Masahisa Kojima
Provide u16 string version of strlcat(). Signed-off-by: Masahisa Kojima --- include/charset.h | 15 +++ lib/charset.c | 20 2 files changed, 35 insertions(+) diff --git a/include/charset.h b/include/charset.h index b93d023092..dc5fc275ec 100644 --- a/include

[RFC PATCH v2 0/4] enable menu-driven boot device selection

2022-02-22 Thread Masahisa Kojima
This patch series adds the menu-driven boot device selection. This menu also provides the functionality to add and delete Boot variable, and edit the BootOrder variable. This menu appears with the command "bootefi bootmgr", the menu structure is as follows. * Menu structure [Boot Manager]

Re: [PATCH v2] ARM: imx: imx8mn-*-evk: use DM settings for PHY configuration

2022-02-22 Thread Michael Walle
Am 2022-02-22 16:19, schrieb Heiko Thiery: With the correct settings described in the device-tree the PHY settings in the board init are no longer required. The values are taken from the linux device tree. Suggested-by: Michael Walle Signed-off-by: Heiko Thiery --- v2: - remove phy-reset-gpio

Re: [PATCH 3/3] efi_loader: add menu-driven UEFI Boot Variable maintenance

2022-02-22 Thread Masahisa Kojima
Hi Heinrich, On Mon, 14 Feb 2022 at 12:02, Masahisa Kojima wrote: > > On Sun, 13 Feb 2022 at 18:58, Heinrich Schuchardt wrote: > > > > On 2/10/22 08:05, Masahisa Kojima wrote: > > > This commit adds the menu-driven UEFI Boot Variable maintenance. > > > User can add and delete the Boot variab

[PATCH v2] ARM: imx: imx8mn-*-evk: use DM settings for PHY configuration

2022-02-22 Thread Heiko Thiery
With the correct settings described in the device-tree the PHY settings in the board init are no longer required. The values are taken from the linux device tree. Suggested-by: Michael Walle Signed-off-by: Heiko Thiery --- v2: - remove phy-reset-gpios node (thanks to Michael) When using DM_

Re: [PATCH] ARM: imx: imx8mn-*-evk: use DM settings for PHY configuration

2022-02-22 Thread Michael Walle
Am 2022-02-22 15:47, schrieb Heiko Thiery: With the correct settings described in the device-tree the PHY settings in the board init are no longer required. The values are taken from the linux device tree. Suggested-by: Michael Walle Signed-off-by: Heiko Thiery --- arch/arm/dts/imx8mn-evk.dts

[PATCH] imx8mn-*-evk: rename mkimage config

2022-02-22 Thread Heiko Thiery
Since this configuration is used for several imx8mn-evk boards the suffix ddr4 is misleading. Signed-off-by: Heiko Thiery --- board/freescale/imx8mn_evk/Kconfig | 2 +- .../imx8mn_evk/{imximage-8mn-ddr4.cfg => imximage-8mn.cfg} | 0 2 files changed, 1 insertion(

[PATCH] ARM: imx: imx8mn-*-evk: use DM settings for PHY configuration

2022-02-22 Thread Heiko Thiery
With the correct settings described in the device-tree the PHY settings in the board init are no longer required. The values are taken from the linux device tree. Suggested-by: Michael Walle Signed-off-by: Heiko Thiery --- arch/arm/dts/imx8mn-evk.dtsi| 9 + board/freescale/

[PATCH v3] scripts: Makefile.lib: generate dsdt_generated.c instead of dsdt.c

2022-02-22 Thread Philippe Reynes
There is a conflict between the static file lib/acpi/dsdt.c and the file dsdt.c generated dynamicaly by scripts/Makefile.lib. When a mrproper is done, the static file dsdt.c is removed. If a build with acpi enabled is launched after, the following error is raised: CC lib/acpi/acpi_table.o m

Re: [PATCH] gpio: rgpio2p: Enhance reading of GPIO pin value

2022-02-22 Thread Fabio Estevam
Hi Peng and Ye Li, Could you please help reviewing this patch? Thanks On Mon, Jan 24, 2022 at 5:46 PM Christoph Fritz wrote: > > Add support for reading GPIO pin value when function is output. > With this patch applied, gpio toggle command is working. > > Signed-off-by: Christoph Fritz > --- >

Re: [PATCH] scripts: Makefile.lib: generate dsdt_generated.c instead of dsdt.c

2022-02-22 Thread Philippe REYNES
Hi Heinrich, Le 22/02/2022 à 10:40, Heinrich Schuchardt a écrit : On 2/22/22 10:16, Philippe Reynes wrote: There is a conflict between the static file lib/acpi/dsdt.c and the file dsdt.c generated dynamicaly by scripts/Makefile.lib. When a mrproper is done, the static file dsdt.c is removed. I

Re: [PATCH v1 02/11] mmc: sdhci: allow disabling sdma in spl

2022-02-22 Thread Jaehoon Chung
On 2/22/22 10:31, Peter Geis wrote: > Rockchip emmc devices have a similar issue to Rockchip dwmmc devices, > where performing dma to sram causes errors with suspend/resume. > Allow us to toggle sdma in spl for sdhci similar to adma support, so we > can ensure dma is not used when loading the sram

Re: [PATCH v2] ARM: imx: imx8mn-ddr4-evk: Add ethernet support

2022-02-22 Thread Marek Vasut
On 2/22/22 08:35, Frieder Schrempf wrote: Hi Marek, Hi, +int board_phy_config(struct phy_device *phydev) +{ +    /* enable rgmii rxc skew and phy mode select to RGMII copper */ +    phy_write(phydev, MDIO_DEVAD_NONE, 0x1d, 0x1f); +    phy_write(phydev, MDIO_DEVAD_NONE, 0x1e, 0x8); + +    phy_

Re: [PATCH v2] ARM: imx: imx8mn-ddr4-evk: Add ethernet support

2022-02-22 Thread Marek Vasut
On 2/22/22 08:49, Michael Walle wrote: Hi Marek, Hi, Am 2022-02-21 17:49, schrieb Marek Vasut: On 2/21/22 11:10, Michael Walle wrote: +int board_phy_config(struct phy_device *phydev) +{ +    /* enable rgmii rxc skew and phy mode select to RGMII copper */ +    phy_write(phydev, MDIO_DEVAD_NO

Re: [PATCH] scripts: Makefile.lib: generate dsdt_generated.c instead of dsdt.c

2022-02-22 Thread Heinrich Schuchardt
On 2/22/22 10:16, Philippe Reynes wrote: There is a conflict between the static file lib/acpi/dsdt.c and the file dsdt.c generated dynamicaly by scripts/Makefile.lib. When a mrproper is done, the static file dsdt.c is removed. If a build with acpi enabled is launched after, the following error is

Re: [PATCH] gpio: rgpio2p: Enhance reading of GPIO pin value

2022-02-22 Thread Christoph Fritz
*ping*, any objections getting this patch applied? On Mon, 2022-01-24 at 17:51 -0300, Fabio Estevam wrote: > On Mon, Jan 24, 2022 at 5:50 PM Fabio Estevam > wrote: > > > > [Adding the NXP folks to help reviewing it] > > Sorry, added the NXP Linux folks instead of the NXP U-Boot folks. > > > >

[PATCH] scripts: Makefile.lib: generate dsdt_generated.c instead of dsdt.c

2022-02-22 Thread Philippe Reynes
There is a conflict between the static file lib/acpi/dsdt.c and the file dsdt.c generated dynamicaly by scripts/Makefile.lib. When a mrproper is done, the static file dsdt.c is removed. If a build with acpi enabled is launched after, the following error is raised: CC lib/acpi/acpi_table.o m

Re: [PATCH] lib: acpi: rename dsdt.c to acpi_write_dsdt.c

2022-02-22 Thread Philippe REYNES
Hi Simon, Le 17/02/2022 à 18:55, Simon Glass a écrit : Hi Philippe, On Thu, 17 Feb 2022 at 09:10, Philippe Reynes wrote: There is a conflict between the static file lib/acpi/dsdt.c and the file dsdt.c generated dynamicaly by scripts/Makefile.lib. When a mrproper is done, the static file dsdt

[PATCH] arm: Add AM335x based CBC board

2022-02-22 Thread Lukasz Majewski
This commit adds CBC board to U-Boot. U-Boot 2022.04-rc1-00271-g930634a4c9 (Feb 21 2022 - 15:08:13 +0100) CPU : AM335X-GP rev 2.1 Model: AM335x Bosch CBC DRAM: 512 MiB Core: 198 devices, 14 uclasses, devicetree: separate MMC: OMAP SD/MMC: 2, OMAP SD/MMC: 0, OMAP SD/MMC: 1 Loading Environment

[PATCH v1 1/1] clk: nuvoton: Add support for NPCM845

2022-02-22 Thread Stanley Chu
Add clock controller driver for NPCM845 Signed-off-by: Stanley Chu --- drivers/clk/Makefile | 1 + drivers/clk/nuvoton/Makefile | 1 + drivers/clk/nuvoton/clk_npcm8xx.c | 470 ++ .../dt-bindings/clock/nuvoton,npcm8xx-clock

[PATCH 3/3] defconfig: Enable DM_PMIC and DM PMIC_TPS65217 on AM335x EVM board

2022-02-22 Thread Lukasz Majewski
As this board now supports DM_I2C, it is safe for it to also use the DM converted PMIC tps65217 driver. Signed-off-by: Lukasz Majewski --- configs/am335x_boneblack_vboot_defconfig | 3 +++ configs/am335x_evm_defconfig | 3 +++ configs/am335x_evm_spiboot_defconfig | 3 +++ confi

[PATCH 2/3] power: pmic: Provide DM_PMIC support for tps65217 driver

2022-02-22 Thread Lukasz Majewski
The tps65217 PMIC driver is used with am335x SoC based designs. It is used in the SPL (MLO) as well, so the DM conversion only is for u-boot proper. This driver only allows simple reading/writing/dumping of the content of its registers and requires the DM_I2C for proper operation. Moreover, new

[PATCH 1/3] power: Rename CONFIG_POWER_TPS65217 with CONFIG_PMIC_TPS65217

2022-02-22 Thread Lukasz Majewski
Up till now the CONFIG_POWER_TPS65217 has been defined in several header files for am335x SoC. This patch renames it to CONFIG_PMIC_TPS65217, which better reflects the role of this IC circuit. Signed-off-by: Lukasz Majewski --- drivers/power/pmic/Makefile | 2 +- include/configs/am335x