Re: [U-Boot] [PATCH v2] rockchip: tinker: set ethaddr in late init

2017-04-21 Thread Jonas Karlman
Hi Simon, On 2017-04-20 23:04, Simon Glass wrote: > Hi Jonas, > > On 20 April 2017 at 12:23, Jonas Karlman <jo...@kwiboo.se> wrote: >> Set ethernet mac address in late init for Tinker Board, >> prevents getting a random mac address each boot. >> >> Read

[U-Boot] [PATCH v2] rockchip: tinker: set ethaddr in late init

2017-04-20 Thread Jonas Karlman
Set ethernet mac address in late init for Tinker Board, prevents getting a random mac address each boot. Read mac address from eeprom, first 6 bytes from m24c08@50. Same as /etc/init.d/rockchip.sh on Tinker OS. Signed-off-by: Jonas Karlman <jo...@kwiboo.se> --- Changes in v2: - Change

[U-Boot] [PATCH] rockchip: tinker: set ethaddr in late init

2017-04-18 Thread Jonas Karlman
Set ethernet mac address in late init for Tinker Board, prevents getting a random mac address each boot. Read mac address from eeprom, first 6 bytes from 0x50 on i2c2. Same as /etc/init.d/rockchip.sh on Tinker OS. Signed-off-by: Jonas Karlman <jo...@kwiboo.se> --- board/rockchip/tinker_

Re: [U-Boot] [PATCH] rockchip: tinker: set ethaddr in late init

2017-04-18 Thread Jonas Karlman
Hi Simon, On 2017-04-18 06:01, Simon Glass wrote: > Hi Jonas, > > On 17 April 2017 at 15:13, Jonas Karlman <jo...@kwiboo.se > <mailto:jo...@kwiboo.se>> wrote: > > Set ethernet mac address in late init for Tinker Board, > > prevents getting a random mac a

[U-Boot] [PATCH v3 2/2] rockchip: tinker: set ethaddr in late init

2017-04-22 Thread Jonas Karlman
Set ethernet mac address in late init for Tinker Board, prevents getting a random mac address each boot. Read mac address from eeprom, first 6 bytes from m24c08@50. Same as /etc/init.d/rockchip.sh on Tinker OS. Signed-off-by: Jonas Karlman <jo...@kwiboo.se> --- Changes in v3:

[U-Boot] [PATCH v3 1/2] i2c_eeprom: add read and write functions

2017-04-22 Thread Jonas Karlman
Signed-off-by: Jonas Karlman <jo...@kwiboo.se> --- Changes in v3: - Add i2c_eeprom_{read,write} functions Changes in v2: None drivers/misc/i2c_eeprom.c | 32 ++-- include/i2c_eeprom.h | 24 2 files changed, 50 insertions(+), 6 del

[U-Boot] [PATCH v3 0/2] rockchip: tinker: set ethaddr in late init

2017-04-22 Thread Jonas Karlman
() to find eeprom - Use i2c_eeprom_read() to read eeprom Changes in v2: - Change to use i2c_eeprom device driver Jonas Karlman (2): i2c_eeprom: add read and write functions rockchip: tinker: set ethaddr in late init arch/arm/dts/rk3288-tinker.dts | 7 ++ board/rockchip

[PATCH 1/3] rockchip: efuse: add support for RK3288 non-secure efuse

2020-10-14 Thread Jonas Karlman
From: Francis Fan Extend rockchip efuse driver with support for RK3288 non-secure efuse. Signed-off-by: Francis Fan Signed-off-by: Cody Xie Signed-off-by: Jonas Karlman --- drivers/misc/rockchip-efuse.c | 91 +-- 1 file changed, 87 insertions(+), 4 deletions

[PATCH 3/3] rockchip: dts: rk3288: enable efuse node

2020-10-14 Thread Jonas Karlman
Enable efuse node so that boards can use cpu id in efuse as a source for serial# and ethaddr. Signed-off-by: Jonas Karlman --- arch/arm/dts/rk3288.dtsi | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/arch/arm/dts/rk3288.dtsi b/arch/arm/dts/rk3288.dtsi index 22bb06cec5

[PATCH 0/3] rockchip: efuse: add RK3288/RK3328 support

2020-10-14 Thread Jonas Karlman
CONFIG_MISC_INIT_R=y CONFIG_ROCKCHIP_EFUSE=y CONFIG_SHA256=y Best regards, Jonas Francis Fan (1): rockchip: efuse: add support for RK3288 non-secure efuse Jonas Karlman (1): rockchip: dts: rk3288: enable efuse node Joseph Chen (1): rockchip: efuse: add support for RK3328 non-secure efuse

[PATCH 2/3] rockchip: efuse: add support for RK3328 non-secure efuse

2020-10-14 Thread Jonas Karlman
From: Joseph Chen Extend rockchip efuse driver with support for RK3328 non-secure efuse. Signed-off-by: Joseph Chen Signed-off-by: Jonas Karlman --- drivers/misc/rockchip-efuse.c | 67 +++ 1 file changed, 67 insertions(+) diff --git a/drivers/misc/rockchip

Re: [PATCH v5 05/11] spl: Convert mmc to spl_load

2023-09-03 Thread Jonas Karlman
On 2023-08-03 18:11, Sean Anderson wrote: > On 8/3/23 04:31, Xavier Drudis Ferran wrote: >> El Mon, Jul 31, 2023 at 06:42:57PM -0400, Sean Anderson deia: >>> This converts the mmc loader to spl_load. Legacy images are handled by >>> spl_load (via spl_parse_image_header), so mmc_load_legacy can be

Re: Binman how to build using Rockchip BL32 binary as OP-TEE

2023-09-06 Thread Jonas Karlman
Hi Massimo, On 2023-09-06 07:15, Massimo Pegorer wrote: > Hi Jonas, > > Il giorno lun 4 set 2023 alle ore 18:52 Jonas Karlman > ha scritto: >> >> Hi Massimo, >> >> On 2023-09-04 17:05, Massimo Pegorer wrote: >>> Hi, >>> >>> Is ther

