arm64: dts: ti: k3-am62p-verdin: Add device tree overlays
Subsystems (2)
cover arm64: dts: ti: k3-am62p-verdin: Add device tree overlays
From: Vitor Soares <[email protected]>
This series adds device tree overlays for the Toradex Verdin AM62P, bringing it in line with the overlay support already present for the Verdin AM62.
The first patch enables Bridge Tied Load (BTL) mode on the Nuvoton NAU8822 audio codec present on the Verdin Development Board, combining the two loudspeaker outputs for higher output power.
The second patch reserves the AM62P MCU_UART0 (Verdin UART_4) for use by the Cortex-R5F co-processor as its debug UART.
The third patch adds OV5640 CSI camera support on Verdin CSI_1 in two
variants: the current CSI Camera Set 5MP OV5640 with a 27 MHz oscillator and the legacy CSI Camera Module 5MP OV5640 with a 24 MHz oscillator.
Vitor Soares (3):
arm64: dts: ti: k3-am62p-verdin: Add NAU8822 Bridge Tied Load
arm64: dts: ti: k3-am62p-verdin: Reserve UART_4 for Cortex-R5F
arm64: dts: ti: k3-am62p-verdin: Add Toradex OV5640 CSI Cameras
arch/arm64/boot/dts/ti/Makefile | 16 +++++ .../ti/k3-am62p5-verdin-dev-nau8822-btl.dtso | 14 ++++ .../dts/ti/k3-am62p5-verdin-ov5640-24mhz.dtso | 17 +++++ .../boot/dts/ti/k3-am62p5-verdin-ov5640.dtsi | 72 +++++++++++++++++++ .../boot/dts/ti/k3-am62p5-verdin-ov5640.dtso | 18 +++++ .../dts/ti/k3-am62p5-verdin-uart4-mcu.dtso | 13 ++++ 6 files changed, 150 insertions(+) create mode 100644 arch/arm64/boot/dts/ti/k3-am62p5-verdin-dev-nau8822-btl.dtso create mode 100644 arch/arm64/boot/dts/ti/k3-am62p5-verdin-ov5640-24mhz.dtso create mode 100644 arch/arm64/boot/dts/ti/k3-am62p5-verdin-ov5640.dtsi create mode 100644 arch/arm64/boot/dts/ti/k3-am62p5-verdin-ov5640.dtso create mode 100644 arch/arm64/boot/dts/ti/k3-am62p5-verdin-uart4-mcu.dtso
Signature · 1 line
2.54.0
PATCH 1/3 arm64: dts: ti: k3-am62p-verdin: Add NAU8822 Bridge Tied Load
From: Vitor Soares <[email protected]>
Add a device tree overlay enabling Bridge Tied Load (BTL) mode on the Nuvoton NAU8822 audio codec present on the Verdin Development Board. In BTL mode, the two loudspeaker outputs are bridged to deliver higher output power on the X28 speaker connector.
--- arch/arm64/boot/dts/ti/Makefile | 4 ++++ .../dts/ti/k3-am62p5-verdin-dev-nau8822-btl.dtso | 14 ++++++++++++++ 2 files changed, 18 insertions(+) create mode 100644 arch/arm64/boot/dts/ti/k3-am62p5-verdin-dev-nau8822-btl.dtso
arch/arm64/boot/dts/ti/Makefile +4 -0
@@ -78,6 +78,7 @@ dtb-$(CONFIG_ARCH_K3) += k3-am62l3-evm.dtb # Boards with AM62Px SoC dtb-$(CONFIG_ARCH_K3) += k3-am62p5-sk.dtb dtb-$(CONFIG_ARCH_K3) += k3-am62p5-var-som-symphony.dtb +dtb-$(CONFIG_ARCH_K3) += k3-am62p5-verdin-dev-nau8822-btl.dtbo dtb-$(CONFIG_ARCH_K3) += k3-am62p5-verdin-nonwifi-dahlia.dtb dtb-$(CONFIG_ARCH_K3) += k3-am62p5-verdin-nonwifi-dev.dtb dtb-$(CONFIG_ARCH_K3) += k3-am62p5-verdin-nonwifi-ivy.dtb
@@ -274,6 +275,8 @@ k3-am62p5-sk-csi2-ov5640-dtbs := k3-am62p5-sk.dtb \ k3-am62x-sk-csi2-ov5640.dtbo k3-am62p5-sk-csi2-tevi-ov5640-dtbs := k3-am62p5-sk.dtb \ k3-am62x-sk-csi2-tevi-ov5640.dtbo +k3-am62p5-verdin-wifi-dev-nau8822-btl-dtbs := k3-am62p5-verdin-wifi-dev.dtb \ + k3-am62p5-verdin-dev-nau8822-btl.dtbo k3-am642-evm-icssg0-dtbs := \ k3-am642-evm.dtb k3-am642-evm-icssg0.dtbo k3-am642-evm-icssg1-dualemac-dtbs := \
@@ -372,6 +375,7 @@ dtb- += k3-am625-beagleplay-csi2-ov5640.dtb \ k3-am62p5-sk-csi2-imx219.dtb \ k3-am62p5-sk-csi2-ov5640.dtb \ k3-am62p5-sk-csi2-tevi-ov5640.dtb \ + k3-am62p5-verdin-wifi-dev-nau8822-btl.dtb \ k3-am642-evm-icssg0.dtb \ k3-am642-evm-icssg1-dualemac.dtb \ k3-am642-evm-icssg1-dualemac-mii.dtb \
arch/arm64/boot/dts/ti/k3-am62p5-verdin-dev-nau8822-btl.dtso new file +14 -0
@@ -0,0 +1,14 @@ +// SPDX-License-Identifier: GPL-2.0-or-later OR MIT +/* + * Copyright (c) Toradex + * + * Enable Bridge Tied Load (BTL) speaker mode on the Verdin Development Board, + * combining the two loudspeaker outputs for higher output power. + */ + +/dts-v1/; +/plugin/; + +&nau8822_1a { + nuvoton,spk-btl; +};
Signature · 1 line
2.54.0
PATCH 2/3 arm64: dts: ti: k3-am62p-verdin: Reserve UART_4 for Cortex-R5F
In reply to Vitor SoaresFrom: Vitor Soares <[email protected]>
Add a device tree overlay reserving AM62P MCU_UART0 (Verdin UART_4) for use by the Cortex-R5F co-processor.
--- arch/arm64/boot/dts/ti/Makefile | 4 ++++ .../boot/dts/ti/k3-am62p5-verdin-uart4-mcu.dtso | 13 +++++++++++++ 2 files changed, 17 insertions(+) create mode 100644 arch/arm64/boot/dts/ti/k3-am62p5-verdin-uart4-mcu.dtso
arch/arm64/boot/dts/ti/Makefile +4 -0
@@ -84,6 +84,7 @@ dtb-$(CONFIG_ARCH_K3) += k3-am62p5-verdin-nonwifi-dev.dtb dtb-$(CONFIG_ARCH_K3) += k3-am62p5-verdin-nonwifi-ivy.dtb dtb-$(CONFIG_ARCH_K3) += k3-am62p5-verdin-nonwifi-mallow.dtb dtb-$(CONFIG_ARCH_K3) += k3-am62p5-verdin-nonwifi-yavia.dtb +dtb-$(CONFIG_ARCH_K3) += k3-am62p5-verdin-uart4-mcu.dtbo dtb-$(CONFIG_ARCH_K3) += k3-am62p5-verdin-wifi-dahlia.dtb dtb-$(CONFIG_ARCH_K3) += k3-am62p5-verdin-wifi-dev.dtb dtb-$(CONFIG_ARCH_K3) += k3-am62p5-verdin-wifi-ivy.dtb
@@ -277,6 +278,8 @@ k3-am62p5-sk-csi2-tevi-ov5640-dtbs := k3-am62p5-sk.dtb \ k3-am62x-sk-csi2-tevi-ov5640.dtbo k3-am62p5-verdin-wifi-dev-nau8822-btl-dtbs := k3-am62p5-verdin-wifi-dev.dtb \ k3-am62p5-verdin-dev-nau8822-btl.dtbo +k3-am62p5-verdin-wifi-dev-uart4-mcu-dtbs := k3-am62p5-verdin-wifi-dev.dtb \ + k3-am62p5-verdin-uart4-mcu.dtbo k3-am642-evm-icssg0-dtbs := \ k3-am642-evm.dtb k3-am642-evm-icssg0.dtbo k3-am642-evm-icssg1-dualemac-dtbs := \
@@ -376,6 +379,7 @@ dtb- += k3-am625-beagleplay-csi2-ov5640.dtb \ k3-am62p5-sk-csi2-ov5640.dtb \ k3-am62p5-sk-csi2-tevi-ov5640.dtb \ k3-am62p5-verdin-wifi-dev-nau8822-btl.dtb \ + k3-am62p5-verdin-wifi-dev-uart4-mcu.dtb \ k3-am642-evm-icssg0.dtb \ k3-am642-evm-icssg1-dualemac.dtb \ k3-am642-evm-icssg1-dualemac-mii.dtb \
arch/arm64/boot/dts/ti/k3-am62p5-verdin-uart4-mcu.dtso new file +13 -0
@@ -0,0 +1,13 @@ +// SPDX-License-Identifier: GPL-2.0-or-later OR MIT +/* + * Copyright (c) Toradex + * + * Verdin AM62P Cortex-R5F UART + */ + +/dts-v1/; +/plugin/; + +&mcu_uart0 { + status = "reserved"; +};
Signature · 1 line
2.54.0
PATCH 3/3 arm64: dts: ti: k3-am62p-verdin: Add Toradex OV5640 CSI Cameras
In reply to Vitor SoaresFrom: Vitor Soares <[email protected]>
Add device tree overlays for the Toradex OV5640 CSI Cameras on Verdin AM62P CSI_1. Two variants are supported: the current CSI Camera Set 5MP OV5640 with a 27 MHz oscillator and the legacy CSI Camera Module 5MP OV5640 with a 24 MHz oscillator.
--- arch/arm64/boot/dts/ti/Makefile | 8 +++ .../dts/ti/k3-am62p5-verdin-ov5640-24mhz.dtso | 17 +++++ .../boot/dts/ti/k3-am62p5-verdin-ov5640.dtsi | 72 +++++++++++++++++++ .../boot/dts/ti/k3-am62p5-verdin-ov5640.dtso | 18 +++++ 4 files changed, 115 insertions(+) create mode 100644 arch/arm64/boot/dts/ti/k3-am62p5-verdin-ov5640-24mhz.dtso create mode 100644 arch/arm64/boot/dts/ti/k3-am62p5-verdin-ov5640.dtsi create mode 100644 arch/arm64/boot/dts/ti/k3-am62p5-verdin-ov5640.dtso
arch/arm64/boot/dts/ti/Makefile +8 -0
@@ -84,6 +84,8 @@ dtb-$(CONFIG_ARCH_K3) += k3-am62p5-verdin-nonwifi-dev.dtb dtb-$(CONFIG_ARCH_K3) += k3-am62p5-verdin-nonwifi-ivy.dtb dtb-$(CONFIG_ARCH_K3) += k3-am62p5-verdin-nonwifi-mallow.dtb dtb-$(CONFIG_ARCH_K3) += k3-am62p5-verdin-nonwifi-yavia.dtb +dtb-$(CONFIG_ARCH_K3) += k3-am62p5-verdin-ov5640-24mhz.dtbo +dtb-$(CONFIG_ARCH_K3) += k3-am62p5-verdin-ov5640.dtbo dtb-$(CONFIG_ARCH_K3) += k3-am62p5-verdin-uart4-mcu.dtbo dtb-$(CONFIG_ARCH_K3) += k3-am62p5-verdin-wifi-dahlia.dtb dtb-$(CONFIG_ARCH_K3) += k3-am62p5-verdin-wifi-dev.dtb
@@ -278,6 +280,10 @@ k3-am62p5-sk-csi2-tevi-ov5640-dtbs := k3-am62p5-sk.dtb \ k3-am62x-sk-csi2-tevi-ov5640.dtbo k3-am62p5-verdin-wifi-dev-nau8822-btl-dtbs := k3-am62p5-verdin-wifi-dev.dtb \ k3-am62p5-verdin-dev-nau8822-btl.dtbo +k3-am62p5-verdin-wifi-dev-ov5640-24mhz-dtbs := k3-am62p5-verdin-wifi-dev.dtb \ + k3-am62p5-verdin-ov5640-24mhz.dtbo +k3-am62p5-verdin-wifi-dev-ov5640-dtbs := k3-am62p5-verdin-wifi-dev.dtb \ + k3-am62p5-verdin-ov5640.dtbo k3-am62p5-verdin-wifi-dev-uart4-mcu-dtbs := k3-am62p5-verdin-wifi-dev.dtb \ k3-am62p5-verdin-uart4-mcu.dtbo k3-am642-evm-icssg0-dtbs := \
@@ -379,6 +385,8 @@ dtb- += k3-am625-beagleplay-csi2-ov5640.dtb \ k3-am62p5-sk-csi2-ov5640.dtb \ k3-am62p5-sk-csi2-tevi-ov5640.dtb \ k3-am62p5-verdin-wifi-dev-nau8822-btl.dtb \ + k3-am62p5-verdin-wifi-dev-ov5640-24mhz.dtb \ + k3-am62p5-verdin-wifi-dev-ov5640.dtb \ k3-am62p5-verdin-wifi-dev-uart4-mcu.dtb \ k3-am642-evm-icssg0.dtb \ k3-am642-evm-icssg1-dualemac.dtb \
arch/arm64/boot/dts/ti/k3-am62p5-verdin-ov5640-24mhz.dtso new file +17 -0
@@ -0,0 +1,17 @@ +// SPDX-License-Identifier: GPL-2.0-or-later OR MIT +/* + * Copyright (c) Toradex + * + * Toradex CSI Camera Module 5MP OV5640 on Verdin AM62P CSI_1. + * + * https://developer.toradex.com/hardware/legacy-products/other/csi-camera-module-5mp-ov5640/ + */ + +/dts-v1/; +/plugin/; + +#include "k3-am62p5-verdin-ov5640.dtsi" + +&clock_camera { + clock-frequency = <24000000>; +};
arch/arm64/boot/dts/ti/k3-am62p5-verdin-ov5640.dtsi new file +72 -0
72 lines not on this page · raw message
arch/arm64/boot/dts/ti/k3-am62p5-verdin-ov5640.dtso new file +18 -0
@@ -0,0 +1,18 @@ +// SPDX-License-Identifier: GPL-2.0-or-later OR MIT +/* + * Copyright (c) Toradex + * + * Toradex CSI Camera Set 5MP OV5640 on Verdin AM62P CSI_1. + * + * https://developer.toradex.com/hardware/accessories/cameras/csi-camera-module-5mp-ov5640-arducam + * https://www.toradex.com/accessories/csi-camera-ov5640 + */ + +/dts-v1/; +/plugin/; + +#include "k3-am62p5-verdin-ov5640.dtsi" + +&clock_camera { + clock-frequency = <27000000>; +};
Signature · 1 line
2.54.0
Quoted 5 lines · Vitor Soares
From: Vitor Soares <[email protected]>
This series adds device tree overlays for the Toradex Verdin AM62P, bringing it in line with the overlay support already present for the Verdin AM62.
Vignesh Raghavendra
maintainerRe: [PATCH 2/3] arm64: dts: ti: k3-am62p-verdin: Reserve UART_4 for Cortex-R5F
In reply to Vitor SoaresQuoted 5 lines · Vitor Soares
From: Vitor Soares <[email protected]>
Add a device tree overlay reserving AM62P
MCU_UART0(VerdinUART_4) for use by the Cortex-R5F co-processor.
Can we please reuse k3-am625-verdin-uart4-mcu.dtso (if required, rename as generic one to be used across K3 verdin boards)? Else, we end up having dtso for every peripheral that different remoteproc firmware.
Quoted 59 lines
Signed-off-by Vitor Soares <[email protected]>--- arch/arm64/boot/dts/ti/Makefile | 4 ++++ .../boot/dts/ti/k3-am62p5-verdin-uart4-mcu.dtso | 13 +++++++++++++ 2 files changed, 17 insertions(+) create mode 100644 arch/arm64/boot/dts/ti/k3-am62p5-verdin-uart4-mcu.dtsoarch/arm64/boot/dts/ti/Makefile +4
-0@@ -84,6 +84,7 @@ dtb-$(CONFIG_ARCH_K3) += k3-am62p5-verdin-nonwifi-dev.dtb dtb-$(CONFIG_ARCH_K3) += k3-am62p5-verdin-nonwifi-ivy.dtb dtb-$(CONFIG_ARCH_K3) += k3-am62p5-verdin-nonwifi-mallow.dtb dtb-$(CONFIG_ARCH_K3) += k3-am62p5-verdin-nonwifi-yavia.dtb +dtb-$(CONFIG_ARCH_K3) += k3-am62p5-verdin-uart4-mcu.dtbo dtb-$(CONFIG_ARCH_K3) += k3-am62p5-verdin-wifi-dahlia.dtb dtb-$(CONFIG_ARCH_K3) += k3-am62p5-verdin-wifi-dev.dtb dtb-$(CONFIG_ARCH_K3) += k3-am62p5-verdin-wifi-ivy.dtb@@ -277,6 +278,8 @@ k3-am62p5-sk-csi2-tevi-ov5640-dtbs := k3-am62p5-sk.dtb \ k3-am62x-sk-csi2-tevi-ov5640.dtbo k3-am62p5-verdin-wifi-dev-nau8822-btl-dtbs := k3-am62p5-verdin-wifi-dev.dtb \ k3-am62p5-verdin-dev-nau8822-btl.dtbo +k3-am62p5-verdin-wifi-dev-uart4-mcu-dtbs := k3-am62p5-verdin-wifi-dev.dtb \ + k3-am62p5-verdin-uart4-mcu.dtbo k3-am642-evm-icssg0-dtbs := \ k3-am642-evm.dtb k3-am642-evm-icssg0.dtbo k3-am642-evm-icssg1-dualemac-dtbs := \@@ -376,6 +379,7 @@ dtb- += k3-am625-beagleplay-csi2-ov5640.dtb \ k3-am62p5-sk-csi2-ov5640.dtb \ k3-am62p5-sk-csi2-tevi-ov5640.dtb \ k3-am62p5-verdin-wifi-dev-nau8822-btl.dtb \ + k3-am62p5-verdin-wifi-dev-uart4-mcu.dtb \ k3-am642-evm-icssg0.dtb \ k3-am642-evm-icssg1-dualemac.dtb \ k3-am642-evm-icssg1-dualemac-mii.dtb \arch/arm64/boot/dts/ti/k3-am62p5-verdin-uart4-mcu.dtso new file +13
-0@@ -0,0 +1,13 @@ +// SPDX-License-Identifier: GPL-2.0-or-later OR MIT +/* + * Copyright (c) Toradex + * + * Verdin AM62P Cortex-R5F UART + */ + +/dts-v1/; +/plugin/; + +&mcu_uart0 { + status = "reserved"; +};Signature · 1 line
2.54.0
Re: [PATCH 2/3] arm64: dts: ti: k3-am62p-verdin: Reserve UART_4 for Cortex-R5F
Quoted 12 lines · Vignesh Raghavendra
Quoted 5 lines · Vitor Soares
From: Vitor Soares <[email protected]>
Add a device tree overlay reserving AM62P
MCU_UART0(VerdinUART_4) for use by the Cortex-R5F co-processor.Can we please reuse k3-am625-verdin-uart4-mcu.dtso (if required, rename as generic one to be used across K3 verdin boards)? Else, we end up having dtso for every peripheral that different remoteproc firmware.
Thanks for the feedback. I reworked this for v2 by renaming the existing AM62 overlay to a common k3-am62x-verdin overlay and reusing it for both Verdin AM62 and Verdin AM62P.
I will send v2 with this addressed.
Thanks,
Vitor Soares