Skip to content

arm64: dts: rockchip: Initial Toybrick TB-RK1808M0 support

Andreas Färber linux-arm-kernel linux-devicetree linux-mmc linux-rockchip linux-serial lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest9 patches 16 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/9dt-bindings: arm: rockchip: Add Rockchip RK1808 and TB-RK1808M0Documentation/devicetree/bindings/arm/rockchip.yaml+5 -01 reply
2/9dt-bindings: serial: snps-dw-apb-uart: Add Rockchip RK1808Documentation/devicetree/bindings/serial/snps-dw-apb-uart.yaml+1 -01 reply
3/9arm64: dts: rockchip: Prepare Rockchip RK1808arch/arm64/boot/dts/rockchip/rk1808.dtsi+203 -06 replies
4/9arm64: dts: rockchip: Add Rockchip TB-RK1808M0arch/arm64/boot/dts/rockchip/Makefile arch/arm64/boot/dts/rockchip/rk1808k-toybrick-m0.dts+56 -00 replies
5/9arm64: dts: rockchip: rk1808k-toybrick-m0: Suppress vGIC interruptarch/arm64/boot/dts/rockchip/rk1808k-toybrick-m0.dts+4 -03 replies
6/9dt-bindings: mmc: rockchip-dw-mshc: Add Rockchip RK1808Documentation/devicetree/bindings/mmc/rockchip-dw-mshc.yaml+1 -02 replies
7/9arm64: dts: rockchip: rk1808: Prepare eMMC nodearch/arm64/boot/dts/rockchip/rk1808.dtsi+9 -00 replies
8/9arm64: dts: rockchip: rk1808k-toybrick-m0: Enable eMMCarch/arm64/boot/dts/rockchip/rk1808k-toybrick-m0.dts+38 -00 replies
9/9arm64: dts: rockchip: rk1808: Add CPU operating pointsarch/arm64/boot/dts/rockchip/rk1808.dtsi+64 -00 replies

Reviews trailers per patch

3 of 9 patches have a Reviewed-by or Acked-by.

PatchRob Herring
1/9A-b
2/9A-b
3/9
4/9
5/9
6/9A-b
7/9
8/9
9/9

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/9] arm64: dts: rockchip: Initial Toybrick TB-RK1808M0 support

Hello Heiko et al.,

It seems linux-rockchip list only saw two RK1808 patches for ASoC in 2019. Following up on a SUSE Hackweek 20 project of mine, here's some patches that allow me to start booting into the TB-RK1808M0 mPCIe card's eMMC.

Tested using its USB adapter, which allows to connect a serial cable and a USB storage device that I load kernel+dtb from. It has a reset button, and Ctrl+C allows to enter a U-Boot prompt (without EBBR/UEFI support though).

Patches are based on the shipping toybrick.dtb file.
http://t.rock-chips.com/en/wiki.php?mod=view&id=110 gives instructions for compiling sources, but no source download or link is actually provided.

I encountered a hang: earlycon revealed it being related to KVM and vGIC. Disabling KVM in Kconfig works around it, as does removing the vGIC irq in DT. I've already tried low and high for the vGIC interrupt, so no clue what might cause it. On an mPCIe card with 1 GiB of RAM I figured KVM is not going to be a major use case, so if we find no other solution, we could just delete the interrupts property in its .dts, as demonstrated here.

The TB-96AIoT 96Boards SoM would be another RK1808 platform someone might test these patches on. For the TB-RK1808S0 USB stick there's at least no documented way to access a serial console.

Have a lot of fun!

Cheers,
Andreas

Cc Rob Herring <[email protected]>
Cc Marc Zyngier <[email protected]>

Andreas Färber (9):
dt-bindings: arm: rockchip: Add Rockchip RK1808 and TB-RK1808M0
dt-bindings: serial: snps-dw-apb-uart: Add Rockchip RK1808
arm64: dts: rockchip: Prepare Rockchip RK1808
arm64: dts: rockchip: Add Rockchip TB-RK1808M0
arm64: dts: rockchip: rk1808k-toybrick-m0: Suppress vGIC interrupt
dt-bindings: mmc: rockchip-dw-mshc: Add Rockchip RK1808
arm64: dts: rockchip: rk1808: Prepare eMMC node
arm64: dts: rockchip: rk1808k-toybrick-m0: Enable eMMC
arm64: dts: rockchip: rk1808: Add CPU operating points

 .../devicetree/bindings/arm/rockchip.yaml     |   5 +
 .../bindings/mmc/rockchip-dw-mshc.yaml        |   1 +
 .../bindings/serial/snps-dw-apb-uart.yaml     |   1 +
 arch/arm64/boot/dts/rockchip/Makefile         |   1 +
 arch/arm64/boot/dts/rockchip/rk1808.dtsi      | 276 ++++++++++++++++++
 .../boot/dts/rockchip/rk1808k-toybrick-m0.dts |  97 ++++++
 6 files changed, 381 insertions(+)
 create mode 100644 arch/arm64/boot/dts/rockchip/rk1808.dtsi
 create mode 100644 arch/arm64/boot/dts/rockchip/rk1808k-toybrick-m0.dts
Signature · 1 line
2.31.1