arm64: dts: amlogic: add support for Orbbec Zora P1
Subsystems (2)
cover arm64: dts: amlogic: add support for Orbbec Zora P1
From: Alberto Robazza <[email protected]>
The Orbbec Zora P1 is a vision development board based on the Amlogic A311D (Meson G12B) SoC, with 2/4 GiB LPDDR4, an Ampak AP6256 combo module (Broadcom BCM43456 Wi-Fi over SDIO and BCM4345C5 Bluetooth over UART_A), HDMI output and Gigabit Ethernet.
According to specifications and how it advertise itself in the original dts configuration, the board is a revised version of the ODROID-N2 with WiFi/BT and Amlogic A311D instead of the original S922X, so the device tree builds on meson-g12b-a311d.dtsi and meson-g12b-odroid-n2.dtsi (mirroring meson-g12b-odroid-n2-plus.dts), extended with the board-specific GPIO wiring for the AP6256 managing, the status led is green instead of the original blue of the N2 and polarity is inverted.
This series consists of:
Patch 1: add the "orbbec" vendor prefix.
Patch 2: document the "orbbec,zora-p1" board compatible. Patch 3: add the meson-g12b-zora-p1.dts board file and Makefile entry.
The DTW was built, validated against the amlogic.yaml binding (DT_SCHEMA_FILES), and the resulting DTB was boot-tested on the board.
Alberto Robazza (3):
dt-bindings: vendor-prefixes: add Orbbec
dt-bindings: arm: amlogic: document Orbbec Zora P1 board compatible
arm64: dts: amlogic: add support for Orbbec Zora P1
.../devicetree/bindings/arm/amlogic.yaml | 1 + .../devicetree/bindings/vendor-prefixes.yaml | 2 + arch/arm64/boot/dts/amlogic/Makefile | 1 + .../boot/dts/amlogic/meson-g12b-zora-p1.dts | 103 ++++++++++++++++++ 4 files changed, 107 insertions(+) create mode 100644 arch/arm64/boot/dts/amlogic/meson-g12b-zora-p1.dts
Signature · 1 line
2.55.0
PATCH 1/3 dt-bindings: vendor-prefixes: add Orbbec
From: Alberto Robazza <[email protected]>
Add the "orbbec" vendor prefix for Orbbec Inc., a manufacturer of 3D depth cameras and embedded vision boards. The prefix is needed by an upcoming board compatible string ("orbbec,zora-p1") introduced by this series.
--- Documentation/devicetree/bindings/vendor-prefixes.yaml | 2 ++ 1 file changed, 2 insertions(+)
Documentation/devicetree/bindings/vendor-prefixes.yaml +2 -0
@@ -1213,6 +1213,8 @@ patternProperties: description: Orient Chip Technology Co., Ltd. "^oct,.*": description: Octavo Systems LLC + "^orbbec,.*": + description: Orbbec Inc. "^okaya,.*": description: Okaya Electric America, Inc. "^oki,.*":
Signature · 1 line
2.55.0
[email protected]
AI reviewRe: [PATCH 1/3] dt-bindings: vendor-prefixes: add Orbbec
Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider: - [Low] The new vendor prefix 'orbbec' is inserted out of alphabetical order. --
Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider:
- [Low] The new vendor prefix 'orbbec' is inserted out of alphabetical order. --
--- Patch [1]: [PATCH 1/3] dt-bindings: vendor-prefixes: add Orbbec --- commit 55024190d5a9225c41b52b0372720d44cc6a4378
Author: Alberto Robazza <[email protected]>
dt-bindings: vendor-prefixes: add Orbbec
This commit adds the "orbbec" vendor prefix for Orbbec Inc., which is needed to support an upcoming board compatible string.
Documentation/devicetree/bindings/vendor-prefixes.yaml patternProperties: · line 1217
Quoted 10 lines
Documentation/devicetree/bindings/vendor-prefixes.yaml +2
-0@@ -1213,6 +1213,8 @@ patternProperties: description: Orient Chip Technology Co., Ltd. "^oct,.*": description: Octavo Systems LLC + "^orbbec,.*": + description: Orbbec Inc.
[Severity: Low]
This isn't a bug, but it appears the new vendor prefix was inserted out of alphabetical order before okaya. Should orbbec be moved further down the list to maintain the file's sorting convention?
Quoted 2 lines
Documentation/devicetree/bindings/vendor-prefixes.yaml +0
-0"^okaya,.*": description: Okaya Electric America, Inc.
Signature · 1 line
Sashiko AI review · https://sashiko.dev/#/patchset/[email protected]?part=1
PATCH 2/3 dt-bindings: arm: amlogic: document Orbbec Zora P1 board compatible
In reply to Alberto RobazzaFrom: Alberto Robazza <[email protected]>
Document the "orbbec,zora-p1" compatible for the Orbbec Zora P1 board, which is based on the Amlogic A311D (Meson G12B) SoC. The corresponding device tree is added in the follow-up patch.
The "orbbec" vendor prefix used here is added in the first patch of this series
--- Documentation/devicetree/bindings/arm/amlogic.yaml | 1 + 1 file changed, 1 insertion(+)
Documentation/devicetree/bindings/arm/amlogic.yaml +1 -0
@@ -167,6 +167,7 @@ properties: - bananapi,bpi-m2s - khadas,vim3 - libretech,aml-a311d-cc + - orbbec,zora-p1 - radxa,zero2 - const: amlogic,a311d - const: amlogic,g12b
Signature · 1 line
2.55.0
PATCH 3/3 arm64: dts: amlogic: add support for Orbbec Zora P1
In reply to Alberto RobazzaFrom: Alberto Robazza <[email protected]>
The Orbbec Zora P1 is an A311D (Meson G12B) board with 2/4 GiB DDR4, an Ampak AP6256 combo module (Broadcom BCM43456 Wi-Fi over SDIO and BCM4345C5 Bluetooth over UART_A), HDMI audio output.
According to the original Linux dts, the board is a modded version of the ODROID-N2, with Amlogic A311D instead of the original S922X and WiFi and Bluetooth support.
So the device tree builds on meson-g12b-a311d.dtsi and meson-g12b-odroid-n2.dtsi (using same vddcpu values of N2+), extended with the board-specific GPIO wiring for the AP6256 handling, and some modifications for the led, GPIO_ACTIVE_LOW instead of GPIO_ACTIVE_HIGH and different label (it is a green led, not blue as in the Odroid N2).
Add the "orbbec,zora-p1" compatible to the amlogic.yaml board binding (the "orbbec" vendor prefix is already registered) and the new DTB to the Makefile.
--- arch/arm64/boot/dts/amlogic/Makefile | 1 + .../boot/dts/amlogic/meson-g12b-zora-p1.dts | 103 ++++++++++++++++++ 2 files changed, 104 insertions(+) create mode 100644 arch/arm64/boot/dts/amlogic/meson-g12b-zora-p1.dts
arch/arm64/boot/dts/amlogic/Makefile +1 -0
@@ -36,6 +36,7 @@ dtb-$(CONFIG_ARCH_MESON) += meson-g12b-odroid-go-ultra.dtb dtb-$(CONFIG_ARCH_MESON) += meson-g12b-odroid-n2-plus.dtb dtb-$(CONFIG_ARCH_MESON) += meson-g12b-odroid-n2.dtb dtb-$(CONFIG_ARCH_MESON) += meson-g12b-odroid-n2l.dtb +dtb-$(CONFIG_ARCH_MESON) += meson-g12b-zora-p1.dtb dtb-$(CONFIG_ARCH_MESON) += meson-g12b-radxa-zero2.dtb dtb-$(CONFIG_ARCH_MESON) += meson-g12b-s922x-bananapi-m2s.dtb dtb-$(CONFIG_ARCH_MESON) += meson-g12b-s922x-khadas-vim3.dtb
arch/arm64/boot/dts/amlogic/meson-g12b-zora-p1.dts new file +103 -0
103 lines not on this page · raw message
Signature · 1 line
2.55.0
[email protected]
AI reviewThank you for your contribution! Sashiko AI review found 2 potential issue(s) to consider: - [High] Hardware pin multiplexing conflict on GPIOX_16 between the SDIO power sequence reset and the 32kHz…
Thank you for your contribution! Sashiko AI review found 2 potential issue(s) to consider:
- [High] Hardware pin multiplexing conflict on GPIOX_16 between the SDIO power sequence reset and the 32kHz PWM clock.
- [Low] The new DTB entry in the Makefile is inserted out of alphabetical order.
--
--- Patch [3]: [PATCH 3/3] arm64: dts: amlogic: add support for Orbbec Zora P1 --- commit b7b88d4be9916c5079a86c04ae237d1db4d39b9b
Author: Alberto Robazza <[email protected]>
arm64: dts: amlogic: add support for Orbbec Zora P1
This patch adds device tree support for the Orbbec Zora P1 board, an A311D (Meson G12B) based board. It builds upon the ODROID-N2 device tree, adding specific configurations for the AP6256 Wi-Fi/Bluetooth module and modifying the LED settings.
arch/arm64/boot/dts/amlogic/Makefile dtb-$(CONFIG_ARCH_MESON) += meson-g12b-odroid-go-ultra.dtb · line 40
Quoted 10 lines
arch/arm64/boot/dts/amlogic/Makefile +1
-0@@ -36,6 +36,7 @@ dtb-$(CONFIG_ARCH_MESON) += meson-g12b-odroid-go-ultra.dtb dtb-$(CONFIG_ARCH_MESON) += meson-g12b-odroid-n2-plus.dtb dtb-$(CONFIG_ARCH_MESON) += meson-g12b-odroid-n2.dtb dtb-$(CONFIG_ARCH_MESON) += meson-g12b-odroid-n2l.dtb +dtb-$(CONFIG_ARCH_MESON) += meson-g12b-zora-p1.dtb dtb-$(CONFIG_ARCH_MESON) += meson-g12b-radxa-zero2.dtb
[Severity: Low]
Is this inserted out of alphabetical order? The list appears to be sorted alphabetically, so should "meson-g12b-zora-p1.dtb" be placed at the end of the meson-g12b block?
Quoted 2 lines
arch/arm64/boot/dts/amlogic/Makefile +0
-0dtb-$(CONFIG_ARCH_MESON) += meson-g12b-s922x-bananapi-m2s.dtb dtb-$(CONFIG_ARCH_MESON) += meson-g12b-s922x-khadas-vim3.dtb
[ ... ]
Quoted 6 lines
arch/arm64/boot/dts/amlogic/meson-g12b-zora-p1.dts new file +0
-0@@ -0,0 +1,103 @@
[ ... ]
Quoted 6 lines
arch/arm64/boot/dts/amlogic/meson-g12b-zora-p1.dts new file +6
-0+ sdio_pwrseq: sdio-pwrseq { + compatible = "mmc-pwrseq-simple"; + reset-gpios = <&gpio GPIOX_16 GPIO_ACTIVE_LOW>; + clocks = <&wifi32k>; + clock-names = "ext_clock"; + };
[ ... ]
arch/arm64/boot/dts/amlogic/meson-g12b-zora-p1.dts line 44
Quoted 3 lines
+&pwm_ef {
arch/arm64/boot/dts/amlogic/meson-g12b-zora-p1.dts new file +2
-0+ status = "okay"; + pinctrl-0 = <&pwm_e_pins>;
[Severity: High]
Will this cause a pin multiplexing conflict?
The sdio_pwrseq node requests GPIOX_16 as a standard GPIO for reset-gpios, but the pwm_ef node claims pwm_e_pins, which strictly multiplexes the exact same GPIOX_16 pin for hardware PWM.
When the second driver attempts to request the pin during boot, won't it receive a -EBUSY error and fail to probe, breaking the Wi-Fi functionality?
Quoted 2 lines
arch/arm64/boot/dts/amlogic/meson-g12b-zora-p1.dts new file +2
-0+ pinctrl-names = "default"; +};
Signature · 1 line
Sashiko AI review · https://sashiko.dev/#/patchset/[email protected]?part=3