[PATCH v8 10/15] rockchip: rk3066: add rk3066_common.h include

2022-01-17 Thread Johan Jonker
Add rk3066_common.h include. Signed-off-by: Johan Jonker --- include/configs/mk808.h | 9 ++ include/configs/rk3066_common.h | 56 + 2 files changed, 65 insertions(+) create mode 100644 include/configs/mk808.h create mode 100644 include/configs

[PATCH v8 12/15] rockchip: rk3066: add Rikomagic MK808 board

2022-01-17 Thread Johan Jonker
MK808 is a RK3066-based board with 1 USB host and 1 USB OTG port, HDMI and a micro-SD card slot. It also includes on-board NAND and 1GB of SDRAM. Signed-off-by: Johan Jonker --- arch/arm/mach-rockchip/rk3066/Kconfig | 9 + board/rikomagic/mk808/Kconfig | 15

[PATCH v8 14/15] rockchip: tools: add rk3066 support to rkcommon.c

2022-01-17 Thread Johan Jonker
Add rk3066 support to rkcommon.c Signed-off-by: Johan Jonker --- tools/rkcommon.c | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/rkcommon.c b/tools/rkcommon.c index 29f2676c..860785f8 100644 --- a/tools/rkcommon.c +++ b/tools/rkcommon.c @@ -123,6 +123,7 @@ struct spl_info { static

[PATCH v8 13/15] rockchip: rk3066: add mk808_defconfig

2022-01-17 Thread Johan Jonker
This commit adds the default configuration file and relevant description for a MK808 board. Signed-off-by: Johan Jonker --- Changed V8: use default log level ENV_IS_NOWHERE --- configs/mk808_defconfig | 99 + 1 file changed, 99 insertions(+) create

[PATCH v8 11/15] rockchip: rk3066: add core support

2022-01-17 Thread Johan Jonker
Add the core architecture code for the rk3066. Signed-off-by: Johan Jonker --- arch/arm/mach-rockchip/Kconfig| 23 arch/arm/mach-rockchip/Makefile | 1 + arch/arm/mach-rockchip/rk3066/Kconfig | 30 ++ arch/arm/mach-rockchip/rk3066/Makefile

[PATCH v8 15/15] doc: rockchip: add rk3066 Rikomagic MK808

2022-01-17 Thread Johan Jonker
Add rk3066 Rikomagic MK808 to the list of mainline supported Rockchip boards. Signed-off-by: Johan Jonker --- doc/board/rockchip/rockchip.rst | 2 ++ 1 file changed, 2 insertions(+) diff --git a/doc/board/rockchip/rockchip.rst b/doc/board/rockchip/rockchip.rst index 144cb98e..a4fca88b 100644

[PATCH v1 01/15] rockchip: rk3228-power: sync power domain dt-binding header from Linux

2022-02-06 Thread Johan Jonker
In order to update the DT for rk3228 sync the power domain dt-binding header. This is the state as of v5.17 in Linux. Signed-off-by: Johan Jonker --- include/dt-bindings/power/rk3228-power.h | 21 + 1 file changed, 21 insertions(+) create mode 100644 include/dt-bindings

[PATCH v1 02/15] rockchip: rk3228-cru: sync the clock dt-binding header from Linux

2022-02-06 Thread Johan Jonker
In order to update the DT for rk3228 sync the clock dt-binding header. This is the state as of v5.17 in Linux. Signed-off-by: Johan Jonker --- include/dt-bindings/clock/rk3228-cru.h | 54 +- 1 file changed, 52 insertions(+), 2 deletions(-) diff --git a/include/dt

[PATCH v1 04/15] arm: dts: rockchip: sync rk3229-evb.dts from Linux

2022-02-06 Thread Johan Jonker
Sync rk3229-evb.dts from Linux version 5.17 and add a rk3229-evb-u-boot.dtsi file for U-boot specific stuff. Signed-off-by: Johan Jonker --- arch/arm/dts/rk3229-evb-u-boot.dtsi | 28 arch/arm/dts/rk3229-evb.dts | 223 arch/arm/dts/rk3229.dtsi

[PATCH v1 05/15] rockchip: rk3288-power: sync power domain dt-binding header from Linux

2022-02-06 Thread Johan Jonker
In order to update the DT for rk3288 sync the power domain dt-binding header. This is the state as of v5.17 in Linux. Change location to be more in line with other SoCs. Signed-off-by: Johan Jonker --- include/dt-bindings/power-domain/rk3288.h | 11 include/dt-bindings/power/rk3288

[PATCH v1 06/15] rockchip: rk3288-cru: sync the clock dt-binding header from Linux

2022-02-06 Thread Johan Jonker
In order to update the DT for rk3288 sync the clock dt-binding header. This is the state as of v5.17 in Linux. Keep SCLK_MAC_PLL in use for rk3288 clock driver. Signed-off-by: Johan Jonker --- include/dt-bindings/clock/rk3288-cru.h | 13 - 1 file changed, 12 insertions(+), 1

[PATCH v1 03/15] arm: dts: rockchip: sync rk322x.dtsi from Linux

2022-02-06 Thread Johan Jonker
Sync rk322x.dtsi from Linux version 5.17 and add a rk322x-u-boot.dtsi file for U-boot specific stuff. Signed-off-by: Johan Jonker --- arch/arm/dts/rk322x-u-boot.dtsi | 54 ++ arch/arm/dts/rk322x.dtsi| 879 +--- 2 files changed, 746 insertions(+), 187

[PATCH v1 09/15] rockchip: fix boot_devices constants

2022-02-06 Thread Johan Jonker
The DT node name pattern in mmc-controller.yaml for mmc is "^mmc(@.*)?$". The Rockchip mmc nodes have been synced with Linux, so update the boot_devices constants as well. Signed-off-by: Johan Jonker --- arch/arm/mach-rockchip/rk3188/rk3188.c | 4 ++-- arch/arm/mach-rockchip/rk322x/rk

[PATCH v1 08/15] arm: dts: rockchip: move all rk3288 u-boot specific properties in separate dtsi files

2022-02-06 Thread Johan Jonker
In order to sync rk3288.dtsi from Linux it needed to move all u-boot specific properties in separate dtsi files. Signed-off-by: Johan Jonker --- arch/arm/dts/rk3288-evb-u-boot.dtsi | 11 + arch/arm/dts/rk3288-evb.dts | 11 - arch/arm/dts/rk3288-firefly-u

[PATCH v1 12/15] arm: dts: rockchip: remove hdmi_audio node from rk3288-veyron.dtsi

2022-02-06 Thread Johan Jonker
The hdmi_audio node doesn't exists in rk3288.dtsi in sync with Linux. Fix compile by removal of the hdmi_audio node. Signed-off-by: Johan Jonker --- arch/arm/dts/rk3288-veyron.dtsi | 4 1 file changed, 4 deletions(-) diff --git a/arch/arm/dts/rk3288-veyron.dtsi b/arch/arm/dts/r

[PATCH v1 07/15] arm: dts: rockchip: sync rk3288.dtsi from Linux

2022-02-06 Thread Johan Jonker
Sync rk3288.dtsi from Linux version 5.17 and move U-boot specific stuff to rk3288-u-boot.dtsi Signed-off-by: Johan Jonker --- arch/arm/dts/rk3288-thermal.dtsi | 87 -- arch/arm/dts/rk3288-u-boot.dtsi | 79 +- arch/arm/dts/rk3288.dtsi | 1521 +++--- 3 files

[PATCH v1 13/15] arm: dts: rockchip: move all rk3288-veyron u-boot related properties

2022-02-06 Thread Johan Jonker
In order to sync rk3288-veyron related DT files all u-boot properties have to move to rk3288-veyron-u-boot.dtsi Signed-off-by: Johan Jonker --- arch/arm/dts/rk3288-veyron-u-boot.dtsi | 42 ++ arch/arm/dts/rk3288-veyron.dtsi| 19 2 files changed, 42

[PATCH v1 11/15] arm: dts: rockchip: rename mipi_dsi label in rk3288-evb.dtsi

2022-02-06 Thread Johan Jonker
The rk3288 mipi_dsi node in sync with Linux rk3288.dtsi has a different label then in use by rk3288-evb.dtsi, so fix compile and rename label. Signed-off-by: Johan Jonker --- arch/arm/dts/rk3288-evb.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/dts/rk3288

[PATCH v1 10/15] arm: dts: rockchip: sync rk3288 DT boards from Linux

2022-02-06 Thread Johan Jonker
Sync rk3288 DT boards that have support both in Linux 5.17 as in U-boot. Signed-off-by: Johan Jonker --- arch/arm/dts/rk3288-firefly.dts | 17 +- arch/arm/dts/rk3288-firefly.dtsi | 163 ++-- arch/arm/dts/rk3288-miqi.dts | 431 - arch/arm/dts/rk3288

[PATCH v1 15/15] arm: dts: rockchip: rk3288-evb: fix memory reg value

2022-02-06 Thread Johan Jonker
rk3288.dtsi is updated and changed it's reg size, so fix memory reg value. Signed-off-by: Johan Jonker --- arch/arm/dts/rk3288-evb.dtsi | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/arch/arm/dts/rk3288-evb.dtsi b/arch/arm/dts/rk3288-evb.dtsi index 72da8847..7e9

[PATCH v1 14/15] arm: dts: rockchip: sync rk3288-veyron DT from Linux

2022-02-06 Thread Johan Jonker
Sync rk3288-veyron DT from Linux version 5.17. Signed-off-by: Johan Jonker --- arch/arm/dts/rk3288-veyron-analog-audio.dtsi | 99 +++ .../dts/rk3288-veyron-broadcom-bluetooth.dtsi | 22 + arch/arm/dts/rk3288-veyron-chromebook.dtsi| 115 ++-- arch/arm/dts/rk3288-veyron-edp.dtsi

Re: [PATCH v8 13/24] rockchip: rk3288: syscon_rk3288: store syscon platdata in regmap

2023-03-13 Thread Johan Jonker
On 3/13/23 18:46, John Keeping wrote: > On Mon, Mar 13, 2023 at 05:53:20PM +0100, Johan Jonker wrote: >> On 3/13/23 14:26, John Keeping wrote: >>> On Mon, Mar 13, 2023 at 01:30:57AM +0100, Johan Jonker wrote: >>>> The Rockchip SoC rk3288 has 2 types of device trees

[PATCH v1 1/7] arm: dts: rockchip: rk3288: move io-domains nodes

2023-03-14 Thread Johan Jonker
In order to better compare the Linux rk3288.dtsi version with the u-boot version move the io-domains nodes. Signed-off-by: Johan Jonker --- arch/arm/dts/rk3288-miqi.dtsi| 27 +++-- arch/arm/dts/rk3288-phycore-som.dtsi | 30 +--- arch/arm/dts

[PATCH v1 2/7] arm: dts: rockchip: rk3288: partial sync grf and pmu nodes

2023-03-14 Thread Johan Jonker
In order to better compare the Linux rk3288.dtsi version 6.3 -rc2 with the u-boot version partial sync the grf and pmu nodes. Signed-off-by: Johan Jonker --- arch/arm/dts/rk3288.dtsi | 269 +-- 1 file changed, 173 insertions(+), 96 deletions(-) diff --git a

[PATCH v1 4/7] arm: dts: rockchip: rk3288: partial sync edp node

2023-03-14 Thread Johan Jonker
The rk3288 edp node has a phy node in Linux with a clock property while current U-boot driver expects this clock on position index 1. Move U-boot specific DT clock properties to rk3288-u-boot.dtsi and partially the sync edp node. Signed-off-by: Johan Jonker --- arch/arm/dts/rk3288-u-boot.dtsi

[PATCH v1 3/7] video: rockchip: rk_vop: add rk3288-dp compare string

2023-03-14 Thread Johan Jonker
In the current rk3288.dtsi file the compatible string for the DisplayPort(DP) node ends with "edp". The string in the binding ends with "dp" which conflicts with "cdn-dp" as a search term. Add "rk3288-dp" as compare string to select vop_id. Signed-off-by: J

[PATCH v1 5/7] arm: dts: rockchip: rk3288: partial sync vop/lvds/mipi/hdmi nodes

2023-03-14 Thread Johan Jonker
In order to better compare the Linux rk3288.dtsi version 6.3 -rc2 with the u-boot version partial sync the vop/lvds/mipi/hdmi nodes. Signed-off-by: Johan Jonker --- arch/arm/dts/rk3288.dtsi | 48 1 file changed, 24 insertions(+), 24 deletions(-) diff

[PATCH v1 6/7] clk: rockchip: clk_rk3288: add PCLK_RKPWM

2023-03-14 Thread Johan Jonker
The rk3288 pwm node synced from Linux make use of PCLK_RKPWM instead of PCLK_PWM. They have the same pclk_cpu parent, so add PCLK_RKPWM to rk3288_clk_get_rate(). Signed-off-by: Johan Jonker --- drivers/clk/rockchip/clk_rk3288.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/clk

[PATCH v1 7/7] arm: dts: rockchip: rk3288: partial sync pwm nodes

2023-03-14 Thread Johan Jonker
In order to better compare the Linux rk3288.dtsi version 6.3 -rc2 with the u-boot version partial sync the pwm nodes. Signed-off-by: Johan Jonker --- arch/arm/dts/rk3288.dtsi | 18 +- 1 file changed, 5 insertions(+), 13 deletions(-) diff --git a/arch/arm/dts/rk3288.dtsi b/arch

Re: [PATCH v1 7/7] arm: dts: rockchip: rk3288: partial sync pwm nodes

2023-03-15 Thread Johan Jonker
On 3/15/23 15:05, Simon Glass wrote: > Hi Johan, > > On Tue, 14 Mar 2023 at 12:16, Johan Jonker wrote: >> >> In order to better compare the Linux rk3288.dtsi >> version 6.3 -rc2 with the u-boot version partial >> sync the pwm nodes. >> >> Signed-

[PATCH v2 1/7] arm: dts: rockchip: rk3288: move io-domains nodes

2023-03-15 Thread Johan Jonker
In order to better compare the Linux rk3288.dtsi version with the U-Boot version move the io-domains nodes. Signed-off-by: Johan Jonker Reviewed-by: John Keeping Reviewed-by: Simon Glass Tested-by: Simon Glass # chromebook-jerry --- arch/arm/dts/rk3288-miqi.dtsi| 27

[PATCH v2 2/7] arm: dts: rockchip: rk3288: partial sync grf and pmu nodes

2023-03-15 Thread Johan Jonker
In order to better compare the Linux rk3288.dtsi version 6.3 -rc2 with the U-Boot version partial sync the grf and pmu nodes. Signed-off-by: Johan Jonker Reviewed-by: Simon Glass Tested-by: Simon Glass # chromebook-jerry --- arch/arm/dts/rk3288.dtsi | 269

[PATCH v2 3/7] video: rockchip: rk_vop: add rk3288-dp compare string

2023-03-15 Thread Johan Jonker
In the current rk3288.dtsi file the compatible string for the DisplayPort(DP) node ends with "edp". The string in the binding ends with "dp" which conflicts with "cdn-dp" as a search term. Add "rk3288-dp" as compare string to select vop_id. Signed-off-by

[PATCH v2 4/7] arm: dts: rockchip: rk3288: partial sync edp node

2023-03-15 Thread Johan Jonker
The rk3288 edp node has a phy node in Linux with a clock property while current U-Boot driver expects this clock on position index 1. Move U-Boot-specific DT clock properties to rk3288-u-boot.dtsi and partially sync the edp node. Signed-off-by: Johan Jonker Reviewed-by: Simon Glass Tested-by

[PATCH v2 5/7] arm: dts: rockchip: rk3288: partial sync vop/lvds/mipi/hdmi nodes

2023-03-15 Thread Johan Jonker
In order to better compare the Linux rk3288.dtsi version 6.3 -rc2 with the U-Boot version partial sync the vop/lvds/mipi/hdmi nodes. Signed-off-by: Johan Jonker Reviewed-by: Simon Glass Tested-by: Simon Glass # chromebook-jerry --- arch/arm/dts/rk3288.dtsi | 48

[PATCH v2 6/7] clk: rockchip: clk_rk3288: add PCLK_RKPWM

2023-03-15 Thread Johan Jonker
The rk3288 pwm nodes synced from Linux make use of PCLK_RKPWM instead of PCLK_PWM. They have the same pclk_cpu parent, so add PCLK_RKPWM to rk3288_clk_get_rate(). Signed-off-by: Johan Jonker Reviewed-by: Simon Glass Tested-by: Simon Glass # chromebook-jerry --- drivers/clk/rockchip

[PATCH v2 7/7] arm: dts: rockchip: rk3288: partial sync pwm nodes

2023-03-15 Thread Johan Jonker
In order to better compare the Linux rk3288.dtsi version 6.3 -rc2 with the U-Boot version partial sync the pwm nodes. Signed-off-by: Johan Jonker --- arch/arm/dts/rk3288.dtsi | 18 +- 1 file changed, 5 insertions(+), 13 deletions(-) diff --git a/arch/arm/dts/rk3288.dtsi b/arch

[PATCH v1 1/6] rockchip: gpio: rk_gpio: use ROCKCHIP_GPIOS_PER_BANK as divider

2023-03-16 Thread Johan Jonker
The current divider to calculate the bank ID can change. Use a constant ROCKCHIP_GPIOS_PER_BANK as fixed divider. Signed-off-by: Johan Jonker --- drivers/gpio/rk_gpio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpio/rk_gpio.c b/drivers/gpio/rk_gpio.c index

[PATCH v1 2/6] arm: dts: rockchip: rk3066a-u-boot: add gpio-ranges

2023-03-16 Thread Johan Jonker
The gpio node names are made generic, but without gpio bank ID. Add gpio-ranges to rk3066a-u-boot.dtsi for now till a better method is found. Signed-off-by: Johan Jonker --- arch/arm/dts/rk3066a-u-boot.dtsi | 25 + 1 file changed, 25 insertions(+) diff --git a/arch/arm

[PATCH v1 3/6] arm: dts: rockchip: rk3188-u-boot: add gpio-ranges

2023-03-16 Thread Johan Jonker
The gpio node names are made generic, but without gpio bank ID. Add gpio-ranges to rk3188-u-boot.dtsi for now till a better method is found. Signed-off-by: Johan Jonker --- arch/arm/dts/rk3188-u-boot.dtsi | 13 + 1 file changed, 13 insertions(+) diff --git a/arch/arm/dts/rk3188-u

[PATCH v1 4/6] arm: dts: rockchip: sync rk3066/rk3188 DT files from linux-next v6.2-rc4

2023-03-16 Thread Johan Jonker
Sync rk3066/rk3188 DT files from Linux. This is the state as of linux-next v6.2-rc4. New nfc node for MK808 rk3066a. CRU nodes now have a clock property. To prefend dtoc errors a fixed clock must also be included for tpl/spl in the rk3xxx-u-boot.dtsi file. Signed-off-by: Johan Jonker --- arch

[PATCH v1 5/6] rockchip: configs: mk808: change CONFIG_TPL_TEXT_BASE

2023-03-16 Thread Johan Jonker
Currently the Rockchip rk3066a u-boot-tpl.bin file needs to add the characters "RK30", while the other SoCs replace the first 4 bytes. Bring this in line with the rest by lowering CONFIG_TPL_TEXT_BASE and update rockchip.rst instructions. Signed-off-by: Johan Jonker Reviewed-by: S

[PATCH v1 6/6] rockchip: configs: mk808: enable usb support

2023-03-16 Thread Johan Jonker
Enable usb support in the mk808_defconfig. Signed-off-by: Johan Jonker --- configs/mk808_defconfig | 10 ++ 1 file changed, 10 insertions(+) diff --git a/configs/mk808_defconfig b/configs/mk808_defconfig index 548df9c5..3e9bdb14 100644 --- a/configs/mk808_defconfig +++ b/configs

Re: [PATCH v1 1/6] rockchip: gpio: rk_gpio: use ROCKCHIP_GPIOS_PER_BANK as divider

2023-03-19 Thread Johan Jonker
On 3/18/23 21:20, Simon Glass wrote: > Hi Johan, > > On Thu, 16 Mar 2023 at 10:46, Johan Jonker wrote: >> >> The current divider to calculate the bank ID can change. >> Use a constant ROCKCHIP_GPIOS_PER_BANK as fixed divider. > > What is the motivation

Re: [PATCH v1 1/6] rockchip: gpio: rk_gpio: use ROCKCHIP_GPIOS_PER_BANK as divider

2023-03-19 Thread Johan Jonker
On 3/19/23 13:20, Jonas Karlman wrote: > Hi Johan, > On 2023-03-19 12:34, Johan Jonker wrote: >> >> >> On 3/18/23 21:20, Simon Glass wrote: >>> Hi Johan, >>> >>> On Thu, 16 Mar 2023 at 10:46, Johan Jonker wrote: >>>> >>&

[PATCH v2 1/6] rockchip: gpio: rk_gpio: use ROCKCHIP_GPIOS_PER_BANK as divider

2023-03-19 Thread Johan Jonker
The current divider to calculate the bank ID can change. Given the Rockchip TRM not all gpio-banks have 32 pins per bank. The "gpio-ranges" syntax allows multiple items with variable number of pins. Use a constant ROCKCHIP_GPIOS_PER_BANK as fixed divider. Signed-off-by: Johan Jonker R

[PATCH v2 2/6] arm: dts: rockchip: rk3066a-u-boot: add gpio-ranges

2023-03-19 Thread Johan Jonker
The gpio node names are made generic, but without gpio bank ID. Add gpio-ranges to rk3066a-u-boot.dtsi for now till a better method is found. Disable gpio6 as the driver gives an error code on return as status. Signed-off-by: Johan Jonker Reviewed-by: Simon Glass --- Changed V2: disable

[PATCH v2 3/6] arm: dts: rockchip: rk3188-u-boot: add gpio-ranges

2023-03-19 Thread Johan Jonker
The gpio node names are made generic, but without gpio bank ID. Add gpio-ranges to rk3188-u-boot.dtsi for now till a better method is found. Signed-off-by: Johan Jonker Reviewed-by: Simon Glass --- arch/arm/dts/rk3188-u-boot.dtsi | 13 + 1 file changed, 13 insertions(+) diff --git

[PATCH v2 4/6] arm: dts: rockchip: sync rk3066/rk3188 DT files from linux-next v6.2-rc4

2023-03-19 Thread Johan Jonker
Sync rk3066/rk3188 DT files from Linux. This is the state as of linux-next v6.2-rc4. New nfc node for MK808 rk3066a. CRU nodes now have a clock property. To prefend dtoc errors a fixed clock must also be included for tpl/spl in the rk3xxx-u-boot.dtsi file. Signed-off-by: Johan Jonker Reviewed-by

[PATCH v2 5/6] rockchip: configs: mk808: change CONFIG_TPL_TEXT_BASE

2023-03-19 Thread Johan Jonker
Currently the Rockchip rk3066a u-boot-tpl.bin file needs to add the characters "RK30", while the other SoCs replace the first 4 bytes. Bring this in line with the rest by lowering CONFIG_TPL_TEXT_BASE and update rockchip.rst instructions. Signed-off-by: Johan Jonker Reviewed-by: S

[PATCH v2 6/6] rockchip: configs: mk808: enable usb support

2023-03-19 Thread Johan Jonker
Enable usb support in the mk808_defconfig. Signed-off-by: Johan Jonker Reviewed-by: Simon Glass --- configs/mk808_defconfig | 10 ++ 1 file changed, 10 insertions(+) diff --git a/configs/mk808_defconfig b/configs/mk808_defconfig index 5a264eb9..b7dcd163 100644 --- a/configs

Re: [PATCH v1 1/6] rockchip: gpio: rk_gpio: use ROCKCHIP_GPIOS_PER_BANK as divider

2023-03-20 Thread Johan Jonker
On 3/20/23 02:32, Kever Yang wrote: > Hi Johan, > > On 2023/3/19 19:34, Johan Jonker wrote: >> >> On 3/18/23 21:20, Simon Glass wrote: >>> Hi Johan, >>> >>> On Thu, 16 Mar 2023 at 10:46, Johan Jonker wrote: >>>> The current divi

[PATCH v1] mtd: nand: raw: rockchip_nfc: fix oobfree offset and description

2023-02-13 Thread Johan Jonker
positions before ECC. Update the description for U-boot. Signed-off-by: Johan Jonker --- Note: Merge after serie: [PATCH v2 00/10] Fixes for Rockchip NFC driver part 1 --- drivers/mtd/nand/raw/rockchip_nfc.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a

[PATCH v3 00/11] Fixes for Rockchip NFC driver part 1

2023-02-16 Thread Johan Jonker
flash_node pointer add missing chip ID Changed V3: use dev_read_addr_ptr fix oobfree Johan Jonker (10): include: fdtdec: decouple fdt_addr_t and phys_addr_t size include: dm: ofnode: fix headers core: remap: convert regmap_init_mem_plat() input to phys_addr_t rockchip: adc: rockchip

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

2023-02-16 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 --- Changed V2: reword --- Note: Most drivers still assume th

[PATCH v3 02/11] include: dm: ofnode: fix headers

2023-02-16 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 v3 03/11] core: remap: convert regmap_init_mem_plat() input to phys_addr_t

