2024-02-01 13:07:44

by Jai Luthra

[permalink] [raw]
Subject: [PATCH 2/4] arm64: dts: ti: k3-am62p: Add DMASS1 for CSI

On AM62P, CSI-RX uses a dedicated BCDMA instance (DMASS1) for
transferring captured camera frames to DDR, so enable it.

Signed-off-by: Jai Luthra <[email protected]>
---
arch/arm64/boot/dts/ti/k3-am62p-main.dtsi | 37 +++++++++++++++++++++++++++++++
1 file changed, 37 insertions(+)

diff --git a/arch/arm64/boot/dts/ti/k3-am62p-main.dtsi b/arch/arm64/boot/dts/ti/k3-am62p-main.dtsi
index 4c51bae06b57..57ec4ef334e4 100644
--- a/arch/arm64/boot/dts/ti/k3-am62p-main.dtsi
+++ b/arch/arm64/boot/dts/ti/k3-am62p-main.dtsi
@@ -158,6 +158,43 @@ main_pktdma: dma-controller@485c0000 {
};
};

+ dmss_csi: bus@4e000000 {
+ compatible = "simple-bus";
+ ranges = <0x00 0x4e000000 0x00 0x4e000000 0x00 0x408000>;
+ #address-cells = <2>;
+ #size-cells = <2>;
+ dma-ranges;
+ ti,sci-dev-id = <198>;
+
+ inta_main_dmss_csi: interrupt-controller@4e400000 {
+ compatible = "ti,sci-inta";
+ reg = <0x00 0x4e400000 0x00 0x8000>;
+ #interrupt-cells = <0>;
+ interrupt-controller;
+ interrupt-parent = <&gic500>;
+ msi-controller;
+ power-domains = <&k3_pds 182 TI_SCI_PD_EXCLUSIVE>;
+ ti,sci = <&dmsc>;
+ ti,sci-dev-id = <200>;
+ ti,interrupt-ranges = <0 237 8>;
+ ti,unmapped-event-sources = <&main_bcdma_csi>;
+ };
+
+ main_bcdma_csi: dma-controller@4e230000 {
+ compatible = "ti,am62a-dmss-bcdma-csirx";
+ reg = <0x00 0x4e230000 0x00 0x100>,
+ <0x00 0x4e180000 0x00 0x8000>,
+ <0x00 0x4e100000 0x00 0x10000>;
+ reg-names = "gcfg", "rchanrt", "ringrt";
+ #dma-cells = <3>;
+ msi-parent = <&inta_main_dmss_csi>;
+ power-domains = <&k3_pds 182 TI_SCI_PD_EXCLUSIVE>;
+ ti,sci = <&dmsc>;
+ ti,sci-dev-id = <199>;
+ ti,sci-rm-range-rchan = <0x21>;
+ };
+ };
+
dmsc: system-controller@44043000 {
compatible = "ti,k2g-sci";
ti,host-id = <12>;

--
2.43.0



2024-02-12 12:10:32

by Vaishnav Achath

[permalink] [raw]
Subject: Re: [PATCH 2/4] arm64: dts: ti: k3-am62p: Add DMASS1 for CSI



On 01/02/24 18:37, Jai Luthra wrote:
> On AM62P, CSI-RX uses a dedicated BCDMA instance (DMASS1) for
> transferring captured camera frames to DDR, so enable it.
>
> Signed-off-by: Jai Luthra <[email protected]>
> ---
> arch/arm64/boot/dts/ti/k3-am62p-main.dtsi | 37 +++++++++++++++++++++++++++++++
> 1 file changed, 37 insertions(+)
>
> diff --git a/arch/arm64/boot/dts/ti/k3-am62p-main.dtsi b/arch/arm64/boot/dts/ti/k3-am62p-main.dtsi
> index 4c51bae06b57..57ec4ef334e4 100644
> --- a/arch/arm64/boot/dts/ti/k3-am62p-main.dtsi
> +++ b/arch/arm64/boot/dts/ti/k3-am62p-main.dtsi
> @@ -158,6 +158,43 @@ main_pktdma: dma-controller@485c0000 {
> };
> };
>
> + dmss_csi: bus@4e000000 {
> + compatible = "simple-bus";
> + ranges = <0x00 0x4e000000 0x00 0x4e000000 0x00 0x408000>;
> + #address-cells = <2>;
> + #size-cells = <2>;
> + dma-ranges;
> + ti,sci-dev-id = <198>;
> +
> + inta_main_dmss_csi: interrupt-controller@4e400000 {
> + compatible = "ti,sci-inta";
> + reg = <0x00 0x4e400000 0x00 0x8000>;
> + #interrupt-cells = <0>;
> + interrupt-controller;
> + interrupt-parent = <&gic500>;
> + msi-controller;
> + power-domains = <&k3_pds 182 TI_SCI_PD_EXCLUSIVE>;
> + ti,sci = <&dmsc>;
> + ti,sci-dev-id = <200>;
> + ti,interrupt-ranges = <0 237 8>;
> + ti,unmapped-event-sources = <&main_bcdma_csi>;
> + };
> +
> + main_bcdma_csi: dma-controller@4e230000 {
> + compatible = "ti,am62a-dmss-bcdma-csirx";
> + reg = <0x00 0x4e230000 0x00 0x100>,
> + <0x00 0x4e180000 0x00 0x8000>,
> + <0x00 0x4e100000 0x00 0x10000>;
> + reg-names = "gcfg", "rchanrt", "ringrt";
> + #dma-cells = <3>;
> + msi-parent = <&inta_main_dmss_csi>;
> + power-domains = <&k3_pds 182 TI_SCI_PD_EXCLUSIVE>;
> + ti,sci = <&dmsc>;
> + ti,sci-dev-id = <199>;
> + ti,sci-rm-range-rchan = <0x21>;
> + };
> + };

Reviewed-by: Vaishnav Achath <[email protected]>

> +
> dmsc: system-controller@44043000 {
> compatible = "ti,k2g-sci";
> ti,host-id = <12>;
>