Re: [PATCH 2/2] sunxi: dts: Update RGMII phy-mode properties

2022-03-17 Thread Samuel Holland
On 3/15/22 7:54 PM, Andre Przywara wrote: > Commit f11513d99787 ("net: phy: realtek: Add tx/rx delay config for > 8211e") made the Realtek PHY driver honour the phy-mode DT property, > to set up the proper delay scheme for the RX and TX lines. A similar > change in the kernel revealed that those

[PATCH v5 3/3] sunxi: Support building a SPL as a TOC0 image

2022-03-17 Thread Samuel Holland
Now that mkimage can generate TOC0 images, and the SPL can interpret them, hook up the build infrastructure so the user can choose which image type to build. Since the absolute load address is stored in the TOC0 header, that information must be passed to mkimage. Signed-off-by: Samuel Holland

[PATCH v5 1/3] tools: mkimage: Add Allwinner TOC0 support

2022-03-17 Thread Samuel Holland
Most Allwinner sunxi SoCs have separate boot ROMs in non-secure and secure mode. The "non-secure" or "normal" boot ROM (NBROM) uses the existing sunxi_egon image type. The secure boot ROM (SBROM) uses a completely different image type, known as TOC0. A TOC0 image is composed of a header and two

[PATCH v5 2/3] sunxi: Support SPL in both eGON and TOC0 images

2022-03-17 Thread Samuel Holland
SPL uses the image header to detect the boot device and to find the offset of the next U-Boot stage. Since this information is stored differently in the eGON and TOC0 image headers, add code to find the correct value based on the image type currently in use. Signed-off-by: Samuel Holland ---

[PATCH v5 0/3] sunxi: TOC0 image type support

2022-03-17 Thread Samuel Holland
This series adds support for the TOC0 image format used by the Allwinner secure boot ROM (SBROM). This series has been tested on the following SoCs/boards, with the eFuse burnt to enable secure mode: - A50: Ainol Q88 Tablet - A64: Pine A64 Plus - H5: Orange Pi Zero Plus - H6: Pine H64 Model B

[PATCH 4/4] i2c: sun8i_rsb: Add support for DM clocks and resets

2022-03-17 Thread Samuel Holland
Currently, clock/reset setup for this device is handled by a platform-specific function and is intermixed with non-DM pinctrl setup. Use the devicetree to get clocks/resets, which disentagles it from the pinctrl setup in preparation for moving to DM_PINCTRL. This also has the added benefit of

[PATCH 3/4] i2c: sun8i_rsb: Initialize chips in .child_pre_probe