Re: Binman how to build using Rockchip BL32 binary as OP-TEE

2023-09-06 Thread Jonas Karlman
Hi Simon, On 2023-09-05 20:16, Simon Glass wrote: > Hi Jonas, > > On Mon, 4 Sept 2023 at 10:52, Jonas Karlman wrote: >> >> Hi Massimo, >> >> On 2023-09-04 17:05, Massimo Pegorer wrote: >>> Hi, >>> >>> Is there any way for binman to pa

Re: Issue with mmc_power_on() and reference counter of regulator

2023-09-02 Thread Jonas Karlman
Hi, On 2023-09-02 13:35, Kenta Sato wrote: > Hi, > > I am using the FriendlyElec NanoPi R4S board. > When I updated U-Boot to a recent version (0fe0395922), it failed to > boot from MMC. Here is the log: > > > U-Boot TPL 2023.10-rc3 (Sep 02 2023 - 08:21:08) >

Re: [PATCH v3 0/4] support for booting the compressed U-boot binary on Rockchip based ARM64 SOC's

2023-09-10 Thread Jonas Karlman
Hi, On 2023-09-10 20:24, Manoj Sai wrote: > This patchset adds the support on Rockchip based ARM64 SOC's that compress > the U-BOOT proper along with dtb > and ATF in FIT image format.Second stage bootloader(SPL) loads the compressed > binaries, uncompress > them and handover control to the

Re: Aw: [PATCH v3] board: rockchip: Add Bananapi R2Pro Board

2023-09-16 Thread Jonas Karlman
t-version. >> >> +CC Tom >> >>> regards Frank >>> >>> >>>> Gesendet: Sonntag, 20. August 2023 um 18:00 Uhr >>>> Von: "Frank Wunderlich" >>>> An: u-boot@lists.denx.de >>>> Cc: "Frank Wunderlich"

Re: [PATCH v2 2/2] riscv: dts: starfive: generate u-boot-spl.bin.normal.out

2023-09-16 Thread Jonas Karlman
On 2023-09-06 14:00, Heinrich Schuchardt wrote: > The StarFive VisionFive 2 board cannot load spl/u-boot-spl.bin but needs a > prefixed header. We have referring to a vendor tool (spl_tool) for this > task. 'mkimage -T sfspl' can generate the prefixed file. > > Use binman to invoke mkimage for

Re: [PATCH v3] board: rockchip: Add Bananapi R2Pro Board

2023-09-16 Thread Jonas Karlman
Hi Frank, On 2023-08-20 18:00, Frank Wunderlich wrote: > From: Frank Wunderlich > > Add Bananapi R2 Pro board. > > Till now evb dts could be used, but iodomain is different > (evb has 1v8 on vccio2 and vccio4 which are 3v3 on r2pro) > and with iodomain driver this can cause hardware fault. >

Re: [PATCH v2 2/2] riscv: dts: starfive: generate u-boot-spl.bin.normal.out

2023-09-17 Thread Jonas Karlman
On 2023-09-17 02:00, Heinrich Schuchardt wrote: > On 9/17/23 00:19, Jonas Karlman wrote: >> On 2023-09-06 14:00, Heinrich Schuchardt wrote: >>> The StarFive VisionFive 2 board cannot load spl/u-boot-spl.bin but needs a >>> prefixed header. We have referring

Re: Aw: Re: [PATCH v3] board: rockchip: Add Bananapi R2Pro Board

2023-09-17 Thread Jonas Karlman
On 2023-09-17 09:19, Frank Wunderlich wrote: > Hi, > > thank you for your suggestions > >> Gesendet: Sonntag, 17. September 2023 um 00:51 Uhr >> Von: "Jonas Karlman" >> An: "Frank Wunderlich" >> Cc: "Frank Wunderlich" , "

[PATCH 2/6] phy: Set phy->dev to NULL when generic_phy_get_by_index_nodev() fails

2023-08-31 Thread Jonas Karlman
base test with a test where of_xlate ops fail. Fixes: 72e5016f878d ("drivers: phy: add generic PHY framework") Fixes: b9688df3cbf4 ("drivers: phy: Set phy->dev to NULL when generic_phy_get_by_index() fails") Signed-off-by: Jonas Karlman --- arch/sandbox/dts/test.dts | 11 +

[PATCH 1/6] phy: Set phy->dev to NULL when generic_phy_get_by_name() fails

2023-08-31 Thread Jonas Karlman
extend the dm_test_phy_base test with calls to generic_phy_valid(). Fixes: b9688df3cbf4 ("drivers: phy: Set phy->dev to NULL when generic_phy_get_by_index() fails") Fixes: 868d58f69c7c ("usb: dwc3: Fix non-usb3 configurations") Signed-off-by: Jonas Karlman --- drivers/phy/phy-uc

[PATCH 3/6] usb: dwc3: Use generic_phy_valid() helper

2023-08-31 Thread Jonas Karlman
lize phy->dev to NULL. Fixes: 142d50fbce7c ("usb: dwc3: Add support for usb3-phy PHY configuration") Signed-off-by: Jonas Karlman --- drivers/usb/dwc3/dwc3-generic.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/usb/dwc3/dwc3-generic.c b/drivers/usb

[PATCH 4/6] scsi: ceva: Use generic_phy_valid() helper

2023-08-31 Thread Jonas Karlman
The documentation for struct phy state that "The content of the structure is managed solely by the PHY API and PHY drivers". Change to use the generic_phy_valid() helper to check if phy is valid. Fixes: f6f5451d469b ("scsi: ceva: Enable PHY and reset support") Signed-o

[PATCH 6/6] video: rockchip: dw_mipi_dsi: Use generic_phy_valid() helper

2023-08-31 Thread Jonas Karlman
ck") Signed-off-by: Jonas Karlman --- drivers/video/rockchip/dw_mipi_dsi_rockchip.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/video/rockchip/dw_mipi_dsi_rockchip.c b/drivers/video/rockchip/dw_mipi_dsi_rockchip.c index 0852b53ebed5..1a5ab781e3f1 100644

