Re: [U-Boot] LED LIGHTING

2011-04-13 Thread Johan
Dear Purchasing Manager Vast-Star here, exporting led bulbs,led spotlight, led strips with good quality and low price in China. Call me orReply me, let's talk details. Rgds, Johan Email:vast...@gmail.com www.vastled.com 86 15869177755

Re: [U-Boot] [PATCH 3/7] fec_imx27: driver for FEC ethernet controller on i.MX27

2009-06-15 Thread Johan
any ideas what might be wrong? /Johan 2009/5/20 Ilya Yanok : > Signed-off-by: Ilya Yanok > --- >  cpu/arm926ejs/mx27/generic.c |   10 + >  drivers/net/Makefile         |    1 + >  drivers/net/fec_imx27.c      |  705 >

Re: [U-Boot] [PATCH 3/7] fec_imx27: driver for FEC ethernet controller on i.MX27

2009-06-16 Thread Johan
umber of times the LEDs turn green I can can use the network. Do you know if that might be hw related or may it be something with the initialization? I'll try to test U-boot v2 as you are using and see if it works better. /Johan 2009/6/15 Eric Lammerts : > On 06/15/09 10:01, Johan wro

Re: [PATCH V2 1/9] gpio: gpio-rockchip: parse gpio-ranges for bank id

2023-02-22 Thread Johan Jonker
se this or are there other ideas? Johan On 2/13/23 23:27, Chris Morgan wrote: > From: Chris Morgan > > Use the new devicetree property of gpio-ranges to determine the GPIO > bank ID. Preserve the "old" way of doing things too, so that boards > can be migrated and teste

[PATCH v1] spi: spi-aspeed-smc: convert devfdt_get_addr_index output to phys_addr_t

2023-02-23 Thread Johan Jonker
The fdt_addr_t and phys_addr_t size have been decoupled. A 32bit CPU can expect 64-bit data from the device tree parser, so convert devfdt_get_addr_index output to phys_addr_t in the spi-aspeed-smc.c file. Also fix dev_dbg to be able to handle both sizes. Signed-off-by: Johan Jonker --- Note

Re: [PATCH v4 01/11] include: fdtdec: decouple fdt_addr_t and phys_addr_t size

2023-02-25 Thread Johan Jonker
On 2/23/23 01:47, Kever Yang wrote: > Hi Johan, > >     This update will cause below error on evb-ast2500/2600: Hi Kever, Simon, For "spi-aspeed-smc.c" I have submitted a patch proposal. The changes in patch 1 possible involves a lot more boards that might need a

Re: [PATCH v4 01/11] include: fdtdec: decouple fdt_addr_t and phys_addr_t size

2023-02-25 Thread Johan Jonker
On 2/25/23 10:15, Michael Nazzareno Trimarchi wrote: > Hi Johan > > On Sat, Feb 25, 2023 at 10:11 AM Johan Jonker wrote: >> >> >> >> On 2/23/23 01:47, Kever Yang wrote: >>> Hi Johan, >>> >>> This update will cause below erro

Re: [PATCH v1] spi: spi-aspeed-smc: convert devfdt_get_addr_index output to phys_addr_t

2023-02-25 Thread Johan Jonker
On 2/25/23 10:26, Michael Nazzareno Trimarchi wrote: > Hi Johan > > On Thu, Feb 23, 2023 at 3:06 PM Johan Jonker wrote: >> >> The fdt_addr_t and phys_addr_t size have been decoupled. >> A 32bit CPU can expect 64-bit data from the device tree parser, >> so con

[PATCH v2 1/2] core: fdtaddr: add devfdt_get_addr_size_index_ptr function

2023-02-25 Thread Johan Jonker
Add devfdt_get_addr_size_index_ptr function with the same functionality as devfdt_get_addr_size_index, but instead a return pointer is given. Suggested-by: Michael Nazzareno Trimarchi Signed-off-by: Johan Jonker --- drivers/core/fdtaddr.c | 8 include/dm/fdtaddr.h | 15

[PATCH v2 2/2] spi: spi-aspeed-smc: use devfdt_get_addr_index_ptr

2023-02-25 Thread Johan Jonker
: Johan Jonker --- Note: This is needed for a Rockchip patch serie to pass the test and must be merged before by Rockchip maintainers: [PATCH v4 00/11] Fixes for Rockchip NFC driver part 1 https://lore.kernel.org/u-boot/f3dba231-4a55-0a94-dfab-5cab1419d...@gmail.com/ Changed V2: Use

[RFC PATCH v1 1/4] drivers: use dev_read_addr_index_ptr when cast to pointer

2023-02-25 Thread Johan Jonker
The fdt_addr_t and phys_addr_t size have been decoupled. A 32bit CPU can expect 64-bit data from the device tree parser, so use dev_read_addr_index_ptr instead of the dev_read_addr_index function in the various files in the drivers directory that cast to a pointer. Signed-off-by: Johan Jonker

[RFC PATCH v1 2/4] drivers: use dev_read_addr_ptr when cast to pointer

2023-02-25 Thread Johan Jonker
The fdt_addr_t and phys_addr_t size have been decoupled. A 32bit CPU can expect 64-bit data from the device tree parser, so use dev_read_addr_ptr instead of the dev_read_addr function in the various files in the drivers directory that cast to a pointer. Signed-off-by: Johan Jonker --- Note

[RFC PATCH v1 3/4] drivers: use devfdt_get_addr_size_index_ptr when cast to pointer

2023-02-25 Thread Johan Jonker
: Johan Jonker --- Note: This is needed for a Rockchip patch serie to pass the test and must be merged before by Rockchip maintainers: [PATCH v4 00/11] Fixes for Rockchip NFC driver part 1 https://lore.kernel.org/u-boot/f3dba231-4a55-0a94-dfab-5cab1419d...@gmail.com/ Replacement command used: find

