[PATCH] rockchip: dts: fix bootph tags for rv1126

2023-10-30 Thread Tim Lunn
issue on rv1126 boards. Signed-off-by: Tim Lunn --- arch/arm/dts/rv1126-u-boot.dtsi | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/arch/arm/dts/rv1126-u-boot.dtsi b/arch/arm/dts/rv1126-u-boot.dtsi index 5e348278f2..918c307743 100644 --- a/arch/arm/dts/rv1126-u-boot.dtsi

[PATCH 0/2] rockchip: Support otp on rv1126

2023-10-30 Thread Tim Lunn
This series adds support for reading the otp on rv1126 and then uses this to generate a persistant MAC address from cpuid. Tim Lunn (2): rockchip: otp: Add support for RV1126 rockchip: rv1126: Read cpuid from otp and set ethaddr arch/arm/dts/rv1126-u-boot.dtsi | 12 ++ arch/arm/mach

[PATCH 1/2] rockchip: otp: Add support for RV1126

2023-10-30 Thread Tim Lunn
Extend the otp driver to read rv1126 otp. This driver code was adapted from the Rockchip BSP stack. Signed-off-by: Tim Lunn --- drivers/misc/rockchip-otp.c | 76 + 1 file changed, 76 insertions(+) diff --git a/drivers/misc/rockchip-otp.c b/drivers/misc

[PATCH 2/2] rockchip: rv1126: Read cpuid from otp and set ethaddr

2023-10-30 Thread Tim Lunn
Provide configuration to read cpuid and generate a persistant MAC address in ethaddr Signed-off-by: Tim Lunn --- arch/arm/dts/rv1126-u-boot.dtsi | 12 arch/arm/mach-rockchip/Kconfig | 2 ++ 2 files changed, 14 insertions(+) diff --git a/arch/arm/dts/rv1126-u-boot.dtsi b/arch/arm

Re: PSCI: prefetch abort with Mainline linux (even with rockchip u-boot)