2022-03-17 Thread Samuel Holland
Chips attached to the RSB bus require an initialization command before they can be used. (Specifically, this command programs the chip's runtime address.) The driver does this in its .probe_chip hook, under the assumption that .probe_chip is called during child probe. This is not the case;

[PATCH 2/4] i2c: sun6i_p2wi: Add support for DM clocks and resets

2022-03-17 Thread Samuel Holland
Currently, clock/reset setup for this device is handled by a platform-specific function and is intermixed with non-DM pinctrl setup. Use the devicetree to get clocks/resets, which disentagles it from the pinctrl setup in preparation for moving to DM_PINCTRL. Signed-off-by: Samuel Holland ---

[PATCH 1/4] i2c: sun6i_p2wi: Initialize chips in .child_pre_probe

2022-03-17 Thread Samuel Holland
Chips attached to the P2WI bus require an initialization command before they can be used. (Specifically, this switches the chip from I2C mode to P2WI mode.) The driver does this in its .probe_chip hook, under the assumption that .probe_chip is called during child probe. This is not the case;

[PATCH 0/4] sunxi: Fixes for DM I2C drivers

2022-03-17 Thread Samuel Holland
A while back, the sunxi-specific P2WI and RSB drivers were converted to support DM_I2C. Now they are used as non-DM drivers in SPL, and DM drivers in U-Boot proper. However, the DM version of the code did not fully initialize either the controller or the connected chips. So the DM driver would

[PATCH v2] pinctrl: nuvoton: Add NPCM8xx pinctrl driver

2022-03-17 Thread Stanley Chu
Add Nuvoton BMC NPCM845 Pinmux and Pinconf support. Signed-off-by: Stanley Chu --- v2: - drop the WDnRCRB/CORSTCB register access, it is not for GPIO modules reset control --- drivers/pinctrl/Kconfig |1 + drivers/pinctrl/Makefile |1 +

[PATCH v2 23/23] spi: sun4i_spi: Remove non-DM pin setup

2022-03-17 Thread Samuel Holland
This is now handled automatically by the pinctrl driver. Signed-off-by: Samuel Holland --- (no changes since v1) drivers/spi/spi-sunxi.c | 84 - 1 file changed, 84 deletions(-) diff --git a/drivers/spi/spi-sunxi.c b/drivers/spi/spi-sunxi.c index

[PATCH v2 22/23] pinctrl: sunxi: Add SPI0 pinmuxes

2022-03-17 Thread Samuel Holland
Pin lists and mux values were taken from the Linux drivers. Signed-off-by: Samuel Holland --- (no changes since v1) drivers/pinctrl/sunxi/pinctrl-sunxi.c | 15 +++ 1 file changed, 15 insertions(+) diff --git a/drivers/pinctrl/sunxi/pinctrl-sunxi.c

[PATCH v2 21/23] pwm: sunxi: Remove non-DM pin setup

2022-03-17 Thread Samuel Holland
This is now handled automatically by the pinctrl driver. Signed-off-by: Samuel Holland --- (no changes since v1) arch/arm/include/asm/arch-sunxi/gpio.h | 1 - drivers/pwm/sunxi_pwm.c| 11 --- 2 files changed, 12 deletions(-) diff --git

[PATCH v2 20/23] pinctrl: sunxi: Add the A64 PWM pinmux

2022-03-17 Thread Samuel Holland
This is the only possible mux setting for the A64's PWM peripheral. Signed-off-by: Samuel Holland --- (no changes since v1) drivers/pinctrl/sunxi/pinctrl-sunxi.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/pinctrl/sunxi/pinctrl-sunxi.c b/drivers/pinctrl/sunxi/pinctrl-sunxi.c

[PATCH v2 19/23] sunxi: Remove non-DM MMC pin setup

2022-03-17 Thread Samuel Holland
This is now handled automatically by the pinctrl driver. Signed-off-by: Samuel Holland --- (no changes since v1) board/sunxi/board.c | 11 --- 1 file changed, 11 deletions(-) diff --git a/board/sunxi/board.c b/board/sunxi/board.c index 77ceefdb46..9a18399294 100644 ---

[PATCH v2 18/23] pinctrl: sunxi: Add MMC pinmuxes

2022-03-17 Thread Samuel Holland
Pin lists and mux values were taken from the Linux drivers. Signed-off-by: Samuel Holland --- (no changes since v1) drivers/pinctrl/sunxi/pinctrl-sunxi.c | 54 +++ 1 file changed, 54 insertions(+) diff --git a/drivers/pinctrl/sunxi/pinctrl-sunxi.c

[PATCH v2 17/23] i2c: sun8i_rsb: Only do non-DM pin setup for non-DM I2C

2022-03-17 Thread Samuel Holland
When the DM_I2C driver is loaded, the pin setup is done automatically from the device tree by the pinctrl driver. Clean up the code in the process: remove #ifdefs and recognize that the pin configuration is the same for all sun8i/sun50i SoCs, not just those which select CONFIG_MACH_SUN8I.

[PATCH v2 16/23] i2c: sun6i_p2wi: Only do non-DM pin setup for non-DM I2C

2022-03-17 Thread Samuel Holland
When the DM_I2C driver is loaded, the pin setup is done automatically from the device tree by the pinctrl driver. Signed-off-by: Samuel Holland --- (no changes since v1) drivers/i2c/sun6i_p2wi.c | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff --git

[PATCH v2 15/23] sunxi: Remove non-DM I2C clock/pin setup from U-Boot

2022-03-17 Thread Samuel Holland
This is now handled automatically by the clock and pinctrl drivers. SPL still calls this function because it needes the non-DM code. Signed-off-by: Samuel Holland --- (no changes since v1) board/sunxi/board.c | 8 1 file changed, 8 deletions(-) diff --git a/board/sunxi/board.c

[PATCH v2 14/23] sunxi: Remove options and setup code for I2C2-I2C4

2022-03-17 Thread Samuel Holland
These options are not currently enabled anywhere. Any new users should use DM clocks and pinctrl. Signed-off-by: Samuel Holland --- (no changes since v1) arch/arm/include/asm/arch-sunxi/gpio.h | 8 - arch/arm/include/asm/arch-sunxi/i2c.h | 11 +- arch/arm/mach-sunxi/Kconfig

[PATCH v2 12/23] net: sun8i_emac: Remove non-DM pin setup

2022-03-17 Thread Samuel Holland
This is now handled automatically by the pinctrl driver. Signed-off-by: Samuel Holland --- (no changes since v1) drivers/net/sun8i_emac.c | 90 1 file changed, 90 deletions(-) diff --git a/drivers/net/sun8i_emac.c b/drivers/net/sun8i_emac.c index

[PATCH v2 13/23] pinctrl: sunxi: Add I2C pinmuxes

2022-03-17 Thread Samuel Holland
Where multiple options were available, the one matching board.c and the device trees was chosen. Pin lists and mux values were taken from the Linux drivers. Signed-off-by: Samuel Holland --- (no changes since v1) drivers/pinctrl/sunxi/pinctrl-sunxi.c | 37 +++ 1 file

[PATCH v2 11/23] pinctrl: sunxi: Add sun8i EMAC pinmuxes

2022-03-17 Thread Samuel Holland
Pin lists and mux values were taken from the Linux drivers. Signed-off-by: Samuel Holland --- (no changes since v1) drivers/pinctrl/sunxi/pinctrl-sunxi.c | 7 +++ 1 file changed, 7 insertions(+) diff --git a/drivers/pinctrl/sunxi/pinctrl-sunxi.c b/drivers/pinctrl/sunxi/pinctrl-sunxi.c

[PATCH v2 07/23] pinctrl: sunxi: Add sun4i EMAC pinmuxes

2022-03-17 Thread Samuel Holland
Pin lists and mux values were taken from the Linux drivers. Signed-off-by: Samuel Holland --- (no changes since v1) drivers/pinctrl/sunxi/pinctrl-sunxi.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/pinctrl/sunxi/pinctrl-sunxi.c b/drivers/pinctrl/sunxi/pinctrl-sunxi.c index

[PATCH v2 10/23] sunxi: Remove non-DM GMAC pin setup

2022-03-17 Thread Samuel Holland
This is now handled automatically by the pinctrl driver. Signed-off-by: Samuel Holland --- (no changes since v1) arch/arm/include/asm/arch-sunxi/gpio.h | 2 - board/sunxi/gmac.c | 55 -- 2 files changed, 57 deletions(-) diff --git

[PATCH v2 09/23] pinctrl: sunxi: Add sunxi GMAC pinmuxes

2022-03-17 Thread Samuel Holland
Pin lists and mux values were taken from the Linux drivers. Signed-off-by: Samuel Holland --- (no changes since v1) drivers/pinctrl/sunxi/pinctrl-sunxi.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/pinctrl/sunxi/pinctrl-sunxi.c b/drivers/pinctrl/sunxi/pinctrl-sunxi.c index

[PATCH v2 08/23] net: sunxi_emac: Remove non-DM pin setup

2022-03-17 Thread Samuel Holland
This is now handled automatically by the pinctrl driver. Signed-off-by: Samuel Holland --- (no changes since v1) arch/arm/include/asm/arch-sunxi/gpio.h | 1 - drivers/net/sunxi_emac.c | 7 +-- 2 files changed, 1 insertion(+), 7 deletions(-) diff --git

[PATCH v2 05/23] pinctrl: sunxi: Add UART pinmuxes

2022-03-17 Thread Samuel Holland
This includes UART0 and R_UART (s_uart) on all supported platforms, plus the additional UART configurations from arch/arm/mach-sunxi/board.c. Pin lists and mux values were taken from the Linux drivers. Signed-off-by: Samuel Holland --- (no changes since v1)

[PATCH v2 06/23] sunxi: Skip non-DM UART pin setup when PINCTRL=y

2022-03-17 Thread Samuel Holland
When a pinctrl driver is available, it will take care of setting up these pins. However, for now this code is still needed in SPL. Reviewed-by: Simon Glass Signed-off-by: Samuel Holland --- (no changes since v1) arch/arm/mach-sunxi/board.c | 2 ++ 1 file changed, 2 insertions(+) diff --git

[PATCH v2 04/23] sunxi: pinctrl: Implement pin configuration

2022-03-17 Thread Samuel Holland
The sunxi pinctrl hardware has bias and drive control. Add driver support for configuring those options. Reviewed-by: Simon Glass Signed-off-by: Samuel Holland --- (no changes since v1) drivers/pinctrl/sunxi/Kconfig | 1 + drivers/pinctrl/sunxi/pinctrl-sunxi.c | 53

[PATCH v2 01/23] sunxi: pinctrl: Create the driver skeleton

2022-03-17 Thread Samuel Holland
Create a do-nothing driver for each sunxi pin controller variant. Since only one driver can automatically bind to a DT node, since the GPIO driver already requires a manual binding process, and since the pinctrl driver needs access to some of the same information, refactor the GPIO driver to be

[PATCH v2 03/23] sunxi: pinctrl: Implement get_pin_muxing function

2022-03-17 Thread Samuel Holland
The pinmux command uses this function to display pinmux status. Since the driver cannot map pin numbers to a list of supported functions, only functions which are common across all pins can be reported by name. Signed-off-by: Samuel Holland --- (no changes since v1)

[PATCH v2 02/23] sunxi: pinctrl: Implement pin muxing functions

2022-03-17 Thread Samuel Holland
Implement the operations to get pin and function names, and to set the mux for a pin. The pin count and pin names are calculated as if each bank has the maximum number of pins. Function names are simply the index into a list of { function name, mux value } pairs. We assume all pins associated

[PATCH v2 00/23] sunxi: Add and use a pinctrl driver

2022-03-17 Thread Samuel Holland
This series resolves some longstanding TODOs by implementing a pinctrl driver for sunxi platforms and converting DM drivers to use it. Changes in v2: - Merge all SoC drivers into one file and one U_BOOT_DRIVER. - Add a consumer for the APB bus clock - Add support for the F1C100s SoC Samuel

Re: [PATCH v3] arm: kirkwood: nas220: Add DM Ethernet, SATA, GPIO

2022-03-17 Thread Tony Dinh
Hi Stefan & Hajo, Please see my comment below. On Wed, Mar 9, 2022 at 2:44 PM Tony Dinh wrote: > > Hi Hajo, > > Please see comments below. > > On Wed, Mar 9, 2022 at 5:42 AM Hajo Noerenberg > wrote: > > > > On 09.03.2022 at 12:26 Tony Dinh wrote: > > > Hi Hajo, > > > > > > > Hi Tony, > > > >

Re: [RFC] serial: mxc: get the clock frequency from the used clock for the device

2022-03-17 Thread Sean Anderson
On 3/17/22 3:14 PM, Heiko Thiery wrote: Hi Sean, Am Do., 17. März 2022 um 15:38 Uhr schrieb Sean Anderson : Hi Heiko, On 3/17/22 8:41 AM, Heiko Thiery wrote: With the clock driver enabled for the imx8mq, it was noticed that the frequency used to calculate the baud rate is always taken from

Re: [RFC] serial: mxc: get the clock frequency from the used clock for the device

2022-03-17 Thread Sean Anderson
On 3/17/22 10:47 AM, Michael Walle wrote: +    struct clk clk; +    if(!clk_get_by_name(dev, "ipg", )) +    rate = clk_get_rate(); +    } + +    /* as fallback we try to get the clk rate that way */ +    if (rate == 0) !rate || IS_ERR_VALUE(rate) This looked so weird I had