2023-02-16 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 regmap_init_mem_plat() input to phys_addr_t in files that use this function. Signed-off-by: Johan Jonker Reviewed-by: Kever Yang --- drivers/core/regmap.c

[PATCH v3 04/11] rockchip: adc: rockchip-saradc: use dev_read_addr_ptr

2023-02-16 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 --- drivers/adc/rockchip-saradc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions

[PATCH v3 05/11] rockchip: timer: dw-apb-timer: convert dev_read_addr output to phys_addr_t

2023-02-16 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 v3 06/11] mtd: nand: raw: rockchip_nfc: use dev_read_addr_ptr

2023-02-16 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 --- drivers/mtd/nand/raw/rockchip_nfc.c | 6 +++--- 1 file changed, 3 insertions(+), 3

[PATCH v3 07/11] mtd: nand: raw: rockchip_nfc: remove the compatible string "rockchip,rk3308-nfc"

2023-02-16 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 v3 08/11] mtd: nand: raw: rockchip_nfc: add layout structure

2023-02-16 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 v3 09/11] mtd: nand: raw: rockchip_nfc: add flash_node to chip structure

2023-02-16 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 v3 10/11] mtd: nand: add support for the Sandisk SDTNQGAMA chip

2023-02-16 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 v3 11/11] mtd: nand: raw: rockchip_nfc: fix oobfree offset and description

