[PATCH v2 12/22] rockchip: rk3399-firefly: Sync DT from v6.8 and update defconfig

2024-05-01 Thread Jonas Karlman
PHY_ROCKCHIP_INNO_USB2=y and PHY_ROCKCHIP_TYPEC=y to support USB PHY. Remove SPL_TINY_MEMSET=y to use full memset in SPL. Signed-off-by: Jonas Karlman Reviewed-by: Kever Yang --- v2: Drop enable of AHCI/SCSI support v2: Collect r-b tag --- arch/arm/dts/rk3399-firefly.dts | 17

[PATCH v2 10/22] rockchip: rk3399-leez: Sync DT from v6.8 and update defconfig

2024-05-01 Thread Jonas Karlman
DM_ETH_PHY=y to support ethernet PHY. Add PHY_ROCKCHIP_INNO_USB2=y and PHY_ROCKCHIP_TYPEC=y to support USB PHY. Remove SPL_TINY_MEMSET=y to use full memset in SPL. Signed-off-by: Jonas Karlman Reviewed-by: Kever Yang --- v2: Collect r-b tag --- arch/arm/dts/rk3399-leez-p710.dts | 8 +--- configs

[PATCH v2 14/22] rockchip: rk3399-roc-pc: Sync DT from v6.8 and update defconfig

2024-05-01 Thread Jonas Karlman
and DM_ETH_PHY=y to support ethernet PHY. Remove SPL_TINY_MEMSET=y to use full memset in SPL. Remove USE_PREBOOT=y to speed up booting, standard boot will init USB after faster boot media has been evaluated. Signed-off-by: Jonas Karlman Reviewed-by: Kever Yang --- v2: Drop enable of AHCI/SCSI

[PATCH v2 13/22] rockchip: rk3399-orangepi: Sync DT from v6.8 and update defconfig

2024-05-01 Thread Jonas Karlman
DM_ETH_PHY=y to support ethernet PHY. Add PHY_ROCKCHIP_INNO_USB2=y and PHY_ROCKCHIP_TYPEC=y to support USB PHY. Remove SPL_TINY_MEMSET=y to use full memset in SPL. Signed-off-by: Jonas Karlman Reviewed-by: Kever Yang --- v2: Collect r-b tag --- arch/arm/dts/rk3399-orangepi.dts | 12

[PATCH v2 22/22] rockchip: rk3399: Drop ethernet0 alias from SoC u-boot.dtsi

2024-05-01 Thread Jonas Karlman
Remove the obsolete ethernet0 alias now that all board device tree files have been fully synced with Linux kernel v6.8. Signed-off-by: Jonas Karlman --- v2: New patch --- arch/arm/dts/rk3399-u-boot.dtsi | 1 - 1 file changed, 1 deletion(-) diff --git a/arch/arm/dts/rk3399-u-boot.dtsi b/arch

[PATCH v2 20/22] rockchip: rk3399-pinebook-pro: Sync DT from v6.8 and update defconfig

2024-05-01 Thread Jonas Karlman
use full memset in SPL. Signed-off-by: Jonas Karlman Reviewed-by: Dragan Simic Reviewed-by: Kever Yang --- v2: Collect r-b tags --- arch/arm/dts/rk3399-pinebook-pro.dts | 24 +++- configs/pinebook-pro-rk3399_defconfig | 6 -- 2 files changed, 11 insertions(+), 19

[PATCH v2 16/22] rockchip: rk3399-rock960: Sync DT from v6.8 and update defconfig

2024-05-01 Thread Jonas Karlman
CMD_ROCKUSB=y, CMD_USB_MASS_STORAGE=y and USB_GADGET=y to support RockUSB and UMS gadget. Remove SPL_TINY_MEMSET=y to use full memset in SPL. Signed-off-by: Jonas Karlman Reviewed-by: Kever Yang --- v2: Drop enable of AHCI/SCSI support on ROCK960 v2: Collect r-b tag --- arch/arm/dts/rk3399

[PATCH v2 17/22] rockchip: rk3399-khadas: Sync DT from v6.8 and update defconfig

2024-05-01 Thread Jonas Karlman
. Add DM_ETH_PHY=y to support ethernet PHY. Add PHY_ROCKCHIP_INNO_USB2=y and PHY_ROCKCHIP_TYPEC=y to support USB PHY. Remove SPL_TINY_MEMSET=y to use full memset in SPL. Signed-off-by: Jonas Karlman Reviewed-by: Kever Yang --- v2: Drop enable of AHCI/SCSI support v2: Collect r-b tag --- arch

[PATCH v2 19/22] rockchip: rk3399-rockpro64: Sync DT from v6.8 and update defconfig

2024-05-01 Thread Jonas Karlman
=y to support poweroff using cmdline and power on using the pwr button on the board. Add PHY_REALTEK=y and DM_ETH_PHY=y to support ethernet PHY. Remove SPL_TINY_MEMSET=y to use full memset in SPL. Signed-off-by: Jonas Karlman Reviewed-by: Dragan Simic Reviewed-by: Kever Yang --- v2: Collect r-b

[PATCH v2 18/22] rockchip: rk3399-rock-pi-4: Sync DT from v6.8 and update defconfig

2024-05-01 Thread Jonas Karlman
configure io-domain voltage. Add PHY_REALTEK=y and DM_ETH_PHY=y to support ethernet PHY. Remove SPL_TINY_MEMSET=y to use full memset in SPL. Signed-off-by: Jonas Karlman Reviewed-by: Dragan Simic Reviewed-by: Christopher Obbard Reviewed-by: Kever Yang --- v2: Collect r-b tags --- arch/arm/dts

[PATCH v2 15/22] rockchip: rk3399-nanopi-4: Sync DT from v6.8 and update defconfig

2024-05-01 Thread Jonas Karlman
full memset in SPL. Signed-off-by: Jonas Karlman Reviewed-by: Kever Yang --- v2: Only enable AHCI/SCSI on M4 variant v2: Skip enable of PCI on NEO4 variant v2: Keep SDHCI enabled on R4S variant v2: Collect r-b tag --- arch/arm/dts/rk3399-nanopc-t4.dts | 2 +- arch/arm/dts/rk3399-nanopi-m4