Re: [GIT PULL] xilinx patches for v2022.07-rc1

2022-03-17 Thread Tom Rini
On Wed, Mar 16, 2022 at 05:42:32PM +0100, Michal Simek wrote: > Hi Tom, > > please pull these patches to your next branch. > CI doesn't show any issue. > https://source.denx.de/u-boot/custodians/u-boot-microblaze/-/pipelines/11311 > > There are couple of enhancements but also new pinctrl driver

Re: riscv64 - SiFive Unmatched regression?

2022-03-17 Thread Alexander von Gluck IV
March 17, 2022 1:51 PM, "Alex" wrote: > Hello! > > Running into a potential regression on the SiFive Unmatched. > > All SD cards provisioned using identical known-good steps documented by > u-boot. Please ignore. I was down to bisecting with multiple gcc toolchains building u-boot when I

Re: riscv64 - SiFive Unmatched regression?

2022-03-17 Thread Fabio Estevam
Adding the SiFive Unmatched maintainers on Cc. On Thu, Mar 17, 2022 at 3:51 PM Alex wrote: > > Hello! > > Running into a potential regression on the SiFive Unmatched. > > These images function as expected: (u-boot Nov 2021, OpenSPI 0.9) >

Re: [RFC] serial: mxc: get the clock frequency from the used clock for the device

