Re: [PATCH] arm: kirkwood: Enable uart0 dm-pre-reloc for Kirkwood boards

2023-01-31 Thread Michael Walle
Hi Tony, Am 2023-02-01 02:11, schrieb Tony Dinh: When DM_SERIAL is enabled, the device-tree property dm-pre-reloc is required to boot over UART with kwboot. Enable this in a Kirkwood common u-boot dtsi. My (dev) board unfortunately, have a bootloader which can't boot over serial. Could you

Re: [PATCH v2] arm: mvebu: Add support for Thecus N2350 (Armada 385) board

2023-01-31 Thread Tony Dinh
Hi Stefan, On Tue, Jan 31, 2023 at 10:48 PM Stefan Roese wrote: > > Hi Tony, > > On 1/31/23 22:22, Tony Dinh wrote: > > Thecus N2350 is a NAS based on Marvell Armada 385 SoC. > > > > Specification: > > > > - Processor: Marvel MV88F6820 Dual Core at 1GHz > > - 1 GiB DDR4 RAM > > - 4MB Macronix

Re: [PATCH] arm: kirkwood: Enable uart0 dm-pre-reloc for Kirkwood boards

2023-01-31 Thread Tony Dinh
Thanks Stefan! Tony On Tue, Jan 31, 2023 at 10:30 PM Stefan Roese wrote: > > (Added Simon to Cc) > > On 2/1/23 02:11, Tony Dinh wrote: > > When DM_SERIAL is enabled, the device-tree property dm-pre-reloc is > > required to boot over UART with kwboot. Enable this in a Kirkwood > > common u-boot

Re: [RFC PATCH] riscv: cpu: check U-Mode before counteren write

2023-01-31 Thread Leo Liang
On Wed, Dec 14, 2022 at 08:58:43AM +0300, Nikita Shubin wrote: > From: Nikita Shubin > > The Priv ISA states: > "In systems without U-mode, the mcounteren register should > not exist." > > Check U-Mode is present in MISA before writing to counteren, otherwise > we endup with Illegal Instruction

Re: [PATCH v2] arm: mvebu: Add support for Thecus N2350 (Armada 385) board

2023-01-31 Thread Stefan Roese
Hi Tony, On 1/31/23 22:22, Tony Dinh wrote: Thecus N2350 is a NAS based on Marvell Armada 385 SoC. Specification: - Processor: Marvel MV88F6820 Dual Core at 1GHz - 1 GiB DDR4 RAM - 4MB Macronix mx25l3205d SPI flash - 512MB Hynix H27U4G8F2DTR-BC NAND flash - I2C - 2x USB 3.0 - 1x GBE LAN port

Re: [PATCH] arm: kirkwood: Enable uart0 dm-pre-reloc for Kirkwood boards

2023-01-31 Thread Stefan Roese
(Added Simon to Cc) On 2/1/23 02:11, Tony Dinh wrote: When DM_SERIAL is enabled, the device-tree property dm-pre-reloc is required to boot over UART with kwboot. Enable this in a Kirkwood common u-boot dtsi. Signed-off-by: Tony Dinh Reviewed-by: Stefan Roese I just wanted to inform you,

Re: [PATCH] arm: kirkwood: Use CONFIG_SYS_NS16550 with DM_SERIAL for Kirkwood boards

2023-01-31 Thread Stefan Roese
On 1/31/23 23:06, Tony Dinh wrote: CONFIG_SYS_NS16550 is required when DM_SERIAL is enabled for Kirkwood boards. Signed-off-by: Tony Dinh Reviewed-by: Stefan Roese Thanks, Stefan --- arch/arm/mach-kirkwood/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git

Re: [PATCH 08/11] configs: ae350: Enable v5l2 cache for AE350 platforms

2023-01-31 Thread Rick Chen
Hi Peter, > From: Peter Yu-Chien Lin(林宇謙) > Sent: Thursday, January 19, 2023 3:06 PM > To: u-boot@lists.denx.de > Cc: Leo Yu-Chi Liang(梁育齊) ; Rick Jian-Zhi Chen(陳建志) > ; Peter Yu-Chien Lin(林宇謙) > Subject: [PATCH 08/11] configs: ae350: Enable v5l2 cache for AE350 platforms > > Enable cache-v5l2

Re: [PATCH 03/11] board: AndesTech: ax25-ae350.c: Enable v5l2-cache in spl_board_init()

2023-01-31 Thread Rick Chen
> From: Peter Yu-Chien Lin(林宇謙) > Sent: Thursday, January 19, 2023 3:06 PM > To: u-boot@lists.denx.de > Cc: Leo Yu-Chi Liang(梁育齊) ; Rick Jian-Zhi Chen(陳建志) > ; Peter Yu-Chien Lin(林宇謙) > Subject: [PATCH 03/11] board: AndesTech: ax25-ae350.c: Enable v5l2-cache in > spl_board_init() > > The

Re: [PATCH 02/11] riscv: Remove redundant Kconfig "RISCV_NDS_CACHE"

2023-01-31 Thread Rick Chen
> From: Peter Yu-Chien Lin(林宇謙) > Sent: Thursday, January 19, 2023 3:06 PM > To: u-boot@lists.denx.de > Cc: Leo Yu-Chi Liang(梁育齊) ; Rick Jian-Zhi Chen(陳建志) > ; Peter Yu-Chien Lin(林宇謙) > Subject: [PATCH 02/11] riscv: Remove redundant Kconfig "RISCV_NDS_CACHE" > > From: Leo Yu-Chi Liang > >

Re: [PATCH 01/11] riscv: global_data.h: Correct the comment for PLICSW