2023-09-13 Thread Tim Lunn
Hi Jagan, On 10/23/22 01:35, Jagan Teki wrote: Hi Kever and Heiko, Rockchip 32-bit SoC, like rv1126 seems to depend on PSCI to bring SMP in linux. With rockchip u-boot and Mainline U-Boot the psci in linux-next triggers the abort. (note that I have added rockchip_smcc and enabled PSCI in u-boo

[PATCH 0/5] rockchip: Add support for rv1126 based Sonoff iHost Gateway

2024-01-22 Thread Tim Lunn
OTG - Realtek RTL8723DS WiFi/BT - EFR32MG21 Silabs Zigbee radio - Speaker/Microphone Sync rv1126 dts from linux v6.8-rc1, add support for ddr4 ram and add board support for the Sonoff ihost. Tim Lunn (5): arm: dts: rockchip: Sync rv1126 dts from linux 6.8-rc1 ram: rockchip: Add rv1126 ddr4

[PATCH 1/5] arm: dts: rockchip: Sync rv1126 dts from linux 6.8-rc1

2024-01-22 Thread Tim Lunn
Sync linux dts files for rv1126 boards from linux v6.8-rc1 tag. Includes the newly added dts for Sonoff iHost. Signed-off-by: Tim Lunn --- arch/arm/dts/rv1126-edgeble-neu2-io.dts | 70 arch/arm/dts/rv1126-edgeble-neu2.dtsi | 27 +- arch/arm/dts/rv1126-pinctrl.dtsi| 130

[PATCH 2/5] ram: rockchip: Add rv1126 ddr4 support

2024-01-22 Thread Tim Lunn
Add support for ddr4 on rv1126. Timing detection files are imported from downstream Rockchip BSP u-boot. Allow selecting ddr4 ram with define CONFIG_RAM_ROCKCHIP_DDR4. Signed-off-by: Tim Lunn --- .../sdram-rv1126-ddr4-detect-1056.inc | 75 +++ .../rockchip/sdram-rv1126

[PATCH 3/5] board: rockchip: Add Sonoff iHost board

2024-01-22 Thread Tim Lunn
- microSD slot - RMII Ethernet PHY - 1x USB 2.0 Host - 1x USB 2.0 OTG - Realtek RTL8723DS WiFi/BT - EFR32MG21 Silabs Zigbee radio - Speaker/Microphone Signed-off-by: Tim Lunn --- arch/arm/dts/rv1126-sonoff-ihost-u-boot.dtsi | 13 + arch/arm/mach-rockchip/rv1126/Kconfig| 8 +++ board

[PATCH 4/5] rockchip: rv1126: select SPL_OPTEE_IMAGE

2024-01-22 Thread Tim Lunn
rv1126 requires OPTEE as it provides pcsi support. Mainline Linux kernel will fail to boot without this. Select SPL_OPTEE_IMAGE when building FIT image. TEE must be provided when building. Signed-off-by: Tim Lunn --- arch/arm/mach-rockchip/Kconfig | 1 + 1 file changed, 1 insertion(+) diff

[PATCH 5/5] rockchip: rv1126: Move RAM disk address

2024-01-22 Thread Tim Lunn
OPTEE gets loaded into a memory region overlapping with the ram disk. Fix the ramdisk address so it doesn't overlap with the OPTEE memory region. Signed-off-by: Tim Lunn --- include/configs/rv1126_common.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/co

Re: [PATCH 3/5] board: rockchip: Add Sonoff iHost board

2024-01-22 Thread Tim Lunn
Hi Tom, On 1/23/24 02:36, Tom Rini wrote: On Mon, Jan 22, 2024 at 11:46:01PM +1100, Tim Lunn wrote: Sonoff iHost is gateway device designed to provide a Smart Home Hub, it is based on Rockchip RV1126. There is also a version with 2GB RAM based off the RV1109 dual core SoC however this works

[PATCH v2 0/6] rockchip: Add support for rv1126 based Sonoff iHost Gateway

2024-01-23 Thread Tim Lunn
with standard boot Tim Lunn (6): arm: dts: rockchip: Sync rv1126 dts from linux 6.8-rc1 ram: rockchip: Add rv1126 ddr4 support rockchip: Convert rv1126 to standard boot board: rockchip: Add Sonoff iHost board rockchip: rv1126: select SPL_OPTEE_IMAGE rockchip: rv1126: Move RAM disk

[PATCH v2 1/6] arm: dts: rockchip: Sync rv1126 dts from linux 6.8-rc1

2024-01-23 Thread Tim Lunn
Sync linux dts files for rv1126 boards from linux v6.8-rc1 tag. Includes the newly added dts for Sonoff iHost. Signed-off-by: Tim Lunn --- (no changes since v1) arch/arm/dts/rv1126-edgeble-neu2-io.dts | 70 arch/arm/dts/rv1126-edgeble-neu2.dtsi | 27 +- arch/arm/dts/rv1126

[PATCH v2 2/6] ram: rockchip: Add rv1126 ddr4 support

2024-01-23 Thread Tim Lunn
Add support for ddr4 on rv1126. Timing detection files are imported from downstream Rockchip BSP u-boot. Allow selecting ddr4 ram with define CONFIG_RAM_ROCKCHIP_DDR4. Signed-off-by: Tim Lunn --- (no changes since v1) .../sdram-rv1126-ddr4-detect-1056.inc | 75

[PATCH v2 3/6] rockchip: Convert rv1126 to standard boot

2024-01-23 Thread Tim Lunn
RV1126 soc appears to have been missed with the conversion of rockchip socs to standard boot. Remove remnants of distro boot for rv1126 common and the one existing board. Signed-off-by: Tim Lunn Link: https://lore.kernel.org/all/20230407223645.v8.8.I4cf7708a1ba953b9abd81375d93af34665c7b251

[PATCH v2 4/6] board: rockchip: Add Sonoff iHost board

2024-01-23 Thread Tim Lunn
- microSD slot - RMII Ethernet PHY - 1x USB 2.0 Host - 1x USB 2.0 OTG - Realtek RTL8723DS WiFi/BT - EFR32MG21 Silabs Zigbee radio - Speaker/Microphone Signed-off-by: Tim Lunn --- Changes in v2: - Remove board config not required with standard boot arch/arm/dts/rv1126-sonoff-ihost-u-boot.dtsi

[PATCH v2 5/6] rockchip: rv1126: select SPL_OPTEE_IMAGE

2024-01-23 Thread Tim Lunn
rv1126 requires OPTEE as it provides pcsi support. Mainline Linux kernel will fail to boot without this. Select SPL_OPTEE_IMAGE when building FIT image. TEE must be provided when building. Signed-off-by: Tim Lunn --- (no changes since v1) arch/arm/mach-rockchip/Kconfig | 1 + 1 file changed

[PATCH v2 6/6] rockchip: rv1126: Move RAM disk address

2024-01-23 Thread Tim Lunn
OPTEE gets loaded into a memory region overlapping with the ram disk. Fix the ramdisk address so it doesn't overlap with the OPTEE memory region. Signed-off-by: Tim Lunn --- (no changes since v1) include/configs/rv1126_common.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)

Re: [PATCH] board: rockchip: Add Hardkernel ODROID-M1S

2024-01-31 Thread Tim Lunn
Hi, On 1/25/24 22:50, Jonas Karlman wrote: + pinctrl-0 = <&emmc_bus8 &emmc_clk &emmc_cmd &emmc_datastrobe>; +}; Because this device tree is not yet in linux, hopefully correct props can be applied to device tree and u-boot do not need any overrides. I suppose this pinctrl override was co

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

2024-05-10 Thread Tim Lunn
device designed to provide a Smart Home Hub. This looks fine to me. Tested on Sonoff iHost Reviewed-By: Tim Lunn Tested-By: Tim Lunn Cc: Tim Lunn Cc: Jagan Teki Signed-off-by: Anand Moon --- v2: remove the dt-bindings for clock and power fix the typo in commit