[RFC PATCH v1 4/4] drivers: use devfdt_get_addr_index_ptr when cast to pointer

2023-02-25 Thread Johan Jonker
The fdt_addr_t and phys_addr_t size have been decoupled. A 32bit CPU can expect 64-bit data from the device tree parser, so use devfdt_get_addr_index_ptr instead of the devfdt_get_addr_index function in the various files in the drivers directory that cast to a pointer. Signed-off-by: Johan Jonker

Re: [RFC PATCH v1 2/4] drivers: use dev_read_addr_ptr when cast to pointer

2023-02-25 Thread Johan Jonker
On 2/25/23 20:19, Johan Jonker wrote: > The fdt_addr_t and phys_addr_t size have been decoupled. > A 32bit CPU can expect 64-bit data from the device tree parser, > so use dev_read_addr_ptr instead of the dev_read_addr > function in the various files in the drivers directory that

[PATCH v5 00/21] Fixes for Rockchip NFC driver part 1

2023-02-28 Thread Johan Jonker
syscon-uclass.c Changed V3: use dev_read_addr_ptr fix oobfree TODO: Time consuming binman test for other SoC types then ARM. Help with testing appreciated. Johan Jonker (20): mtd: nand: raw: rockchip_nfc: use dev_read_addr_ptr mtd: nand: raw: rockchip_nfc: remove the compatible

[PATCH v5 01/21] mtd: nand: raw: rockchip_nfc: use dev_read_addr_ptr

2023-02-28 Thread Johan Jonker
The fdt_addr_t and phys_addr_t size have been decoupled. A 32bit CPU can expext 64-bit data from the device tree parser, so use dev_read_addr_ptr in the rockchip_nfc.c file. Signed-off-by: Johan Jonker Reviewed-by: Michael Trimarchi --- drivers/mtd/nand/raw/rockchip_nfc.c | 6 +++--- 1 file

[PATCH v5 02/21] mtd: nand: raw: rockchip_nfc: remove the compatible string "rockchip,rk3308-nfc"

2023-02-28 Thread Johan Jonker
The compatible string for rk3308 has as fallback string "rockchip,rv1108-nfc". As there is no logic in probe priority between the SoC orientated string and the fall back, so remove the compatible string "rockchip,rk3308-nfc" from the driver. Signed-off-by: Johan Jonker Rev

[PATCH v5 03/21] mtd: nand: raw: rockchip_nfc: add layout structure

2023-02-28 Thread Johan Jonker
The MTD framework in U-boot is not identical for drivers ported from Linux. The rockchip_nfc driver was ported with OOB ops functions while the framework expects a layout structure per chip. Fix by adding a structure with OOB data and remove unused functions. Signed-off-by: Johan Jonker Reviewed

[PATCH v5 04/21] mtd: nand: raw: rockchip_nfc: add flash_node to chip structure

2023-02-28 Thread Johan Jonker
Add flash_node to the rockchip_nfc driver chip structure in order to find the partitions in the add_mtd_partitions_of() function. Signed-off-by: Johan Jonker Reviewed-by: Kever Yang Reviewed-by: Michael Trimarchi --- drivers/mtd/nand/raw/rockchip_nfc.c | 1 + 1 file changed, 1 insertion

[PATCH v5 05/21] mtd: nand: raw: rockchip_nfc: fix oobfree offset and description

2023-02-28 Thread Johan Jonker
positions before ECC. Update the description for U-boot. Signed-off-by: Johan Jonker Reviewed-by: Kever Yang --- drivers/mtd/nand/raw/rockchip_nfc.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/mtd/nand/raw/rockchip_nfc.c b/drivers/mtd/nand/raw

[PATCH v5 06/21] mtd: nand: add support for the Sandisk SDTNQGAMA chip

2023-02-28 Thread Johan Jonker
Sandisk SDTNQGAMA is a 8GB size, 3.3V 8 bit chip with 16KB page size, 1KB write size and 40 bit ecc support Signed-off-by: Paweł Jarosz Signed-off-by: Johan Jonker Reviewed-by: Kever Yang --- drivers/mtd/nand/raw/nand_ids.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/mtd

[PATCH v5 07/21] rockchip: adc: rockchip-saradc: use dev_read_addr_ptr

2023-02-28 Thread Johan Jonker
The fdt_addr_t and phys_addr_t size have been decoupled. A 32bit CPU can expext 64-bit data from the device tree parser, so use dev_read_addr_ptr in the rockchip-saradc.c file. Signed-off-by: Johan Jonker Reviewed-by: Kever Yang --- drivers/adc/rockchip-saradc.c | 4 ++-- 1 file changed, 2

[PATCH v5 08/21] rockchip: timer: dw-apb-timer: convert dev_read_addr output to phys_addr_t

2023-02-28 Thread Johan Jonker
The fdt_addr_t and phys_addr_t size have been decoupled. A 32bit CPU can expect 64-bit data from the device tree parser, so convert dev_read_addr output to phys_addr_t in the dw-apb-timer.c file. Signed-off-by: Johan Jonker Reviewed-by: Kever Yang --- drivers/timer/dw-apb-timer.c | 4 ++-- 1

[PATCH v5 09/21] include: dm: ofnode: fix headers

2023-02-28 Thread Johan Jonker
When fdt_addr_t and phys_addr_t are split it turns out that the header don't match the functions, so fix the headers. Signed-off-by: Johan Jonker Reviewed-by: Simon Glass Reviewed-by: Kever Yang --- include/dm/ofnode.h | 16 1 file changed, 8 insertions(+), 8 dele

[PATCH v5 10/21] core: remap: convert regmap_init_mem_plat() input to phys_addr_t

