Skip to contentSkip to conversation

Add Banana Pi BPI-W2 basic support

PATCH In review Aleix Roca Nonell 2 participants 2 messages Jul 7, 2019

lore
Share & tools
lore
#0 lore raw

cover Add Banana Pi BPI-W2 basic support

This patch series adds minimum support to boot a Banana Pi BPI-W2. This board serial interface is muxed through a custom Realtek driver not currently in mainline. Without the driver, it is only possible to initialize a bootconsole, but init cannot be run. The datasheet of the board's RTD1296 SoC is not publicly available and the procedure to interface the interrupt controller registers is not completely known yet, however, it works.

This patch is based on the official BPI-W2 downstream kernel driver [1] and the last attempt of Andreas Färber [2] to support such driver.

Please, note that the board still requires a slightly modified version of the downstreamed Realtek U-Boot to launch the Linux Kernel, which essentially removes the need for some dts nodes not included in this patch and reallocates u-boot before loading the kernel to avoid overriding U-Boot code.

[1] - https://github.com/BPI-SINOVOIP/BPI-W2-bsp
[2] - https://patchwork.kernel.org/patch/10011891

Aleix Roca Nonell (6):
dt-bindings: interrupt-controller: Document RTD129x
irqchip: Add Realtek RTD129x intc driver
arm64: dts: realtek: Move rtd1295 memreserve areas from the generic
rtd129x to its specific dtsi
arm64: dts: realtek: Add realtek intc to RTD129x
dt-bindings: arm: Document RTD1296
arm64: dts: realtek: Add bpi-w2 board support and its RTD1296 SoC

 .../devicetree/bindings/arm/realtek.txt       |  13 +
 .../realtek,rtd129x-intc.txt                  |  24 ++
 arch/arm64/boot/dts/realtek/Makefile          |   1 +
 arch/arm64/boot/dts/realtek/rtd1295.dtsi      |   3 +
 .../dts/realtek/rtd1296-bananapi-bpi-w2.dts   |  27 ++
 arch/arm64/boot/dts/realtek/rtd1296.dtsi      |  77 ++++
 arch/arm64/boot/dts/realtek/rtd129x.dtsi      |  12 +-
 drivers/irqchip/Makefile                      |   1 +
 drivers/irqchip/irq-rtd129x.c                 | 371 ++++++++++++++++++
 9 files changed, 527 insertions(+), 2 deletions(-)
 create mode 100644 Documentation/devicetree/bindings/interrupt-controller/realtek,rtd129x-intc.txt
 create mode 100644 arch/arm64/boot/dts/realtek/rtd1296-bananapi-bpi-w2.dts
 create mode 100644 arch/arm64/boot/dts/realtek/rtd1296.dtsi
 create mode 100644 drivers/irqchip/irq-rtd129x.c
Signature · 1 line
2.21.0
#1 lore raw

Am 07.07.19 um 15:22 schrieb Aleix Roca Nonell:

Quoted 1 line

This patch series adds minimum support to boot a Banana Pi BPI-W2.

Thanks for looking into this.

Please CC [email protected] next time.

Regards,
Andreas

Signature · 4 lines
SUSE Linux GmbH
Maxfeldstr. 5, 90409 Nürnberg, Germany
GF: Felix Imendörffer, Mary Higgins, Sri Rasiah
HRB 21284 (AG Nürnberg)