[PATCH v2 21/22] rockchip: rk3399-pinephone-pro: Sync DT from v6.8 and update defconfig

2024-05-01 Thread Jonas Karlman
use full memset in SPL. Signed-off-by: Jonas Karlman Reviewed-by: Dragan Simic Reviewed-by: Kever Yang --- v2: Collect r-b tags --- arch/arm/dts/rk3399-pinephone-pro-u-boot.dtsi | 12 ++ arch/arm/dts/rk3399-pinephone-pro.dts | 147 ++ configs/pinephone-pro

[PATCH] rockchip: rk3328: Add missing bootph-some-ram props

2024-05-01 Thread Jonas Karlman
ned-off-by: Jonas Karlman --- This has been runtime tested on a Rock64 and NanoPi R2S Plus. The uart2m1_xfer change help speed up boot by around 100 ms. --- arch/arm/dts/rk3328-nanopi-r2s-u-boot.dtsi| 2 +- .../rk3328-orangepi-r1-plus-lts-u-boot.dtsi | 7 --- .../dts/rk3328-orangepi

[PATCH] clk: rockchip: rk3328: Add SCLK_USB3OTG_REF support

2024-05-01 Thread Jonas Karlman
The SCLK_USB3OTG_REF clocks is used as reference clock for USB3 block. Add simple support to get rate of SCLK_USB3OTG_REF clocks to fix reference clock period configuration. Signed-off-by: Jonas Karlman --- This has been runtime tested on a Rock64 and NanoPi R2S Plus. --- drivers/clk/rockchip

Re: [PATCH 2/2] board: rockchip: rgxx3: Use sdmmc0 as first device

2024-05-02 Thread Jonas Karlman
Hi Chris, On 2024-05-02 21:34, Chris Morgan wrote: > From: Chris Morgan > > Some of the rgxx3 devices do not have a way to recover from a poor > flash of a bootloader to eMMC. Set the device to always attempt to boot > from sdmmc0 first which ensures that we can override the boot from > emmc if

[PATCH 00/16] rockchip: Migrate RK3308, RK3328, RK356x and RK3588 to OF_UPSTREAM

2024-05-04 Thread Jonas Karlman
-upstream-v1 Jonas Karlman (16): rockchip: rk3308: Migrate to OF_UPSTREAM rockchip: rk3308: Remove redundant device tree files rockchip: rk3328: Migrate to OF_UPSTREAM rockchip: rk3328: Remove redundant device tree files rockchip: rk3399: Migrate to OF_UPSTREAM rockchip: rk3399: Remove

[PATCH 01/16] rockchip: rk3308: Migrate to OF_UPSTREAM

2024-05-04 Thread Jonas Karlman
All RK3308 boards has now been synced to Linux kernel v6.8 DTs and can migrate to use OF_UPSTREAM. Migrate all RK3308 boards to use OF_UPSTREAM. Signed-off-by: Jonas Karlman --- arch/arm/dts/Makefile | 5 - arch/arm/mach-rockchip/Kconfig | 1 + configs/evb-rk3308_defconfig

[PATCH 02/16] rockchip: rk3308: Remove redundant device tree files

2024-05-04 Thread Jonas Karlman
Remove redundant device tree files now that RK3308 boards have been migrated to use OF_UPSTREAM. Signed-off-by: Jonas Karlman --- arch/arm/dts/rk3308-evb.dts| 230 --- arch/arm/dts/rk3308-roc-cc.dts | 190 --- arch/arm/dts/rk3308-rock-pi-s.dts | 314 arch/arm

[PATCH 03/16] rockchip: rk3328: Migrate to OF_UPSTREAM

2024-05-04 Thread Jonas Karlman
All RK3328 boards has now been synced to Linux kernel v6.8 DTs and can migrate to use OF_UPSTREAM. Migrate all RK3328 boards to use OF_UPSTREAM. Signed-off-by: Jonas Karlman --- arch/arm/dts/Makefile | 11 --- arch/arm/mach-rockchip/Kconfig| 1

[PATCH 07/16] rockchip: rk356x: Add rk3568-u-boot.dtsi

2024-05-04 Thread Jonas Karlman
Add a -u-boot.dtsi file that gets included by default for RK356x boards when a board specific u-boot.dtsi file dont exists. Signed-off-by: Jonas Karlman --- arch/arm/dts/rk3568-u-boot.dtsi | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 arch/arm/dts/rk3568-u-boot.dtsi diff --git a

[PATCH 05/16] rockchip: rk3399: Migrate to OF_UPSTREAM

2024-05-04 Thread Jonas Karlman
-off-by: Jonas Karlman --- arch/arm/dts/Makefile| 31 arch/arm/mach-rockchip/Kconfig | 1 + configs/chromebook_bob_defconfig | 2 +- configs/chromebook_kevin_defconfig | 2 +- configs/eaidk-610-rk3399_defconfig

[PATCH 10/16] phy: rockchip: usbdp: Find phy-id from the io address

2024-05-04 Thread Jonas Karlman
river"). Signed-off-by: Jonas Karlman --- drivers/phy/rockchip/phy-rockchip-usbdp.c | 39 --- 1 file changed, 34 insertions(+), 5 deletions(-) diff --git a/drivers/phy/rockchip/phy-rockchip-usbdp.c b/drivers/phy/rockchip/phy-rockchip-usbdp.c index baf92529348c..8e5821069757 10

[PATCH 11/16] phy: rockchip: usbdp: Drop rockchip_u3phy_uboot_init()

2024-05-04 Thread Jonas Karlman
Remove the rockchip_u3phy_uboot_init() function, it has no caller and is not needed with proper driver model use. Signed-off-by: Jonas Karlman --- drivers/phy/rockchip/phy-rockchip-usbdp.c | 24 --- 1 file changed, 24 deletions(-) diff --git a/drivers/phy/rockchip/phy

[PATCH 08/16] rockchip: rk356x: Migrate to OF_UPSTREAM

2024-05-04 Thread Jonas Karlman
Migrate RK356x boards that exists in Linux v6.8 to use OF_UPSTREAM. Following targets is not migrated to use OF_UPSTREAM: - anbernic-rgxx3-rk3566: Multi device target - generic-rk3568: Generic target only meant for U-Boot use - pinetab2-rk3566: Merged in v6.9-rc1 Signed-off-by: Jonas Karlman