2023-02-28 Thread Johan Jonker
ARRAY_SIZE divider. Signed-off-by: Johan Jonker Reviewed-by: Kever Yang --- drivers/core/regmap.c | 2 +- drivers/core/syscon-uclass.c| 4 ++-- drivers/ram/rockchip/sdram_rk3066.c | 2 +- drivers/ram/rockchip/sdram_rk3188.c | 2 +- drivers/ram/rockchip/sdram_rk322x.c | 2

[PATCH v5 11/21] core: fdtaddr: add devfdt_get_addr_size_index_ptr function

2023-02-28 Thread Johan Jonker
Add devfdt_get_addr_size_index_ptr function with the same functionality as devfdt_get_addr_size_index, but instead a return pointer is given. Suggested-by: Michael Nazzareno Trimarchi Signed-off-by: Johan Jonker Reviewed-by: Michael Trimarchi --- Changed V5: fix spelling use tabs

[PATCH v5 12/21] core: read: add dev_read_addr_index_ptr function

2023-02-28 Thread Johan Jonker
Add dev_read_addr_index_ptr function with the same functionality as dev_read_addr_index, but instead a return pointer is given. Signed-off-by: Johan Jonker --- Changed V5: new patch --- drivers/core/read.c | 7 +++ 1 file changed, 7 insertions(+) diff --git a/drivers/core/read.c b

[PATCH v5 13/21] spi: spi-aspeed-smc: use devfdt_get_addr_index_ptr

2023-02-28 Thread Johan Jonker
: Johan Jonker Reviewed-by: Michael Trimarchi --- drivers/spi/spi-aspeed-smc.c | 13 ++--- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/drivers/spi/spi-aspeed-smc.c b/drivers/spi/spi-aspeed-smc.c index 4b6ea9f8..2be9280a 100644 --- a/drivers/spi/spi-aspeed-smc.c +++ b/drivers

[PATCH v5 14/21] drivers: use dev_read_addr_index_ptr when cast to pointer

2023-02-28 Thread Johan Jonker
The fdt_addr_t and phys_addr_t size have been decoupled. A 32bit CPU can expect 64-bit data from the device tree parser, so use dev_read_addr_index_ptr instead of the dev_read_addr_index function in the various files in the drivers directory that cast to a pointer. Signed-off-by: Johan Jonker

[PATCH v5 15/21] drivers: use dev_read_addr_ptr when cast to pointer

2023-02-28 Thread Johan Jonker
The fdt_addr_t and phys_addr_t size have been decoupled. A 32bit CPU can expect 64-bit data from the device tree parser, so use dev_read_addr_ptr instead of the dev_read_addr function in the various files in the drivers directory that cast to a pointer. Signed-off-by: Johan Jonker --- Changed

[PATCH v5 16/21] drivers: use devfdt_get_addr_size_index_ptr when cast to pointer

2023-02-28 Thread Johan Jonker
: Johan Jonker Reviewed-by: Michael Trimarchi --- drivers/pci/pcie_dw_mvebu.c | 6 +++--- drivers/spi/cadence_qspi.c | 3 +-- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/drivers/pci/pcie_dw_mvebu.c b/drivers/pci/pcie_dw_mvebu.c index a0b82c78..3b2ada54 100644 --- a/drivers/pci

[PATCH v5 17/21] drivers: use devfdt_get_addr_index_ptr when cast to pointer

2023-02-28 Thread Johan Jonker
The fdt_addr_t and phys_addr_t size have been decoupled. A 32bit CPU can expect 64-bit data from the device tree parser, so use devfdt_get_addr_index_ptr instead of the devfdt_get_addr_index function in the various files in the drivers directory that cast to a pointer. Signed-off-by: Johan Jonker

[PATCH v5 18/21] drivers: use devfdt_get_addr_ptr when cast to pointer

2023-02-28 Thread Johan Jonker
The fdt_addr_t and phys_addr_t size have been decoupled. A 32bit CPU can expect 64-bit data from the device tree parser, so use devfdt_get_addr_ptr instead of the devfdt_get_addr function in the various files in the drivers directory that cast to a pointer. Signed-off-by: Johan Jonker

[PATCH v5 19/21] drivers: fix debug string with fdt_addr_t input

2023-02-28 Thread Johan Jonker
The fdt_addr_t and phys_addr_t size have been decoupled. A 32bit CPU can expect 64-bit data from the device tree parser, so fix some debug strings with fdt_addr_t to be able to handle both sizes. Signed-off-by: Johan Jonker --- Changed V5: new patch --- arch/arm/mach-mvebu/cpu.c | 2

[PATCH v5 20/21] arm: stm32mp: spl: fix function with fdt_addr_t input

2023-02-28 Thread Johan Jonker
The fdt_addr_t and phys_addr_t size have been decoupled. A 32bit CPU can expect 64-bit data from the device tree parser, so fix ofnode_get_addr_size function with fdt_addr_t input to be able to handle both sizes for stm32mp SoC in spl.c file. Signed-off-by: Johan Jonker --- arch/arm/mach

[PATCH v5 21/21] include: fdtdec: decouple fdt_addr_t and phys_addr_t size

2023-02-28 Thread Johan Jonker
with the wrong offset and sizes when only the lower 32-bit is passed. Decouple the fdt_addr_t and phys_addr_t size as they don't necessary match. Signed-off-by: Johan Jonker Reviewed-by: Simon Glass Reviewed-by: Kever Yang --- Note: Due to the large number of references to fdt_addr_t

[PATCH v6 00/22] Fixes for Rockchip NFC driver part 1

2023-03-02 Thread Johan Jonker
debug text fixes test with binman for ARM only due to limited resources Changed V4: fix cast and divider in syscon-uclass.c Changed V3: use dev_read_addr_ptr fix oobfree TODO: Time consuming binman test for other SoC types then ARM. Help with testing appreciated. Johan Jonker (21): mtd