[PATCH 0/6] phy: Fix use of generic_phy_valid() helper

2023-08-31 Thread Jonas Karlman
has failed to be initialized as valid. Patch 3-6 replace direct access to phy->dev with generic_phy_valid(). Jonas Karlman (6): phy: Set phy->dev to NULL when generic_phy_get_by_name() fails phy: Set phy->dev to NULL when generic_phy_get_by_index_nodev() fails usb: dwc3: Use generic_phy_va

[PATCH 5/6] net: zynq: Use generic_phy_valid() helper

2023-08-31 Thread Jonas Karlman
de") Signed-off-by: Jonas Karlman --- drivers/net/zynq_gem.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/net/zynq_gem.c b/drivers/net/zynq_gem.c index f3cdfb0275d0..3377e669f2f6 100644 --- a/drivers/net/zynq_gem.c +++ b/drivers/net/zynq_gem.c @@ -890,7

[PATCH v2 3/3] phy: Refactor generic_{setup, shutdown}_phy() to reduce complexity

2023-08-31 Thread Jonas Karlman
Refactor generic_{setup,shutdown}_phy() to reduce complexity and indentation. This have no intended functional change. Signed-off-by: Jonas Karlman --- v2: - Split code refactor into own patch drivers/phy/phy-uclass.c | 41 1 file changed, 16 insertions

[PATCH v2 1/3] phy: Fix generic_setup_phy() return value on power on failure

2023-08-31 Thread Jonas Karlman
of generic_setup_phy(). Fix this by ignoring the return value of the generic_phy_exit() call and return the value from the generic_phy_power_on() call. Fixes: 84e561407a5f ("phy: Add generic_{setup,shutdown}_phy() helpers") Signed-off-by: Jonas Karlman --- v2: - Move refactor to own patch - Add

[PATCH v2 2/3] phy: Return success from generic_setup_phy() when phy is not found

2023-08-31 Thread Jonas Karlman
_phy() helpers") Fixes: 083f8aa978a8 ("usb: ehci: Make usage of generic_{setup,shutdown}_phy() helpers") Fixes: 75341e9c16aa ("usb: ehci: Remove unused ehci_{setup,shutdown}_phy() helpers") Signed-off-by: Jonas Karlman --- v2: - New patch to fix regression introduced in v20

[PATCH v2 0/3] phy: Fix generic_setup_phy return value on power on failure

2023-08-31 Thread Jonas Karlman
readability. Changes in v2: - Split patch in two - Restore old behavior for ENOENT - Add unit tests Jonas Karlman (3): phy: Fix generic_setup_phy() return value on power on failure phy: Return success from generic_setup_phy() when phy is not found phy: Refactor generic_{setup,shutdown}_phy

Re: [PATCH RESEND 1/2] arm: dts: rockchip: rk3588, rk3588s: sync with Linux

2023-09-01 Thread Jonas Karlman
Hi Naoki, On 2023-09-01 06:58, FUKAUMI Naoki wrote: > Sync the devicetree with linux-next tag: next-20230831 With the soc-dt-6.6 tag now merged into torvalds/linux tree [1] we can probably call this a sync from v6.6-rc1. However, this patch misses some things: - It does not remove synced pcie

Re: [PATCH 6/6] video: rockchip: dw_mipi_dsi: Use generic_phy_valid() helper

2023-09-01 Thread Jonas Karlman
l and had no real dependencies on prior patches but was related to the work made in patch 1-3, so sent these to the listed maintainers and cc mailing list. Full series can also be found at: https://patchwork.ozlabs.org/project/uboot/list/?series=371248=* Regards, Jonas > > On 2023/9/1 06:16

Re: Binman how to build using Rockchip BL32 binary as OP-TEE

2023-09-04 Thread Jonas Karlman
Hi Massimo, On 2023-09-04 17:05, Massimo Pegorer wrote: > Hi, > > Is there any way for binman to package FIT with U-Boot TF-A and > OP-TEE, using bl32 binary provided by Rockchip as TEE? > > I've tried with TEE=/path/to/rkbin/bin/rk33/xxx_bl32_vX.YZ.bin, but > binman failed. > > In my poor

Re: [PATCH 3/4] rockchip: rk3588-rock-5b: Sync USB3 nodes from mainline linux patches

2023-10-15 Thread Jonas Karlman
On 2023-10-11 18:52, Christopher Obbard wrote: > Hi Jonas, > > On Tue, 2023-10-10 at 22:23 +0000, Jonas Karlman wrote: >> The device tree for rk3588 and rock-5b contain usb3 nodes that have >> deviated too much from current state of submitted mainline linux usb3 >> p

Re: [PATCH 1/5] board: rockchip: Add Pine64 Quartz64-A Board

2023-10-15 Thread Jonas Karlman
On 2023-10-14 20:58, Jonas Karlman wrote: > Hi Christopher, > > On 2023-10-12 13:46, Christopher Obbard wrote: >> Hi Jonas, >> >> On Thu, 2023-10-12 at 10:51 +0100, Christopher Obbard wrote: >>> Hi Jonas, >>> >>> Sorry for the lat

Re: [PATCH 1/5] board: rockchip: Add Pine64 Quartz64-A Board

2023-10-15 Thread Jonas Karlman
>> >> On Thu, 2023-08-17 at 23:56 +, Jonas Karlman wrote: >>> Hi Christopher, >>> >>> On 2023-08-08 16:25, Christopher Obbard wrote: >>>> Hi Jonas, >>>> >>>> On Sun, 2023-07-23 at 15:04 +, Jonas Karlman wrote: >>

Re: [PATCH 1/2] configs: rockchip: Use dwc3-generic driver on RK3328 and RK3399

2023-10-19 Thread Jonas Karlman
On 2023-10-19 01:44, Marek Vasut wrote: > On 10/19/23 00:30, Jonas Karlman wrote: > > [..] > >> +++ b/configs/rock960-rk3399_defconfig >> @@ -50,6 +50,7 @@ CONFIG_SYS_RELOC_GD_ENV_ADDR=y >> CONFIG_SYS_MMC_ENV_DEV=1 >> CONFIG_ROCKCHIP_GPIO=y >> C