[PATCH 12/16] phy: rockchip: usbdp: Adopt driver to work with upstream DT

2024-05-04 Thread Jonas Karlman
hy0 PHY_TYPE_USB3> Adopt the usbdp phy driver to work with upstream DT binding targeted for Linux kernel v6.10. Signed-off-by: Jonas Karlman --- drivers/phy/rockchip/phy-rockchip-usbdp.c | 63 ++- 1 file changed, 17 insertions(+), 46 deletions(-) diff --git a/drivers/phy/r

[PATCH 13/16] rockchip: rk3588-rock-5b: Drop usb-typec node from u-boot.dtsi

2024-05-04 Thread Jonas Karlman
and maximum-speed prop to cleanup the board u-boot.dtsi file. Signed-off-by: Jonas Karlman --- arch/arm/dts/rk3588-rock-5b-u-boot.dtsi | 106 +--- 1 file changed, 2 insertions(+), 104 deletions(-) diff --git a/arch/arm/dts/rk3588-rock-5b-u-boot.dtsi b/arch/arm/dts/rk3588-rock

[PATCH 14/16] rockchip: rk3588: Update USB3 related nodes in u-boot.dtsi

2024-05-04 Thread Jonas Karlman
The USB3 related DT nodes in SoC u-boot.dtsi is slightly different from the final nodes being targeted for Linux kernel v6.10. Sync USB3 related nodes from Linux maintainer v6.10-rockchip-dts64-1 tag to prepare for migration of RK3588 to use OF_UPSTREAM. Signed-off-by: Jonas Karlman --- arch

[PATCH 15/16] rockchip: rk3588: Migrate to OF_UPSTREAM

2024-05-04 Thread Jonas Karlman
Migrate RK3588 boards that exists in Linux v6.8 to use OF_UPSTREAM. Following targets is not migrated to use OF_UPSTREAM: - generic-rk3588: Generic target only meant for U-Boot use - toybrick-rk3588: Merged in v6.9-rc1 Signed-off-by: Jonas Karlman --- arch/arm/dts/Makefile

[PATCH 04/16] rockchip: rk3328: Remove redundant device tree files

2024-05-04 Thread Jonas Karlman
Remove redundant device tree files now that RK3328 boards have been migrated to use OF_UPSTREAM. Signed-off-by: Jonas Karlman --- arch/arm/dts/rk3328-evb.dts | 289 --- arch/arm/dts/rk3328-nanopi-r2c-plus.dts | 33 - arch/arm/dts/rk3328-nanopi-r2c.dts | 40

Re: [PATCH 09/16] rockchip: rk356x: Remove redundant device tree files

2024-05-04 Thread Jonas Karlman
Hi Chris, On 2024-05-04 22:51, Chris Morgan wrote: > On Sat, May 04, 2024 at 07:43:01PM +0000, Jonas Karlman wrote: >> Remove redundant device tree files now that RK356x boards have been >> migrated to use OF_UPSTREAM. >> >> Signed-off-by: Jonas Karlman >> ---

Re: [PATCH v2 03/22] clk: rockchip: rk3399: Improve support for SCLK_PCIEPHY_REF clock

2024-05-06 Thread Jonas Karlman
Hi Quentin, On 2024-05-06 13:07, Quentin Schulz wrote: > Hi Jonas, > > On 5/1/24 6:22 PM, Jonas Karlman wrote: >> rk3399-nanopi-4.dtsi try to set parent of and set rate to 100 MHz of the >> SCLK_PCIEPHY_REF clock. >> >> The existing enable/disable ops for SCLK_P

Re: [PATCH v1] rockchip: rv1126: Migrate to OF_UPSTREAM

2024-05-09 Thread Jonas Karlman
Hi, On 2024-05-09 17:26, Anand Moon wrote: > Migrate RV1126 boards that exists in Linux v6.8 to use OF_UPSTREAM. > > Following targets is not migrated to use OF_UPSTREAM: At first I got a little bit confused about the "not migrated", but see now that these are the boards that is migrated. > - r

Re: [PATCH v1] rockchip: rv1126: Migrate to OF_UPSTREAM

2024-05-09 Thread Jonas Karlman
Hi Anand, On 2024-05-09 18:42, Anand Moon wrote: > Hi Jonas > > On Thu, 9 May 2024 at 21:38, Jonas Karlman wrote: >> >> Hi, >> >> On 2024-05-09 17:26, Anand Moon wrote: >>> Migrate RV1126 boards that exists in Linux v6.8 to use OF_UPSTREAM. >&g

[PATCH] pinctrl: Fix pinctrl_gpio_get_pinctrl_and_offset()

2024-05-10 Thread Jonas Karlman
rrectly return pin controller "foo" instead of "bar". Fix this by using an exclusive range check. Fixes: d0bb00adccb8 ("pinctrl: fix pinctrl_gpio_get_pinctrl_and_offset for gpio-ranges array") Signed-off-by: Jonas Karlman --- drivers/pinctrl/pinctrl-uclass.c | 2 +-

[PATCH 0/4] rockchip: Add gpio request() ops and drop PCIe reset-gpios workaround

2024-05-11 Thread Jonas Karlman
from board u-boot.dtsi. PX30, RK3066, RK3188, RK356x and RK3588 are the only SoCs that currently define gpio-ranges props and is affected by this series. A follow up series adding support for the pinmux status cmd will also add gpio-ranges props for remaining RK SoCs. Jonas Karlman (4): pinctrl

[PATCH 1/4] pinctrl: rockchip: Add gpio_request_enable() ops

2024-05-11 Thread Jonas Karlman
, similar to Linux kernel. Reset ctrl->nr_pins to 0 so that pin_to_bank() can locate a bank after the second probe in U-Boot proper. Signed-off-by: Jonas Karlman --- The pin_to_bank() helper will also be used in a follow up series adding support for the pinmux status cmd. --- .../pinctrl/rockc

[PATCH 2/4] gpio: rockchip: Add request() ops