[PATCH v6 01/22] mtd: nand: raw: rockchip_nfc: use dev_read_addr_ptr

2023-03-02 Thread Johan Jonker
The fdt_addr_t and phys_addr_t size have been decoupled. A 32bit CPU can expext 64-bit data from the device tree parser, so use dev_read_addr_ptr in the rockchip_nfc.c file. Signed-off-by: Johan Jonker Reviewed-by: Michael Trimarchi --- Changed V6: use -EINVAL on return --- drivers/mtd/nand

[PATCH v6 02/22] mtd: nand: raw: rockchip_nfc: remove the compatible string "rockchip,rk3308-nfc"

2023-03-02 Thread Johan Jonker
The compatible string for rk3308 has as fallback string "rockchip,rv1108-nfc". As there is no logic in probe priority between the SoC orientated string and the fall back, so remove the compatible string "rockchip,rk3308-nfc" from the driver. Signed-off-by: Johan Jonker Rev

[PATCH v6 03/22] mtd: nand: raw: rockchip_nfc: add layout structure

2023-03-02 Thread Johan Jonker
The MTD framework in U-boot is not identical for drivers ported from Linux. The rockchip_nfc driver was ported with OOB ops functions while the framework expects a layout structure per chip. Fix by adding a structure with OOB data and remove unused functions. Signed-off-by: Johan Jonker Reviewed

[PATCH v6 04/22] mtd: nand: raw: rockchip_nfc: add flash_node to chip structure

2023-03-02 Thread Johan Jonker
Add flash_node to the rockchip_nfc driver chip structure in order to find the partitions in the add_mtd_partitions_of() function. Signed-off-by: Johan Jonker Reviewed-by: Kever Yang Reviewed-by: Michael Trimarchi --- drivers/mtd/nand/raw/rockchip_nfc.c | 1 + 1 file changed, 1 insertion

[PATCH v6 05/22] mtd: nand: raw: rockchip_nfc: fix oobfree offset and description

2023-03-02 Thread Johan Jonker
positions before ECC. Update the description for U-boot. Signed-off-by: Johan Jonker Reviewed-by: Kever Yang --- drivers/mtd/nand/raw/rockchip_nfc.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/mtd/nand/raw/rockchip_nfc.c b/drivers/mtd/nand/raw

[PATCH v6 06/22] mtd: nand: add support for the Sandisk SDTNQGAMA chip

2023-03-02 Thread Johan Jonker
Sandisk SDTNQGAMA is a 8GB size, 3.3V 8 bit chip with 16KB page size, 1KB write size and 40 bit ecc support Signed-off-by: Paweł Jarosz Signed-off-by: Johan Jonker Reviewed-by: Kever Yang --- drivers/mtd/nand/raw/nand_ids.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/mtd

[PATCH v6 07/22] rockchip: adc: rockchip-saradc: use dev_read_addr_ptr

2023-03-02 Thread Johan Jonker
The fdt_addr_t and phys_addr_t size have been decoupled. A 32bit CPU can expext 64-bit data from the device tree parser, so use dev_read_addr_ptr in the rockchip-saradc.c file. Signed-off-by: Johan Jonker Reviewed-by: Kever Yang --- Changed V6: use -EINVAL on return drop cast --- drivers

[PATCH v6 08/22] rockchip: timer: dw-apb-timer: use reg variable with phys_addr_t size

2023-03-02 Thread Johan Jonker
The fdt_addr_t and phys_addr_t size have been decoupled. A 32bit CPU can expect 64-bit data from the device tree parser, so use a reg variable with phys_addr_t size in the dw-apb-timer.c file. Signed-off-by: Johan Jonker --- Changed V6: remove cast change title --- drivers/timer/dw-apb

[PATCH v6 09/22] rockchip: pwm: rk_pwm: use reg variable with phys_addr_t size

2023-03-02 Thread Johan Jonker
The fdt_addr_t and phys_addr_t size have been decoupled. A 32bit CPU can expect 64-bit data from the device tree parser, so use a reg variable with phys_addr_t size in the rk_pwm.c file. Signed-off-by: Johan Jonker --- Changed V6: new patch --- drivers/pwm/rk_pwm.c | 2 +- 1 file changed, 1

[PATCH v6 10/22] include: dm: ofnode: fix headers

2023-03-02 Thread Johan Jonker
When fdt_addr_t and phys_addr_t are split it turns out that the header don't match the functions, so fix the headers. Signed-off-by: Johan Jonker Reviewed-by: Simon Glass Reviewed-by: Kever Yang --- include/dm/ofnode.h | 16 1 file changed, 8 insertions(+), 8 dele

[PATCH v6 11/22] core: remap: convert regmap_init_mem_plat() input to phys_addr_t

2023-03-02 Thread Johan Jonker
ARRAY_SIZE divider. Signed-off-by: Johan Jonker Reviewed-by: Kever Yang --- drivers/core/regmap.c | 2 +- drivers/core/syscon-uclass.c| 4 ++-- drivers/ram/rockchip/sdram_rk3066.c | 2 +- drivers/ram/rockchip/sdram_rk3188.c | 2 +- drivers/ram/rockchip/sdram_rk322x.c | 2

[PATCH v6 12/22] core: fdtaddr: add devfdt_get_addr_size_index_ptr function

2023-03-02 Thread Johan Jonker
Add devfdt_get_addr_size_index_ptr function with the same functionality as devfdt_get_addr_size_index, but instead a return pointer is given. Suggested-by: Michael Nazzareno Trimarchi Signed-off-by: Johan Jonker Reviewed-by: Michael Trimarchi --- Changed V5: fix spelling use tabs

[PATCH v6 13/22] core: read: add dev_read_addr_index_ptr function