2023-01-31 Thread Rick Chen
> From: Peter Yu-Chien Lin(林宇謙) > Sent: Thursday, January 19, 2023 3:06 PM > To: u-boot@lists.denx.de > Cc: Leo Yu-Chi Liang(梁育齊) ; Rick Jian-Zhi Chen(陳建志) > ; Peter Yu-Chien Lin(林宇謙) > Subject: [PATCH 01/11] riscv: global_data.h: Correct the comment for PLICSW > > PLIC is used for external

Re: [GIT PULL] Please pull u-boot-mmc master

2023-01-31 Thread Tom Rini
On Wed, Feb 01, 2023 at 08:38:35AM +0900, Jaehoon Chung wrote: > Dear Tom, > > Please pull u-boot-mmc master into u-boot master branch. > If there is any problem, let me know, plz. > > Best Regards, > Jaehoon Chung > > CI: https://source.denx.de/u-boot/custodians/u-boot-mmc/-/pipelines/14951 >

Re: [GIT PULL] Please pull u-boot-pmic master

2023-01-31 Thread Tom Rini
On Wed, Feb 01, 2023 at 08:17:42AM +0900, Jaehoon Chung wrote: > Dear Tom, > > Please pull u-boot-pmic master into u-boot master branch. > If there is a problem, let me know, plz > > Best Regards, > Jaehoon Chung > > CI: https://source.denx.de/u-boot/custodians/u-boot-pmic/-/pipelines/14954 >

[PATCH v2 11/12] ARM: dts: uniphier: Switch USB node to the original

2023-01-31 Thread Kunihiko Hayashi
UniPhier DT applies its own USB node for U-Boot due to the USB driver constrains. After solving this issue, u-boot allows the original USB node. After switching USB node, synchronization of USB node with Linux becomes possible. Signed-off-by: Kunihiko Hayashi ---

[PATCH v2 04/12] usb: dwc3-generic: Export glue structures and functions

2023-01-31 Thread Kunihiko Hayashi
In order to allow external SoC-dependent glue drivers to use dwc3-generic functions, push the glue structures and export the functions to a header file. The exported structures and functions are: - struct dwc3_glue_data - struct dwc3_glue_ops - dwc3_glue_bind() - dwc3_glue_probe() -

[PATCH v2 10/12] ARM: dts: uniphier: Fix node names and missing reg property in USB glue node

2023-01-31 Thread Kunihiko Hayashi
The node name should follow the generic name list in DT specification. This moves "reset" to "reset-controller", "hs-phy" and "ss-phy" to "phy" in the USB glue node. And the node should have reg property to define the register region. Signed-off-by: Kunihiko Hayashi ---

[PATCH v2 09/12] phy: socionext: Add UniPhier USB3 PHY driver

2023-01-31 Thread Kunihiko Hayashi
Add USB3 PHY driver support to control clocks and resets for the phy. Signed-off-by: Kunihiko Hayashi --- configs/uniphier_v8_defconfig | 1 + drivers/phy/socionext/Kconfig | 7 ++ drivers/phy/socionext/Makefile| 1 +

[PATCH v2 12/12] uniphier_defconfig: Disable USB_XHCI_DWC3

2023-01-31 Thread Kunihiko Hayashi
Replacing with dwc3-generic, no need USB_XHCI_DWC3 anymore. Signed-off-by: Kunihiko Hayashi Reviewed-by: Marek Vasut --- configs/uniphier_v7_defconfig | 1 - configs/uniphier_v8_defconfig | 1 - 2 files changed, 2 deletions(-) diff --git a/configs/uniphier_v7_defconfig

[PATCH v2 06/12] usb: dwc3-uniphier: Use dwc3-generic instead of xhci-dwc3

2023-01-31 Thread Kunihiko Hayashi
dwc3-uniphier depends on xhci-dwc3 framework, however, it is preferable to use dwc3-generic. This driver calls the exported dwc3-generic functions and redefine the SoC-dependent operations to fit dwc3-generic. Signed-off-by: Kunihiko Hayashi Reviewed-by: Marek Vasut ---

[PATCH v2 08/12] clk: uniphier: Add missing USB SS-PHY clocks

2023-01-31 Thread Kunihiko Hayashi
The USB SS-PHY needs its own clock, however, some clocks don't have clock gates. Define missing clock entries for the PHY as reference clock. Signed-off-by: Kunihiko Hayashi --- drivers/clk/uniphier/clk-uniphier-sys.c | 5 + 1 file changed, 5 insertions(+) diff --git

[PATCH v2 05/12] usb: dwc3-generic: Add the size of regs property to glue structure

2023-01-31 Thread Kunihiko Hayashi
Add the size of regs property to the glue structure to correctly specify the register region to map. Signed-off-by: Kunihiko Hayashi Reviewed-by: Marek Vasut --- drivers/usb/dwc3/dwc3-generic.c | 2 +- drivers/usb/dwc3/dwc3-generic.h | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff

[PATCH v2 03/12] usb: dwc3-generic: Add clock initialization in child DT node

2023-01-31 Thread Kunihiko Hayashi
Same as the reset cotnrol, should add a clock initialization in child DT node, if the glue node doesn't have any clocks. Signed-off-by: Kunihiko Hayashi --- drivers/usb/dwc3/dwc3-generic.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/drivers/usb/dwc3/dwc3-generic.c

[PATCH v2 07/12] reset: uniphier: Add USB glue reset support

2023-01-31 Thread Kunihiko Hayashi
Add reset control support in USB glue logic. This needs to control the external clocks and resets for the logic before accessing the glue logic. Signed-off-by: Kunihiko Hayashi --- drivers/reset/reset-uniphier.c | 78 +- 1 file changed, 77 insertions(+), 1

[PATCH v2 02/12] usb: dwc3-generic: Allow different controller DT node pattern

