arm64: dts: allwinner: add Radxa Cubie A7A board
Subsystems (2)
cover arm64: dts: allwinner: add Radxa Cubie A7A board
Hi,
this short series adds a devicetree for the Radxa Cubie A7A single board computer. It's based on Enzo's basic A733 .dtsi and Cubie A7S series, plus the other required binding patches, which are partly still in flight. Patch 1 adds some I2C pins to the .dtsi, as the board connects some external RTC chip there.
Patch 2 is the actual .dts, supporting just a very basic system - the system peripherals like GIC and timer, plus the PMIC, SD card and the UART. USB and Ethernet should be easy to add, though binding patches for them are still in flight.
Tested on the board, with MMC including card detect IRQ working, also the LEDs behave as expected. The EEPROM could be read via the sysfs interface. The I2C-attached RTC probes, though I couldn't really use it, as it reports an invalid calendar format. For booting, I needed the sunxi/for-next kernel, plus the pinctrl fixes and the AXP318 patches.
Ideally this series should become part of Enzo's DT series, to avoid unnecessary churn and avoid conflicts: patch 1/2 should be squashed into the .dtsi, and patch 2/2 just added to his series.
Please have a look!
Cheers,
Andre
Andre Przywara (2):
arm64: dts: allwinner: a733: add r_i2c1 pins
arm64: dts: allwinner: add Radxa Cubie A7A board
arch/arm64/boot/dts/allwinner/Makefile | 1 + .../dts/allwinner/sun60i-a733-cubie-a7a.dts | 385 ++++++++++++++++++ .../arm64/boot/dts/allwinner/sun60i-a733.dtsi | 7 + 3 files changed, 393 insertions(+) create mode 100644 arch/arm64/boot/dts/allwinner/sun60i-a733-cubie-a7a.dts
Signature · 1 line
2.43.0
PATCH 1/2 arm64: dts: allwinner: a733: add r_i2c1 pins
The Radxa Cubie A7A board connects an external RTC chip to the R_I2C1 pins (S_TWI1 in the schematic).
Add the pinctrl subnode to the secondary GPIO controller, to allow using those pins in a board .dts.
--- arch/arm64/boot/dts/allwinner/sun60i-a733.dtsi | 7 +++++++ 1 file changed, 7 insertions(+)
arch/arm64/boot/dts/allwinner/sun60i-a733.dtsi +7 -0
@@ -585,6 +585,13 @@ r_i2c0_pl_pins: r-i2c0-pl-pins { function = "r_i2c0"; allwinner,pinmux = <2>; }; + + /omit-if-no-ref/ + r_i2c1_pl_pins: r-i2c1-pl-pins { + pins = "PL12", "PL13"; + function = "r_i2c1"; + allwinner,pinmux = <3>; + }; }; r_uart0: serial@7080000 {
Signature · 1 line
2.43.0
PATCH 2/2 arm64: dts: allwinner: add Radxa Cubie A7A board
In reply to Andre PrzywaraThe Radxa Cubie A7A is a single board computer using the Allwinner A733 SoC. It features:
- Allwinner A733 SoC (6*Arm Cortex-A55 + 2*Arm Cortex-A76)
- Imagination BXM-4-64 MC1 GPU and 3 TOPS NPU
- 2-16 GiB LPDDR5 DRAM
- AXP318W PMIC
- eMMC and UFS socket
- single lane PCIe 3.0 via FPC connector
- microSD card slot
- bootable SPI NOR flash
- HDMI 2.0 and MIPI-DSI connector
- MIPI-CSI camera connector
- GBit Ethernet socket, with optional POE support
- unknown Bluetooth and WiFi
- USB-C 2.0 OTG port (also primary power supply)
- USB-A 3.1 host port
- 3* USB-A 2.0 host ports (via hub)
- 40 pin GPIO connector
Add initial support for the peripherals we have DT bindings for so far, including UART, PMIC, SD card, some EEPROM and an external RTC chip. The PMIC rails assignment has been determined by the schematic.
--- arch/arm64/boot/dts/allwinner/Makefile | 1 + .../dts/allwinner/sun60i-a733-cubie-a7a.dts | 385 ++++++++++++++++++ 2 files changed, 386 insertions(+) create mode 100644 arch/arm64/boot/dts/allwinner/sun60i-a733-cubie-a7a.dts
arch/arm64/boot/dts/allwinner/Makefile +1 -0
@@ -70,4 +70,5 @@ dtb-$(CONFIG_ARCH_SUNXI) += sun55i-a527-cubie-a5e.dtb dtb-$(CONFIG_ARCH_SUNXI) += sun55i-h728-x96qpro+.dtb dtb-$(CONFIG_ARCH_SUNXI) += sun55i-t527-avaota-a1.dtb dtb-$(CONFIG_ARCH_SUNXI) += sun55i-t527-orangepi-4a.dtb +dtb-$(CONFIG_ARCH_SUNXI) += sun60i-a733-cubie-a7a.dtb dtb-$(CONFIG_ARCH_SUNXI) += sun60i-a733-cubie-a7s.dtb
arch/arm64/boot/dts/allwinner/sun60i-a733-cubie-a7a.dts new file +385 -0
385 lines not on this page · raw message
Signature · 1 line
2.43.0