2023-03-02 Thread Johan Jonker
Add dev_read_addr_index_ptr function with the same functionality as dev_read_addr_index, but instead a return pointer is given. Use map_sysmem() function as cast for the return. Make same fix for dev_read_addr_ptr() function. Signed-off-by: Johan Jonker --- Changed V6: use map_sysmem

[PATCH v6 14/22] spi: spi-aspeed-smc: use devfdt_get_addr_index_ptr

2023-03-02 Thread Johan Jonker
: Johan Jonker Reviewed-by: Michael Trimarchi --- Changed V6: use -EINVAL on return --- drivers/spi/spi-aspeed-smc.c | 17 - 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/drivers/spi/spi-aspeed-smc.c b/drivers/spi/spi-aspeed-smc.c index 4b6ea9f8..39620310 100644 --- a

[PATCH v6 15/22] drivers: use dev_read_addr_index_ptr when cast to pointer

2023-03-02 Thread Johan Jonker
The fdt_addr_t and phys_addr_t size have been decoupled. A 32bit CPU can expect 64-bit data from the device tree parser, so use dev_read_addr_index_ptr instead of the dev_read_addr_index function in the various files in the drivers directory that cast to a pointer. Signed-off-by: Johan Jonker

[PATCH v6 16/22] drivers: use dev_read_addr_ptr when cast to pointer

2023-03-02 Thread Johan Jonker
The fdt_addr_t and phys_addr_t size have been decoupled. A 32bit CPU can expect 64-bit data from the device tree parser, so use dev_read_addr_ptr instead of the dev_read_addr function in the various files in the drivers directory that cast to a pointer. Signed-off-by: Johan Jonker Reviewed-by

[PATCH v6 17/22] drivers: use devfdt_get_addr_size_index_ptr when cast to pointer

2023-03-02 Thread Johan Jonker
: Johan Jonker Reviewed-by: Michael Trimarchi --- drivers/pci/pcie_dw_mvebu.c | 6 +++--- drivers/spi/cadence_qspi.c | 3 +-- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/drivers/pci/pcie_dw_mvebu.c b/drivers/pci/pcie_dw_mvebu.c index a0b82c78..3b2ada54 100644 --- a/drivers/pci

[PATCH v6 18/22] drivers: use devfdt_get_addr_index_ptr when cast to pointer

2023-03-02 Thread Johan Jonker
The fdt_addr_t and phys_addr_t size have been decoupled. A 32bit CPU can expect 64-bit data from the device tree parser, so use devfdt_get_addr_index_ptr instead of the devfdt_get_addr_index function in the various files in the drivers directory that cast to a pointer. Signed-off-by: Johan Jonker

[PATCH v6 19/22] drivers: use devfdt_get_addr_ptr when cast to pointer

2023-03-02 Thread Johan Jonker
The fdt_addr_t and phys_addr_t size have been decoupled. A 32bit CPU can expect 64-bit data from the device tree parser, so use devfdt_get_addr_ptr instead of the devfdt_get_addr function in the various files in the drivers directory that cast to a pointer. Signed-off-by: Johan Jonker Reviewed

[PATCH v6 20/22] drivers: fix debug string with fdt_addr_t input

2023-03-02 Thread Johan Jonker
The fdt_addr_t and phys_addr_t size have been decoupled. A 32bit CPU can expect 64-bit data from the device tree parser, so fix some debug strings with fdt_addr_t to be able to handle both sizes. Signed-off-by: Johan Jonker Reviewed-by: Simon Glass --- Changed V5: new patch --- arch/arm

[PATCH v6 21/22] arm: stm32mp: spl: fix function with fdt_addr_t input

2023-03-02 Thread Johan Jonker
The fdt_addr_t and phys_addr_t size have been decoupled. A 32bit CPU can expect 64-bit data from the device tree parser, so fix ofnode_get_addr_size function with fdt_addr_t input to be able to handle both sizes for stm32mp SoC in spl.c file. Signed-off-by: Johan Jonker --- arch/arm/mach

[PATCH v6 22/22] include: fdtdec: decouple fdt_addr_t and phys_addr_t size

2023-03-02 Thread Johan Jonker
with the wrong offset and sizes when only the lower 32-bit is passed. Decouple the fdt_addr_t and phys_addr_t size as they don't necessary match. Signed-off-by: Johan Jonker Reviewed-by: Simon Glass Reviewed-by: Kever Yang --- Note: Due to the large number of references to fdt_addr_t

Re: [PATCH v6 15/22] drivers: use dev_read_addr_index_ptr when cast to pointer

2023-03-06 Thread Johan Jonker
On 3/6/23 19:20, Simon Glass wrote: > Hi Johan, > > On Thu, 2 Mar 2023 at 17:15, Johan Jonker wrote: >> >> The fdt_addr_t and phys_addr_t size have been decoupled. A 32bit CPU >> can expect 64-bit data from the device tree parser, so use > > Why is th

Re: [PATCH v6 12/22] core: fdtaddr: add devfdt_get_addr_size_index_ptr function

2023-03-06 Thread Johan Jonker
On 3/6/23 18:53, Simon Glass wrote: > Hi Johan, > > On Thu, 2 Mar 2023 at 17:15, Johan Jonker wrote: >> >> Add devfdt_get_addr_size_index_ptr function with the same >> functionality as devfdt_get_addr_size_index, but instead >> a return pointer is given. >

[PATCH v1 1/2] rockchip: timer: rockchip_timer: fix compatible and driver name

2023-03-07 Thread Johan Jonker
In the binding for the Rockchip timer the compatible string consists of a SoC orientated string and a fall back string "rockchip,rk3288-timer", so remove all unneeded ones and fix driver name. Signed-off-by: Johan Jonker --- drivers/timer/rockchip_timer.c | 8 +++- 1 file