Re: [PATCH] power: regulator: Fix an handling error about EALREADY

2023-11-01 Thread Jonas Karlman
On 2023-11-01 08:23, Jaehoon Chung wrote: > If reegulator is already enabled, it will be return to EALREADY. > But driver that its function is called can notice as error, even though > it's working fine. > > Fixes: 4fcba5d556b ("regulator: implement basic reference counter") > > Signed-off-by:

Re: [PATCH] power: regulator: Fix an handling error about EALREADY

2023-11-01 Thread Jonas Karlman
On 2023-11-01 09:19, Jaehoon Chung wrote: > > >> -Original Message- >> From: U-Boot On Behalf Of Jaehoon Chung >> Sent: Wednesday, November 1, 2023 5:11 PM >> To: 'Jonas Karlman' >> Cc: s...@chromium.org; patrice.chot...@foss.st.com; >> eugen

Re: [PATCH 1/2] rockchip: rk3588: Add SPINAND as boot device

2023-11-03 Thread Jonas Karlman
ncluded your commit to enable ROCKCHIP_SPI_IMAGE on Orange Pi 5 Plus, John Clark's commit to enable on NanoPC-T6 my own to enable on Orange Pi 5. Should hit the list later today after full runtime testing. > > On lis 02, 2023 15:27, Kever Yang wrote: >> Hi Jonas, >> >> On

Re: [PATCH] rockchip: rk3588-rock-5b: Enable CONFIG_PCI_INIT_R to support EFI networking

2023-11-07 Thread Jonas Karlman
Hi Martin, On 2023-11-07 10:45, Martin Roukala wrote: > Hi Jonas, > > On 06/11/2023 20:15, Jonas Karlman wrote: >> Hi Martin, >> >> On 2023-11-04 14:04, Martin Roukala (né Peres) wrote: >>> When u-boot chainloads an EFI bootloader such as iPXE, we want to

Re: [PATCH 2/2] configs: orangepi-5-plus-rk3588: Build SPI image by default

2023-10-31 Thread Jonas Karlman
On 2023-10-31 17:13, Slawomir Stepien wrote: > Flashing this image to the on-board flash is useful when you want to > start Linux from a medium (e.g. nvme) without flashing u-boot elements > to it. > > Signed-off-by: Slawomir Stepien > --- > configs/orangepi-5-plus-rk3588_defconfig | 1 + > 1

Re: [PATCH 1/2] rockchip: rk3588: Add SPINAND as boot device

2023-10-31 Thread Jonas Karlman
On 2023-10-31 17:13, Slawomir Stepien wrote: > Mark the flash@0 as BROM_BOOTSOURCE_SPINAND. > Fixes use of same-as-spl in u-boot,spl-boot-order prop on Orange Pi 5 > Plus. > > Signed-off-by: Slawomir Stepien > --- > arch/arm/mach-rockchip/rk3588/rk3588.c | 1 + > 1 file changed, 1 insertion(+)

Re: [PATCH] rockchip: rk3588-rock-5b: Enable CONFIG_PCI_INIT_R to support EFI networking

2023-11-06 Thread Jonas Karlman
Hi Martin, On 2023-11-04 14:04, Martin Roukala (né Peres) wrote: > When u-boot chainloads an EFI bootloader such as iPXE, we want to have > already initialized the PCI subsystem so that network driver is loaded > and ready to use by the bootloader. This change slows down boot from emmc/sd-card

[PATCH 0/2] rockchip: Use dwc3-generic driver on RK3328 and RK3399

2023-10-18 Thread Jonas Karlman
obsolete rk3399 usb gadget functions. This has been tested and validated on rockpro64 and rock-pi-4 boards. Jonas Karlman (2): configs: rockchip: Use dwc3-generic driver on RK3328 and RK3399 rockchip: board: Remove dwc3 usb init and gadget handler functions arch/arm/mach-rockchip/board.c

[PATCH 2/2] rockchip: board: Remove dwc3 usb init and gadget handler functions

2023-10-18 Thread Jonas Karlman
functions on RK3399 boards. Signed-off-by: Jonas Karlman --- arch/arm/mach-rockchip/board.c | 24 1 file changed, 24 deletions(-) diff --git a/arch/arm/mach-rockchip/board.c b/arch/arm/mach-rockchip/board.c index 57f08e0be0e9..3496839c879c 100644 --- a/arch/arm/mach-rockchip

[PATCH 1/2] configs: rockchip: Use dwc3-generic driver on RK3328 and RK3399

2023-10-18 Thread Jonas Karlman
Change to use the dwc3-generic driver on all RK3328 and RK3399 boards. MISC, USB_DWC3 and USB_DWC3_GENERIC are enabled on boards that enabled USB_XHCI_DWC3. Also enable DM_USB_GADGET for any board that enable USB_DWC3_GADGET. Signed-off-by: Jonas Karlman --- configs/chromebook_bob_defconfig

[PATCH v2 1/4] rockchip: rk3588: Sync device tree from v6.7-rockchip-dts64-1 tag

2023-10-17 Thread Jonas Karlman
ecoder node to rk3588s") afa933c208e5 ("arm64: dts: rockchip: add ADC buttons to rk3588-evb1") 7952cbbda301 ("arm64: dts: rockchip: add status LED to rock-5b") Signed-off-by: Jonas Karlman Reviewed-by: Christopher Obbard Reviewed-by: Kever Yang --- v2: - Sync with "Roc

[PATCH v2 0/4] rockchip: rk3588: Sync pcie and usb3 nodes from linux

2023-10-17 Thread Jonas Karlman
usb 2.0 support on rk3588-rock-5a - Use rockchip,rk3568-dwc3 compatible so that dwc3-generic driver change can be submitted in a separate series - Collect r-b tags Jonas Karlman (4): rockchip: rk3588: Sync device tree from v6.7-rockchip-dts64-1 tag rockchip: rk3588-rock-5a: Enable support