2022-03-17 Thread Heiko Thiery
Hi Sean, Am Do., 17. März 2022 um 15:38 Uhr schrieb Sean Anderson : > > Hi Heiko, > > On 3/17/22 8:41 AM, Heiko Thiery wrote: > > With the clock driver enabled for the imx8mq, it was noticed that the > > frequency used to calculate the baud rate is always taken from the root > > clock of UART1.

Re: [PATCH 1/9] net: gmac_rockchip: Fix misuse of GENMASK macro

2022-03-17 Thread Ramon Fried
On Wed, Mar 16, 2022 at 5:40 PM Pierre-Clément Tosi wrote: > > Swap the arguments as that seems to have been the author's intention. > > Note: This fix wasn't tested on hardware and will result in more bits > being set by the underlying writel() in rk_clrsetreg(), which > might bring

riscv64 - SiFive Unmatched regression?

2022-03-17 Thread Alex
Hello! Running into a potential regression on the SiFive Unmatched. These images function as expected: (u-boot Nov 2021, OpenSPI 0.9) https://github.com/haiku/firmware/tree/73e14d53b45a6b74/u-boot/riscv64/unmatched UART output, no issues. The latest master u-boot images no longer boot from

[PATCH v2 3/4] ARM: dts: imxrt10..-evk: Linux moved pins-imxrt1020 to dts

2022-03-17 Thread Jesse Taube
The Linux kernel moved dt-bindings/pinctrl/pins-imxrt to the device tree This patch move it in U-Boot as well. Signed-off-by: Jesse Taube --- arch/arm/dts/imxrt1020-evk.dts | 2 +- .../pins-imxrt1020.h => arch/arm/dts/imxrt1020-pinfunc.h| 0

