Add BigTreeTech CB1 SoM & Boards
Subsystems (2)
v6 cover Add BigTreeTech CB1 SoM & Boards
Hello,
This series adds a vendor prefix for BigTreeTech and adds BigTreeTech CB1, Manta board and BigTreeTech Pi.
CB1 is just an SoM thats based on AllWinner H616.
BigTreeTech Manta boards are expander boards for CB1 and BigTreeTech Pi is an CB1 in Rpi style with few additional things like IR receiver and fan port on GPIO.
This work started before I was hired by BigTreeTech and thus majority of the patches are from SoMainline email and few are from my work email.
This series depends on commit https://lkml.org/lkml/2023/8/28/1073
and https://lkml.org/lkml/2023/8/2/801
Cheers,
Martin
---
Changes in v6:
- Remove SPI node from BTT Pi (To be used via overlays)
- Rebase on top of 6.6-rc1
Changes in v5:
- Removal of wifi node comments that were obvious from properties
Changes in v4:
- Extend the range of vcc-dram to 1.5V (Max of 1.35V caused issues with booting up)
Changes in v3:
- Add missed semicolons
- Move model string from dtsi to board dts
- Add cb1 compatible to manta
- Remove extra empty lines
- Add pinctrl for SPI0
Changes in v2:
- Fix alphabetical order in vendor prefixes
- Remove CB1 SoM from bindings (Its not standalone)
- Fixed whitespace errors
- Move UART into carrier boards and BTT Pi
- Remove usb1-vbus regulator
- Fix ranges and naming of AXP313A rails
- Add comment why broken-cb in mmc0 is needed
- Rename sdio_wifi to wifi
- Add model string to BTT Pi
- Enable IR receiver for BTT Pi
- Enable SPI0
---
Martin Botka (4):
dt-bindings: vendor-prefixes: Add BigTreeTech
dt-bindings: arm: sunxi: Add BigTreeTech boards
arm64: dts: allwinner: h616: Add BigTreeTech CB1 SoM & boards support
arm64: dts: allwinner: h616: Add BigTreeTech Pi support
Documentation/devicetree/bindings/arm/sunxi.yaml | 11 ++ .../devicetree/bindings/vendor-prefixes.yaml | 2 + arch/arm64/boot/dts/allwinner/Makefile | 2 + .../sun50i-h616-bigtreetech-cb1-manta.dts | 35 ++++++ .../dts/allwinner/sun50i-h616-bigtreetech-cb1.dtsi | 138 +++++++++++++++++++++ .../dts/allwinner/sun50i-h616-bigtreetech-pi.dts | 63 ++++++++++ 6 files changed, 251 insertions(+)
---
base-commit: cc19c78b3b3f1af285182dd800a3def22227f9a2
change-id: 20230814-b4-cb1-4b18801ecf6e
Best regards,
Signature · 1 line
Martin Botka <[email protected]>
PATCH v6 1/4 dt-bindings: vendor-prefixes: Add BigTreeTech
BigTreeTech is a company based in Shenzhen that makes 3D printers and accessories.
Add prefix for it.
--- Documentation/devicetree/bindings/vendor-prefixes.yaml | 2 ++ 1 file changed, 2 insertions(+)
Documentation/devicetree/bindings/vendor-prefixes.yaml +2 -0
@@ -194,6 +194,8 @@ patternProperties: description: Shanghai Belling Co., Ltd. "^bhf,.*": description: Beckhoff Automation GmbH & Co. KG + "^bigtreetech,.*": + description: Shenzhen BigTree Tech Co., LTD "^bitmain,.*": description: Bitmain Technologies "^blutek,.*":
Signature · 7 lines
2.42.0 _______________________________________________ linux-arm-kernel mailing list [email protected] http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
PATCH v6 2/4 dt-bindings: arm: sunxi: Add BigTreeTech boards
In reply to Martin BotkaAdd name & compatible for BigTreeTech Manta boards and BigTreeTech Pi
--- Documentation/devicetree/bindings/arm/sunxi.yaml | 11 +++++++++++ 1 file changed, 11 insertions(+)
Documentation/devicetree/bindings/arm/sunxi.yaml +11 -0
@@ -151,6 +151,17 @@ properties: - const: roofull,beelink-x2 - const: allwinner,sun8i-h3 + - description: BigTreeTech Manta M4/8P + items: + - const: bigtreetech,cb1-manta + - const: bigtreetech,cb1 + - const: allwinner,sun50i-h616 + + - description: BigTreeTech Pi + items: + - const: bigtreetech,pi + - const: allwinner,sun50i-h616 + - description: Chuwi V7 CW0825 items: - const: chuwi,v7-cw0825
Signature · 7 lines
2.42.0 _______________________________________________ linux-arm-kernel mailing list [email protected] http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
PATCH v6 3/4 arm64: dts: allwinner: h616: Add BigTreeTech CB1 SoM & boards support
In reply to Martin BotkaCB1 is Compute Module style board that plugs into Rpi board style adapter or Manta 3D printer boards (M4P/M8P).
The SoM features:
- H616 SoC
- 1GiB of RAM
- AXP313A PMIC
- RTL8189FTV WiFi
Boards feature:
- 4x USB via USB2 hub (usb1 on SoM).
- SDcard slot for loading images.
- Ethernet port wired to the internal PHY. (100M)
- 2x HDMI 2.0. (Only 1 usable on CB1)
- Power and Status LEDs. (Only Status LED usable on CB1)
- 40 pin GPIO header
Currently working:
- Booting
- USB
- UART
- MMC
- Status LED
- WiFi (RTL8189FS via out of tree driver)
I didnt want to duplicate things so the manta DTS can also be used on BTT pi4b adapter. CB1 SoM has its own DTSI file in case other boards shows up that accept this SoM.
--- arch/arm64/boot/dts/allwinner/Makefile | 1 + .../sun50i-h616-bigtreetech-cb1-manta.dts | 35 ++++++ .../dts/allwinner/sun50i-h616-bigtreetech-cb1.dtsi | 138 +++++++++++++++++++++ 3 files changed, 174 insertions(+)
arch/arm64/boot/dts/allwinner/Makefile +1 -0
@@ -38,6 +38,7 @@ dtb-$(CONFIG_ARCH_SUNXI) += sun50i-h6-pine-h64.dtb dtb-$(CONFIG_ARCH_SUNXI) += sun50i-h6-pine-h64-model-b.dtb dtb-$(CONFIG_ARCH_SUNXI) += sun50i-h6-tanix-tx6.dtb dtb-$(CONFIG_ARCH_SUNXI) += sun50i-h6-tanix-tx6-mini.dtb +dtb-$(CONFIG_ARCH_SUNXI) += sun50i-h616-bigtreetech-cb1-manta.dtb dtb-$(CONFIG_ARCH_SUNXI) += sun50i-h616-orangepi-zero2.dtb dtb-$(CONFIG_ARCH_SUNXI) += sun50i-h616-x96-mate.dtb dtb-$(CONFIG_ARCH_SUNXI) += sun50i-h618-orangepi-zero3.dtb
arch/arm64/boot/dts/allwinner/sun50i-h616-bigtreetech-cb1-manta.dts new file +35 -0
@@ -0,0 +1,35 @@ +// SPDX-License-Identifier: (GPL-2.0+ or MIT) +/* + * Copyright (C) 2023 Martin Botka <[email protected]>. + */ + +/dts-v1/; + +#include "sun50i-h616-bigtreetech-cb1.dtsi" + +/ { + model = "BigTreeTech CB1"; + compatible = "bigtreetech,cb1-manta", "bigtreetech,cb1", "allwinner,sun50i-h616"; + + aliases { + serial0 = &uart0; + }; + + chosen { + stdout-path = "serial0:115200n8"; + }; +}; + +&ehci1 { + status = "okay"; +}; + +&ohci1 { + status = "okay"; +}; + +&uart0 { + pinctrl-names = "default"; + pinctrl-0 = <&uart0_ph_pins>; + status = "okay"; +};
arch/arm64/boot/dts/allwinner/sun50i-h616-bigtreetech-cb1.dtsi new file +138 -0
138 lines not on this page · raw message
Signature · 1 line
2.42.0
PATCH v6 4/4 arm64: dts: allwinner: h616: Add BigTreeTech Pi support
In reply to Martin BotkaFrom: Martin Botka <[email protected]>
The BigTreeTech Pi is an H616 based board based on CB1. Just in Rpi format board.
It features the same internals as BTT CB1 but adds:
- Fan port
- IR receiver
- ADXL345 Accelerometer connector via SPI
- 24V DC power supply via terminal plugs
- USB to CAN module connector (External Module)
List of currently working things is same as BTT CB1 but also:
- IR receiver
- ADXL345 connector
--- arch/arm64/boot/dts/allwinner/Makefile | 1 + .../dts/allwinner/sun50i-h616-bigtreetech-pi.dts | 63 ++++++++++++++++++++++ 2 files changed, 64 insertions(+)
arch/arm64/boot/dts/allwinner/Makefile +1 -0
@@ -39,6 +39,7 @@ dtb-$(CONFIG_ARCH_SUNXI) += sun50i-h6-pine-h64-model-b.dtb dtb-$(CONFIG_ARCH_SUNXI) += sun50i-h6-tanix-tx6.dtb dtb-$(CONFIG_ARCH_SUNXI) += sun50i-h6-tanix-tx6-mini.dtb dtb-$(CONFIG_ARCH_SUNXI) += sun50i-h616-bigtreetech-cb1-manta.dtb +dtb-$(CONFIG_ARCH_SUNXI) += sun50i-h616-bigtreetech-pi.dtb dtb-$(CONFIG_ARCH_SUNXI) += sun50i-h616-orangepi-zero2.dtb dtb-$(CONFIG_ARCH_SUNXI) += sun50i-h616-x96-mate.dtb dtb-$(CONFIG_ARCH_SUNXI) += sun50i-h618-orangepi-zero3.dtb
arch/arm64/boot/dts/allwinner/sun50i-h616-bigtreetech-pi.dts new file +63 -0
63 lines not on this page · raw message
Signature · 1 line
2.42.0
Re: [PATCH v6 4/4] arm64: dts: allwinner: h616: Add BigTreeTech Pi support
Dne torek, 12. september 2023 ob 13:20:50 CEST je Martin Botka napisal(a):
Quoted 12 lines
From: Martin Botka <[email protected]>
The BigTreeTech Pi is an H616 based board based on CB1. Just in Rpi format board.
It features the same internals as BTT CB1 but adds:
- Fan port
- IR receiver
- ADXL345 Accelerometer connector via SPI
- 24V DC power supply via terminal plugs
- USB to CAN module connector (External Module)
Quoted 6 lines
List of currently working things is same as BTT CB1 but also:
- IR receiver
- ADXL345 connectorSigned-off-by Martin Botka <[email protected]>Reviewed-by Andre Przywara <[email protected]>
Best regards,
Jernej
Quoted 88 lines
--- arch/arm64/boot/dts/allwinner/Makefile | 1 + .../dts/allwinner/sun50i-h616-bigtreetech-pi.dts | 63++++++++++++++++++++++ 2 files changed, 64 insertions(+)
(quoted diff) +0
-0b/arch/arm64/boot/dts/allwinner/Makefile index
42e525b9d4b9..3aca6787a167100644arch/arm64/boot/dts/allwinner/Makefile +0
-0@@ -39,6 +39,7 @@ dtb-$(CONFIG_ARCH_SUNXI) += sun50i-h6-pine-h64-model-b.dtbdtb-$(CONFIG_ARCH_SUNXI) += sun50i-h6-tanix-tx6.dtb
dtb-$(CONFIG_ARCH_SUNXI) += sun50i-h6-tanix-tx6-mini.dtb dtb-$(CONFIG_ARCH_SUNXI) += sun50i-h616-bigtreetech-cb1-manta.dtbarch/arm64/boot/dts/allwinner/Makefile +1
-0+dtb-$(CONFIG_ARCH_SUNXI) += sun50i-h616-bigtreetech-pi.dtb dtb-$(CONFIG_ARCH_SUNXI) += sun50i-h616-orangepi-zero2.dtb dtb-$(CONFIG_ARCH_SUNXI) += sun50i-h616-x96-mate.dtb dtb-$(CONFIG_ARCH_SUNXI) += sun50i-h618-orangepi-zero3.dtb(quoted diff) +0
-0
b/arch/arm64/boot/dts/allwinner/sun50i-h616-bigtreetech-pi.dtsnew file mode 100644
index 000000000000..832f08b2b260arch/arm64/boot/dts/allwinner/sun50i-h616-bigtreetech-pi.dts new file +63
-0@@ -0,0 +1,63 @@ +// SPDX-License-Identifier: (GPL-2.0+ or MIT) +/* + * Copyright (C) 2023 Martin Botka <[email protected]>. + */ + +/dts-v1/; + +#include "sun50i-h616-bigtreetech-cb1.dtsi" + +/ { + model = "BigTreeTech Pi"; + compatible = "bigtreetech,pi", "allwinner,sun50i-h616"; + + aliases { + serial0 = &uart0; + }; + + chosen { + stdout-path = "serial0:115200n8"; + }; +}; + +&ehci0 { + status = "okay"; +}; + +&ehci1 { + status = "okay"; +}; + +&ehci2 { + status = "okay"; +}; + +&ehci3 { + status = "okay"; +}; + +&ir { + status = "okay"; +}; + +&ohci0 { + status = "okay"; +}; + +&ohci1 { + status = "okay"; +}; + +&ohci2 { + status = "okay"; +}; + +&ohci3 { + status = "okay"; +}; + +&uart0 { + pinctrl-names = "default"; + pinctrl-0 = <&uart0_ph_pins>; + status = "okay"; +};
Dne torek, 12. september 2023 ob 13:20:46 CEST je Martin Botka napisal(a):
Quoted 9 lines
Hello,
This series adds a vendor prefix for BigTreeTech and adds BigTreeTech CB1, Manta board and BigTreeTech Pi.CB1 is just an SoM thats based on AllWinner H616.
BigTreeTech Manta boards are expander boards for CB1 and BigTreeTech Pi is an CB1 in Rpi style with few additional things like IR receiver and fan port on GPIO.
Quoted 8 lines
This work started before I was hired by BigTreeTech and thus majority of the patches are from SoMainline email and few are from my work email.
This series depends on commit https://lkml.org/lkml/2023/8/28/1073
and https://lkml.org/lkml/2023/8/2/801Cheers,
Martin
Applied, thanks!
Best regards,
Jernej
Quoted 53 lines
Signed-off-by Martin Botka <[email protected]>---
Changes in v6:
- Remove SPI node from BTT Pi (To be used via overlays)
- Rebase on top of 6.6-rc1Changes in v5:
- Removal of wifi node comments that were obvious from propertiesChanges in v4:
- Extend the range of vcc-dram to 1.5V (Max of 1.35V caused issues with booting up)Changes in v3:
- Add missed semicolons
- Move model string from dtsi to board dts
- Add cb1 compatible to manta
- Remove extra empty lines
- Add pinctrl for SPI0Changes in v2:
- Fix alphabetical order in vendor prefixes
- Remove CB1 SoM from bindings (Its not standalone)
- Fixed whitespace errors
- Move UART into carrier boards and BTT Pi
- Remove usb1-vbus regulator
- Fix ranges and naming of AXP313A rails
- Add comment why broken-cb in mmc0 is needed
- Renamesdio_wifito wifi
- Add model string to BTT Pi
- Enable IR receiver for BTT Pi
- Enable SPI0---
Martin Botka (4):
dt-bindings: vendor-prefixes: Add BigTreeTech
dt-bindings: arm: sunxi: Add BigTreeTech boards
arm64: dts: allwinner: h616: Add BigTreeTech CB1 SoM & boards support
arm64: dts: allwinner: h616: Add BigTreeTech Pi supportDocumentation/devicetree/bindings/arm/sunxi.yaml | 11 ++ .../devicetree/bindings/vendor-prefixes.yaml | 2 + arch/arm64/boot/dts/allwinner/Makefile | 2 + .../sun50i-h616-bigtreetech-cb1-manta.dts | 35 ++++++ .../dts/allwinner/sun50i-h616-bigtreetech-cb1.dtsi | 138 +++++++++++++++++++++ .../dts/allwinner/sun50i-h616-bigtreetech-pi.dts | 63 ++++++++++ 6 files changed, 251 insertions(+)---
base-commit:cc19c78b3b3f1af285182dd800a3def22227f9a2
change-id: 20230814-b4-cb1-4b18801ecf6eBest regards,