2024-05-11 Thread Jonas Karlman
Some boards use pinctrl to set a non-gpio pinmux on a pin that is later requested to be used for gpio output. Add a request() ops that call pinctrl_gpio_request() when the required gpio-ranges prop has been defined to signal pinctrl driver to use gpio pinmux. Signed-off-by: Jonas Karlman

[PATCH 4/4] rockchip: rk3568-radxa-e25: Drop PCIe reset-gpios workaround

2024-05-11 Thread Jonas Karlman
automatically use gpio pinmux when a gpio is requested. Signed-off-by: Jonas Karlman --- arch/arm/dts/rk3568-radxa-e25-u-boot.dtsi | 12 1 file changed, 12 deletions(-) diff --git a/arch/arm/dts/rk3568-radxa-e25-u-boot.dtsi b/arch/arm/dts/rk3568-radxa-e25-u-boot.dtsi index 74755a44eaee

[PATCH 3/4] rockchip: rk3568-rock-3a: Drop PCIe reset-gpios workaround

2024-05-11 Thread Jonas Karlman
automatically use gpio pinmux when a gpio is requested. Signed-off-by: Jonas Karlman --- arch/arm/dts/rk3568-rock-3a-u-boot.dtsi | 12 1 file changed, 12 deletions(-) diff --git a/arch/arm/dts/rk3568-rock-3a-u-boot.dtsi b/arch/arm/dts/rk3568-rock-3a-u-boot.dtsi index 9d18f5d0b364

Re: [PATCH 0/4] rockchip: Add gpio request() ops and drop PCIe reset-gpios workaround

2024-05-11 Thread Jonas Karlman
Hi Alex, On 2024-05-11 19:44, Alex Bee wrote: > Hi Jonas, > > Am 11.05.24 um 13:28 schrieb Jonas Karlman: >> This series add gpio request() and pinctrl gpio_request_enable() ops so >> that a gpio requested pin automatically use gpio pinmux and U-Boot >> behaves m

Re: [PATCH 0/4] rockchip: Add gpio request() ops and drop PCIe reset-gpios workaround

2024-05-11 Thread Jonas Karlman
Hi Mark, On 2024-05-11 21:57, Mark Kettenis wrote: >> Date: Sat, 11 May 2024 20:47:40 +0200 >> From: Jonas Karlman > > Hi Jonas & Alex, > >> Hi Alex, >> >> On 2024-05-11 19:44, Alex Bee wrote: >>> Hi Jonas, >>> >>> Am 11.0

[PATCH 0/9] rockchip: pinctrl: Minor fixes and add support for pinmux status cmd

2024-05-12 Thread Jonas Karlman
ranges props for RK3288. This series depends on the "rockchip: Add gpio request() ops and drop PCIe reset-gpios workaround" [1] series. [1] https://patchwork.ozlabs.org/cover/1934100/ Jonas Karlman (9): pinctrl: rockchip: rk3188: Fix support for IOMUX_GPIO_ONLY flag pinctrl: rockchi

[PATCH 3/9] pinctrl: rockchip: rk3588: Fix support for rockchip_get_mux()

2024-05-12 Thread Jonas Karlman
GPIO IOMUX control is located at PMU2_IOC or BUS_IOC offset on RK3588. Based on Linux commit fdc33eba11c5 ("pinctrl/rockchip: add rk3588 support"). Compared to the Linux commit, this include a fix so that the iomux of GPIO0_B4-D7 is reported correctly. Signed-off-by: Jonas Karlman -

[PATCH 5/9] pinctrl: rockchip: Update get_gpio_mux() ops

2024-05-12 Thread Jonas Karlman
verify_config() of banknum and index to avoid an out of range access of the pin_banks array, i.e. with gpio6 on rk3066a. Signed-off-by: Jonas Karlman --- The pin_to_mux() helper will be used in the get_pin_muxing() ops added in a later patch to support the pinmux status cmd. --- .../pinctrl/rockchip

[PATCH 4/9] pinctrl: rockchip: Use syscon_regmap_lookup_by_phandle()

2024-05-12 Thread Jonas Karlman
Use syscon_regmap_lookup_by_phandle() to simplify the code. Signed-off-by: Jonas Karlman --- .../pinctrl/rockchip/pinctrl-rockchip-core.c | 39 ++- 1 file changed, 12 insertions(+), 27 deletions(-) diff --git a/drivers/pinctrl/rockchip/pinctrl-rockchip-core.c b/drivers

[PATCH 1/9] pinctrl: rockchip: rk3188: Fix support for IOMUX_GPIO_ONLY flag

2024-05-12 Thread Jonas Karlman
Signed-off-by: Jonas Karlman --- Based on the old Linux commit and TRM it looks like GPIO0_B0-B7 should also be flagged as IOMUX_GPIO_ONLY. --- drivers/pinctrl/rockchip/pinctrl-rockchip-core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/pinctrl/rockchip/pinctrl-rockc

[PATCH 2/9] pinctrl: rockchip: rv1126: Fix support for IOMUX_L_SOURCE_PMU flag

2024-05-12 Thread Jonas Karlman
nctrl support"). Signed-off-by: Jonas Karlman --- drivers/pinctrl/rockchip/pinctrl-rockchip-core.c | 14 ++ 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/drivers/pinctrl/rockchip/pinctrl-rockchip-core.c b/drivers/pinctrl/rockchip/pinctrl-rockchip-core.c index b6

[PATCH 7/9] gpio: rockchip: Use pinctrl pin offset to get_gpio_mux()

2024-05-12 Thread Jonas Karlman
are used meaning the pinctrl pin offset start at pin 24 for gpio1. Use DIV_ROUND_UP to get the 32 pin aligned bank num. Signed-off-by: Jonas Karlman --- drivers/gpio/rk_gpio.c | 17 ++--- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/drivers/gpio/rk_gpio.c b/drivers

[PATCH 6/9] gpio: rockchip: Get pinctrl device from gpio-ranges prop

2024-05-12 Thread Jonas Karlman
Get pinctrl device from gpio-ranges phandle when the property exists, fallback to get the first pinctrl device. Signed-off-by: Jonas Karlman --- drivers/gpio/rk_gpio.c | 27 +++ 1 file changed, 19 insertions(+), 8 deletions(-) diff --git a/drivers/gpio/rk_gpio.c b