[PATCH v1 2/2] arm: dts: rockchip: rk3188-radxarock-u-boot: remove timer compatible replacement

2023-03-07 Thread Johan Jonker
The Rockchip timer driver has been renamed after the fall back compatible. There's no need to replace the timer compatible in rk3188-radxarock-u-boot.dtsi anymore, so remove. Signed-off-by: Johan Jonker --- arch/arm/dts/rk3188-radxarock-u-boot.dtsi | 1 - 1 file changed, 1 deletion(-)

Re: [PATCH v6 11/22] core: remap: convert regmap_init_mem_plat() input to phys_addr_t

2023-03-08 Thread Johan Jonker
On 3/3/23 01:14, Johan Jonker wrote: > The fdt_addr_t and phys_addr_t size have been decoupled. > A 32bit CPU can expect 64-bit data from the device tree parser, > so convert regmap_init_mem_plat() input to phys_addr_t in files > that use this function. Also correct struct sysc

[PATCH v7 00/23] Fixes for Rockchip NFC driver part 1

2023-03-10 Thread Johan Jonker
dev_read_addr_ptr fix oobfree Johan Jonker (22): mtd: nand: raw: rockchip_nfc: use dev_read_addr_ptr mtd: nand: raw: rockchip_nfc: remove the compatible string "rockchip,rk3308-nfc" mtd: nand: raw: rockchip_nfc: add layout structure mtd: nand: raw: rockchip_nfc: add flash_node to chip

[PATCH v7 01/23] mtd: nand: raw: rockchip_nfc: use dev_read_addr_ptr

2023-03-10 Thread Johan Jonker
The fdt_addr_t and phys_addr_t size have been decoupled. A 32bit CPU can expext 64-bit data from the device tree parser, so use dev_read_addr_ptr in the rockchip_nfc.c file. Signed-off-by: Johan Jonker Reviewed-by: Michael Trimarchi --- Changed V6: use -EINVAL on return --- drivers/mtd/nand

[PATCH v7 02/23] mtd: nand: raw: rockchip_nfc: remove the compatible string "rockchip,rk3308-nfc"

2023-03-10 Thread Johan Jonker
The compatible string for rk3308 has as fallback string "rockchip,rv1108-nfc". As there is no logic in probe priority between the SoC orientated string and the fall back, so remove the compatible string "rockchip,rk3308-nfc" from the driver. Signed-off-by: Johan Jonker Rev

[PATCH v7 03/23] mtd: nand: raw: rockchip_nfc: add layout structure

2023-03-10 Thread Johan Jonker
The MTD framework in U-boot is not identical for drivers ported from Linux. The rockchip_nfc driver was ported with OOB ops functions while the framework expects a layout structure per chip. Fix by adding a structure with OOB data and remove unused functions. Signed-off-by: Johan Jonker Reviewed

[PATCH v7 04/23] mtd: nand: raw: rockchip_nfc: add flash_node to chip structure

2023-03-10 Thread Johan Jonker
Add flash_node to the rockchip_nfc driver chip structure in order to find the partitions in the add_mtd_partitions_of() function. Signed-off-by: Johan Jonker Reviewed-by: Kever Yang Reviewed-by: Michael Trimarchi --- drivers/mtd/nand/raw/rockchip_nfc.c | 1 + 1 file changed, 1 insertion

[PATCH v7 05/23] mtd: nand: raw: rockchip_nfc: fix oobfree offset and description

2023-03-10 Thread Johan Jonker
positions before ECC. Update the description for U-boot. Signed-off-by: Johan Jonker Reviewed-by: Kever Yang --- drivers/mtd/nand/raw/rockchip_nfc.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/mtd/nand/raw/rockchip_nfc.c b/drivers/mtd/nand/raw

[PATCH v7 06/23] mtd: nand: add support for the Sandisk SDTNQGAMA chip

2023-03-10 Thread Johan Jonker
Sandisk SDTNQGAMA is a 8GB size, 3.3V 8 bit chip with 16KB page size, 1KB write size and 40 bit ecc support Signed-off-by: Paweł Jarosz Signed-off-by: Johan Jonker Reviewed-by: Kever Yang Acked-by: Michael Trimarchi --- drivers/mtd/nand/raw/nand_ids.c | 3 +++ 1 file changed, 3 insertions

[PATCH v7 07/23] rockchip: adc: rockchip-saradc: use dev_read_addr_ptr

2023-03-10 Thread Johan Jonker
The fdt_addr_t and phys_addr_t size have been decoupled. A 32bit CPU can expext 64-bit data from the device tree parser, so use dev_read_addr_ptr in the rockchip-saradc.c file. Signed-off-by: Johan Jonker Reviewed-by: Kever Yang --- Changed V6: use -EINVAL on return drop cast --- drivers

[PATCH v7 08/23] rockchip: timer: dw-apb-timer: use reg variable with phys_addr_t size

2023-03-10 Thread Johan Jonker
The fdt_addr_t and phys_addr_t size have been decoupled. A 32bit CPU can expect 64-bit data from the device tree parser, so use a reg variable with phys_addr_t size in the dw-apb-timer.c file. Signed-off-by: Johan Jonker --- Changed V6: remove cast change title --- drivers/timer/dw-apb

[PATCH v7 09/23] rockchip: pwm: rk_pwm: use reg variable with phys_addr_t size

2023-03-10 Thread Johan Jonker
The fdt_addr_t and phys_addr_t size have been decoupled. A 32bit CPU can expect 64-bit data from the device tree parser, so use a reg variable with phys_addr_t size in the rk_pwm.c file. Signed-off-by: Johan Jonker --- Changed V6: new patch --- drivers/pwm/rk_pwm.c | 2 +- 1 file changed, 1

