[PATCH v2 0/2] arm64: dts: amlogic: add libretech cottonwood support

From: Jerome Brunet
Date: Fri Oct 06 2023 - 06:35:12 EST


This patchset adds support for the Libretech cottonwood board family.
The 2 boards are based on the same PCB, with an RPi B form factor.

The "Alta" board uses an a311d while the "Solitude" variant uses an s905d3.

This patchset depends on the usb support for the gl3510 [1] and [6]
Without it, there will be dt check warnings and usb may not come up properly.

Early u-boot support may be found here [2]. It will be submitted after
DT is accepted in Linux. As usual with Amlogic, u-boot must be packaged
with closed source binaries ([3] for the a311d, [4] for the s905d3)

Prebuilt bootloaders are available from libretech [5].

The devices are shipped with libretech's u-boot pre-flashed in SPI NOR.
If necessary, the boot source may be changed to MMC using the onboard
switch.

Happy hacking ...

Changes since v1 [7]:
* Remove extra dvfs opps
* Rename Alsa cards
* Reorganize leds for DT schema while keeping meaningful node names
* Change blue LED trigger to heartbeat
* Set panic indicator on the orange LED
* Move hub reset from under the usb phy node to the controller one
* Drop npu node

[1]: https://lore.kernel.org/all/20231002122909.2338049-1-jbrunet@xxxxxxxxxxxx
[2]: https://gitlab.com/jbrunet/u-boot/-/tree/cottonwood
[3]: https://jbrunet.baylibre.com/pub/amlogic/fips/fip-collect-aml-a311d-cc-20230701.tar.gz
[4]: https://jbrunet.baylibre.com/pub/amlogic/fips/fip-collect-aml-s905d3-cc-20230820.tar.gz
[5]: https://boot.libre.computer/ci/
[6]: https://lore.kernel.org/all/20231006101028.1973730-1-jbrunet@xxxxxxxxxxxx
[7]: https://lore.kernel.org/all/20231002141020.2403652-1-jbrunet@xxxxxxxxxxxx

Jerome Brunet (2):
dt-bindings: arm: amlogic: add libretech cottonwood support
arm64: dts: amlogic: add libretech cottonwood support

.../devicetree/bindings/arm/amlogic.yaml | 2 +
arch/arm64/boot/dts/amlogic/Makefile | 2 +
.../amlogic/meson-g12b-a311d-libretech-cc.dts | 121 ++++
.../amlogic/meson-libretech-cottonwood.dtsi | 614 ++++++++++++++++++
.../amlogic/meson-sm1-s905d3-libretech-cc.dts | 89 +++
5 files changed, 828 insertions(+)
create mode 100644 arch/arm64/boot/dts/amlogic/meson-g12b-a311d-libretech-cc.dts
create mode 100644 arch/arm64/boot/dts/amlogic/meson-libretech-cottonwood.dtsi
create mode 100644 arch/arm64/boot/dts/amlogic/meson-sm1-s905d3-libretech-cc.dts

--
2.40.1