2023-02-16 Thread Johan Jonker
positions before ECC. Update the description for U-boot. Signed-off-by: Johan Jonker --- 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/rockchip_nfc.c index ca5e7313

Re: [PATCH v3 4/5] rockchip: mkimage: Update init size limit

2023-02-17 Thread Johan Jonker
Hi Jonas, On 2/17/23 21:52, Jonas Karlman wrote: > Sync init size limit from vendor u-boot: This sync might not be correct. Please recheck with each SoC or limit your change to the rk3328 SoC if prove fails. Could Kever disclose SoC details here? Johan > > px30: 12KiB (+2KiB) > rk3066: 32

Re: [PATCH v3 4/5] rockchip: mkimage: Update init size limit

2023-02-18 Thread Johan Jonker
On 2/18/23 05:43, Johan Jonker wrote: > Hi Jonas, > > On 2/17/23 21:52, Jonas Karlman wrote: >> Sync init size limit from vendor u-boot: > > This sync might not be correct. > Please recheck with each SoC or limit your change to the rk3328 SoC if prove > fails.

[PATCH v4 00/11] Fixes for Rockchip NFC driver part 1

2023-02-18 Thread Johan Jonker
flash_node pointer add missing chip ID Changed V4: fix cast and divider in syscon-uclass.c Changed V3: use dev_read_addr_ptr fix oobfree Johan Jonker (10): include: fdtdec: decouple fdt_addr_t and phys_addr_t size include: dm: ofnode: fix headers core: remap: convert

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