[PATCH v7 10/23] include: dm: ofnode: fix headers

2023-03-10 Thread Johan Jonker
When fdt_addr_t and phys_addr_t are split it turns out that the header don't match the functions, so fix the headers. Signed-off-by: Johan Jonker Reviewed-by: Simon Glass Reviewed-by: Kever Yang --- include/dm/ofnode.h | 16 1 file changed, 8 insertions(+), 8 dele

[PATCH v7 11/23] core: remap: fix regmap_init_mem_plat() reg size handeling

2023-03-10 Thread Johan Jonker
the device-specific platform data. In case of odd reg structures other then that the syscon class driver assumes the regmap must be filled in the individual syscon driver before pre-probe. Also fix the ARRAY_SIZE divider in the syscon class driver. Signed-off-by: Johan Jonker --- Changed V7

[PATCH v7 12/23] rockchip: rk3288: syscon_rk3288: store syscon platdata in regmap

2023-03-10 Thread Johan Jonker
rk3288 platdata in a regmap before pre-probe during bind. Signed-off-by: Johan Jonker --- Note: Proof of concept not tested with rk3288 hardware, but with rk3066. Changed V7: new patch --- arch/arm/mach-rockchip/rk3288/syscon_rk3288.c | 121 ++ 1 file changed, 121 insertions

[PATCH v7 13/23] core: fdtaddr: add devfdt_get_addr_size_index_ptr function

2023-03-10 Thread Johan Jonker
-off-by: Johan Jonker Reviewed-by: Michael Trimarchi --- Changed V7: use map_sysmem() Changed V5: fix spelling use tabs --- drivers/core/fdtaddr.c | 17 - include/dm/fdtaddr.h | 17 - 2 files changed, 32 insertions(+), 2 deletions(-) diff --git a/drivers

[PATCH v7 14/23] core: read: add dev_read_addr_index_ptr function

2023-03-10 Thread Johan Jonker
Add dev_read_addr_index_ptr function with the same functionality as dev_read_addr_index, but instead a return pointer is given. Use map_sysmem() function as cast for the return. Make same fix for dev_read_addr_ptr() function. Signed-off-by: Johan Jonker Reviewed-by: Simon Glass --- Changed V6

[PATCH v7 15/23] spi: spi-aspeed-smc: use devfdt_get_addr_index_ptr

2023-03-10 Thread Johan Jonker
: Johan Jonker Reviewed-by: Michael Trimarchi --- Changed V6: use -EINVAL on return --- drivers/spi/spi-aspeed-smc.c | 17 - 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/drivers/spi/spi-aspeed-smc.c b/drivers/spi/spi-aspeed-smc.c index 4b6ea9f8..39620310 100644 --- a

[PATCH v7 16/23] drivers: use dev_read_addr_index_ptr when cast to pointer

2023-03-10 Thread Johan Jonker
The fdt_addr_t and phys_addr_t size have been decoupled. A 32bit CPU can expect 64-bit data from the device tree parser, so use dev_read_addr_index_ptr instead of the dev_read_addr_index function in the various files in the drivers directory that cast to a pointer. Signed-off-by: Johan Jonker

[PATCH v7 17/23] drivers: use dev_read_addr_ptr when cast to pointer

2023-03-10 Thread Johan Jonker
The fdt_addr_t and phys_addr_t size have been decoupled. A 32bit CPU can expect 64-bit data from the device tree parser, so use dev_read_addr_ptr instead of the dev_read_addr function in the various files in the drivers directory that cast to a pointer. Signed-off-by: Johan Jonker Reviewed-by

[PATCH v7 18/23] drivers: use devfdt_get_addr_size_index_ptr when cast to pointer

2023-03-10 Thread Johan Jonker
: Johan Jonker Reviewed-by: Michael Trimarchi Reviewed-by: Simon Glass --- drivers/pci/pcie_dw_mvebu.c | 6 +++--- drivers/spi/cadence_qspi.c | 3 +-- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/drivers/pci/pcie_dw_mvebu.c b/drivers/pci/pcie_dw_mvebu.c index a0b82c78..3b2ada54

[PATCH v7 19/23] drivers: use devfdt_get_addr_index_ptr when cast to pointer

2023-03-10 Thread Johan Jonker
The fdt_addr_t and phys_addr_t size have been decoupled. A 32bit CPU can expect 64-bit data from the device tree parser, so use devfdt_get_addr_index_ptr instead of the devfdt_get_addr_index function in the various files in the drivers directory that cast to a pointer. Signed-off-by: Johan Jonker

[PATCH v7 20/23] drivers: use devfdt_get_addr_ptr when cast to pointer

2023-03-10 Thread Johan Jonker
The fdt_addr_t and phys_addr_t size have been decoupled. A 32bit CPU can expect 64-bit data from the device tree parser, so use devfdt_get_addr_ptr instead of the devfdt_get_addr function in the various files in the drivers directory that cast to a pointer. Signed-off-by: Johan Jonker Reviewed

[PATCH v7 21/23] drivers: fix debug string with fdt_addr_t input

2023-03-10 Thread Johan Jonker
The fdt_addr_t and phys_addr_t size have been decoupled. A 32bit CPU can expect 64-bit data from the device tree parser, so fix some debug strings with fdt_addr_t to be able to handle both sizes. Signed-off-by: Johan Jonker Reviewed-by: Simon Glass --- Changed V5: new patch --- arch/arm

[PATCH v7 22/23] arm: stm32mp: spl: fix function with fdt_addr_t input

2023-03-10 Thread Johan Jonker
The fdt_addr_t and phys_addr_t size have been decoupled. A 32bit CPU can expect 64-bit data from the device tree parser, so fix ofnode_get_addr_size function with fdt_addr_t input to be able to handle both sizes for stm32mp SoC in spl.c file. Signed-off-by: Johan Jonker --- Changed V7: remove

