[PATCH v2 2/4] arm64: dts: ti: j722s-evm: Add MUX to control CSI2RX

Yemike Abhilash Chandra posted 4 patches 7 months, 1 week ago
There is a newer version of this series
[PATCH v2 2/4] arm64: dts: ti: j722s-evm: Add MUX to control CSI2RX
Posted by Yemike Abhilash Chandra 7 months, 1 week ago
J722S EVM has the CSI2RX routed to a MIPI CSI connector and to 22-pin RPi
camera connector through an analog mux with GPIO control, model that so
that an overlay can control the mux state according to connected cameras.

Signed-off-by: Yemike Abhilash Chandra <y-abhilashchandra@ti.com>
---
 arch/arm64/boot/dts/ti/k3-j722s-evm.dts | 14 ++++++++++++++
 1 file changed, 14 insertions(+)

diff --git a/arch/arm64/boot/dts/ti/k3-j722s-evm.dts b/arch/arm64/boot/dts/ti/k3-j722s-evm.dts
index 0f18fe710929..43256c71a19c 100644
--- a/arch/arm64/boot/dts/ti/k3-j722s-evm.dts
+++ b/arch/arm64/boot/dts/ti/k3-j722s-evm.dts
@@ -266,6 +266,20 @@ transceiver2: can-phy2 {
 		max-bitrate = <5000000>;
 		standby-gpios = <&exp1 17 GPIO_ACTIVE_HIGH>;
 	};
+
+	csi01_mux: mux-controller-0 {
+		compatible = "gpio-mux";
+		#mux-state-cells = <1>;
+		mux-gpios = <&exp1 6 GPIO_ACTIVE_HIGH>;
+		idle-state = <0>;
+	};
+
+	csi23_mux: mux-controller-1 {
+		compatible = "gpio-mux";
+		#mux-state-cells = <1>;
+		mux-gpios = <&exp1 7 GPIO_ACTIVE_HIGH>;
+		idle-state = <0>;
+	};
 };
 
 &main_pmx0 {
-- 
2.34.1
Re: [PATCH v2 2/4] arm64: dts: ti: j722s-evm: Add MUX to control CSI2RX
Posted by Kumar, Udit 7 months, 1 week ago
On 5/8/2025 9:21 PM, Yemike Abhilash Chandra wrote:
> J722S EVM has the CSI2RX routed to a MIPI CSI connector and to 22-pin RPi
> camera connector through an analog mux with GPIO control, model that so
> that an overlay can control the mux state according to connected cameras.

In case you are another version,

consider to change in commit message "model that so that" to "model mux 
so that".

Reviewed-by: Udit Kumar <u-kumar1@ti.com>


>
> Signed-off-by: Yemike Abhilash Chandra <y-abhilashchandra@ti.com>
> ---
>   arch/arm64/boot/dts/ti/k3-j722s-evm.dts | 14 ++++++++++++++
>   1 file changed, 14 insertions(+)
>
> diff --git a/arch/arm64/boot/dts/ti/k3-j722s-evm.dts b/arch/arm64/boot/dts/ti/k3-j722s-evm.dts
> index 0f18fe710929..43256c71a19c 100644
> --- a/arch/arm64/boot/dts/ti/k3-j722s-evm.dts
> +++ b/arch/arm64/boot/dts/ti/k3-j722s-evm.dts
> @@ -266,6 +266,20 @@ transceiver2: can-phy2 {
>   		max-bitrate = <5000000>;
>   		standby-gpios = <&exp1 17 GPIO_ACTIVE_HIGH>;
>   	};
> +
> +	csi01_mux: mux-controller-0 {
> +		compatible = "gpio-mux";
> +		#mux-state-cells = <1>;
> +		mux-gpios = <&exp1 6 GPIO_ACTIVE_HIGH>;
> +		idle-state = <0>;
> +	};
> +
> +	csi23_mux: mux-controller-1 {
> +		compatible = "gpio-mux";
> +		#mux-state-cells = <1>;
> +		mux-gpios = <&exp1 7 GPIO_ACTIVE_HIGH>;
> +		idle-state = <0>;
> +	};
>   };
>   
>   &main_pmx0 {