[PATCH 8/9] pinctrl: rockchip: Add pinmux status related ops

2024-05-12 Thread Jonas Karlman
: gpio GPIO0_A7 : func-1 GPIO0_B0 : gpio GPIO0_B1 : func-1 GPIO0_B2 : func-1 GPIO0_B3 : gpio [...] The change to use ENOENT for unrouted pins also help hide a "Error -22" message for unrouted pins using the gpio status -a cmd. Signed-off-by: Jonas Karlman --- .../pinctrl/

[PATCH 9/9] rockchip: gpio: Add gpio-ranges props

2024-05-12 Thread Jonas Karlman
: Jonas Karlman --- Cc: Johan Jonker --- arch/arm/dts/rk3036-u-boot.dtsi | 12 arch/arm/dts/rk3066a-u-boot.dtsi | 3 +-- arch/arm/dts/rk3128-u-boot.dtsi | 16 arch/arm/dts/rk322x-u-boot.dtsi | 16 arch/arm/dts/rk3288-u-boot.dtsi | 33

Re: [PATCH 0/4] rockchip: Add gpio request() ops and drop PCIe reset-gpios workaround

2024-05-12 Thread Jonas Karlman
Hi Alex, On 2024-05-12 21:49, Alex Bee wrote: > Am 11.05.24 um 20:47 schrieb Jonas Karlman: >> Hi Alex, >> >> On 2024-05-11 19:44, Alex Bee wrote: >>> Hi Jonas, >>> >>> Am 11.05.24 um 13:28 schrieb Jonas Karlman: >>>> This series

Re: [PATCH 0/4] rockchip: Add gpio request() ops and drop PCIe reset-gpios workaround

2024-05-12 Thread Jonas Karlman
Hi Mark, On 2024-05-12 22:41, Mark Kettenis wrote: >> Date: Sat, 11 May 2024 22:55:18 +0200 >> From: Jonas Karlman >> >> Hi Mark, >> >> On 2024-05-11 21:57, Mark Kettenis wrote: >>>> Date: Sat, 11 May 2024 20:47:40 +0200 >>>> Fr

Re: [PATCH 0/4] rockchip: Add gpio request() ops and drop PCIe reset-gpios workaround

2024-05-12 Thread Jonas Karlman
On 2024-05-13 00:34, Alex Bee wrote: > > Am 12.05.24 um 23:37 schrieb Jonas Karlman: >> Hi Alex, >> >> On 2024-05-12 21:49, Alex Bee wrote: >>> Am 11.05.24 um 20:47 schrieb Jonas Karlman: >>>> Hi Alex, >>>> >>>> On 2024-05-11 19

Re: [PATCH 09/13] syscon: Probe device first in syscon_get_regmap

2024-05-14 Thread Jonas Karlman
Hi Jiaxun, On 2024-05-13 20:13, Jiaxun Yang wrote: > When bootph-all is enabled for a syscon driver, the device > may leave unprobed when syscon_get_regmap is called by another > driver. > > Perform device_probe in syscon_get_regmap, there is no side > affect as device_probe will return 0 quickly

Re: [PATCH 09/13] syscon: Probe device first in syscon_get_regmap

2024-05-14 Thread Jonas Karlman
Hi Jiaxun, On 2024-05-15 02:12, Jiaxun Yang wrote: > > > 在2024年5月14日五月 下午3:50,Jonas Karlman写道: >> Hi Jiaxun, > [...] >>> + return ERR_PTR(ret); >> >> Please explain in more details what the issue this is trying to solve. >> >> T

Re: [PATCH 1/1] Squashed 'dts/upstream/' changes from b35b9bd1d4ee..7e08733c96c8

2024-05-15 Thread Jonas Karlman
Hi Tom, On 2024-05-14 18:42, Tom Rini wrote:> > git-subtree-dir: dts/upstream > git-subtree-split: 7e08733c96c84eb323f47e9b248c924e2ac6272a > --- > This moves OF_UPSTREAM to be tracking the v6.9 release and is for the > -next branch. To test these changes yourself locally, either use my > "WIP/14

Re: [PATCH 1/1] Squashed 'dts/upstream/' changes from b35b9bd1d4ee..7e08733c96c8

2024-05-15 Thread Jonas Karlman
Hi Sumit, On 2024-05-15 10:49, Sumit Garg wrote: > Hi Jonas, > > On Wed, 15 May 2024 at 13:11, Jonas Karlman wrote: >> >> Hi Tom, >> >> On 2024-05-14 18:42, Tom Rini wrote:> >>> git-subtree-dir: dts/upstream >>> git-subtree-split: 7e08733c9

Re: [PATCH v2 09/12] clk: boston: Allow to get regmap from parent device

2024-05-16 Thread Jonas Karlman
Hi Jiaxun, On 2024-05-16 13:40, Jiaxun Yang wrote: > In upstream devicetree, clk_boston is a child of syscon node > and there is no "regmap" property for clk_boston node. > > Try to check parent device first to look for syscon. > > Signed-off-by: Jiaxun Yang > --- > v2: Move syscon_get_regmap t

Re: [PATCH v1 5/9] arm: rockchip: Enable display cpuinfo to be build with SPL_BUILD

2024-05-16 Thread Jonas Karlman
Hi Anand, On 2024-05-16 10:59, Anand Moon wrote: > Changes help enable CONFIG_DISPLAY_CPUINFO to build with SPL_BUILD for > SoC RK356x and RK3588. > > Cc: Jagan Teki > Signed-off-by: Anand Moon > --- > arch/arm/mach-rockchip/Makefile | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > >

Re: [PATCH v1 6/9] rockchip: RK3568: Read the reset cause from clock reset unit for RK356x SoC

2024-05-16 Thread Jonas Karlman
Hi Anand, On 2024-05-16 10:59, Anand Moon wrote: > Read the reset cause from clock reset unit for RK356x SoC. > > Cc: Jagan Teki > Signed-off-by: Anand Moon > --- > arch/arm/mach-rockchip/cpu-info.c | 4 > 1 file changed, 4 insertions(+) > > diff --git a/arch/arm/mach-rockchip/cpu-info.c

Re: [ANN] U-Boot v2024.07-rc3 released

