Re: [RFC PATCH v1 00/20] Introduce support for Raspberry PI 5.

2025-02-20 Thread Oleksii Moisieiev
Hi Peter, On 19/02/2025 21:37, Peter Robinson wrote: > Hi Oleksii, > > I've started to look at this. > > On Wed, 5 Feb 2025 at 10:15, Oleksii Moisieiev > wrote: > > This patch series provides generic support for Raspberry PI 5 in > U-Boot with additi

Re: [RFC PATCH v1 00/20] Introduce support for Raspberry PI 5.

2025-02-19 Thread Oleksii Moisieiev
Hi Etienne, On 19/02/2025 17:30, Etienne Dublé wrote: > Le 05/02/2025 à 11:15, Oleksii Moisieiev a écrit : >> This patch series provides generic support for Raspberry PI 5 in [snip] > > Tested-by: Etienne Dublé > > I applied the patch on commit 6e316e3f397b5e01e98c5dd56cdb

Re: [RFC PATCH v1 00/20] Introduce support for Raspberry PI 5.

2025-02-17 Thread Oleksii Moisieiev
Hi Tom, On 06/02/2025 18:54, Tom Rini wrote: > On Thu, Feb 06, 2025 at 04:07:53PM +0000, Oleksii Moisieiev wrote: >> Hi Simon, >> >> Please see below. >> >> On 06/02/2025 17:58, Simon Glass wrote: >>> Hi Oleksii, >>> >>> On Thu, 6 Fe

Re: [RFC PATCH v1 00/20] Introduce support for Raspberry PI 5.

2025-02-06 Thread Oleksii Moisieiev
On 06/02/2025 18:54, Tom Rini wrote: > On Thu, Feb 06, 2025 at 04:07:53PM +0000, Oleksii Moisieiev wrote: >> Hi Simon, >> >> Please see below. >> >> On 06/02/2025 17:58, Simon Glass wrote: >>> Hi Oleksii, >>> >>> On Thu, 6 Fe

Re: [RFC PATCH v1 00/20] Introduce support for Raspberry PI 5.

2025-02-06 Thread Oleksii Moisieiev
Hi Simon, Please see below. On 06/02/2025 17:58, Simon Glass wrote: > Hi Oleksii, > > On Thu, 6 Feb 2025 at 05:46, Oleksii Moisieiev > wrote: >> Hi Simon. >> >> Please see below. >> >> -- Oleski >> >> On 06/02/2025 14:31, Simon Glass wrot

Re: [RFC PATCH v1 00/20] Introduce support for Raspberry PI 5.

2025-02-06 Thread Oleksii Moisieiev
Hi Simon. Please see below. -- Oleski On 06/02/2025 14:31, Simon Glass wrote: > Hi Oleksii, > > On Wed, 5 Feb 2025 at 03:15, Oleksii Moisieiev > wrote: >> This patch series provides generic support for Raspberry PI 5 in >> U-Boot with additional hardware drivers. >&g

Re: [RFC PATCH v1 01/20] include: dt-bindings: clk: introduce bindings for rp1 clock

2025-02-05 Thread Oleksii Moisieiev
s. -- Oleksii On 05/02/2025 17:21, Tom Rini wrote: > On Wed, Feb 05, 2025 at 10:15:41AM +, Oleksii Moisieiev wrote: > >> Introducing device-tree bindings for the RP1 clocks. >> >> Signed-off-by: Oleksii Moisieiev >> Reviewed-by: Volodymyr Babchuk >

[RFC PATCH v1 12/20] drivers: reset: introduce reset drivers for brcmstb

2025-02-05 Thread Oleksii Moisieiev
Introducing Generic Reset controller and Generic RESCAL drivers for Broadcom boards. Signed-off-by: Oleksii Moisieiev Reviewed-by: Volodymyr Babchuk --- drivers/reset/Kconfig| 14 drivers/reset/Makefile | 2 + drivers/reset/reset-brcmstb-rescal.c | 103

[RFC PATCH v1 20/20] bcm2712: enable linux kernel image header

2025-02-05 Thread Oleksii Moisieiev
ernel images to the same address 0x8, thus, overwriting OP-TEE image. This patch enables Linux kernel image for U-Boot, so firmware will treat U-Boot as a kernel image, placing it at different address, namely at 0x20. Signed-off-by: Volodymyr Babchuk Reviewed-by: Oleksii Moisieiev Test

[RFC PATCH v1 16/20] board: raspberrypi: rpi: request RP1 in late_init