[PATCH v2 2/4] configs/*imxrt10*: SYS_MALLOC_LEN is too large

2022-03-17 Thread Jesse Taube
1M of heap is more than internal ram making booting without SDRAM not possible now it is 256k Signed-off-by: Jesse Taube --- configs/imxrt1020-evk_defconfig | 2 +- configs/imxrt1050-evk_defconfig | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git

[PATCH v2 4/4] board: freescale: imxrt10..-evk: Fix missing include of serial.h

2022-03-17 Thread Jesse Taube
If FALCON mode is enabled we have a missing include in spl_start_uboot. Signed-off-by: Jesse Taube --- board/freescale/imxrt1020-evk/imxrt1020-evk.c | 1 + board/freescale/imxrt1050-evk/imxrt1050-evk.c | 1 + 2 files changed, 2 insertions(+) diff --git

[PATCH v2 1/4] clk: imxrt: Use dts for anatop base address

2022-03-17 Thread Jesse Taube
In Linux IMX and IMXRT use the device tree to hold the anatop address. The anatop is used in clock drivers as it controls the internal PLLs This will move the macro from asm/arch-imxrt to the device tree. This presumably should also be done with the other IMX boards as well. Signed-off-by: Jesse

[PATCH v1 2/8] ARM: dts: imxrt11170-pinfunc: Add pinctrl binding header

2022-03-17 Thread Jesse Taube
Add binding header for i.MXRT1170 pinctrl device tree. Signed-off-by: Jesse Taube --- arch/arm/dts/imxrt1170-pinfunc.h | 1561 ++ 1 file changed, 1561 insertions(+) create mode 100644 arch/arm/dts/imxrt1170-pinfunc.h diff --git a/arch/arm/dts/imxrt1170-pinfunc.h

[PATCH v2 0/4] IMXRT: Maintnice updates

2022-03-17 Thread Jesse Taube
Updates to the imxrt family include: - Adding missing include in board - Moving pinctrl binding to dts - Reducing SYS_MALLOC_LEN - Using device tree for anatop base address Jesse Taube (4): clk: imxrt: Use dts for anatop base address configs/*imxrt10*: SYS_MALLOC_LEN is too large ARM: dts:

[PATCH v1 7/8] ARM: dts: imx: add i.MXRT1170-EVK support

2022-03-17 Thread Jesse Taube
The NXP i.MXRT1170 Evaluation Kit (EVK) provides a platform for rapid evaluation of the i.MXRT, which features NXP's implementation of the Arm Cortex-M7 and Cortex-M4 core. The EVK provides 64 MB SDRAM, Micro SD card socket, USB 2.0 OTG. This patch aims to support the preliminary booting up

[PATCH v1 8/8] ARM: imxrt1170_defconfig: Add i.MXRT1170 defconfig

2022-03-17 Thread Jesse Taube
Add a base defconfig for the i.MXRT1170 Signed-off-by: Jesse Taube --- configs/imxrt1170-evk_defconfig | 67 + include/configs/imxrt1170-evk.h | 37 ++ 2 files changed, 104 insertions(+) create mode 100644 configs/imxrt1170-evk_defconfig create

[PATCH v1 6/8] RAM: Add changes for i.MXRT11xx series

2022-03-17 Thread Jesse Taube
The i.MXRT11 series has different offsets for IOCR_MUX, it also can address 64MiB of SDRAM so add a macro for that. Signed-off-by: Jesse Taube --- drivers/ram/imxrt_sdram.c| 9 + include/dt-bindings/memory/imxrt-sdram.h | 1 + 2 files changed, 10 insertions(+) diff

[PATCH v1 4/8] clk: imx: Add i.MXRT11xx pllv3 variant

2022-03-17 Thread Jesse Taube
The i.MXRT11 series has two new pll types but are variants of existing. This patch adds the ability to read one of the pll types' frequency as it can't be changed unlike the generic pll it also has the division factors swapped. Signed-off-by: Jesse Taube --- drivers/clk/imx/clk-pllv3.c | 44

[PATCH v1 5/8] clk: imx: Add initial support for i.MXRT1170 clock driver

2022-03-17 Thread Jesse Taube
Add clock driver support for i.MXRT1170. Signed-off-by: Jesse Taube --- drivers/clk/imx/Kconfig | 16 +++ drivers/clk/imx/Makefile| 1 + drivers/clk/imx/clk-imxrt1170.c | 215 3 files changed, 232 insertions(+) create mode 100644

[PATCH v1 3/8] dt-bindings: imx: Add clock binding for i.MXRT1170

2022-03-17 Thread Jesse Taube
Add the clock binding doc for i.MXRT1170. Signed-off-by: Jesse Taube --- include/dt-bindings/clock/imxrt1170-clock.h | 48 + 1 file changed, 48 insertions(+) create mode 100644 include/dt-bindings/clock/imxrt1170-clock.h diff --git

[PATCH v1 1/8] imx: imxrt1170-evk: Add support for the NXP i.MXRT1170-EVK

2022-03-17 Thread Jesse Taube
This commit adds board support for i.MXRT1170-EVK from NXP. This board is an evaluation kit provided by NXP for i.MXRT117x processor family. Signed-off-by: Jesse Taube --- arch/arm/include/asm/arch-imx/cpu.h | 1 + arch/arm/mach-imx/imxrt/Kconfig | 9 +++

[PATCH v1 0/8] Add support for the i.MXRT1170

2022-03-17 Thread Jesse Taube
This patchset contains: - i.MXRT1170 clock driver adaption - i.MXRT1170-evk basic support Jesse Taube (8): imx: imxrt1170-evk: Add support for the NXP i.MXRT1170-EVK ARM: dts: imxrt11170-pinfunc: Add pinctrl binding header dt-bindings: imx: Add clock binding for i.MXRT1170 clk: imx: Add

[PATCH] clk: imx8mm: add pwm clocks support

2022-03-17 Thread Tommaso Merciai
Add clocks support for the PWM controllers. This is ported from Linux v5.17-rc8. Signed-off-by: Tommaso Merciai --- drivers/clk/imx/clk-imx8mm.c | 28 1 file changed, 28 insertions(+) diff --git a/drivers/clk/imx/clk-imx8mm.c b/drivers/clk/imx/clk-imx8mm.c index

[PATCH 4/8] ram: k3-ddrss: Rename ddrss_ss_regs to ddrss_ctl_regs

2022-03-17 Thread Dave Gerlach
The current address being read from dt actually represents the ddrss_ctl memory region, while ddrss_ss region is something else. Introduce ddrss_ctl_regs and use it to free up ddrss_ss_regs for its proper purpose later so that we can avoid confusion. Signed-off-by: Dave Gerlach ---

[PATCH 8/8] configs: am64x_evm_r5: Add CONFIG_NR_DRAM_BANKS as done in a53 defconfig

2022-03-17 Thread Dave Gerlach
Add CONFIG_NR_DRAM_BANKS from am64x_evm_a53_defconfig as this is needed to calculate the size of DDR that is available. Signed-off-by: Dave Gerlach --- configs/am64x_evm_r5_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/configs/am64x_evm_r5_defconfig

[PATCH 6/8] board: ti: am64x: Account for DDR size fixups if ECC is enabled

2022-03-17 Thread Dave Gerlach
Call into k3-ddrss driver to fixup device tree and resize the available amount of DDR if ECC is enabled. A second fixup is required from A53 SPL to take the fixup as done from R5 SPL and apply it to DT passed to A53 U-boot, which in turn passes this to the OS. Signed-off-by: Dave Gerlach ---

[PATCH 2/8] board: ti: am64x: Use fdt functions for ram and bank init

2022-03-17 Thread Dave Gerlach
Use the appropriate fdtdec_setup_mem_size_base and fdtdec_setup_bank_size calls in dram_init and dram_bank_init to pull these values from DT, where they are already available, instead of hardcoding them. Signed-off-by: Dave Gerlach --- board/ti/am64x/evm.c | 19 --- 1 file

[PATCH 3/8] dt-bindings: memory-controller: Add information about ECC bindings

2022-03-17 Thread Dave Gerlach
Add DT binding documentation for enabling ECC in the DDR sub system present on AM64 device. Signed-off-by: Dave Gerlach --- .../memory-controller/k3-j721e-ddrss.txt | 8 1 file changed, 8 insertions(+) diff --git

[PATCH 7/8] arm: dts: k3-am64-ddr: Add ss_cfg reg entry

2022-03-17 Thread Dave Gerlach
Add 'ss_cfg' memory region for memorycontroller node which is required to enable ECC. Signed-off-by: Dave Gerlach --- arch/arm/dts/k3-am64-ddr.dtsi | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/arch/arm/dts/k3-am64-ddr.dtsi b/arch/arm/dts/k3-am64-ddr.dtsi index

[PATCH 5/8] ram: k3-ddrss: Introduce ECC Functionality for full memory space

2022-03-17 Thread Dave Gerlach
Introduce ECC Functionality for full memory space as implemented in the DDRSS. The following is done to accomplish this: * Introduce a memory region "ss" to allow dt to provide DDRSS region, which is not the same as "ctl" which is the controller region. * Introduce a "ti,ecc-enable" flag

[PATCH 0/8] ram: k3-ddrss: Enable DDRSS ECC for full DDR Space

2022-03-17 Thread Dave Gerlach
Hi, This series adds support for single bit ECC in the TI DDRSS bridge inline ECC and adds required support code for AM64x EVM to enable it for the full DDR space. This ECC module checks reads and writes to and from DDR once enabled without additional action required. ECC is stored together with

Re: [RFC] serial: mxc: get the clock frequency from the used clock for the device

2022-03-17 Thread Lukasz Majewski
Hi Sean, > Hi Heiko, > > On 3/17/22 8:41 AM, Heiko Thiery wrote: > > With the clock driver enabled for the imx8mq, it was noticed that > > the frequency used to calculate the baud rate is always taken from > > the root clock of UART1. This can cause problems if UART1 is not > > used as console

Re: [PATCH v2 4/9] arm: imx: imx8mm: add enable_pwm_clk function

2022-03-17 Thread Marek Vasut
On 3/17/22 16:13, Tommaso Merciai wrote: On Thu, Mar 17, 2022 at 01:38:18PM +0100, Tommaso Merciai wrote: On Thu, Mar 17, 2022 at 12:58:31PM +0100, Marek Vasut wrote: On 3/17/22 08:39, Tommaso Merciai wrote: On Wed, Mar 16, 2022 at 09:54:34PM +0100, Marek Vasut wrote: On 3/16/22 16:27,

Re: [PATCH v2 4/9] arm: imx: imx8mm: add enable_pwm_clk function

2022-03-17 Thread Tommaso Merciai
On Thu, Mar 17, 2022 at 01:38:18PM +0100, Tommaso Merciai wrote: > On Thu, Mar 17, 2022 at 12:58:31PM +0100, Marek Vasut wrote: > > On 3/17/22 08:39, Tommaso Merciai wrote: > > > On Wed, Mar 16, 2022 at 09:54:34PM +0100, Marek Vasut wrote: > > > > On 3/16/22 16:27, Tommaso Merciai wrote: > > > > >

Re: [RFC] serial: mxc: get the clock frequency from the used clock for the device

2022-03-17 Thread Michael Walle
+ struct clk clk; + if(!clk_get_by_name(dev, "ipg", )) + rate = clk_get_rate(); + } + + /* as fallback we try to get the clk rate that way */ + if (rate == 0) !rate || IS_ERR_VALUE(rate) This looked so weird I had to

