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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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-
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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:
>>>>
>>&
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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.
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
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
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
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
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
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
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
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
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
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
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
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
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
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
" 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
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
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
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
: 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
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
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
: 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
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
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
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
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
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
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
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
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
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
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
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
101 - 200 of 562 matches
Mail list logo