2025-02-05 Thread Oleksii Moisieiev
child nodes. So RP1 probe should be called after all initializations were done. Signed-off-by: Volodymyr Babchuk Signed-off-by: Oleksii Moisieiev Reviewed-by: Volodymyr Babchuk --- board/raspberrypi/rpi/rpi.c | 23 +++ 1 file changed, 23 insertions(+) diff --git a/

[RFC PATCH v1 19/20] drivers: pci: pcie_brcmstb: set correct reset state on pcie_remove

2025-02-05 Thread Oleksii Moisieiev
t switch error after 120 sec timeout. Signed-off-by: Oleksii Moisieiev Reviewed-by: Volodymyr Babchuk --- drivers/pci/pcie_brcmstb.c | 10 ++ 1 file changed, 10 insertions(+) diff --git a/drivers/pci/pcie_brcmstb.c b/drivers/pci/pcie_brcmstb.c index 2e58ea453e..c5fe5f9d20 100644 ---

[RFC PATCH v1 15/20] configs: add support for the Raspberrypi 5 board to default config

2025-02-05 Thread Oleksii Moisieiev
Add the default configuration file for RPI5 board. To build u-boot for Raspberrypi 5 the following command should be used: > make rpi_arm64_defconfig CROSS_COMPILE=aarch64-linux-gnu- Signed-off-by: Oleksii Moisieiev Reviewed-by: Volodymyr Babchuk --- configs/rpi_arm64_defconfig |

[RFC PATCH v1 13/20] drivers: clk: introduce clock driver for RP1

2025-02-05 Thread Oleksii Moisieiev
Introduce clock driver for RPI5 RP1 chip. It is intended to work with a clock controller connected to the RP1 chip of RPI5. Current implementation supports only RP1_CLK_ETH_TSU clock. Additional clock could be added to the rp1_data array if needed. Signed-off-by: Oleksii Moisieiev Reviewed-by

[RFC PATCH v1 14/20] drivers: net: macb: introduce ePCI connection support for macb

2025-02-05 Thread Oleksii Moisieiev
-off-by: Oleksii Moisieiev Reviewed-by: Volodymyr Babchuk --- drivers/net/Kconfig | 1 + drivers/net/macb.c | 154 +++- drivers/net/macb.h | 16 + 3 files changed, 140 insertions(+), 31 deletions(-) diff --git a/drivers/net/Kconfig b/drivers/net

[RFC PATCH v1 10/20] drivers: mfd: introduce RP1 chip driver for RPI5

2025-02-05 Thread Oleksii Moisieiev
Raspberry PI 5 has RP1 chip connected over PCIE and working as a bridge to different hardware. This driver implementation was inspired by MFD RP1 driver in the Linux Kernel. Signed-off-by: Oleksii Moisieiev Reviewed-by: Volodymyr Babchuk --- drivers/mfd/Kconfig | 10 drivers/mfd

[RFC PATCH v1 09/20] drivers: pci: add BCM2712 support for pcie_brcmstb driver

2025-02-05 Thread Oleksii Moisieiev
Introducing pcie support for BCM2712 on example of the RPI5 board. This driver initializes PCIe driver on start and provides access to the peripheral, connected to PCIe. Signed-off-by: Oleksii Moisieiev Reviewed-by: Volodymyr Babchuk --- drivers/pci/pcie_brcmstb.c | 314

[RFC PATCH v1 11/20] drivers: gpio: add support of RP1 GPIO for Raspberry PI 5

2025-02-05 Thread Oleksii Moisieiev
Raspberry PI5 has an external chip RP1 installed which provides it's own GPIO controller. This driver implements GPIO support for RP1 GPIO controller. Signed-off-by: Oleksii Moisieiev Reviewed-by: Volodymyr Babchuk --- drivers/gpio/Kconfig| 7 + drivers/gpio/Makefile | 1 + dr

[RFC PATCH v1 18/20] drivers: pci: pcie_brcmstb: use bus_base to config PCI device

2025-02-05 Thread Oleksii Moisieiev
late "real" Bus address for underlying devices. Please note that this fix may not support a case when we have PCI-to-PCI bridges behind the second PCIe controller. Signed-off-by: Oleksii Moisieiev Reviewed-by: Volodymyr Babchuk --- drivers/pci/pcie_brcmstb.c | 4 1 file changed, 4 in

[RFC PATCH v1 07/20] drivers: core: of_addr: fix of_get_dma_range translation