Re: [RFC] serial: mxc: get the clock frequency from the used clock for the device

2022-03-17 Thread Sean Anderson
Hi Heiko, On 3/17/22 8:41 AM, Heiko Thiery wrote: With the clock driver enabled for the imx8mq, it was noticed that the frequency used to calculate the baud rate is always taken from the root clock of UART1. This can cause problems if UART1 is not used as console and the settings are different

[PATCH] arm64: versal: Do not place u-boot to reserved memory location

2022-03-17 Thread Michal Simek
Versal can also have reserved space in DT which u-boot has to avoid to placing self to that location. The same change was done in ZynqMP by commit ce39ee28ec31 ("zynqmp: Do not place u-boot to reserved memory location") and also for microblaze by commit d7b5cc89d329 ("microblaze: Do not place

Re: [EXT] [PATCH] mtd: mxs_nand: default to legacy bch and rename to modern bch option

2022-03-17 Thread Frieder Schrempf
Hi Han, Am 17.03.22 um 14:33 schrieb Han Xu: > > > On Thu, Mar 17, 2022 at 8:27 AM Frieder Schrempf > mailto:frieder.schre...@kontron.de>> wrote: > > Hi Stefano, > > this old patch was delegated to you in patchwork. If you're not the > correct maintainer to address, please let me

Re: [EXT] [PATCH] mtd: mxs_nand: default to legacy bch and rename to modern bch option

2022-03-17 Thread Han Xu
On Thu, Mar 17, 2022 at 8:27 AM Frieder Schrempf < frieder.schre...@kontron.de> wrote: > Hi Stefano, > > this old patch was delegated to you in patchwork. If you're not the > correct maintainer to address, please let me know. As the NAND layer > seems to be unmaintained at the moment, I'm not

Re: [EXT] [PATCH] mtd: mxs_nand: default to legacy bch and rename to modern bch option

2022-03-17 Thread Frieder Schrempf
Hi Stefano, this old patch was delegated to you in patchwork. If you're not the correct maintainer to address, please let me know. As the NAND layer seems to be unmaintained at the moment, I'm not sure whom to ask. This patch fixes a regression that was introduced by 616f03dabacb (" mtd: gpmi:

Re: GPMI NAND Regression on i.MX6S

2022-03-17 Thread Frieder Schrempf
Hi Sean, Am 17.03.22 um 14:14 schrieb Sean Nyekjaer: > [Sie erhalten nicht oft E-Mail von "s...@geanix.com". Weitere Informationen, > warum dies wichtig ist, finden Sie unter > "http://aka.ms/LearnAboutSenderIdentification;.] > > Hi Frieder, > > On Thu, Mar 17, 2022 at 01:59:07PM +0100,

Re: [RFC] serial: mxc: get the clock frequency from the used clock for the device

2022-03-17 Thread Angus Ainslie
Hi Heiko, On 2022-03-17 05:41, Heiko Thiery wrote: With the clock driver enabled for the imx8mq, it was noticed that the frequency used to calculate the baud rate is always taken from the root clock of UART1. This can cause problems if UART1 is not used as console and the settings are different

Re: GPMI NAND Regression on i.MX6S

2022-03-17 Thread Sean Nyekjaer
Hi Frieder, On Thu, Mar 17, 2022 at 01:59:07PM +0100, Frieder Schrempf wrote: > Am 17.03.22 um 09:06 schrieb Frieder Schrempf: > > Hi Tim, > > > > Am 16.03.22 um 17:34 schrieb Tim Harvey: > >> On Wed, Mar 16, 2022 at 7:09 AM Fabio Estevam wrote: > >>> > >>> Adding Han Xu's NXP email on Cc. >

[PATCH u-boot-net 14/14] net: phy: don't require PHY interface mode during PHY creation

2022-03-17 Thread Marek Behún
From: Marek Behún Currently we require PHY interface mode to be known when finding/creating the PHY - the functions * phy_device_create() * create_phy_by_mask() * search_for_existing_phy() * get_phy_device_by_mask() * phy_find_by_mask() (this is the only one global) all require the

Re: GPMI NAND Regression on i.MX6S

2022-03-17 Thread Frieder Schrempf
Am 17.03.22 um 09:06 schrieb Frieder Schrempf: > Hi Tim, > > Am 16.03.22 um 17:34 schrieb Tim Harvey: >> On Wed, Mar 16, 2022 at 7:09 AM Fabio Estevam wrote: >>> >>> Adding Han Xu's NXP email on Cc. >>> >>> On Mon, Mar 14, 2022 at 10:31 AM Frieder Schrempf >>> wrote: Hello everyone,

[PATCH u-boot-net 12/14] net: phy: use ->is_c45 instead of is_10g_interface()

2022-03-17 Thread Marek Behún
From: Marek Behún Use phydev->is_c45 instead of is_10g_interface(phydev->interface) to determine whether clause 45 protocol should be used. Signed-off-by: Marek Behún --- drivers/net/phy/phy.c | 8 include/phy.h | 12 2 files changed, 4 insertions(+), 16

[PATCH u-boot-net 09/14] treewide: Rename PHY_INTERFACE_MODE_NONE to PHY_INTERFACE_MODE_NA

2022-03-17 Thread Marek Behún
From: Marek Behún Rename constant PHY_INTERFACE_MODE_NONE to PHY_INTERFACE_MODE_NA to make it compatible with Linux' naming. Signed-off-by: Marek Behún --- board/freescale/corenet_ds/eth_hydra.c | 2 +- board/freescale/corenet_ds/eth_superhydra.c | 4 ++--

[PATCH u-boot-net 11/14] net: phy: xilinx: Check interface type in ->config(), not ->probe()

2022-03-17 Thread Marek Behún
From: Marek Behún We want to be able to have phydev->interface uninitialized during ->probe(). We should assume that phydev->interface is initialized only before ->config(). Signed-off-by: Marek Behún --- drivers/net/phy/xilinx_gmii2rgmii.c | 10 +- 1 file changed, 5 insertions(+), 5

[PATCH u-boot-net 03/14] net: introduce helpers to get PHY ofnode from MAC

2022-03-17 Thread Marek Behún
From: Marek Behún Add helpers ofnode_get_phy_node() and dev_get_phy_node() and use it in net/mdio-uclass.c function dm_eth_connect_phy_handle(). This is useful because other part's of U-Boot may want to get PHY ofnode without connecting a PHY. Signed-off-by: Marek Behún ---

[PATCH u-boot-net 13/14] bcmgenet, sun8i_emac: Don't connect PHY two times

2022-03-17 Thread Marek Behún
From: Marek Behún The bcmgenet and sun8i_emac drivers call phy_connect(), which finds / creates the PHY and also connects it to the eth device via phy_connect_dev(), then set some phydev members (bcmgenet only), and then call phy_connect_dev() explicitly again. Drop the second

[PATCH u-boot-net 10/14] phy: Move PHY_INTERFACE_MODE_NA to the beginning of the enum definition

2022-03-17 Thread Marek Behún
From: Marek Behún Move PHY_INTERFACE_MODE_NA to the beginning of the enum definition to make it have zero value. This makes it possible (although not encouraged) to test for invalid/nonexistent interface mode with !val instead of val == PHY_INTERFACE_MODE_NA. The comment near the definition

[PATCH u-boot-net 07/14] net: introduce helpers to get PHY interface mode from a device/ofnode

2022-03-17 Thread Marek Behún
From: Marek Behún Add helpers ofnode_read_phy_mode() and dev_read_phy_mode() to parse the "phy-mode" / "phy-connection-type" property. Use them treewide. This allows us to inline the phy_get_interface_by_name() into ofnode_read_phy_mode(), since the former is not used anymore. Signed-off-by:

[PATCH u-boot-net 08/14] treewide: Rename PHY_INTERFACE_MODE_COUNT to PHY_INTERFACE_MODE_MAX

2022-03-17 Thread Marek Behún
From: Marek Behún Rename constant PHY_INTERFACE_MODE_COUNT to PHY_INTERFACE_MODE_MAX to make it compatible with Linux' naming. Signed-off-by: Marek Behún --- drivers/core/ofnode.c | 2 +- drivers/net/phy/aquantia.c | 2 +- include/phy_interface.h| 2 +- 3 files changed, 3

[PATCH u-boot-net 06/14] net: phy: fix parsing wrong property

2022-03-17 Thread Marek Behún
From: Marek Behún The "phy-interface-type" property should be "phy-connection-type". Signed-off-by: Marek Behún --- drivers/net/phy/phy.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/phy/phy.c b/drivers/net/phy/phy.c index c9fc20855b..fe6dbdaee4 100644 ---

[PATCH u-boot-net 05/14] treewide: use dm_mdio_read/write/reset() wrappers

2022-03-17 Thread Marek Behún
From: Marek Behún Use the new dm_mdio_read/write/reset() wrappers treewide, instead of always getting and dereferencing MDIO operations structure pointer. Signed-off-by: Marek Behún --- drivers/net/mdio_mux_sandbox.c | 6 ++ net/mdio-mux-uclass.c | 16

[PATCH u-boot-net 04/14] net: mdio-uclass: add wrappers for read/write/reset operations

2022-03-17 Thread Marek Behún
From: Marek Behún Add wrappers dm_mdio_read(), dm_mdio_write() and dm_mdio_reset() for DM MDIO's .read(), .write() and .reset() operations. Signed-off-by: Marek Behún --- include/miiphy.h | 31 +++ net/mdio-uclass.c | 31 +++ 2 files

[PATCH u-boot-net 01/14] net: mdio-uclass: fix type for phy_mode_str and phy_handle_str

2022-03-17 Thread Marek Behún
From: Marek Behún These global variables should both have type static const char * const Signed-off-by: Marek Behún --- net/mdio-uclass.c | 11 ++- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/net/mdio-uclass.c b/net/mdio-uclass.c index e74e34f78f..5735afe49e 100644

[PATCH u-boot-net 02/14] net: mdio-uclass: use ARRAY_SIZE()

2022-03-17 Thread Marek Behún
From: Marek Behún Use the ARRAY_SIZE() macro instead of hardcoding sizes of arrays in macors. Signed-off-by: Marek Behún --- net/mdio-uclass.c | 11 +-- 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/net/mdio-uclass.c b/net/mdio-uclass.c index 5735afe49e..649dc60f73

[PATCH u-boot-net 00/14] u-boot-net refactors, fixes, cleanups

2022-03-17 Thread Marek Behún
From: Marek Behún So I wanted to solve a problem regarding MDIO bus within mvneta driver, to make it use the mvmdio DM driver instead of the non-DM MDIO bus registered during mvneta probe, and improve some other things there, and it seems like I opened a small bag from hell, which resulted in

Re: [PATCH v2 4/9] arm: imx: imx8mm: add enable_pwm_clk function

2022-03-17 Thread Marek Vasut
On 3/17/22 13:38, Tommaso Merciai wrote: On Thu, Mar 17, 2022 at 12:58:31PM +0100, Marek Vasut wrote: On 3/17/22 08:39, Tommaso Merciai wrote: On Wed, Mar 16, 2022 at 09:54:34PM +0100, Marek Vasut wrote: On 3/16/22 16:27, Tommaso Merciai wrote: Add function enable_pwm_clk into in

[RFC] serial: mxc: get the clock frequency from the used clock for the device

2022-03-17 Thread Heiko Thiery
With the clock driver enabled for the imx8mq, it was noticed that the frequency used to calculate the baud rate is always taken from the root clock of UART1. This can cause problems if UART1 is not used as console and the settings are different from UART1. The result is that the console output is

Re: [PATCH v2 7/9] imx8mm_evk: spl: enable pwm clock

2022-03-17 Thread Tommaso Merciai
On Thu, Mar 17, 2022 at 07:55:40AM -0300, Fabio Estevam wrote: > Hi Tommaso, > > On Thu, Mar 17, 2022 at 4:34 AM Tommaso Merciai > wrote: > > > Hi Fabio, > > You mean is better to move the clock enable into board_late_init function? > > Yes, you would only need PWM support in U-Boot proper,

Re: [PATCH v2 4/9] arm: imx: imx8mm: add enable_pwm_clk function

2022-03-17 Thread Tommaso Merciai
On Thu, Mar 17, 2022 at 12:58:31PM +0100, Marek Vasut wrote: > On 3/17/22 08:39, Tommaso Merciai wrote: > > On Wed, Mar 16, 2022 at 09:54:34PM +0100, Marek Vasut wrote: > > > On 3/16/22 16:27, Tommaso Merciai wrote: > > > > Add function enable_pwm_clk into in clock_imx8mm.c. This > > > > function

RE: [EXT] Re: [PATCH v8 01/15] crypto/fsl: Add support for CAAM Job ring driver model

2022-03-17 Thread Gaurav Jain
Hello Michael A gentle reminder!! As you said earlier, can you test the mamoj board with proposed solution to fix SPL size issue. Regards Gaurav Jain > -Original Message- > From: Gaurav Jain > Sent: Monday, March 14, 2022 11:18 AM > To: Michael Nazzareno Trimarchi ; Stefano > Babic >

  1   2   >