2024-05-21 Thread Jonas Karlman
Hi Quentin, On 2024-05-21 11:53, Quentin Schulz wrote: > Hi all, > > On 5/20/24 6:06 PM, Tom Rini wrote: >> Hey all, >> >> It's release day and here is -rc3. At this point, I think we're firmly >> on "bug fix and documentation" ground moving forward for changes to >> v2024.07 and the next branch

Re: [PATCH 0/4] rockchip: Add gpio request() ops and drop PCIe reset-gpios workaround

2024-05-22 Thread Jonas Karlman
On 2024-05-22 16:18, Alex Bee wrote: > Am 13.05.24 um 01:22 schrieb Jonas Karlman: >> On 2024-05-13 00:34, Alex Bee wrote: >>> Am 12.05.24 um 23:37 schrieb Jonas Karlman: >>>> Hi Alex, >>>> >>>> On 2024-05-12 21:49, Alex Bee wrote: >>&g

Re: [PATCH v2] board: rockchip: add ArmSoM Sige7 Rk3588 board

2024-05-22 Thread Jonas Karlman
On 2024-05-22 20:03, Quentin Schulz wrote: > Hi Jianfeng Liu, > > On 5/22/24 6:58 PM, Jianfeng Liu wrote: > [...] >> Note that these commits: >> - e18e5e8188f2 (arm64: dts: rockchip: add USBDP phys on rk3588) >> - 6fca4edb93d3 (arm64: dts: rockchip: Add rk3588 GPU node) >> are not synced to u-boot

Re: [PATCH v3 0/7] add ArmSoM Sige7 Rk3588 board

2024-05-27 Thread Jonas Karlman
Hi Jianfeng, On 2024-05-27 19:02, Jianfeng Liu wrote: > Devicetree of ArmSoM Sige7 is merged to kernel v6.10-rc1 with USBDP and > GPU nodes. So I use update-dts-subtree.sh to pick related commits of > rk3588s.dtsi, and then pick the commit of ArmSoM Sige7's devicetree. > I also did run command: >

Re: [PATCH v3 7/7] board: rockchip: add ArmSoM Sige7 Rk3588 board

2024-05-27 Thread Jonas Karlman
Hi Jianfeng, On 2024-05-27 19:02, Jianfeng Liu wrote: > ArmSoM Sige7 is a Rockchip RK3588 based SBC (Single Board Computer) by > ArmSoM. > > There are two variants depending on the DRAM size : 8G and 16G. > > Specification: > > Rockchip Rk3588 SoC > 4x ARM Cortex-A76, 4x ARM Cortex-A55

[PATCH 00/19] rockchip: rk35xx: Miscellaneous fixes and updates

2024-03-29 Thread Jonas Karlman
use of bootph properties. Patch 13-16 fixes minor issues observed with newly added boards. Patch 17 enables options on rk3588-edgeble-neu6 boards to closer match other RK35xx boards. Patch 18-19 adds SPI flash and USB OTG support to the rk35xx-generic boards. Jonas Karlman (19): clk: rockchip

[PATCH 01/19] clk: rockchip: rk356x: Add CLK_USB3OTGx_REF support

2024-03-29 Thread Jonas Karlman
The CLK_USB3OTGx_REF clocks is used as reference clock for USB3 block. Add simple support to get rate of CLK_USB3OTGx_REF clocks to fix reference clock period configuration. Signed-off-by: Jonas Karlman --- drivers/clk/rockchip/clk_rk3568.c | 4 1 file changed, 4 insertions(+) diff --git

[PATCH 02/19] clk: rockchip: rk3588: Add REF_CLK_USB3OTGx support

2024-03-29 Thread Jonas Karlman
The REF_CLK_USB3OTGx clocks is used as reference clock for USB3 block. Add simple support to get rate of REF_CLK_USB3OTGx clocks to fix reference clock period configuration. Signed-off-by: Jonas Karlman --- drivers/clk/rockchip/clk_rk3588.c | 6 ++ 1 file changed, 6 insertions(+) diff

[PATCH 03/19] rockchip: rk35xx: Drop USB_GADGET_PRODUCT_NUM Kconfig option

2024-03-29 Thread Jonas Karlman
The commit 8c19275fdb13 ("rockchip: Update the default USB Product ID value") added default product id for all supported Rockchip SoCs. Remove USB_GADGET_PRODUCT_NUM options that match default value from RK35xx boards. Signed-off-by: Jonas Karlman --- configs/pinetab2-rk3566_defco

[PATCH 05/19] rockchip: rk3566-anbernic-rgxx3: Remove SPL_ROCKCHIP_BACK_TO_BROM option

2024-03-29 Thread Jonas Karlman
boards. This patch have no intended change in boot behavior. Signed-off-by: Jonas Karlman --- configs/anbernic-rgxx3-rk3566_defconfig | 2 -- 1 file changed, 2 deletions(-) diff --git a/configs/anbernic-rgxx3-rk3566_defconfig b/configs/anbernic-rgxx3-rk3566_defconfig index c8c9238f96fc

[PATCH 04/19] rockchip: rk3588: Drop REGULATOR_PWM Kconfig option

2024-03-29 Thread Jonas Karlman
RK3588 boards do not have any pwm-regulator compatible nodes in DT, drop the superfluous REGULATOR_PWM Kconfig options. Signed-off-by: Jonas Karlman --- configs/evb-rk3588_defconfig | 1 - configs/neu6a-io-rk3588_defconfig| 1 - configs/neu6b-io-rk3588_defconfig| 1 - configs

[PATCH 06/19] rockchip: rk35xx: Sort imply statements alphabetically

2024-03-29 Thread Jonas Karlman
Sort imply statements under ROCKCHIP_RK3568 and ROCKCHIP_RK3588 alphabetically. Signed-off-by: Jonas Karlman --- arch/arm/mach-rockchip/Kconfig | 24 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/arch/arm/mach-rockchip/Kconfig b/arch/arm/mach-rockchip

[PATCH 07/19] rockchip: rk35xx: Enable random generator