2023-01-31 Thread Kunihiko Hayashi
The most of devicetree has the following USB node structure. The controller node is placed as a child node of the glue node. Current dwc3-generic driver works on this premise. glue { /* glue node */ usb { /* controller node */ }; }; However, UniPhier

[PATCH v2 00/12] usb: dwc3: Refactor dwc3-generic and apply to dwc3-uniphier

2023-01-31 Thread Kunihiko Hayashi
This series achieves refactoring of dwc3-generic. First, dwc3-generic allows DT controller nodes to be children of glue nodes, but outside of glue nodes. To achieve this goal, define a glue-specific function to get controller node, look up more reference clocks in the controller node, and

[PATCH v2 01/12] usb: dwc3: Look up reference clock DT phandle in both controller DT nodes

2023-01-31 Thread Kunihiko Hayashi
From: Marek Vasut There are currently four disparate placement possibilities of DWC3 reference clock phandle in SoC DTs: - in top level glue node, with generic subnode without clock (ZynqMP) - in top level generic node, with no subnode (i.MX8MQ) - in generic subnode, with other clock in top

[PATCH] arm: kirkwood: Enable uart0 dm-pre-reloc for Kirkwood boards

2023-01-31 Thread Tony Dinh
When DM_SERIAL is enabled, the device-tree property dm-pre-reloc is required to boot over UART with kwboot. Enable this in a Kirkwood common u-boot dtsi. Signed-off-by: Tony Dinh --- arch/arm/dts/kirkwood-u-boot.dtsi | 7 +++ 1 file changed, 7 insertions(+) create mode 100644

Re: [PATCH v2 0/5] net: sun8i-emac: Allwinner D1 Support

2023-01-31 Thread Andre Przywara
On Sun, 22 Jan 2023 16:51:01 -0600 Samuel Holland wrote: Hi Joe, Ramon, > D1 is a RISC-V SoC containing an EMAC compatible with the A64 EMAC. In a > very roundabout way, this series finishes adding support for the D1 EMAC: > patch 4 resolves a compiler warning when building the driver for

Re: [PATCH 01/11] imx: implement get_effective_memsize

2023-01-31 Thread Peng Fan
On 1/31/2023 7:10 PM, Stefano Babic wrote: On 31.01.23 12:02, Fabio Estevam wrote: Hi Peng, On Mon, Nov 7, 2022 at 4:13 AM Peng Fan (OSS) wrote: From: Peng Fan To i.MX6/7 which has 2GB memory, the upper 4KB cut off, will cause the top 1MB not mapped as normal memory, because ARMV7-A

[PATCH v7] board: mntre: imx8mq: Add MNT Reform 2 board support

2023-01-31 Thread Patrick Wildt
The MNT Reform 2 is a modular DIY laptop. In its initial version it is based on the BoundaryDevices i.MX8MQ SoM. Some parts have been lifted from BoundaryDevices official U-Boot downstream project. Signed-off-by: Patrick Wildt --- Changes since v6: - Cleaned up some CONFIG_* pollution. Changes

Re: [PATCH v6] board: mntre: imx8mq: Add MNT Reform 2 board support

2023-01-31 Thread Patrick Wildt
Am Tue, Jan 31, 2023 at 06:00:31PM +0100 schrieb Stefano Babic: > On 19.01.23 20:56, Patrick Wildt wrote: > > The MNT Reform 2 is a modular DIY laptop. In its initial version it > > is based on the BoundaryDevices i.MX8MQ SoM. Some parts have been > > lifted from BoundaryDevices official U-Boot

Re: [PATCH] env: mmc: Fix offset issue for env save