[PATCH v2 4/4] rockchip: rk3588-rock-5b: Sync USB3 nodes from mainline linux patches

2023-10-17 Thread Jonas Karlman
for the rockchip,rk3588-dwc3 compatible in the future, use rockchip,rk3568-dwc3 compatible until final node is merged in linux maintainer tree. [1] https://lore.kernel.org/lkml/20231009172129.43568-1-sebastian.reic...@collabora.com/ Signed-off-by: Jonas Karlman --- v2: - Use rockchip,rk3568-dwc3

[PATCH v2 2/4] rockchip: rk3588-rock-5a: Enable support for USB 2.0 ports

2023-10-17 Thread Jonas Karlman
Enable Kconfig options for the two USB 2.0 ports and bottom USB 3.0 port on ROCK 5 Model A. Signed-off-by: Jonas Karlman --- v2: - New patch configs/rock5a-rk3588s_defconfig | 16 +++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/configs/rock5a-rk3588s_defconfig b

[PATCH v2 3/4] rockchip: rk3588-rock-5b: Enable support for PCIe SATA cards

2023-10-17 Thread Jonas Karlman
Enable support for PCIe SATA cards and the on-board SATA controller. This also revert use of CONFIG_PCI_INIT_R in order to speed up boot from eMMC or SD-cards. Standard boot will initialize pci after faster boot media have been enumerated. Signed-off-by: Jonas Karlman Reviewed-by: Christopher

Re: [PATCH 4/4] binman: update documentation for fit,align property

2023-09-25 Thread Jonas Karlman
Hi Rasmus, On 2023-09-19 13:37, Rasmus Villemoes wrote: > Eliminate the repetition "what alignment to use ... and provides the > alignment to use", and indicate that fit,align can both be used by > itself and together with fit,external-offset. > > Signed-off-by: Rasmus Villemoes > --- >

Re: [PATCH v2] dm: core: Report bootph-pre-ram/sram node as pre-reloc after relocation : regression

2023-09-28 Thread Jonas Karlman
Hi Roger, On 2023-09-28 14:59, Roger Quadros wrote: > Hi, > > On 21/08/2023 01:03, Jonas Karlman wrote: >> Nodes with bootph-pre-sram/ram props are bound in multiple phases: >> 1. At TPL (bootph-pre-sram) or SPL (bootph-pre-ram) phase >> 2. At U-Boot proper pre-reloc

[PATCH] spl: Jump to image at end of board_init_r

2023-09-28 Thread Jonas Karlman
spl_board_prepare_for_boot() is not called before jumping/invoking atf, optee, opensbi or linux images. Jump to image at the end of board_init_r() to fix this. Signed-off-by: Jonas Karlman --- This patch have dependencies on the following patches: spl: add __noreturn attribute

Re: [PATCH v2 0/7] rockchip: rk3568: Fix use of PCIe bifurcation

2023-09-25 Thread Jonas Karlman
, Jonas On 2023-08-02 21:04, Jonas Karlman wrote: > This series add support for use of PCIe bifurcation on RK3568, and as a > bonus support for the RK3588 PHY is also included. With PCIe bifurcation > supported it is possible to enable PCIe on more RK3568 boards, e.g. on > NanoPi R5C an

[PATCH] mmc: Add SPL_MMC_PWRSEQ to fix link issue when building SPL