2024-03-29 Thread Jonas Karlman
The RK35xx SoCs contain a crypto engine block that can generate random numbers. Enable rng node in soc u-boot.dtsi and enable Kconfig options to take advantage of the random generator. Signed-off-by: Jonas Karlman --- arch/arm/dts/rk3566-anbernic-rgxx3-u-boot.dtsi | 6 -- arch/arm/dts

[PATCH 08/19] rockchip: rk35xx: Imply support for GbE PHY

2024-03-29 Thread Jonas Karlman
Imply support for GbE PHY status parsing and configuration when support for onboard ethernet is enabled. Signed-off-by: Jonas Karlman --- arch/arm/mach-rockchip/Kconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm/mach-rockchip/Kconfig b/arch/arm/mach-rockchip/Kconfig index

[PATCH 09/19] rockchip: rk356x: Imply enhanced features for standard boot

2024-03-29 Thread Jonas Karlman
Imply BOOTSTD_FULL for all RK356x boards to more closely follow RK3588. Signed-off-by: Jonas Karlman --- arch/arm/mach-rockchip/Kconfig | 1 + configs/bpi-r2-pro-rk3568_defconfig | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/mach-rockchip/Kconfig b/arch/arm

[PATCH 10/19] rockchip: rk35xx: Sort soc u-boot.dtsi alphabetically

2024-03-29 Thread Jonas Karlman
Sort nodes and props in RK356x/RK3588 u-boot.dtsi alphabetically, nodes is sorted by reg addr then by alphabetical order. This has no intended change beside sorting existing nodes and removing a duplicated usbdpphy0_grf node. Signed-off-by: Jonas Karlman --- arch/arm/dts/rk356x-u-boot.dtsi

[PATCH 11/19] rockchip: rk356x: Update bootph props

2024-03-29 Thread Jonas Karlman
pagated to parent nodes. Also adjust pinctrl nodes to only be included in boot phases where they are needed and add any missing pinctrl node needed in SPL. Signed-off-by: Jonas Karlman --- arch/arm/dts/rk3566-pinetab2-u-boot.dtsi | 24 +- arch/arm/dts/rk3566-quartz64-a-u-boot

[PATCH 12/19] rockchip: rk3588: Update bootph props

2024-03-29 Thread Jonas Karlman
pagated to parent nodes. Also adjust pinctrl nodes to only be included in boot phases where they are needed and add any missing pinctrl node needed in SPL. Signed-off-by: Jonas Karlman --- .../arm/dts/rk3588-coolpi-cm5-evb-u-boot.dtsi | 5 ++- arch/arm/dts/rk3588-generic.dts | 1 +

[PATCH 13/19] rockchip: rk3566-pinetab2: Fix reading FIT from SPI flash

2024-03-29 Thread Jonas Karlman
The SF_DEFAULT_SPEED Kconfig option got lost during merge and this prevent reading FIT from SPI flash. Restore the SF_DEFAULT_SPEED option to fix this. Fixes: 8a94c376f6cb ("rockchip: Use common bss and stack addresses on RK356x") Signed-off-by: Jonas Karlman --- config

[PATCH 15/19] rockchip: rk3588-toybrick: Add missing Kconfig options

2024-03-29 Thread Jonas Karlman
Add .dtb-file entry to Makefile and enable Kconfig options required to configure pinctrl in SPL. Also add missing PHY_ROCKCHIP_NANENG_COMBOPHY. Fixes: 9fdd9a546986 ("board: rockchip: add Rockchip Toybrick TB-RK3588X board") Signed-off-by: Jonas Karlman --- arch/arm/dts/Makefile

[PATCH 16/19] rockchip: rk3588-turing-rk1: Use dwc3-generic driver

2024-03-29 Thread Jonas Karlman
ned-off-by: Jonas Karlman --- configs/turing-rk1-rk3588_defconfig | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/configs/turing-rk1-rk3588_defconfig b/configs/turing-rk1-rk3588_defconfig index 77aacbc64b6c..e486f0597813 100644 --- a/configs/turing-rk1-rk3588_defconfig +++

[PATCH 14/19] rockchip: rk3588-coolpi: Add boards to documentation

2024-03-29 Thread Jonas Karlman
Add the CoolPi 4 Model B and CoolPi CM5 EVB board to the documentation. Also fix .dtb-file entries in Makefile. Fixes: 3e15dee38d45 ("board: rockchip: Add support for rk3588 based Cool Pi CM5 EVB") Signed-off-by: Jonas Karlman --- arch/arm/dts/Makefile | 4 ++-- doc/boar

[PATCH 17/19] rockchip: rk3588-edgeble-neu6: Enable FIT checksum validation

2024-03-29 Thread Jonas Karlman
readl/writel in serial driver. Signed-off-by: Jonas Karlman --- configs/neu6a-io-rk3588_defconfig | 7 ++- configs/neu6b-io-rk3588_defconfig | 7 ++- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/configs/neu6a-io-rk3588_defconfig b/configs/neu6a-io-rk3588_defconfig

[PATCH 18/19] rockchip: rk356x-generic: Add support for SPI flash and USB OTG

2024-03-29 Thread Jonas Karlman
Extend the Generic RK3566/RK3568 target to also include support for SPI flash, USB OTG, RockUSB and UMS. Also fix sdmmc alias, include missing pinctrl and add broken-cd prop to fix use of SD-card in linux. Signed-off-by: Jonas Karlman --- arch/arm/dts/rk3568-generic-u-boot.dtsi | 7

[PATCH 19/19] rockchip: rk3588-generic: Add support for USB OTG

2024-03-29 Thread Jonas Karlman
Extend the Generic RK3588S/RK3588 target to also include support for USB OTG, RockUSB and UMS. Signed-off-by: Jonas Karlman --- arch/arm/dts/rk3588-generic-u-boot.dtsi | 22 ++ arch/arm/dts/rk3588-generic.dts | 3 ++- configs/generic-rk3588_defconfig| 17

Re: [RFC 1/2] rockchip: sdram: Allow board/soc specific RAM bank logic

2024-03-30 Thread Jonas Karlman
Hi Chris, On 2024-03-30 06:05, Chris Morgan wrote: > From: Chris Morgan > > Allow individual boards or SoCs to alter the RAM bank addition logic > by defining a __weak function that these boards can then override > if needed. In the event this function fails, fallback to the default > detection