[PATCH v7 23/23] include: fdtdec: decouple fdt_addr_t and phys_addr_t size

2023-03-10 Thread Johan Jonker
with the wrong offset and sizes when only the lower 32-bit is passed. Decouple the fdt_addr_t and phys_addr_t size as they don't necessary match. Signed-off-by: Johan Jonker Reviewed-by: Simon Glass Reviewed-by: Kever Yang --- Note: Due to the large number of references to fdt_addr_t

[RESEND PATCH v7 09/23] rockchip: pwm: rk_pwm: use reg variable with phys_addr_t size

2023-03-10 Thread Johan Jonker
The fdt_addr_t and phys_addr_t size have been decoupled. A 32bit CPU can expect 64-bit data from the device tree parser, so use a reg variable with phys_addr_t size in the rk_pwm.c file. Signed-off-by: Johan Jonker --- Changed V6: new patch --- drivers/pwm/rk_pwm.c | 2 +- 1 file changed, 1

Re: [PATCH v7 11/23] core: remap: fix regmap_init_mem_plat() reg size handeling

2023-03-12 Thread Johan Jonker
On 3/11/23 02:37, Simon Glass wrote: > Hi Johan, > > On Fri, 10 Mar 2023 at 08:42, Johan Jonker wrote: >> >> The fdt_addr_t and phys_addr_t size have been decoupled. >> A 32bit CPU can expect 64-bit data from the device tree parser, > > Sorry if you already

[PATCH v8 00/24] Fixes for Rockchip NFC driver part 1

2023-03-12 Thread Johan Jonker
limited resources Changed V4: fix cast and divider in syscon-uclass.c Changed V3: use dev_read_addr_ptr fix oobfree Johan Jonker (23): mtd: nand: raw: rockchip_nfc: use dev_read_addr_ptr mtd: nand: raw: rockchip_nfc: remove the compatible string "rockchip,rk3308-nfc" mtd:

[PATCH v8 01/24] mtd: nand: raw: rockchip_nfc: use dev_read_addr_ptr

2023-03-12 Thread Johan Jonker
The fdt_addr_t and phys_addr_t size have been decoupled. A 32bit CPU can expext 64-bit data from the device tree parser, so use dev_read_addr_ptr in the rockchip_nfc.c file. Signed-off-by: Johan Jonker Reviewed-by: Michael Trimarchi --- Changed V6: use -EINVAL on return --- drivers/mtd/nand

[PATCH v8 02/24] mtd: nand: raw: rockchip_nfc: remove the compatible string "rockchip,rk3308-nfc"

2023-03-12 Thread Johan Jonker
The compatible string for rk3308 has as fallback string "rockchip,rv1108-nfc". As there is no logic in probe priority between the SoC orientated string and the fall back, so remove the compatible string "rockchip,rk3308-nfc" from the driver. Signed-off-by: Johan Jonker Rev

[PATCH v8 03/24] mtd: nand: raw: rockchip_nfc: add layout structure

2023-03-12 Thread Johan Jonker
The MTD framework in U-boot is not identical for drivers ported from Linux. The rockchip_nfc driver was ported with OOB ops functions while the framework expects a layout structure per chip. Fix by adding a structure with OOB data and remove unused functions. Signed-off-by: Johan Jonker Reviewed

[PATCH v8 04/24] mtd: nand: raw: rockchip_nfc: add flash_node to chip structure

2023-03-12 Thread Johan Jonker
Add flash_node to the rockchip_nfc driver chip structure in order to find the partitions in the add_mtd_partitions_of() function. Signed-off-by: Johan Jonker Reviewed-by: Kever Yang Reviewed-by: Michael Trimarchi --- drivers/mtd/nand/raw/rockchip_nfc.c | 1 + 1 file changed, 1 insertion

[PATCH v8 05/24] mtd: nand: raw: rockchip_nfc: fix oobfree offset and description

2023-03-12 Thread Johan Jonker
positions before ECC. Update the description for U-boot. Signed-off-by: Johan Jonker Reviewed-by: Kever Yang --- drivers/mtd/nand/raw/rockchip_nfc.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/mtd/nand/raw/rockchip_nfc.c b/drivers/mtd/nand/raw

[PATCH v8 06/24] mtd: nand: add support for the Sandisk SDTNQGAMA chip

2023-03-12 Thread Johan Jonker
Sandisk SDTNQGAMA is a 8GB size, 3.3V 8 bit chip with 16KB page size, 1KB write size and 40 bit ecc support Signed-off-by: Paweł Jarosz Signed-off-by: Johan Jonker Reviewed-by: Kever Yang Acked-by: Michael Trimarchi --- drivers/mtd/nand/raw/nand_ids.c | 3 +++ 1 file changed, 3 insertions

[PATCH v8 07/24] rockchip: adc: rockchip-saradc: use dev_read_addr_ptr

2023-03-12 Thread Johan Jonker
The fdt_addr_t and phys_addr_t size have been decoupled. A 32bit CPU can expext 64-bit data from the device tree parser, so use dev_read_addr_ptr in the rockchip-saradc.c file. As we are there also streamline the error response to -EINVAL on return. Signed-off-by: Johan Jonker Reviewed-by: Kever

[PATCH v8 08/24] rockchip: timer: dw-apb-timer: use regs variable with uintptr_t size

2023-03-12 Thread Johan Jonker
The fdt_addr_t and phys_addr_t size have been decoupled. A 32bit CPU can expect 64-bit data from the device tree parser, so use a regs variable with uintptr_t size in the dw-apb-timer.c file. Signed-off-by: Johan Jonker --- Changed V8: use uintptr_t instead of phys_addr_t Changed V6

  1   2   3   4   5   6   >