2023-09-25 Thread Jonas Karlman
' aarch64-linux-gnu-ld.bfd: drivers/mmc/mmc-pwrseq.c:29: undefined reference to `dm_gpio_set_value' aarch64-linux-gnu-ld.bfd: drivers/mmc/mmc-pwrseq.c:31: undefined reference to `dm_gpio_set_value' Signed-off-by: Jonas Karlman --- drivers/mmc/Kconfig | 10 +- drivers/mmc

Re: [RFC] mmc: Remove alignment hole for cmdidx in struct mmc_cmd

2023-10-02 Thread Jonas Karlman
On 2023-10-02 20:56, Simon Glass wrote: > On Fri, 29 Sept 2023 at 17:07, Jonas Karlman wrote: >> >> The alignment hole caused by cmdidx in struct mmc_cmd cause strange >> issues together with the peephole2 optimization on Amlogic SoCs. >> Following was observed w

Re: [PATCH 4/7] net: dwc_eth_qos: Add glue driver for GMAC on Rockchip RK3568

2023-10-01 Thread Jonas Karlman
Hi David, On 2023-08-15 15:12, David Wu wrote: > Hi Jonas, > > Thank you for your help. > > 在 2023/8/7 08:08, Jonas Karlman 写道: >> Add a new glue driver for Rockchip SoCs, i.e RK3568, with a GMAC based >> on Synopsys DWC Ethernet QoS IP. >> >> r

[PATCH v2 4/7] net: dwc_eth_qos: Add glue driver for GMAC on Rockchip RK3568

2023-10-01 Thread Jonas Karlman
Add a new glue driver for Rockchip SoCs, i.e RK3568, with a GMAC based on Synopsys DWC Ethernet QoS IP. rk_gmac_ops was ported from linux commit: 3bb3d6b1c195 ("net: stmmac: Add RK3566/RK3568 SoC support") Signed-off-by: Jonas Karlman Reviewed-by: Kever Yang --- Cc: David Wu Cc

[PATCH v2 5/7] net: dwc_eth_qos_rockchip: Add support for RK3588

2023-10-01 Thread Jonas Karlman
Add rk_gmac_ops and other special handling that is needed for GMAC to work on RK3588. rk_gmac_ops was ported from linux commits: 2f2b60a0ec28 ("net: ethernet: stmmac: dwmac-rk: Add gmac support for rk3588") 88619e77b33d ("net: stmmac: rk3588: Allow multiple gmac controller")

[PATCH v2 2/7] net: dwc_eth_qos: Return error code when start fails

2023-10-01 Thread Jonas Karlman
Return error code when phy_connect fails or no link can be established. Signed-off-by: Jonas Karlman Reviewed-by: Kever Yang --- v2: - Collect r-b tag drivers/net/dwc_eth_qos.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/net/dwc_eth_qos.c b/drivers/net/dwc_eth_qos.c index

[PATCH v2 3/7] net: dwc_eth_qos: Stop spam of RX packet not available message

2023-10-01 Thread Jonas Karlman
Remove spam of RX packet not available debug messages when waiting to receive a packet. Signed-off-by: Jonas Karlman Reviewed-by: Kever Yang --- v2: - Collect r-b tag drivers/net/dwc_eth_qos.c | 8 +++- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/drivers/net

[PATCH v2 7/7] configs: rockchip: Enable ethernet driver on RK3588 boards

2023-10-01 Thread Jonas Karlman
Enable DWC_ETH_QOS_ROCKCHIP and related PHY driver on RK3588 boards that have an enabled gmac node and drop ETH_DESIGNWARE and GMAC_ROCKCHIP for remaining RK3588 boards. Signed-off-by: Jonas Karlman Reviewed-by: Kever Yang --- v2: - Collect r-b tag - Remove already meged rock5a

[PATCH v2 1/7] net: dwc_eth_qos: Drop unused rx_pkt from eqos_priv

2023-10-01 Thread Jonas Karlman
rx_pkt is allocated and not used for anything, remove it. Signed-off-by: Jonas Karlman Reviewed-by: Kever Yang --- v2: - Collect r-b tag drivers/net/dwc_eth_qos.c | 11 --- drivers/net/dwc_eth_qos.h | 1 - 2 files changed, 12 deletions(-) diff --git a/drivers/net/dwc_eth_qos.c b

[PATCH v2 0/7] rockchip: Add GMAC support for RK3568 and RK3588

2023-10-01 Thread Jonas Karlman
823769/ [2] https://github.com/Kwiboo/u-boot-rockchip/commits/rk35xx-gmac-v2 Jonas Karlman (7): net: dwc_eth_qos: Drop unused rx_pkt from eqos_priv net: dwc_eth_qos: Return error code when start fails net: dwc_eth_qos: Stop spam of RX packet not available message net: dwc_eth_qos: Add g

[PATCH v2 6/7] configs: rockchip: Enable ethernet driver on RK356x boards

2023-10-01 Thread Jonas Karlman
Enable DWC_ETH_QOS_ROCKCHIP and related PHY driver on RK356x boards that have an enabled gmac node. Signed-off-by: Jonas Karlman Reviewed-by: Kever Yang --- v2: - Collect r-b tag - Update evb-rk3568_defconfig changes - Add lubancat-2-rk3568_defconfig changes configs/evb-rk3568_defconfig

Re: [PATCH v2 0/7] rockchip: rk3568: Fix use of PCIe bifurcation

2023-10-01 Thread Jonas Karlman
el/git/torvalds/linux.git/tree/Documentation/devicetree/bindings/phy/rockchip,pcie3-phy.yaml#n29 Regards, Jonas > > Thanks, > > - Kever > > On 2023/9/26 05:30, Jonas Karlman wrote: >> Hi Kever, >> >> It would be nice to get some feedback and plans for this and

Re: Aw: Re: [PATCH v2 0/7] rockchip: rk3568: Fix use of PCIe bifurcation

2023-10-02 Thread Jonas Karlman
Hi Frank, On 2023-10-02 09:17, Frank Wunderlich wrote: > Hi, > >> Gesendet: Sonntag, 01. Oktober 2023 um 21:11 Uhr >> Von: "Sebastian Reichel" >> An: "Jonas Karlman" >> Cc: "Kever Yang" , "Simon Glass" >> , "

Re: [PATCH v5] board: rockchip: Add Bananapi R2Pro Board

2023-10-03 Thread Jonas Karlman
> +CONFIG_BAUDRATE=150 > +CONFIG_DEBUG_UART_SHIFT=2 > +CONFIG_SYS_NS16550_MEM32=y > +CONFIG_SYSRESET=y > +CONFIG_USB=y > +CONFIG_USB_XHCI_HCD=y > +CONFIG_USB_EHCI_HCD=y > +CONFIG_USB_EHCI_GENERIC=y > +CONFIG_USB_OHCI_HCD=y > +CONFIG_USB_OHCI_GENERIC=y > +CONFIG_USB_D

Re: [PATCH v4 1/4] power: regulator: expand basic reference counter onto all uclass

2023-10-03 Thread Jonas Karlman
On 2023-10-03 08:21, Svyatoslav Ryhel wrote: > Commit is based on 4fcba5d ("regulator: implement basic reference > counter") but expands the idea to all regulators instead of just > fixed/gpio regulators. > > Signed-off-by: Svyatoslav Ryhel > Reviewed-by: Simon Glass > --- >

Re: [PATCH v4 3/4] power: regulator: Perform regulator setup inside uclass

2023-10-03 Thread Jonas Karlman
ays/boot-on prop] > Signed-off-by: Jonas Karlman > --- > drivers/power/regulator/regulator-uclass.c | 30 ++ > 1 file changed, 25 insertions(+), 5 deletions(-) > > diff --git a/drivers/power/regulator/regulator-uclass.c > b/drivers/power/regulator/regul

Re: [PATCH v4] board: rockchip: Add Bananapi R2Pro Board

2023-09-18 Thread Jonas Karlman
Hi Frank, On 2023-09-18 19:36, Frank Wunderlich wrote: > From: Frank Wunderlich > > Add Bananapi R2 Pro board. > > tested: > - sdcard > - both front usb-ports > - sata > - wan-port > > lan-ports are connected to mt7531 switch where driver needs to be separated > from mtk ethernet-driver. >

[RFC] mmc: Remove alignment hole for cmdidx in struct mmc_cmd

2023-09-29 Thread Jonas Karlman
was observed building U-Boot with gcc 8-13. Please advise on how to best work around this possible gcc optimization bug. Signed-off-by: Jonas Karlman --- arch/arm/cpu/armv8/config.mk | 2 ++ include/mmc.h| 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/arch

Re: [PATCH v1 1/7] rockchip: dts: rk3568: Resync from kernel-4.19

2023-10-10 Thread Jonas Karlman
Hi Elaine, On 2023-10-10 10:51, Elaine Zhang wrote: > Resync from kernel-4.19: > (a6cf6aca12c0 drivers: rkflash: Ajudst the dll strategy) bindings should be synced from mainline linux, not vendor kernel. > > Change-Id: I7b7134946b76dbd8963cfaafdc5b56750622855e > Signed-off-by: Elaine Zhang >

Re: Pull request: u-boot-rockchip-20231007

2023-10-07 Thread Jonas Karlman
k-pi-s: use default bootdelay (2s) > arm: dts: rockchip: sync DT for RK3588 series with Linux > arm: dts: rockchip: rock-5b: add support for PCIe3 and NVMe > configs: rockchip: rk3308: use CONFIG_DEFAULT_FDT_FILE > configs: rockchip: rk3308: enable CONFIG_OF_LIB

Re: [PATCH] board: rockchip: add FriendlyElec NanoPC-T6 rk3588 board

2023-10-08 Thread Jonas Karlman
Hi John, Quick feedback below, will look at schematics and runtime test later. On 2023-10-07 23:25, John Clark wrote: > NanoPC-T6 is a Rockchip RK3588 based SBC by FriendlyElec. > > There are four variants depending on the DRAM size: 4G/32GB eMMC, 8G/64GB > eMMC, > 16G/16MB SPI NOR, and

[PATCH 0/3] rockchip: Add Xunlong Orange Pi 5 and 5 Plus boards

2023-10-17 Thread Jonas Karlman
on the following series for a clean apply: - rockchip: rk3588: Sync pcie and usb3 nodes from linux [1] - board: rockchip: add FriendlyElec NanoPC-T6 rk3588 board [2] [1] https://patchwork.ozlabs.org/cover/1850311/ [2] https://patchwork.ozlabs.org/patch/1847842/ Jonas Karlman (2): board: rockchip

[PATCH 3/3] board: rockchip: Add Xunlong Orange Pi 5 Plus

2023-10-17 Thread Jonas Karlman
on a Orange Pi 5 Plus 4GB v1.2: - SD-card boot - eMMC boot - SPI Flash boot - PCIe/NVMe - USB 2.0 host - Ethernet Device tree is imported from linux v6.7-rockchip-dts64-1 tag. Signed-off-by: Jonas Karlman --- Cc: Ondrej Jirman --- arch/arm/dts/Makefile | 1 + .../dts

[PATCH 2/3] board: rockchip: Add Xunlong Orange Pi 5

2023-10-17 Thread Jonas Karlman
/NVMe - USB 2.0 host - Ethernet Device tree is imported from linux v6.7-rockchip-dts64-1 tag. Signed-off-by: Jonas Karlman --- Cc: Muhammed Efe Cetin --- arch/arm/dts/Makefile | 1 + arch/arm/dts/rk3588s-orangepi-5-u-boot.dtsi | 22 + arch/arm/dts/rk3588s-orangepi-5.dts

[PATCH 1/3] mtd: spi-nor: Add support for XMC XM25QU128C

2023-10-17 Thread Jonas Karlman
-by: Jonas Karlman --- drivers/mtd/spi/spi-nor-ids.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/mtd/spi/spi-nor-ids.c b/drivers/mtd/spi/spi-nor-ids.c index 5c35171ffd55..392db5c99e84 100644 --- a/drivers/mtd/spi/spi-nor-ids.c +++ b/drivers/mtd/spi/spi-nor-ids.c @@ -536,6 +536,7

Re: [PATCH v4 1/1] board: rockchip: add FriendlyElec NanoPC-T6 rk3588 board

2023-10-17 Thread Jonas Karlman
Dimensions: 110x80x1.6mm (without case) / 86x114.5x30mm (with case) > > Kernel commits: > 893c17716d0c ("arm64: dts: rockchip: Add NanoPC T6") > a721e28dfad2 ("arm64: dts: rockchip: Add NanoPC T6 PCIe Ethernet support") > ac76b786cc37 ("arm64: dts: rockchip: Add NanoPC T6 PCIe e-key support") > > Signed-off-by: John Clark Reviewed-by: Jonas Karlman Tested-by: Jonas Karlman Regards, Jonas

Re: [PATCH] board: rockchip: add FriendlyElec NanoPC-T6 rk3588 board

2023-10-17 Thread Jonas Karlman
Hi Kever, On 2023-10-08 11:09, Kever Yang wrote: > > On 2023/10/8 05:25, John Clark wrote: >> NanoPC-T6 is a Rockchip RK3588 based SBC by FriendlyElec. >> >> There are four variants depending on the DRAM size: 4G/32GB eMMC, 8G/64GB >> eMMC, >> 16G/16MB SPI NOR, and 16G/256GB eMMC/16MB SPI NOR >

[PATCH v3] rockchip: rk3568-radxa-e25: Enable pcie3x1 node

2023-10-09 Thread Jonas Karlman
for a functional M.2 SATA drive slot. Signed-off-by: Jonas Karlman Reviewed-by: Kever Yang --- v3: - Collect r-b tag v2: - No change arch/arm/dts/rk3568-radxa-e25-u-boot.dtsi | 11 +-- configs/radxa-e25-rk3568_defconfig| 1 - 2 files changed, 9 insertions(+), 3 deletions(-) diff --git

[PATCH 3/4] rockchip: rk3588-rock-5b: Sync USB3 nodes from mainline linux patches

2023-10-10 Thread Jonas Karlman
for the rockchip,rk3588-dwc3 compatible. [1] https://lore.kernel.org/lkml/20231009172129.43568-1-sebastian.reic...@collabora.com/ Signed-off-by: Jonas Karlman --- Cc: Sebastian Reichel --- arch/arm/dts/rk3588-rock-5b-u-boot.dtsi | 148 +++- arch/arm/dts/rk3588-u-boot.dtsi

[PATCH 2/4] rockchip: rk3588-rock-5b: Enable support for PCIe SATA cards

2023-10-10 Thread Jonas Karlman
Enable support for PCIe SATA cards and the on-board SATA controller. This also revert use of CONFIG_PCI_INIT_R in order to speed up boot from eMMC or SD-cards. Standard boot will initialize pci after faster boot media have been enumerated. Signed-off-by: Jonas Karlman --- Cc: Christopher Obbard

[PATCH 1/4] rockchip: rk3588: Sync device tree from linux maintainer tree

2023-10-10 Thread Jonas Karlman
0f ("arm64: dts: rockchip: Add UART9 M0 pin definitions to rk3588s") Signed-off-by: Jonas Karlman --- arch/arm/dts/rk3588-evb1-v10-u-boot.dtsi | 11 +- arch/arm/dts/rk3588-evb1-v10.dts | 98 arch/arm/dts/rk3588-rock-5b-u-boot.dtsi | 60 -- arch/arm/dts/

[PATCH 0/4] rockchip: rk3588: Sync pcie and usb3 nodes from linux

2023-10-10 Thread Jonas Karlman
pcie and ahci/sata support on rk3588-rock-5b. Patch 3 sync usb3 nodes with latest pending patches in order to drop use of rockchip,rk3399-dwc3 compatible. Patch 4 adds support for rockchip,rk3588-dwc3 compatible to the dwc3-generic driver. Jonas Karlman (4): rockchip: rk3588: Sync device tree from

[PATCH 4/4] usb: dwc3-generic: Use combined glue and ctrl node for RK3588

2023-10-10 Thread Jonas Karlman
Like Rockchip RK3328 and RK3568, the RK3588 also have single node to represent the glue and ctrl for USB 3.0. Use rk_ops as driver data to select correct ctrl node for RK3588 DWC3. Signed-off-by: Jonas Karlman --- drivers/usb/dwc3/dwc3-generic.c | 1 + 1 file changed, 1 insertion(+) diff

Re: [PATCH 2/3] board: rockchip: Add Maskrom Mode for Anbernic RGxx3

2023-10-23 Thread Jonas Karlman
Hi Chris, On 2023-10-23 17:18, Chris Morgan wrote: > On Mon, Oct 23, 2023 at 06:10:07PM +0800, Kever Yang wrote: >> Hi Chris, >> >> On 2023/10/18 02:24, Chris Morgan wrote: >>> From: Chris Morgan >>> >>> Add support for users to enter maskrom mode by holding the function >>> button when they

Re: Pull request: u-boot-rockchip-20231007

2023-10-08 Thread Jonas Karlman
Hi Kever, On 2023-10-08 03:13, Kever Yang wrote: > Hi Jonas, > > On 2023/10/7 18:37, Jonas Karlman wrote: >> Hi Kever, >> >> Looks like the following patch is missing: >> >> [v2,7/7] rockchip: rk3568-radxa-e25: Enable pcie3x1 node >> https://patchw

[PATCH] rockchip: rk3566-anbernic-rgxx3: Rename defconfig to include SoC name

2023-08-17 Thread Jonas Karlman
Rename defconfig to include SoC name, use similar pattern as other RK356x boards: -.dts -> -_defconfig Suggested-by: Kever Yang Signed-off-by: Jonas Karlman --- board/anbernic/rgxx3_rk3566/MAINTAINERS | 2 +- ...anbernic-rgxx3_defconfig => anbernic

[PATCH v2] dm: core: Report bootph-pre-ram/sram node as pre-reloc after relocation

2023-08-20 Thread Jonas Karlman
the binding and driver model documentation. This changes behavior of what nodes are bound in the U-Boot proper pre-relocation phase. Change to bootph-all or add bootph-some-ram prop to restore prior behavior. Signed-off-by: Jonas Karlman Reviewed-by: Simon Glass --- Changes in v2: - Drop use

[PATCH v2 3/5] regulator: rk8xx: Return correct voltage for switchout converters

2023-08-21 Thread Jonas Karlman
Signed-off-by: shengfei Xu [jo...@kwiboo.se: fix checkpatch error, update commit message] Signed-off-by: Jonas Karlman --- v2: - New patch drivers/power/regulator/rk8xx.c | 19 +++ 1 file changed, 19 insertions(+) diff --git a/drivers/power/regulator/rk8xx.c b/drivers/power/regulat

[PATCH v2 0/5] rockchip: Port IO-domain driver for RK3568 from linux

2023-08-21 Thread Jonas Karlman
] https://github.com/Kwiboo/u-boot-rockchip/commits/rk3568-io-domain-v2 Jonas Karlman (3): power: regulator: Only run autoset once for each regulator rockchip: Port IO-domain driver for RK3568 from linux rockchip: board: Add minimal generic RK3566/RK3568 board Joseph Chen (1): regulator: rk8xx

[PATCH v2 1/5] power: regulator: Only run autoset once for each regulator

2023-08-21 Thread Jonas Karlman
ounter") Signed-off-by: Jonas Karlman --- Cc: Svyatoslav Ryhel --- v2: - No change drivers/power/regulator/regulator-uclass.c | 18 ++ include/power/regulator.h | 1 + 2 files changed, 15 insertions(+), 4 deletions(-) diff --git a/drivers/power/regulator/r

[PATCH v2 5/5] rockchip: board: Add minimal generic RK3566/RK3568 board

2023-08-21 Thread Jonas Karlman
Add a minimal generic RK3566/RK3568 board that only have eMMC and SDMMC enabled. This defconfig can be used to boot from eMMC or SD-card on most RK3566/RK3568 boards that follow reference board design. Signed-off-by: Jonas Karlman --- v2: - New patch arch/arm/dts/rk3568-generic-u-boot.dtsi

[PATCH v2 4/5] rockchip: Port IO-domain driver for RK3568 from linux

2023-08-21 Thread Jonas Karlman
autoset by the regulator. It is not recommended to enable MMC_IO_VOLTAGE or the mmc signal voltage and IO-domain may end up out of sync. Based on the linux commit 28b05a64e47c ("soc: rockchip: io-domain: add rk3568 support"). Signed-off-by: Jonas Karlman Reviewed-by: Simon Glass --- Cc:

  1   2   3   4   5   6   7   8   9   10   >