Skip to contentSkip to conversation

Add Support for Wave5 on TI Devices

PATCH Superseded Brandon Brnich 2 participants 9 messages Nov 30, 2023 – Dec 1, 2023

Subsystems (2)

v2 of 5 Superseded Latest is v5 →

lore
Share & tools
lore
#0 lore raw

v2 cover Add Support for Wave5 on TI Devices

This series is responsible for adding support for Wave5 driver[0] across numerous TI K3 platforms.

[0]: https://lore.kernel.org/all/[email protected]/

Changes since v1:
=================

* Remove sram parameters
- sram-size property not included in bindings. Without this, size will default to 0 so no point in specifying until binding is added.
* Remove global CMA pools for each platform
- This is something that has been added in TI backport of driver and does not yet have reliable support in upstream version.
- Removing for now with intention to add back once 48-bit addressing is supported in upstream Wave5 driver.

Brandon Brnich (6):
arm64: dts: ti: k3-j784s4: Add Wave5 Video Encoder/Decoder Node
arm64: dts: ti: k3-am69-sk: Enable Wave5 Video Encoder/Decoder
arm64: dts: ti: k3-am68-sk: Enable Wave5 Video Encoder/Decoder
arm64: dts: ti: k3-am62a: Add Wave5 Video Encoder/Decoder Node
arm64: dts: ti: k3-am62p: Add Wave5 Video Encoder/Decoder Node
arm64: defconfig: Enable Wave5 Video Encoder/Decoder

Darren Etheridge (1):
arm64: dts: ti: k3-j721s2-main: add wave5 video encoder/decoder node

 arch/arm64/boot/dts/ti/k3-am62a-main.dtsi     |  9 +++++++++
 arch/arm64/boot/dts/ti/k3-am62a7-sk.dts       |  4 ++++
 arch/arm64/boot/dts/ti/k3-am62p-main.dtsi     | 10 ++++++++++
 arch/arm64/boot/dts/ti/k3-am62p5-sk.dts       |  4 ++++
 .../boot/dts/ti/k3-am68-sk-base-board.dts     |  4 ++++
 arch/arm64/boot/dts/ti/k3-am69-sk.dts         |  8 ++++++++
 .../dts/ti/k3-j721s2-common-proc-board.dts    |  4 ++++
 arch/arm64/boot/dts/ti/k3-j721s2-main.dtsi    | 10 ++++++++++
 arch/arm64/boot/dts/ti/k3-j784s4-evm.dts      |  8 ++++++++
 arch/arm64/boot/dts/ti/k3-j784s4-main.dtsi    | 20 +++++++++++++++++++
 arch/arm64/boot/dts/ti/k3-j784s4.dtsi         |  2 ++
 arch/arm64/configs/defconfig                  |  1 +
 12 files changed, 84 insertions(+)
Signature · 7 lines
2.34.1


_______________________________________________
linux-arm-kernel mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
#1 lore raw

PATCH v2 1/7 arm64: dts: ti: k3-j784s4: Add Wave5 Video Encoder/Decoder Node

This patch adds support for the Wave521cl on the J784S4-evm.

---
 arch/arm64/boot/dts/ti/k3-j784s4-evm.dts   |  8 ++++++++
 arch/arm64/boot/dts/ti/k3-j784s4-main.dtsi | 20 ++++++++++++++++++++
 arch/arm64/boot/dts/ti/k3-j784s4.dtsi      |  2 ++
 3 files changed, 30 insertions(+)
arch/arm64/boot/dts/ti/k3-j784s4-evm.dts +8 -0
index f1f4c8634ab6..f179bc414f5e 100644
@@ -682,6 +682,14 @@ &main_gpio0 {
 	status = "okay";
 };
 