Re: [RFC 2/2] rockchip: rk3588: Add SoC specific RAM bank logic

2024-03-30 Thread Jonas Karlman
Hi Chris, On 2024-03-30 06:05, Chris Morgan wrote: > From: Chris Morgan > > Add SoC specific RAM bank logic for the rk3588 boards. This logic > works by reading the ATAGS created by the ROCKCHIP_TPL stage and > applies fixups on those to ensure we aren't stepping on any > reserved memory address

[PATCH 00/31] rockchip: rk3399: Sync DT with linux v6.8 and update defconfigs

2024-03-31 Thread Jonas Karlman
-boot-rockchip/commits/rk3399-dt-sync-v1 Jonas Karlman (31): rockchip: rk3399-gru: Fix max SPL size on bob and kevin rockchip: rk3399-ficus: Enable TPL and use common bss and stack addr rockchip: rk3399: Sort imply statements alphabetically rockchip: rk3399: Enable ARMv8 crypto and FIT checksum

[PATCH 01/31] rockchip: rk3399-gru: Fix max SPL size on bob and kevin

2024-03-31 Thread Jonas Karlman
limitation. Signed-off-by: Jonas Karlman --- configs/chromebook_bob_defconfig | 2 +- configs/chromebook_kevin_defconfig | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/configs/chromebook_bob_defconfig b/configs/chromebook_bob_defconfig index d0321948697b..58e76f11472c

[PATCH 02/31] rockchip: rk3399-ficus: Enable TPL and use common bss and stack addr

2024-03-31 Thread Jonas Karlman
enabled in a future patch. Also add the missing DEFAULT_FDT_FILE option. Signed-off-by: Jonas Karlman --- configs/ficus-rk3399_defconfig | 14 ++ 1 file changed, 2 insertions(+), 12 deletions(-) diff --git a/configs/ficus-rk3399_defconfig b/configs/ficus-rk3399_defconfig index

[PATCH 03/31] rockchip: rk3399: Sort imply statements alphabetically

2024-03-31 Thread Jonas Karlman
Sort imply statements under ROCKCHIP_RK3399 alphabetically. Signed-off-by: Jonas Karlman --- arch/arm/mach-rockchip/Kconfig | 28 ++-- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/arch/arm/mach-rockchip/Kconfig b/arch/arm/mach-rockchip/Kconfig index

[PATCH 04/31] rockchip: rk3399: Enable ARMv8 crypto and FIT checksum validation

2024-03-31 Thread Jonas Karlman
limitation of 224 KiB Also imply OF_LIVE to help speed up init of U-Boot proper and disable CONFIG_SPL_RAW_IMAGE_SUPPORT on leez-rk3399 to ensure SPL does not try to jump to code that failed checksum validation. Signed-off-by: Jonas Karlman --- arch/arm/mach-rockchip/Kconfig | 5

[PATCH 06/31] rockchip: rk3399: Imply support for GbE PHY

2024-03-31 Thread Jonas Karlman
Imply support for GbE PHY status parsing and configuration when support for onboard ethernet is enabled. Signed-off-by: Jonas Karlman --- arch/arm/mach-rockchip/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/mach-rockchip/Kconfig b/arch/arm/mach-rockchip/Kconfig index

[PATCH 05/31] rockchip: rk3399: Enable random generator on all boards

2024-03-31 Thread Jonas Karlman
The RK3399 SoC contain a crypto engine block that can generate random numbers. Imply DM_RNG and RNG_ROCKCHIP Kconfig options to take advantage of the random generator on all RK3399 boards. Signed-off-by: Jonas Karlman --- arch/arm/mach-rockchip/Kconfig | 2 ++ configs

[PATCH 08/31] rockchip: rk3399: Remove use of xPL_MISC_DRIVERS options

2024-03-31 Thread Jonas Karlman
The TPL and/or SPL control FDT on RK3399 boards does not contain any node with a compatible that is supported by driver/misc/ drivers. Remove use of xPL_MISC_DRIVERS options to stop including e.g an unused efuse driver in TPL and/or SPL. Signed-off-by: Jonas Karlman --- arch/arm/mach-rockchip

[PATCH 07/31] rockchip: rk3399: Enable DT overlay support on all boards

2024-03-31 Thread Jonas Karlman
Imply OF_LIBFDT_OVERLAY Kconfig options to add device tree overlay support on all RK3399 boards. Signed-off-by: Jonas Karlman --- arch/arm/mach-rockchip/Kconfig| 1 + configs/rock-4c-plus-rk3399_defconfig | 1 - configs/rock-4se-rk3399_defconfig | 1 - configs/rock-pi-4

[PATCH 09/31] rockchip: rk3399: Add a default spl-boot-order prop

2024-03-31 Thread Jonas Karlman
ot source id is cached and "same-as-spl" can be resolved into the SPI flash node. Signed-off-by: Jonas Karlman --- arch/arm/dts/rk3399-eaidk-610-u-boot.dtsi | 1 - arch/arm/dts/rk3399-evb-u-boot.dtsi| 1 - arch/arm/dts/rk3399-ficus-u-boot.dtsi | 6 -

[PATCH 11/31] clk: rockchip: rk3399: Rename SCLK_DDRCLK to SCLK_DDRC

2024-03-31 Thread Jonas Karlman
Sync rk3399-cru.h with one from linux v6.2+ and fix use of the SCLK_DDRCLK name that was only used by U-Boot. Signed-off-by: Jonas Karlman --- arch/arm/dts/rk3399-u-boot.dtsi| 2 +- drivers/clk/rockchip/clk_rk3399.c | 2 +- include/dt-bindings/clock/rk3399-cru.h | 30

[PATCH 12/31] clk: rockchip: rk3399: Add dummy support for ACLK_VDU clock

2024-03-31 Thread Jonas Karlman
. Signed-off-by: Jonas Karlman --- drivers/clk/rockchip/clk_rk3399.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/clk/rockchip/clk_rk3399.c b/drivers/clk/rockchip/clk_rk3399.c index f0ce54067f8c..5934771b4096 100644 --- a/drivers/clk/rockchip/clk_rk3399.c +++ b/drivers/clk/rockchip

<    3   4   5   6   7   8   9   10   11   12   >