2023-02-18 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 --- Changed V2: reword --- Note: Most drivers still assume th

[PATCH v4 02/11] include: dm: ofnode: fix headers

2023-02-18 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 v4 03/11] core: remap: convert regmap_init_mem_plat() input to phys_addr_t

2023-02-18 Thread Johan Jonker
ARRAY_SIZE divider. Signed-off-by: Johan Jonker --- Changed V4: Fix cast and divider in syscon-uclass.c --- 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

[PATCH v4 04/11] rockchip: adc: rockchip-saradc: use dev_read_addr_ptr

2023-02-18 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 --- drivers/adc/rockchip-saradc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions

[PATCH v4 05/11] rockchip: timer: dw-apb-timer: convert dev_read_addr output to phys_addr_t

2023-02-18 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 v4 06/11] mtd: nand: raw: rockchip_nfc: use dev_read_addr_ptr

2023-02-18 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 v4 07/11] mtd: nand: raw: rockchip_nfc: remove the compatible string "rockchip,rk3308-nfc"

2023-02-18 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 v4 08/11] mtd: nand: raw: rockchip_nfc: add layout structure

2023-02-18 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 v4 09/11] mtd: nand: raw: rockchip_nfc: add flash_node to chip structure

2023-02-18 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 v4 10/11] mtd: nand: add support for the Sandisk SDTNQGAMA chip

2023-02-18 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 v4 11/11] mtd: nand: raw: rockchip_nfc: fix oobfree offset and description

2023-02-18 Thread Johan Jonker
positions before ECC. Update the description for U-boot. Signed-off-by: Johan Jonker --- 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/rockchip_nfc.c index ca5e7313

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

2023-02-22 Thread Johan Jonker
Hi Kever, Linus Walleij, Heiko, My Linux proposal has a little different logic (see below) and was "Acked-by", but the merge status is unknown. https://lore.kernel.org/linux-rockchip/890be9a0-8e82-a8f4-bc15-d5d159734...@gmail.com/ Could Linus/Heiko indicate if U-boot already can use this or are

[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
" fmt, \ > +include/dm/device_compat.h:95:25: note: in expansion of macro > 'dev_printk_emit' > +   95 |     dev_printk_emit(LOG_CATEGORY, level, \ > +cc1: all warnings being treated as errors > +make[3]: *** [scripts/Makefile.build:256: drivers/spi

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

<    1   2   3   4   5   6   >