2025-02-05 Thread Oleksii Moisieiev
cells call. Which will return correct address-cells for the node. This matches the requirements of the device-tree specification. [0] https://readthedocs.org/projects/devicetree-specification/downloads/pdf/latest/ Signed-off-by: Oleksii Moisieiev Reviewed-by: Volodymyr Babchuk --- drivers/c

[RFC PATCH v1 08/20] board: raspberrypi: rpi: save board_type to the global_data

2025-02-05 Thread Oleksii Moisieiev
Save board_type retrieved from the BCM board firmware to the global data. This information can be accessed by using gd_board_type() call to determine the type of currently used board. Signed-off-by: Oleksii Moisieiev Reviewed-by: Volodymyr Babchuk --- board/raspberrypi/rpi/rpi.c| 5

[RFC PATCH v1 02/20] include: dt-bindings: mfd: introduce bindings for RP1 driver

2025-02-05 Thread Oleksii Moisieiev
Header includes all needed defines to be used in the device-tree bindings. Signed-off-by: Oleksii Moisieiev Reviewed-by: Volodymyr Babchuk --- include/dt-bindings/mfd/rp1.h | 239 ++ 1 file changed, 239 insertions(+) create mode 100644 include/dt-bindings/mfd

[RFC PATCH v1 17/20] HACK: drivers: mfd: set bar configuration for RP1 driver

2025-02-05 Thread Oleksii Moisieiev
Linux kernel. Here BAR address configuration is set to match the Linux Kernel order to avoid fails on address translation. This should be changed after upstreaming RP1 driver to the Linux kernel mainline. Signed-off-by: Oleksii Moisieiev Reviewed-by: Volodymyr Babchuk --- drivers/mfd/rp1.c

[RFC PATCH v1 04/20] arch: arm: mach-bcm283x: add BCM2712 board support

2025-02-05 Thread Oleksii Moisieiev
Add BCM2712 board support to U-Boot. Signed-off-by: Oleksii Moisieiev Reviewed-by: Volodymyr Babchuk --- arch/arm/mach-bcm283x/Kconfig | 4 1 file changed, 4 insertions(+) diff --git a/arch/arm/mach-bcm283x/Kconfig b/arch/arm/mach-bcm283x/Kconfig index 6ce278c6d2..c7509146be 100644

[RFC PATCH v1 05/20] drivers: net: macb: do not include arch/clk.h when clocks enabled

2025-02-05 Thread Oleksii Moisieiev
is enabled there is no need to include arch specific code and no need to declare 'get_macb_pclk_rate' call. Added conditional to include arch/clk.h only if clock subsystem is disabled. Signed-off-by: Oleksii Moisieiev Reviewed-by: Volodymyr Babchuk --- drivers/net/macb.c | 2 ++ 1 file c

[RFC PATCH v1 06/20] drivers: pci: take into account that ofnode_read_pci_vendev can fail

2025-02-05 Thread Oleksii Moisieiev
From: Volodymyr Babchuk Prior to this fix devfn was set to 0, which lead to funny consequences because PCI subsystem tried to use RP1 driver as a host bridge driver. Signed-off-by: Volodymyr Babchuk Reviewed-by: Volodymyr Babchuk Signed-off-by: Oleksii Moisieiev --- drivers/pci/pci

[RFC PATCH v1 03/20] arch: arm: mach-bcm283x: add pcie memory region to BCM2712 memmap

2025-02-05 Thread Oleksii Moisieiev
Update initial memory map for the BCM2712 board. Add PCIe memory regions. Signed-off-by: Oleksii Moisieiev Reviewed-by: Volodymyr Babchuk --- arch/arm/mach-bcm283x/init.c | 10 +- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/arch/arm/mach-bcm283x/init.c b/arch/arm/mach

[RFC PATCH v1 01/20] include: dt-bindings: clk: introduce bindings for rp1 clock

2025-02-05 Thread Oleksii Moisieiev
Introducing device-tree bindings for the RP1 clocks. Signed-off-by: Oleksii Moisieiev Reviewed-by: Volodymyr Babchuk --- include/dt-bindings/clk/rp1.h | 56 +++ 1 file changed, 56 insertions(+) create mode 100644 include/dt-bindings/clk/rp1.h diff --git a

[RFC PATCH v1 00/20] Introduce support for Raspberry PI 5.

2025-02-05 Thread Oleksii Moisieiev
m/xen-troops/meta-xt-prod-devel-rpi5 This is xen-based dom0less system on the Raspberry PI 5 with Zephyr as Control Domain and Linux is Driver Domain. It is Yocto-based so it will be easy to build it on your side. Please visit link for the details. Oleksii Moisieiev (17): include: dt-bindings