2023-01-31 Thread Jaehoon Chung
On 1/31/23 15:41, Ye Li wrote: > Fix the issue in commit 46c9016 (env: mcc: Drop unnecessary #ifdefs) > If CONFIG_SYS_REDUNDAND_ENVIRONMENT is not defined, the offset value > becomes undetermined, so write env to unexpected offset. > > Signed-off-by: Ye Li Reviewed-by: Jaehoon Chung Best

[GIT PULL] Please pull u-boot-mmc master

2023-01-31 Thread Jaehoon Chung
Dear Tom, Please pull u-boot-mmc master into u-boot master branch. If there is any problem, let me know, plz. Best Regards, Jaehoon Chung CI: https://source.denx.de/u-boot/custodians/u-boot-mmc/-/pipelines/14951 The following changes since commit 30db474704405be823259851cbb76fa05366c8af:

Re: [PATCH 07/13] mmc: renesas-sdhi: Flag non-standard SDnH handling for V3M

2023-01-31 Thread Jaehoon Chung
On 1/27/23 05:06, Marek Vasut wrote: > From: Hai Pham > > V3M handles SDnH differently than other Gen3 SoCs, so let's add a > separate entry for that. This will allow better SDnH handling in the > future. > > Based on Linux commit 627151b4966f ("mmc: renesas_sdhi: Flag > non-standard SDnH

Re: [PATCH 06/13] mmc: renesas-sdhi: Drop R-Car H3 ES3.0 HS400 calibration table

2023-01-31 Thread Jaehoon Chung
On 1/27/23 05:06, Marek Vasut wrote: > From: Hai Pham > > It is unnecessary, so clean it up. > > Reviewed-by: Marek Vasut > Signed-off-by: Hai Pham > Signed-off-by: Marek Vasut # update commit > message, mention ES3.0 Reviewed-by: Jaehoon Chung Best Regards, Jaehoon Chung > --- >

Re: [PATCH 05/13] mmc: renesas-sdhi: Add R8A77961 M3-W+ support

2023-01-31 Thread Jaehoon Chung
On 1/27/23 05:05, Marek Vasut wrote: > From: Hai Pham > > Support R8A77961 M3-W+ SoC. > > Reviewed-by: Marek Vasut > Signed-off-by: Hai Pham > Signed-off-by: Marek Vasut Reviewed-by: Jaehoon Chung Best Regards, Jaehoon Chung > --- > drivers/mmc/renesas-sdhi.c | 6 ++ > 1 file

Re: [PATCH 04/13] mmc: renesas-sdhi: Adjust HS400 calibration offsets for M3-W r1.3

2023-01-31 Thread Jaehoon Chung
On 1/27/23 05:05, Marek Vasut wrote: > From: Hai Pham > > Still uses 0x3 for now, adjust the offset value to TMPPORT3 accordingly > > Reviewed-by: Marek Vasut > Signed-off-by: Hai Pham > Signed-off-by: Marek Vasut Reviewed-by: Jaehoon Chung Best Regards, Jaehoon Chung > --- >

Re: [PATCH 03/13] mmc: renesas-sdhi: Adjust HS400 calibration tables

2023-01-31 Thread Jaehoon Chung
On 1/27/23 05:05, Marek Vasut wrote: > From: Hai Pham > > Adjust HS400 calibration tables based on Linux settings > > Reviewed-by: Marek Vasut > Signed-off-by: Hai Pham > Signed-off-by: Marek Vasut Reviewed-by: Jaehoon Chung Best Regards, Jaehoon Chung > --- > drivers/mmc/renesas-sdhi.c

Re: [PATCH 02/13] mmc: renesas-sdhi: Filter out HS400 on M3-W r1.2, V3M, V3H r1.x, D3

2023-01-31 Thread Jaehoon Chung
On 1/27/23 05:05, Marek Vasut wrote: > From: Hai Pham > > Further filter out HS400 support on certain SoCs. > > Since M3-W r1.2 does not support HS400, drop the calibration table and > rename the one for M3-W r1.3 to r8a7796_rev13_calib_table > > Reviewed-by: Marek Vasut > Signed-off-by: Hai

[GIT PULL] Please pull u-boot-pmic master

2023-01-31 Thread Jaehoon Chung
Dear Tom, Please pull u-boot-pmic master into u-boot master branch. If there is a problem, let me know, plz Best Regards, Jaehoon Chung CI: https://source.denx.de/u-boot/custodians/u-boot-pmic/-/pipelines/14954 The following changes since commit 30db474704405be823259851cbb76fa05366c8af:

[PATCH] cmd: Add a SEAMA image load command

2023-01-31 Thread Linus Walleij
Add a command to load SEAMA (Seattle Image), a NAND flash on-flash storage format. This type of flash image is found in some D-Link routers such as DIR-645, DIR-842, DIR-859, DIR-860L, DIR-885L, DIR890L and DCH-M225, as well as in WD and NEC routers on the ath79 (MIPS), Broadcom BCM53xx, and

Re: [PATCH v9 0/8] Add MV88E6xxx DSA driver and use on gwventana

2023-01-31 Thread Tim Harvey
On Wed, Jan 25, 2023 at 9:26 AM Tim Harvey wrote: > > On Wed, Nov 30, 2022 at 4:26 PM Vladimir Oltean > wrote: > > > > On Wed, Nov 30, 2022 at 03:27:04PM -0800, Tim Harvey wrote: > > > That's the same head that I based them off of and I just did the > > > following and it worked fine: > > > cd

RE: [0/4] Add eMMC 5.1 support for Versal NET

2023-01-31 Thread Jaehoon Chung
Hi, > -Original Message- > From: Michal Simek > Sent: Tuesday, January 31, 2023 10:08 PM > To: Jaehoon Chung ; 'Ashok Reddy Soma' > ; u- > b...@lists.denx.de > Cc: peng@nxp.com; kever.y...@rock-chips.com; > hayashi.kunih...@socionext.com; > alpernebiya...@gmail.com;

Re: [PATCH] arm: kirkwood: Use CONFIG_SYS_NS16550 with DM_SERIAL for Kirkwood boards

2023-01-31 Thread Tom Rini
On Tue, Jan 31, 2023 at 02:06:54PM -0800, Tony Dinh wrote: > CONFIG_SYS_NS16550 is required when DM_SERIAL is enabled for > Kirkwood boards. > > Signed-off-by: Tony Dinh Reviewed-by: Tom Rini -- Tom signature.asc Description: PGP signature

[PATCH] arm: kirkwood: Use CONFIG_SYS_NS16550 with DM_SERIAL for Kirkwood boards

2023-01-31 Thread Tony Dinh
CONFIG_SYS_NS16550 is required when DM_SERIAL is enabled for Kirkwood boards. Signed-off-by: Tony Dinh --- arch/arm/mach-kirkwood/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/mach-kirkwood/Kconfig b/arch/arm/mach-kirkwood/Kconfig index 45cc932636..b19ed2c6b3 100644 ---

Re: [PATCH 00/32] RFC: Migrate to split config

2023-01-31 Thread Tom Rini
On Tue, Jan 31, 2023 at 08:26:30AM -0700, Simon Glass wrote: > U-Boot uses an SPL prefix on CONFIG options to indicate when an option > relates to SPL. For example, while CONFIG_TEXT_BASE is the text base for > U-Boot proper, CONFIG_SPL_TEXT_BASE is the text base for SPL. > > Within the code it

Re: [PATCH v7 0/3] Timer support for ARM Tegra

2023-01-31 Thread Svyatoslav Ryhel
I will upload v8 tomorrow once I have some time. Yes, Timer series should go first since some clock related commits of "General Tegra improvements" may conflict. Those are not direct dependencies but rather changed code overlaps. Thanks Best Regards. Svyatoslav R. вт, 31 січ. 2023 р. о 22:27

Re: [GIT PULL] Please pull u-boot-amlogic-20230131

2023-01-31 Thread Tom Rini
ttps://source.denx.de/u-boot/custodians/u-boot-amlogic.git > tags/u-boot-amlogic-20230131 > > for you to fetch changes up to 8f5e9de121003bfd9a64a5b3a503c0fbd02af823: > > ARM: meson: Add support for Odroid-N2L (2023-01-30 14:24:17 +0100) > Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature

[PATCH v2] arm: mvebu: Add support for Thecus N2350 (Armada 385) board

2023-01-31 Thread Tony Dinh
Thecus N2350 is a NAS based on Marvell Armada 385 SoC. Specification: - Processor: Marvel MV88F6820 Dual Core at 1GHz - 1 GiB DDR4 RAM - 4MB Macronix mx25l3205d SPI flash - 512MB Hynix H27U4G8F2DTR-BC NAND flash - I2C - 2x USB 3.0 - 1x GBE LAN port (PHY: Marvell 88E1510) - 2x SATA (hot swap

[PATCH 2/2] board: gateworks: venice: poll I2C lines to wait for GSC firmware

2023-01-31 Thread sbabic
> In some situations the GSC firmware where the EEPROM containing the > model and DRAM configuration may not be ready by the time the SoC > is ready to talk to it over I2C. > Instead of a hard delay, poll the I2C lines to wait until they are > released to avoid the I2C drivers 'Arbitation lost'

[PATCH v1] imx8: scu_api: sync sc_rm_is_pad_owned api change

2023-01-31 Thread sbabic
> From: Ye Li > SCFW has fixed a overflow issue in sc_rm_is_pad_owned API. This > requires u-boot to update API implementation, since it will cause > compatible issue. Otherwise all pad checking will have problem and > cause pad setting not continue. > Due to the compatible issue, the new u-boot

[PATCH] configs: imx8m: Prepare imx8m-beacon boards for HAB support

2023-01-31 Thread sbabic
> In order to enable HAB, FSL_CAAM, ARCH_MISC_INIT and > SPL_CRYPTO should be enabled in Kconfig like other i.MX8M > boards. > Signed-off-by: Adam Ford > diff --git a/arch/arm/mach-imx/imx8m/Kconfig b/arch/arm/mach-imx/imx8m/Kconfig > index a0715e8091..eadb2234b0 100644 > ---

[PATCH] arm64: dts: imx8m{m, n}-venice-gw7902: add gpio pins for new board revision

2023-01-31 Thread sbabic
> Add gpio pins present on new board revision: > * LTE modem support (imx8mm-gw7902 only) > - lte_pwr# > - lte_rst > - lte_int > * M2 power enable > - m2_pwr_en > * off-board 4.0V supply > - vdd_4p0_en > Signed-off-by: Tim Harvey Applied to u-boot-imx, master, thanks ! Best regards,

[PATCH] arm: dts: imx8mn-u-boot: use versioned ddr4 firmware

2023-01-31 Thread sbabic
> NXP tested imx8mn-ddr4 with firmware version 201810 only. Use this > version for all imx8mn targets with DRAM DDR4. > Fixes: 93c4c0e4dd1 ("arm: dts: imx8mn-u-boot: Create common > imx8mn-u-boot.dtsi") > Signed-off-by: Oleksandr Suvorov > Reviewed-by: Fabio Estevam Applied to u-boot-imx,

[PATCH] engicam: imx6: migrate to DM_SERIAL

2023-01-31 Thread sbabic
> From: Michael Trimarchi > Add the needed DT overrides and configs to enable UART in SPL. > Cc: Fabio Estevam > Signed-off-by: Michael Trimarchi > Tested-by: Suniel Mahesh > Reviewed-by: Fabio Estevam Applied to u-boot-imx, master, thanks ! Best regards, Stefano Babic --

[PATCH 1/1] configs: imx8mp_evk: revert to old ram settings

2023-01-31 Thread sbabic
> The 'commit 864ac2cf383e ("board: imx8mp: Add Engicam > i.Core MX8M Plus EDIMM2.2 Starter Kit")' has changed the imx8mp evk ram > settings from 6GB ram to 2GB. > This changeset reverts the above change. > Signed-off-by: Manoj Sai > Reported-by : Peter Bergin > Reviewed-by: Peng Fan >

[PATCH 2/2] imx: mx6sabresd: convert to DM_I2C

2023-01-31 Thread sbabic
> From: Peng Fan > Convert to DM_I2C > Signed-off-by: Peng Fan Applied to u-boot-imx, master, thanks ! Best regards, Stefano Babic -- = DENX Software Engineering GmbH,Managing Director: Erika Unter HRB 165235

[PATCH] configs: imx8mn_beacon_fspi: Add config for booting from QSPI

2023-01-31 Thread sbabic
> The imx8mn-beacon SOM has a QSPI part on it connected to the > FlexSPI controller. Add a defconfig option which supports > booting from the QSPI NOR flash instead of sd/mmc. > Signed-off-by: Adam Ford > diff --git a/configs/imx8mn_beacon_fspi_defconfig > b/configs/imx8mn_beacon_fspi_defconfig

[PATCH 1/2] arm: dts: imx8m*-venice-*: add I2C GPIO bus recovery support

2023-01-31 Thread sbabic
> Add I2C GPIO bus recovery support by adding scl-gpios and sda-gpios for the > various I2C busses on Gateworks Venice boards. > Signed-off-by: Tim Harvey > Reviewed-by: Fabio Estevam Applied to u-boot-imx, master, thanks ! Best regards, Stefano Babic --

[PATCH] imx8mq_pins: fix configuration for UART4 on ECSPI2 pads

2023-01-31 Thread sbabic
> When routing UART4 using the ECSPI2 pads, register > IOMUXC_UART4_RXD_SELECT_INPUT (offset 0x050C) should be changed only > when dealing with RX, as its name suggests. > Signed-off-by: Arnaud Ferraris > Reviewed-by: Fabio Estevam Applied to u-boot-imx, master, thanks ! Best regards, Stefano

[PATCH 1/2] imx: mx6sabreauto: convert to DM_I2C

2023-01-31 Thread sbabic
> From: Peng Fan > Convert to DM_I2C > Signed-off-by: Peng Fan Applied to u-boot-imx, master, thanks ! Best regards, Stefano Babic -- = DENX Software Engineering GmbH,Managing Director: Erika Unter HRB 165235

RE: [PATCH v7 0/3] Timer support for ARM Tegra

2023-01-31 Thread Tom Warren
OK, I'll wait for your v8 with the adjusted timer enabling. Does this series need to go in first before your recent 16-patch series "General Tegra improvements"? i.e. are there any dependencies? Tom -Original Message- From: Svyatoslav Ryhel Sent: Tuesday, January 31, 2023 8:26 AM To:

[PATCH] RFC: CI: add test/usage_of_is_enabled_check.sh

2023-01-31 Thread Troy Kisky
Add script usage_of_is_enabled_check to print any configs that use CONFIG_IS_ENABLED instead of IS_ENABLED and vice versa. Add usage_of_is_enabled_commit.sh to generate commits to fix the above issues. Signed-off-by: Troy Kisky --- .azure-pipelines.yml | 11

Re: [PATCH] doc: Add documentation for CZ.NIC Turris routers

2023-01-31 Thread Pali Rohár
Gentle ping? Does CZ.NIC care about Turris routers and u-boot support? On Monday 07 November 2022 21:28:31 Pali Rohár wrote: > Hello! Just beware of these two commits which renamed files mentioned in patch > https://source.denx.de/u-boot/u-boot/-/commit/87ac4b4b4ca5f00e2ddcdac41c9dc691ab2aecf1 >

Re: [PATCH v6] board: mntre: imx8mq: Add MNT Reform 2 board support

2023-01-31 Thread Stefano Babic
On 19.01.23 20:56, Patrick Wildt wrote: The MNT Reform 2 is a modular DIY laptop. In its initial version it is based on the BoundaryDevices i.MX8MQ SoM. Some parts have been lifted from BoundaryDevices official U-Boot downstream project. Signed-off-by: Patrick Wildt --- Changes since v5: -

Re: [PATCH 088/171] Correct SPL uses of FASTBOOT_FLASH_NAND

2023-01-31 Thread Mattijs Korpershoek
On Mon, Jan 30, 2023 at 07:42, Simon Glass wrote: > This converts 3 usages of this option to the non-SPL form, since there is > no SPL_FASTBOOT_FLASH_NAND defined in Kconfig > > Signed-off-by: Simon Glass Reviewed-by: Mattijs Korpershoek > --- > > drivers/fastboot/fb_command.c | 4 ++-- >

Re: [PATCH 087/171] Correct SPL uses of FASTBOOT_FLASH_MMC

2023-01-31 Thread Mattijs Korpershoek
On Mon, Jan 30, 2023 at 07:42, Simon Glass wrote: > This converts 5 usages of this option to the non-SPL form, since there is > no SPL_FASTBOOT_FLASH_MMC defined in Kconfig > > Signed-off-by: Simon Glass Reviewed-by: Mattijs Korpershoek > --- > > drivers/fastboot/fb_command.c | 4 ++-- >

Re: [PATCH 086/171] Correct SPL uses of FASTBOOT_FLASH

2023-01-31 Thread Mattijs Korpershoek
On Mon, Jan 30, 2023 at 07:41, Simon Glass wrote: > This converts 3 usages of this option to the non-SPL form, since there is > no SPL_FASTBOOT_FLASH defined in Kconfig > > Signed-off-by: Simon Glass Reviewed-by: Mattijs Korpershoek > --- > > drivers/fastboot/fb_getvar.c | 4 ++-- >

[PATCH] imx: Suggest the NXP ATF github repo

2023-01-31 Thread sbabic
> As explained in the text at the bottom of the page > https://source.codeaurora.org/external/imx/imx-atf: > "QUIC repositories on this site will not receive any updates after > March 31, 2022, and will be deleted on March 31, 2023." > Point to the NXP ATF github repo instead. > Signed-off-by:

[PATCH 09/10] arm: imx: imx8m: Program CSU and TZASC if PSCI provider

2023-01-31 Thread sbabic
> In case U-Boot is the PSCI provider, it is necessary to correctly > program CSU and TZASC registers. Those are poorly documented, so > push in the correct values. > Signed-off-by: Marek Vasut Applied to u-boot-imx, master, thanks ! Best regards, Stefano Babic --

[PATCH] ARM: arm: colibri-imx6ull-emmc: fix emmc access

2023-01-31 Thread sbabic
> From: Max Krummenacher > Synchronizing the device tree with linux introduced a regression. > The U-Boot specific dtsi mustn't override the alias settings for > the eMMC/SD interfaces. > Without this U-Boot cannot access the eMMC and boot the kernel. > Fixes: c21b61bff15 ("colibri-imx6ull/-emmc:

[PATCH 08/10] arm: imx: imx8m: Define trampoline location if PSCI provider

2023-01-31 Thread sbabic
> The common code used to bring up secondary cores requires a final > jump location to be stored in some sort of memory location, define > this memory location to be the start of OCRAM, since it is available. > Signed-off-by: Marek Vasut Applied to u-boot-imx, master, thanks ! Best regards,

[PATCH] imx: imx6ul: kontron-sl-mx6ul: Disable CONFIG_FSL_QSPI_AHB_FULL_MAP to fix SPI NAND read access

2023-01-31 Thread sbabic
> From: Frieder Schrempf > The introduction of CONFIG_FSL_QSPI_AHB_FULL_MAP as default in: > def88bce094e ("spi: fsl_qspi: Support to use full AHB space on i.MX") > broke the SPI NAND read access on the Kontron SL i.MX6UL/ULL boards. > Reading data from the flash returns garbage instead of the

[PATCH 06/10] arm: imx: imx8m: Enable GICv3 support if PSCI provider

2023-01-31 Thread sbabic
> In case U-Boot is a PSCI provider, enable GICv3 support as this > is necessary to bring up secondary cores. > Signed-off-by: Marek Vasut Applied to u-boot-imx, master, thanks ! Best regards, Stefano Babic -- = DENX Software

[PATCH 03/10] arm: imx: Drop custom lowlevel_init

2023-01-31 Thread sbabic
> The custom lowlevel_init implementation is no longer necessary, since > it is responsible for routing and trapping SErrors in U-Boot in EL2, > which is implemented in common code since commit: > 6c7691edd55 ("armv8: Always unmask SErrors") > Signed-off-by: Marek Vasut Applied to u-boot-imx,

[PATCH 05/10] arm: imx: imx8m: Only use ROM pointers if not PSCI provider

2023-01-31 Thread sbabic
> The ROM pointers are in fact populated by the ATF BL31 blob, in case > U-Boot itself if the PSCI provider, there is no ATF BL31 blob, hence > ignore the ROM pointers. > Signed-off-by: Marek Vasut Applied to u-boot-imx, master, thanks ! Best regards, Stefano Babic --

[PATCH 02/10] arm: psci: Fix RESET2 hook

2023-01-31 Thread sbabic
> The RESET2 hook is a PSCI v1.1 functionality, rename the macro accordinly. > Add missing handler for the RESET2 hook, so it can be implemented by U-Boot. > Signed-off-by: Marek Vasut Applied to u-boot-imx, master, thanks ! Best regards, Stefano Babic --

[PATCH 10/10] arm: imx: imx8m: Add basic PSCI provider implementation

2023-01-31 Thread sbabic
> Implement basic PSCI provider to let OS turn CPU cores off and on, > power off and restart the system and determine PSCI version. This > is sufficient to remove the need for the ATF BL31 blob altogether. > To make use of this functionality, active the following Kconfig options: > #

[PATCH v1] board: apalis-imx8: add 2nd ethernet address

2023-01-31 Thread sbabic
> From: Andrejs Cainikovs > All Apalis iMX8 variants have 2nd RGMII on SoC, so add the address > for 2nd ethernet. > Signed-off-by: Andrejs Cainikovs > Signed-off-by: Francesco Dolcini Applied to u-boot-imx, master, thanks ! Best regards, Stefano Babic --

[PATCH v3] imx6q-sabrelite: Re-add mmc aliases

2023-01-31 Thread sbabic
> In commit d0399a46e7cda63c07e3eb8558bef84cfb068028, the device tree was > synchronized from linux and the aliases were dropped. > They need to be kept so that the mmc cards are in the right order. > Without the aliases, u-boot reports: > MMC: FSL_SDHC: 2, FSL_SDHC: 3 > With the aliases, u-boot

[PATCH 04/10] arm: dts: imx8m: Require ATF BL31 blob only if not PSCI provider

2023-01-31 Thread sbabic
> In case U-Boot itself if the PSCI provider on i.MX8M, do not > require the ATF BL31 blob, as at that point the blob is useless > and would interfere with U-Boot operation. > Signed-off-by: Marek Vasut Applied to u-boot-imx, master, thanks ! Best regards, Stefano Babic --

[PATCH 07/10] arm: imx: imx8m: Map RAM as NS if PSCI provider

2023-01-31 Thread sbabic
> In case U-Boot is a PSCI provider, map RAM explicitly as NS, > otherwise secondary cores crash with SError when attempting > to access RAM mapped as secure in EL2. > Signed-off-by: Marek Vasut Applied to u-boot-imx, master, thanks ! Best regards, Stefano Babic --

[PATCH 01/10] arm: psci: Add PSCI v1.1 macro

2023-01-31 Thread sbabic
> Add macro representing the PSCI v1.1 . > Signed-off-by: Marek Vasut Applied to u-boot-imx, master, thanks ! Best regards, Stefano Babic -- = DENX Software Engineering GmbH,Managing Director: Erika Unter HRB 165235

[PATCH] include/configs: mx6/mx7: drop dangling comments

2023-01-31 Thread sbabic
> Cleanup some dangling comments left by automated migration > processes that are no longer value. > Signed-off-by: Peter Robinson > Acked-by: Peng Fan Applied to u-boot-imx, master, thanks ! Best regards, Stefano Babic -- =

Re: [PATCH 000/171] Kconfig: More cleanup of CONFIG options

2023-01-31 Thread Simon Glass
Hi Tom, On Mon, 30 Jan 2023 at 08:10, Tom Rini wrote: > > On Mon, Jan 30, 2023 at 07:40:33AM -0700, Simon Glass wrote: > > > Quite a few CONFIG options without an SPL equivalent are used as if they > > have one. For example, we see CONFIG_IS_ENABLED(IOMMU) when there is no > > SPL_IOMMU Kconfig

[PATCH 23/32] kconfig: Update CONFIG_IS_ENABLED() for split files

2023-01-31 Thread Simon Glass
Update this file to include the correct autoconf.h or autoconf_spl.h file for each phase. This allows the macros to be simplified. With this, CONFIG_IS_ENABLED() is the same as IS_ENABLED() apart from a migration detail. Signed-off-by: Simon Glass --- include/linux/kconfig.h|

[PATCH 32/32] Makefile: Drop SPL_ and SPL_TPL_ macros

2023-01-31 Thread Simon Glass
These are not needed anymore with split configs. Drop them. This also drops an incorrect $(SPL_TPL) in arch/powerpc/lib/Makefile Signed-off-by: Simon Glass --- Makefile | 6 +- arch/arm/config.mk | 6 +- arch/arm/cpu/arm920t/Makefile

[PATCH 30/32] kconfig: Drop CONFIG_VAL()

2023-01-31 Thread Simon Glass
This serves no purpose now since we can write CONFIG_FOO instead of CONFIG_VAL(FOO) Drop it. Signed-off-by: Simon Glass --- arch/arm/lib/bdinfo.c | 4 +- arch/arm/mach-at91/arm926ejs/eflash.c | 4 +- arch/arm/mach-exynos/clock_init_exynos5.c | 8 ++--

[PATCH 21/32] kconfig: Support writing separate SPL files

2023-01-31 Thread Simon Glass
At present kconfig writes out several files, including: auto.conf - CONFIG settings used by make autoconf.h - header file used by C code This works well but is a bit ugly in places, for example requiring the use of a SPL_TPL_ macro in Makefiles to distinguish between options intended for

[PATCH 28/32] kconfig: Drop CONFIG_IS_ENABLED()

2023-01-31 Thread Simon Glass
We can use IS_ENABLED() now, so drop the CONFIG_IS_ENABLED() macro. Signed-off-by: Simon Glass --- include/linux/kconfig.h | 22 -- 1 file changed, 8 insertions(+), 14 deletions(-) diff --git a/include/linux/kconfig.h b/include/linux/kconfig.h index

[PATCH 31/32] kconfig: Move closer to the Linux version

2023-01-31 Thread Simon Glass
This header file originally came from Linux and it has changed a little upstream since. Bring in some of these changes. Note that IS_ENABLED() in U-Boot supports a three-parameter version, so it not equivalent to the Linux version. Signed-off-by: Simon Glass --- include/linux/kconfig.h | 26

[PATCH 29/32] kconfig: drop config_opt_enabled()

2023-01-31 Thread Simon Glass
This is include used in three places. It does not appear in Linux. Use IS_ENABLED() instead since it provides a similar feature, albeit needing brackets. Signed-off-by: Simon Glass --- drivers/fastboot/fb_command.c | 12 ++-- drivers/fastboot/fb_common.c | 4 ++--

[PATCH 27/32] kconfig: Drop CONFIG_IF_ENABLED_INT()

2023-01-31 Thread Simon Glass
We can use IF_ENABLED_INT() instead, so drop the other macro. Also clean up a few things left behind and fix the comment. Signed-off-by: Simon Glass --- include/linux/kconfig.h | 32 ++-- test/lib/kconfig.c| 15 ---

[PATCH 26/32] kconfig: Adjust the meaning of CONFIG_IS_ENABLED()

2023-01-31 Thread Simon Glass
Adjust this to require the CONFIG option be provided, so that instead of: CONFIG_IS_ENABLED(FOO) you must write: CONFIG_IS_ENABLED(CONFIG_FOO) This is in preparation for dropping this and just using it is as the new implementation of IS_ENABLED(). For now, update IS_ENABLED() to use

[PATCH 18/32] test: Add SPL versions of the TEST_KCONFIG options

2023-01-31 Thread Simon Glass
These are needed since we need a separate value in SPL and Proper. Signed-off-by: Simon Glass --- test/lib/Kconfig | 20 +++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/test/lib/Kconfig b/test/lib/Kconfig index dbb03e4a36f..134cbb85b83 100644 ---

[PATCH 22/32] Makefile: Include the config for the phase being built

2023-01-31 Thread Simon Glass
At present there is only a single auto.conf file used within the makefiles. Update them to use the correct one for each phase. Signed-off-by: Simon Glass --- Makefile | 11 ++- scripts/Makefile.build | 12 +++- scripts/Makefile.spl | 10 +- 3 files

[PATCH 19/32] kconfig: Add configuration files for noproper and nospl

2023-01-31 Thread Simon Glass
These files indicate which options are not for use in U-Boot proper and which are not for use in SPL builds. This allows the kconfig tool to correctly generate its output. Signed-off-by: Simon Glass --- scripts/conf_noproper | 175 ++ scripts/conf_nospl

[PATCH 17/32] fixdep: Add some tests for parse_config_line()

2023-01-31 Thread Simon Glass
Add tests for this code to cover the basic cases. Signed-off-by: Simon Glass --- scripts/basic/fixdep.c | 73 ++ 1 file changed, 73 insertions(+) diff --git a/scripts/basic/fixdep.c b/scripts/basic/fixdep.c index a49d35ba5f6..fe8180ab4e7 100644 ---

[PATCH 20/32] kconfig: Refactor code into separate writer functions

2023-01-31 Thread Simon Glass
Separate out the code that writes the Makefile and headers so we can reuse these functions when writing out SPL files. This makes no functional change. Signed-off-by: Simon Glass --- scripts/kconfig/confdata.c | 65 ++ scripts/kconfig/expr.h | 9 ++

[PATCH 24/32] Makefile: Use empty SPL_ and SPL_TPL_ vars

2023-01-31 Thread Simon Glass
Now that we include an auto.conf file specific to the phase being built we can make these variables empty. With this done, we can also remove them from U-Boot entirely, dropping them from all Makefiles. That is left for a future clean-up since we cannot apply this series until CONFIG migration is

  1   2   3   >