+&vpu0 {
+	status = "okay";
+};
+
+&vpu1 {
+	status = "okay";
+};
+
 &mcu_cpsw {
 	status = "okay";
 	pinctrl-names = "default";
arch/arm64/boot/dts/ti/k3-j784s4-main.dtsi +20 -0
index d89bcddcfe3d..b0b194fdef21 100644
@@ -662,6 +662,26 @@ main_i2c6: i2c@2060000 {
 		status = "disabled";
 	};
 
+	vpu0: video-codec@4210000 {
+		compatible = "ti,k3-j721s2-wave521c", "cnm,wave521c";
+		reg = <0x00 0x4210000 0x00 0x10000>;
+		interrupts = <GIC_SPI 182 IRQ_TYPE_LEVEL_HIGH>;
+		clocks = <&k3_clks 241 2>;
+		clock-names = "vcodec";
+		power-domains = <&k3_pds 241 TI_SCI_PD_EXCLUSIVE>;
+		status = "disabled";
+	};
+
+	vpu1: video-codec@4220000 {
+		compatible = "ti,k3-j721s2-wave521c", "cnm,wave521c";
+		reg = <0x00 0x4220000 0x00 0x10000>;
+		interrupts = <GIC_SPI 183 IRQ_TYPE_LEVEL_HIGH>;
+		clocks = <&k3_clks 242 2>;
+		clock-names = "vcodec";
+		power-domains = <&k3_pds 242 TI_SCI_PD_EXCLUSIVE>;
+		status = "disabled";
+	};
+
 	main_sdhci0: mmc@4f80000 {
 		compatible = "ti,j721e-sdhci-8bit";
 		reg = <0x00 0x04f80000 0x00 0x1000>,
arch/arm64/boot/dts/ti/k3-j784s4.dtsi +2 -0
index 4398c3a463e1..93bb0cba1b48 100644
@@ -247,6 +247,8 @@ cbass_main: bus@100000 {
 			 <0x00 0x30000000 0x00 0x30000000 0x00 0x0c400000>, /* MAIN NAVSS */
 			 <0x41 0x00000000 0x41 0x00000000 0x01 0x00000000>, /* PCIe1 DAT1 */
 			 <0x4e 0x20000000 0x4e 0x20000000 0x00 0x00080000>, /* GPU */
+			 <0x00 0x04210000 0x00 0x04210000 0x00 0x00010000>, /* VPU0 */
+			 <0x00 0x04220000 0x00 0x04220000 0x00 0x00010000>, /* VPU1 */
 
 			 /* MCUSS_WKUP Range */
 			 <0x00 0x28380000 0x00 0x28380000 0x00 0x03880000>,
Signature · 7 lines
2.34.1


_______________________________________________
linux-arm-kernel mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
#2 lore raw

PATCH v2 2/7 arm64: dts: ti: k3-am69-sk: Enable Wave5 Video Encoder/Decoder

In reply to Brandon Brnich

Update status for both Wave5 VPUs on AM69.

---
 arch/arm64/boot/dts/ti/k3-am69-sk.dts | 8 ++++++++
 1 file changed, 8 insertions(+)
arch/arm64/boot/dts/ti/k3-am69-sk.dts +8 -0
index 9868c7049bfb..a247a54935b8 100644
@@ -706,6 +706,14 @@ &main_gpio0 {
 	pinctrl-0 = <&rpi_header_gpio0_pins_default>;
 };
 
+&vpu0 {
+	status = "okay";
+};
+
+&vpu1 {
+	status = "okay";
+};
+
 &mcu_cpsw {
 	status = "okay";
 	pinctrl-names = "default";
Signature · 7 lines
2.34.1


_______________________________________________
linux-arm-kernel mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
#3 lore raw

PATCH v2 3/7 arm64: dts: ti: k3-j721s2-main: Add Wave5 Video Encoder/Decoder Node

In reply to Brandon Brnich

From: Darren Etheridge <[email protected]>

Add the Chips and Media wave521cl video decoder/encoder node on J721S2.

---
 arch/arm64/boot/dts/ti/k3-j721s2-common-proc-board.dts |  4 ++++
 arch/arm64/boot/dts/ti/k3-j721s2-main.dtsi             | 10 ++++++++++
 2 files changed, 14 insertions(+)
arch/arm64/boot/dts/ti/k3-j721s2-common-proc-board.dts +4 -0
index c6b85bbf9a17..0b1bcb4b5b57 100644
@@ -502,3 +502,7 @@ &main_mcan5 {
 	pinctrl-0 = <&main_mcan5_pins_default>;
 	phys = <&transceiver4>;
 };
+
+&vpu {
+	status = "okay";
+};
arch/arm64/boot/dts/ti/k3-j721s2-main.dtsi +10 -0
index b03731b53a26..17de34fb0e7b 100644
@@ -716,6 +716,16 @@ main_i2c6: i2c@2060000 {
 		status = "disabled";
 	};
 
+	vpu: video-codec@4210000 {
+		compatible = "ti,k3-j721s2-wave521c", "cnm,wave521c";
+		reg = <0x00 0x4210000 0x00 0x10000>;
+		interrupts = <GIC_SPI 182 IRQ_TYPE_LEVEL_HIGH>;
+		clocks = <&k3_clks 179 2>;
+		clock-names = "vcodec";
+		power-domains = <&k3_pds 179 TI_SCI_PD_EXCLUSIVE>;
+		status = "disabled";
+	};
+
 	main_sdhci0: mmc@4f80000 {
 		compatible = "ti,j721e-sdhci-8bit";
 		reg = <0x00 0x04f80000 0x00 0x1000>,
Signature · 7 lines
2.34.1


_______________________________________________
linux-arm-kernel mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
#4 lore raw

PATCH v2 4/7 arm64: dts: ti: k3-am68-sk: Enable Wave5 Video Encoder/Decoder

In reply to Brandon Brnich

Update status for Wave5 VPU on AM68.

---
 arch/arm64/boot/dts/ti/k3-am68-sk-base-board.dts | 4 ++++
 1 file changed, 4 insertions(+)
arch/arm64/boot/dts/ti/k3-am68-sk-base-board.dts +4 -0
index 1e1a82f9d2b8..3d7ba5dbb4b9 100644
@@ -609,3 +609,7 @@ &usb0 {
 	phys = <&serdes0_usb_link>;
 	phy-names = "cdns3,usb3-phy";
 };
+
+&vpu {
+	status = "okay";
+};
Signature · 7 lines
2.34.1


_______________________________________________
linux-arm-kernel mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
#5 lore raw

PATCH v2 5/7 arm64: dts: ti: k3-am62a: Add Wave5 Video Encoder/Decoder Node

In reply to Brandon Brnich

This patch adds support for the Wave521cl on the AM62A.

---
 arch/arm64/boot/dts/ti/k3-am62a-main.dtsi | 9 +++++++++
 arch/arm64/boot/dts/ti/k3-am62a7-sk.dts   | 4 ++++
 2 files changed, 13 insertions(+)
arch/arm64/boot/dts/ti/k3-am62a-main.dtsi +9 -0
index 4ae7fdc5221b..86c49426d12e 100644
@@ -876,4 +876,13 @@ mcasp2: audio-controller@2b20000 {
 		power-domains = <&k3_pds 192 TI_SCI_PD_EXCLUSIVE>;
 		status = "disabled";
 	};
+
+	vpu: video-codec@30210000 {
+		compatible = "ti,k3-j721s2-wave521c", "cnm,wave521c";
+		reg = <0x00 0x30210000 0x00 0x10000>;
+		clocks = <&k3_clks 204 2>;
+		clock-names = "vcodec";
+		power-domains = <&k3_pds 204 TI_SCI_PD_EXCLUSIVE>;
+		status = "disabled";
+	};
 };
arch/arm64/boot/dts/ti/k3-am62a7-sk.dts +4 -0
index 8f64ac2c7568..e13cff536491 100644
@@ -458,6 +458,10 @@ &main_gpio_intr {
 	status = "okay";
 };
 
+&vpu {
+	status = "okay";
+};
+
 &main_uart0 {
 	status = "okay";
 	pinctrl-names = "default";
Signature · 7 lines
2.34.1


_______________________________________________
linux-arm-kernel mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
#6 lore raw

PATCH v2 6/7 arm64: dts: ti: k3-am62p: Add Wave5 Video Encoder/Decoder Node

In reply to Brandon Brnich

This patch adds support for the Wave521cl on the AM62P.

---
 arch/arm64/boot/dts/ti/k3-am62p-main.dtsi | 10 ++++++++++
 arch/arm64/boot/dts/ti/k3-am62p5-sk.dts   |  4 ++++
 2 files changed, 14 insertions(+)
arch/arm64/boot/dts/ti/k3-am62p-main.dtsi +10 -0
index 963758c7d377..472e7f88d4ef 100644
@@ -881,4 +881,14 @@ mcasp2: audio-controller@2b20000 {
 		power-domains = <&k3_pds 192 TI_SCI_PD_EXCLUSIVE>;
 		status = "disabled";
 	};
+
+	vpu: video-codec@30210000 {
+		compatible = "ti,k3-j721s2-wave521c", "cnm,wave521c";
+		reg = <0x00 0x30210000 0x00 0x10000>;
+		interrupts = <GIC_SPI 225 IRQ_TYPE_LEVEL_HIGH>;
+		clocks = <&k3_clks 204 2>;
+		clock-names = "vcodec";
+		power-domains = <&k3_pds 204 TI_SCI_PD_EXCLUSIVE>;
+		status = "disabled";
+	};
 };
arch/arm64/boot/dts/ti/k3-am62p5-sk.dts +4 -0
index f377eadef0c1..99d9dbf8de66 100644
@@ -598,3 +598,7 @@ &wkup_uart0 {
 	status = "reserved";
 	bootph-all;
 };
+
+&vpu {
+	status = "okay";
+};
Signature · 7 lines
2.34.1


_______________________________________________
linux-arm-kernel mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
#7 lore raw

PATCH v2 7/7 arm64: defconfig: Enable Wave5 Video Encoder/Decoder

In reply to Brandon Brnich

Enable Wave521c video decoder/encoder driver on all TI K3 platforms that contain the IP.

---
 arch/arm64/configs/defconfig | 1 +
 1 file changed, 1 insertion(+)
arch/arm64/configs/defconfig +1 -0
index 5ad2b841aafc..ddee48b39d2e 100644
@@ -785,6 +785,7 @@ CONFIG_SDR_PLATFORM_DRIVERS=y
 CONFIG_V4L_MEM2MEM_DRIVERS=y
 CONFIG_VIDEO_MEDIATEK_JPEG=m
 CONFIG_VIDEO_MEDIATEK_VCODEC=m
+CONFIG_VIDEO_WAVE_VPU=m
 CONFIG_VIDEO_IMX7_CSI=m
 CONFIG_VIDEO_IMX_MIPI_CSIS=m
 CONFIG_VIDEO_IMX8_ISI=m
Signature · 7 lines
2.34.1


_______________________________________________
linux-arm-kernel mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
maintainer
#8 lore raw
In reply to Brandon Brnich
Quoted 28 lines · Brandon Brnich

This series is responsible for adding support for Wave5 driver[0] across numerous TI K3 platforms.

[0]: https://lore.kernel.org/all/[email protected]/

Changes since v1:
=================

* Remove sram parameters
- sram-size property not included in bindings. Without this, size will default to 0 so no point in specifying until binding is added.
* Remove global CMA pools for each platform
- This is something that has been added in TI backport of driver and does not yet have reliable support in upstream version.
- Removing for now with intention to add back once 48-bit addressing is supported in upstream Wave5 driver.

Brandon Brnich (6):
arm64: dts: ti: k3-j784s4: Add Wave5 Video Encoder/Decoder Node
arm64: dts: ti: k3-am69-sk: Enable Wave5 Video Encoder/Decoder
arm64: dts: ti: k3-am68-sk: Enable Wave5 Video Encoder/Decoder
arm64: dts: ti: k3-am62a: Add Wave5 Video Encoder/Decoder Node
arm64: dts: ti: k3-am62p: Add Wave5 Video Encoder/Decoder Node
arm64: defconfig: Enable Wave5 Video Encoder/Decoder

Darren Etheridge (1):
arm64: dts: ti: k3-j721s2-main: add wave5 video encoder/decoder node

Quoted 13 lines
 arch/arm64/boot/dts/ti/k3-am62a-main.dtsi     |  9 +++++++++
 arch/arm64/boot/dts/ti/k3-am62a7-sk.dts       |  4 ++++
 arch/arm64/boot/dts/ti/k3-am62p-main.dtsi     | 10 ++++++++++
 arch/arm64/boot/dts/ti/k3-am62p5-sk.dts       |  4 ++++
 .../boot/dts/ti/k3-am68-sk-base-board.dts     |  4 ++++
 arch/arm64/boot/dts/ti/k3-am69-sk.dts         |  8 ++++++++
 .../dts/ti/k3-j721s2-common-proc-board.dts    |  4 ++++
 arch/arm64/boot/dts/ti/k3-j721s2-main.dtsi    | 10 ++++++++++
 arch/arm64/boot/dts/ti/k3-j784s4-evm.dts      |  8 ++++++++
 arch/arm64/boot/dts/ti/k3-j784s4-main.dtsi    | 20 +++++++++++++++++++
 arch/arm64/boot/dts/ti/k3-j784s4.dtsi         |  2 ++
 arch/arm64/configs/defconfig                  |  1 +
 12 files changed, 84 insertions(+)

I think I should hold off on this series for the next cycle till it hits linus master.

Reason:
https://lore.kernel.org/all/CAMuHMdUYOq=q1j=d+Eac28hthOUAaNUkuvxmRu-mUN1pLKq69g@mail.gmail.com/

Could you folks help address the same and finalize on the compatible etc? I think Geert does have a point there. So far, we have accepted bindings where the compatible does not contain the family name prefix (examples: git grep j721e Documentation/) it tends to be ti,j721e-csi2rx or something of the form. I don't think I prefer seeing a variation for that IP.

Signature · 8 lines
Regards,
Nishanth Menon
Key (0xDDB5849D1736249D) / Fingerprint: F8A2 8693 54EB 8232 17A3  1A34 DDB5 849D 1736 249D

_______________________________________________
linux-arm-kernel mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel