Skip to contentSkip to conversation

arm64: dts: imx8mp: Add TC9595 bridge on DH electronics i.MX8M Plus DHCOM

PATCH Applied Marek Vasut 3 participants 11 messages May 15, 2023 – May 27, 2023

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 arm64: dts: imx8mp: Add TC9595 bridge on DH electronics i.MX8M Plus DHCOM

Add TC9595 DSI-to-DPI and DSI-to-(e)DP bridge to
DH electronics i.MX8M Plus DHCOM SoM . The bridge
is populated on the SoM, but disabled by default
unless used for display output.

---
Cc: Conor Dooley <[email protected]>
Cc: Fabio Estevam <[email protected]>
Cc: Krzysztof Kozlowski <[email protected]>
Cc: NXP Linux Team <[email protected]>
Cc: Pengutronix Kernel Team <[email protected]>
Cc: Rob Herring <[email protected]>
Cc: Sascha Hauer <[email protected]>
Cc: Shawn Guo <[email protected]>
Cc: [email protected]
Cc: [email protected]

---
 .../boot/dts/freescale/imx8mp-dhcom-som.dtsi  | 55 +++++++++++++++++++
 1 file changed, 55 insertions(+)
arch/arm64/boot/dts/freescale/imx8mp-dhcom-som.dtsi +55 -0
index 98a11c31d7d45..9c0cb75386e36 100644
@@ -240,6 +240,36 @@ &i2c3 {
 	sda-gpios = <&gpio5 19 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
 	status = "okay";
 
+	tc_bridge: bridge@f {
+		compatible = "toshiba,tc9595", "toshiba,tc358767";
+		pinctrl-names = "default";
+		pinctrl-0 = <&pinctrl_tc9595>;
+		reg = <0xf>;
+		clock-names = "ref";
+		clocks = <&clk IMX8MP_CLK_CLKOUT2>;
+		assigned-clocks = <&clk IMX8MP_CLK_CLKOUT2_SEL>,
+				  <&clk IMX8MP_CLK_CLKOUT2>,
+				  <&clk IMX8MP_AUDIO_PLL2_OUT>;
+		assigned-clock-parents = <&clk IMX8MP_AUDIO_PLL2_OUT>;
+		assigned-clock-rates = <13000000>, <13000000>, <156000000>;
+		reset-gpios = <&gpio3 21 GPIO_ACTIVE_HIGH>;
+		status = "disabled";
+
+		ports {
+			#address-cells = <1>;
+			#size-cells = <0>;
+
+			port@0 {
+				reg = <0>;
+
+				tc_bridge_in: endpoint {
+					data-lanes = <1 2 3 4>;
+					remote-endpoint = <&dsi_out>;
+				};
+			};
+		};
+	};
+
 	pmic: pmic@25 {
 		compatible = "nxp,pca9450c";
 		reg = <0x25>;
@@ -406,6 +436,22 @@ &i2c5 {	/* HDMI EDID bus */
 	status = "okay";
 };
 
+&mipi_dsi {
+	samsung,burst-clock-frequency = <160000000>;
+	samsung,esc-clock-frequency = <10000000>;
+
+	ports {
+		port@1 {
+			reg = <1>;
+
+			dsi_out: endpoint {
+				data-lanes = <1 2 3 4>;
+				remote-endpoint = <&tc_bridge_in>;
+			};
+		};
+	};
+};
+
 &pwm1 {
 	pinctrl-0 = <&pinctrl_pwm1>;
 	pinctrl-names = "default";
@@ -880,6 +926,15 @@ MX8MP_IOMUXC_SAI3_TXD__AUDIOMIX_SAI3_TX_DATA00	0xd6
 		>;
 	};
 
+	pinctrl_tc9595: dhcom-tc9595-grp {
+		fsl,pins = <
+			/* RESET_DSIBRIDGE */
+			MX8MP_IOMUXC_SAI1_RXC__GPIO4_IO01		0x40000146
+			/* DSI-CONV_INT Interrupt */
+			MX8MP_IOMUXC_SAI5_RXD0__GPIO3_IO21		0x141
+		>;
+	};
+
 	pinctrl_touch: dhcom-touch-grp {
 		fsl,pins = <
 			/* #TOUCH_INT */
Signature · 1 line
2.39.2
#1 lore raw

Hello Marek,

Am Montag, 15. Mai 2023, 18:24:24 CEST schrieb Marek Vasut:

Quoted 6 lines

Add TC9595 DSI-to-DPI and DSI-to-(e)DP bridge to
DH electronics i.MX8M Plus DHCOM SoM . The bridge
is populated on the SoM, but disabled by default
unless used for display output.

Were you actually able to access the display? E.g. reading DPCD via AUX channel?

Best regards,
Alexander

Quoted 26 lines

---
Cc: Conor Dooley <[email protected]>
Cc: Fabio Estevam <[email protected]>
Cc: Krzysztof Kozlowski <[email protected]>
Cc: NXP Linux Team <[email protected]>
Cc: Pengutronix Kernel Team <[email protected]>
Cc: Rob Herring <[email protected]>
Cc: Sascha Hauer <[email protected]>
Cc: Shawn Guo <[email protected]>
Cc: [email protected]
Cc: [email protected]

---
 .../boot/dts/freescale/imx8mp-dhcom-som.dtsi  | 55 +++++++++++++++++++
 1 file changed, 55 insertions(+)
(quoted diff) +0 -0

b/arch/arm64/boot/dts/freescale/imx8mp-dhcom-som.dtsi index 98a11c31d7d45..9c0cb75386e36 100644

arch/arm64/boot/dts/freescale/imx8mp-dhcom-som.dtsi +2 -0
@@ -240,6 +240,36 @@ &i2c3 {
 	sda-gpios = <&gpio5 19 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
 	status = "okay";
 
+	tc_bridge: bridge@f {
+		compatible = "toshiba,tc9595", "toshiba,tc358767";

arch/arm64/boot/dts/freescale/imx8mp-dhcom-som.dtsi &i2c3 { · line 254

Quoted 10 lines
arch/arm64/boot/dts/freescale/imx8mp-dhcom-som.dtsi +10 -0
+		pinctrl-names = "default";
+		pinctrl-0 = <&pinctrl_tc9595>;
+		reg = <0xf>;
+		clock-names = "ref";
+		clocks = <&clk IMX8MP_CLK_CLKOUT2>;
+		assigned-clocks = <&clk IMX8MP_CLK_CLKOUT2_SEL>,
+				  <&clk IMX8MP_CLK_CLKOUT2>,
+				  <&clk IMX8MP_AUDIO_PLL2_OUT>;
+		assigned-clock-parents = <&clk IMX8MP_AUDIO_PLL2_OUT>;
+		assigned-clock-rates = <13000000>, <13000000>, 

<156000000>;

arch/arm64/boot/dts/freescale/imx8mp-dhcom-som.dtsi &i2c3 {

Quoted 13 lines
arch/arm64/boot/dts/freescale/imx8mp-dhcom-som.dtsi +13 -0
+		reset-gpios = <&gpio3 21 GPIO_ACTIVE_HIGH>;
+		status = "disabled";
+
+		ports {
+			#address-cells = <1>;
+			#size-cells = <0>;
+
+			port@0 {
+				reg = <0>;
+
+				tc_bridge_in: endpoint {
+					data-lanes = <1 2 3 4>;
+					remote-endpoint = 

<&dsi_out>;

Quoted 32 lines
arch/arm64/boot/dts/freescale/imx8mp-dhcom-som.dtsi +21 -0
+				};
+			};
+		};
+	};
+
 	pmic: pmic@25 {
 		compatible = "nxp,pca9450c";
 		reg = <0x25>;
@@ -406,6 +436,22 @@ &i2c5 {	/* HDMI EDID bus */
 	status = "okay";
 };
 
+&mipi_dsi {
+	samsung,burst-clock-frequency = <160000000>;
+	samsung,esc-clock-frequency = <10000000>;
+
+	ports {
+		port@1 {
+			reg = <1>;
+
+			dsi_out: endpoint {
+				data-lanes = <1 2 3 4>;
+				remote-endpoint = <&tc_bridge_in>;
+			};
+		};
+	};
+};
+
 &pwm1 {
 	pinctrl-0 = <&pinctrl_pwm1>;
 	pinctrl-names = "default";

arch/arm64/boot/dts/freescale/imx8mp-dhcom-som.dtsi MX8MP_IOMUXC_SAI3_TXD__AUDIOMIX_SAI3_TX_DATA00 0xd6 · line 934

Quoted 9 lines
arch/arm64/boot/dts/freescale/imx8mp-dhcom-som.dtsi +4 -0
@@ -880,6 +926,15 @@ MX8MP_IOMUXC_SAI3_TXD__AUDIOMIX_SAI3_TX_DATA00	0xd6
 
 		>;
 
 	};
 
+	pinctrl_tc9595: dhcom-tc9595-grp {
+		fsl,pins = <
+			/* RESET_DSIBRIDGE */
+			MX8MP_IOMUXC_SAI1_RXC__GPIO4_IO01		

0x40000146

arch/arm64/boot/dts/freescale/imx8mp-dhcom-som.dtsi MX8MP_IOMUXC_SAI3_TXD__AUDIOMIX_SAI3_TX_DATA00 0xd6 · line 936

Quoted 2 lines
arch/arm64/boot/dts/freescale/imx8mp-dhcom-som.dtsi +2 -0
+			/* DSI-CONV_INT Interrupt */
+			MX8MP_IOMUXC_SAI5_RXD0__GPIO3_IO21		

0x141

Quoted 6 lines
arch/arm64/boot/dts/freescale/imx8mp-dhcom-som.dtsi +3 -0
+		>;
+	};
+
 	pinctrl_touch: dhcom-touch-grp {
arch/arm64/boot/dts/freescale/imx8mp-dhcom-som.dtsi +0 -0
 		fsl,pins = <
 			/* #TOUCH_INT */
Signature · 4 lines
TQ-Systems GmbH | Mühlstraße 2, Gut Delling | 82229 Seefeld, Germany
Amtsgericht München, HRB 105018
Geschäftsführer: Detlef Schneider, Rüdiger Stahl, Stefan Schneider
http://www.tq-group.com/
#2 lore raw
Quoted 1 line · Alexander Stein

Hello Marek,

Hi,

Quoted 10 lines

Am Montag, 15. Mai 2023, 18:24:24 CEST schrieb Marek Vasut:

Quoted 6 lines

Add TC9595 DSI-to-DPI and DSI-to-(e)DP bridge to DH electronics i.MX8M Plus DHCOM SoM . The bridge is populated on the SoM, but disabled by default unless used for display output.

Were you actually able to access the display? E.g. reading DPCD via AUX channel?

I only tried the full display port (the one with large plug) on the TC evaluation kit, there I could use the aux channel. Are you testing this bridge and running into issues ? Details please ?

#3 lore raw

Hi Marek,

Am Dienstag, 23. Mai 2023, 15:10:05 CEST schrieb Marek Vasut:

Quoted 11 lines · Alexander Stein
Quoted 1 line

Hello Marek,

Hi,

Quoted 6 lines

Am Montag, 15. Mai 2023, 18:24:24 CEST schrieb Marek Vasut:

Quoted 5 lines

Add TC9595 DSI-to-DPI and DSI-to-(e)DP bridge to DH electronics i.MX8M Plus DHCOM SoM . The bridge is populated on the SoM, but disabled by default unless used for display output.

Quoted 8 lines
Quoted 4 lines
Quoted 1 line

Were you actually able to access the display? E.g. reading DPCD via AUX channel?

I only tried the full display port (the one with large plug) on the TC evaluation kit, there I could use the aux channel. Are you testing this bridge and running into issues ? Details please ?

Which SoC is this evaluation kit based on?
Yes, I'm trying to test this bridge on imx8mp based board.

AFAICS I run into a timeout during drm connector .get_modes call, see kernel log below.

Quoted 1 line

samsung-dsim 32e60000.dsi: [drm:samsung_dsim_host_attach [samsung_dsim]]

Attached tc358767 device

Quoted 2 lines

tc358767 1-000f: failed to read DPCD: -110 tc358767 1-000f: failed to read display props: -110

Looking at the AUX_CH+/- signals, I can see the native aux request and the (presumable) correct answer (DP_DPCD_REV register) from the display. But for some reason the bridge runs into a aux timeout.
I can see in the DP0_AUXSTATUS register the bus gets busy (0x1) after starting transfer. But after the tc_aux_wait_busy() call DP0_AUXSTATUS his indicating a timeout and sync error (0x310002).
When changing the "Aux Bit Period Calculator Threshold" to 5 (register AUXCFG1), the sync error is gone, but the timeout still happens.

The frequency used from the display is ~1MHz, which should be okay. So on the electrical side all seems okay, but the native aux transfer don't work.

Any ideas?

Best regards,
Alexander

Signature · 11 lines
TQ-Systems GmbH | Mühlstraße 2, Gut Delling | 82229 Seefeld, Germany
Amtsgericht München, HRB 105018
Geschäftsführer: Detlef Schneider, Rüdiger Stahl, Stefan Schneider
http://www.tq-group.com/



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

Hi Marek,

Hi,

Quoted 14 lines

Am Dienstag, 23. Mai 2023, 15:10:05 CEST schrieb Marek Vasut:

Quoted 13 lines · Alexander Stein
Quoted 1 line

Hello Marek,

Hi,

Quoted 8 lines

Am Montag, 15. Mai 2023, 18:24:24 CEST schrieb Marek Vasut:

Quoted 6 lines

Add TC9595 DSI-to-DPI and DSI-to-(e)DP bridge to DH electronics i.MX8M Plus DHCOM SoM . The bridge is populated on the SoM, but disabled by default unless used for display output.

Quoted 8 lines
Quoted 6 lines
Quoted 2 lines

Were you actually able to access the display? E.g. reading DPCD via AUX channel?

I only tried the full display port (the one with large plug) on the TC evaluation kit, there I could use the aux channel. Are you testing this bridge and running into issues ? Details please ?

Which SoC is this evaluation kit based on?

There is no SoC attached to it, it's just a breakout board for the bridge chip. You can attach it via DSI to whichever SoC you want. So far I tried STM32MP15xx and i.MX8MP.

Quoted 9 lines

Yes, I'm trying to test this bridge on imx8mp based board.

AFAICS I run into a timeout during drm connector .get_modes call, see kernel log below.

Quoted 1 line

samsung-dsim 32e60000.dsi: [drm:samsung_dsim_host_attach [samsung_dsim]]

Attached tc358767 device

Quoted 2 lines

tc358767 1-000f: failed to read DPCD: -110 tc358767 1-000f: failed to read display props: -110

How are you supplying clock to the TC358767 (or newer) ?
Do you supply clock from DSI or from Xtal ?
If DSI and if possible, switch to Xtal and see whether that helps. Also check the Xtal frequency and make sure you define that correctly in DT.

Quoted 11 lines

Looking at the AUX_CH+/- signals, I can see the native aux request and the (presumable) correct answer (DP_DPCD_REV register) from the display. But for some reason the bridge runs into a aux timeout.
I can see in the DP0_AUXSTATUS register the bus gets busy (0x1) after starting transfer. But after the tc_aux_wait_busy() call DP0_AUXSTATUS his indicating a timeout and sync error (0x310002).
When changing the "Aux Bit Period Calculator Threshold" to 5 (register AUXCFG1), the sync error is gone, but the timeout still happens.

The frequency used from the display is ~1MHz, which should be okay. So on the electrical side all seems okay, but the native aux transfer don't work.

I recall DPCD read timeouts, but those were usually triggered by either bad clock or wiring problems (the devkit wiring I used was horrible at the beginning) from what I can recall.

#5 lore raw

Hi Marek,

Am Mittwoch, 24. Mai 2023, 11:28:32 CEST schrieb Marek Vasut:

Quoted 26 lines · Alexander Stein
Quoted 1 line

Hi Marek,

Hi,

Quoted 21 lines

Am Dienstag, 23. Mai 2023, 15:10:05 CEST schrieb Marek Vasut:

Quoted 19 lines · Alexander Stein
Quoted 1 line

Hello Marek,

Hi,

Quoted 10 lines

Am Montag, 15. Mai 2023, 18:24:24 CEST schrieb Marek Vasut:

Quoted 6 lines

Add TC9595 DSI-to-DPI and DSI-to-(e)DP bridge to DH electronics i.MX8M Plus DHCOM SoM . The bridge is populated on the SoM, but disabled by default unless used for display output.

Were you actually able to access the display? E.g. reading DPCD via AUX channel?

I only tried the full display port (the one with large plug) on the TC evaluation kit, there I could use the aux channel. Are you testing this bridge and running into issues ? Details please ?

Quoted 5 lines
Quoted 1 line

Which SoC is this evaluation kit based on?

There is no SoC attached to it, it's just a breakout board for the bridge chip. You can attach it via DSI to whichever SoC you want. So far I tried STM32MP15xx and i.MX8MP.

I assume you were able to successfully use the bridge on both boards, no?

Quoted 9 lines
Quoted 9 lines

Yes, I'm trying to test this bridge on imx8mp based board.

AFAICS I run into a timeout during drm connector .get_modes call, see kernel log below.

Quoted 1 line

samsung-dsim 32e60000.dsi: [drm:samsung_dsim_host_attach [samsung_dsim]]

Attached tc358767 device

Quoted 7 lines
Quoted 2 lines
Quoted 2 lines

tc358767 1-000f: failed to read DPCD: -110 tc358767 1-000f: failed to read display props: -110

How are you supplying clock to the TC358767 (or newer) ?
Do you supply clock from DSI or from Xtal ?
If DSI and if possible, switch to Xtal and see whether that helps. Also check the Xtal frequency and make sure you define that correctly in DT.

It's already connected to an Xtal, according to schematic it's 26MHz. This is also what I configured in DT. So far I think this looks correct.

Quoted 9 lines
Quoted 9 lines

Looking at the AUX_CH+/- signals, I can see the native aux request and the (presumable) correct answer (DP_DPCD_REV register) from the display. But for some reason the bridge runs into a aux timeout.
I can see in the DP0_AUXSTATUS register the bus gets busy (0x1) after starting transfer. But after the tc_aux_wait_busy() call DP0_AUXSTATUS his indicating a timeout and sync error (0x310002).
When changing the "Aux Bit Period Calculator Threshold" to 5 (register AUXCFG1), the sync error is gone, but the timeout still happens.

Quoted 6 lines
Quoted 3 lines

The frequency used from the display is ~1MHz, which should be okay. So on the electrical side all seems okay, but the native aux transfer don't work.

I recall DPCD read timeouts, but those were usually triggered by either bad clock or wiring problems (the devkit wiring I used was horrible at the beginning) from what I can recall.

bad clock in the sense of badly configured or bad xtal hardware? As the bridge and the xtal is on the same mainboard, for now, I ignore wirings.

Best regards,
Alexander

Signature · 4 lines
TQ-Systems GmbH | Mühlstraße 2, Gut Delling | 82229 Seefeld, Germany
Amtsgericht München, HRB 105018
Geschäftsführer: Detlef Schneider, Rüdiger Stahl, Stefan Schneider
http://www.tq-group.com/
#6 lore raw

On 5/24/23 12:24, Alexander Stein wrote:

Hi,

Quoted 9 lines
Quoted 9 lines
Quoted 9 lines

Looking at the AUX_CH+/- signals, I can see the native aux request and the (presumable) correct answer (DP_DPCD_REV register) from the display. But for some reason the bridge runs into a aux timeout.
I can see in the DP0_AUXSTATUS register the bus gets busy (0x1) after starting transfer. But after the tc_aux_wait_busy() call DP0_AUXSTATUS his indicating a timeout and sync error (0x310002).
When changing the "Aux Bit Period Calculator Threshold" to 5 (register AUXCFG1), the sync error is gone, but the timeout still happens.

Quoted 8 lines
Quoted 6 lines
Quoted 3 lines

The frequency used from the display is ~1MHz, which should be okay. So on the electrical side all seems okay, but the native aux transfer don't work.

I recall DPCD read timeouts, but those were usually triggered by either bad clock or wiring problems (the devkit wiring I used was horrible at the beginning) from what I can recall.

bad clock in the sense of badly configured or bad xtal hardware?

As in, the xtal clock drives the internal PLLs and if those are misconfigured for whatever reason, the chip can misbehave. You might want to double-check the clock routing chapter in the toshiba bridge datasheet and matching registers.

Have you tried forcing the chip into 1.62G (instead of 2.7G) operation and into 1-lane DP instead of 2-lane DP mode ? Does that make any difference ?

Quoted 2 lines

As the bridge
and the xtal is on the same mainboard, for now, I ignore wirings.

OK

#7 lore raw

Hi Marek,

Am Mittwoch, 24. Mai 2023, 12:37:50 CEST schrieb Marek Vasut:

Quoted 25 lines · Alexander Stein

Hi,

Quoted 15 lines
Quoted 15 lines
Quoted 14 lines

Looking at the AUX_CH+/- signals, I can see the native aux request and the
(presumable) correct answer (DP_DPCD_REV register) from the display. But for some reason the bridge runs into a aux timeout.
I can see in the DP0_AUXSTATUS register the bus gets busy (0x1) after starting transfer. But after the tc_aux_wait_busy() call DP0_AUXSTATUS his indicating a timeout and sync error (0x310002).
When changing the "Aux Bit Period Calculator Threshold" to 5 (register AUXCFG1), the sync error is gone, but the timeout still happens.

The frequency used from the display is ~1MHz, which should be okay. So on
the electrical side all seems okay, but the native aux transfer don't work.

Quoted 5 lines
Quoted 3 lines

I recall DPCD read timeouts, but those were usually triggered by either bad clock or wiring problems (the devkit wiring I used was horrible at the beginning) from what I can recall.

bad clock in the sense of badly configured or bad xtal hardware?

Quoted 8 lines

As in, the xtal clock drives the internal PLLs and if those are misconfigured for whatever reason, the chip can misbehave. You might want to double-check the clock routing chapter in the toshiba bridge datasheet and matching registers.

Have you tried forcing the chip into 1.62G (instead of 2.7G) operation and into 1-lane DP instead of 2-lane DP mode ? Does that make any difference ?

The initial AUX problem is unrelated to DP link. I had problems way before 2.7G or 2-lane DP comes into play. The problem in aux channel was caused by bad clock input :( and the DSI host not putting all DSI lines into LP-11. For some reason apparently nobody had to do these kind of changes on samsung_dsim. I had to enable all DSI lines (incl. clock) on dsim for the bridge to properly use the AUX channel.

With that fixed, DPCD read is successfull and DP link training seems okay, as I can enable the test pattern on the bridge.

But displaying regular DSI stream is not working. I see the DSI error counter continuously increasing in the DSIERRCNT register (0x300). Forcing 1-lane DP or 1.62G operation reduces the possible resolution but displaying does still not work.

Best regards
Alexander

Signature · 4 lines
TQ-Systems GmbH | Mühlstraße 2, Gut Delling | 82229 Seefeld, Germany
Amtsgericht München, HRB 105018
Geschäftsführer: Detlef Schneider, Rüdiger Stahl, Stefan Schneider
http://www.tq-group.com/
#8 lore raw
In reply to Marek Vasut
Quoted 26 lines · Marek Vasut

Add TC9595 DSI-to-DPI and DSI-to-(e)DP bridge to
DH electronics i.MX8M Plus DHCOM SoM . The bridge
is populated on the SoM, but disabled by default
unless used for display output.

---
Cc: Conor Dooley <[email protected]>
Cc: Fabio Estevam <[email protected]>
Cc: Krzysztof Kozlowski <[email protected]>
Cc: NXP Linux Team <[email protected]>
Cc: Pengutronix Kernel Team <[email protected]>
Cc: Rob Herring <[email protected]>
Cc: Sascha Hauer <[email protected]>
Cc: Shawn Guo <[email protected]>
Cc: [email protected]
Cc: [email protected]

---
 .../boot/dts/freescale/imx8mp-dhcom-som.dtsi  | 55 +++++++++++++++++++
 1 file changed, 55 insertions(+)
arch/arm64/boot/dts/freescale/imx8mp-dhcom-som.dtsi +0 -0
index 98a11c31d7d45..9c0cb75386e36 100644

arch/arm64/boot/dts/freescale/imx8mp-dhcom-som.dtsi &i2c3 { · line 244

Quoted 5 lines
arch/arm64/boot/dts/freescale/imx8mp-dhcom-som.dtsi +2 -0
@@ -240,6 +240,36 @@ &i2c3 {
 	sda-gpios = <&gpio5 19 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
 	status = "okay";
 
+	tc_bridge: bridge@f {
+		compatible = "toshiba,tc9595", "toshiba,tc358767";

Is "toshiba,tc9595" documented?

Shawn

Quoted 73 lines
arch/arm64/boot/dts/freescale/imx8mp-dhcom-som.dtsi +53 -0
+		pinctrl-names = "default";
+		pinctrl-0 = <&pinctrl_tc9595>;
+		reg = <0xf>;
+		clock-names = "ref";
+		clocks = <&clk IMX8MP_CLK_CLKOUT2>;
+		assigned-clocks = <&clk IMX8MP_CLK_CLKOUT2_SEL>,
+				  <&clk IMX8MP_CLK_CLKOUT2>,
+				  <&clk IMX8MP_AUDIO_PLL2_OUT>;
+		assigned-clock-parents = <&clk IMX8MP_AUDIO_PLL2_OUT>;
+		assigned-clock-rates = <13000000>, <13000000>, <156000000>;
+		reset-gpios = <&gpio3 21 GPIO_ACTIVE_HIGH>;
+		status = "disabled";
+
+		ports {
+			#address-cells = <1>;
+			#size-cells = <0>;
+
+			port@0 {
+				reg = <0>;
+
+				tc_bridge_in: endpoint {
+					data-lanes = <1 2 3 4>;
+					remote-endpoint = <&dsi_out>;
+				};
+			};
+		};
+	};
+
 	pmic: pmic@25 {
 		compatible = "nxp,pca9450c";
 		reg = <0x25>;
@@ -406,6 +436,22 @@ &i2c5 {	/* HDMI EDID bus */
 	status = "okay";
 };
 
+&mipi_dsi {
+	samsung,burst-clock-frequency = <160000000>;
+	samsung,esc-clock-frequency = <10000000>;
+
+	ports {
+		port@1 {
+			reg = <1>;
+
+			dsi_out: endpoint {
+				data-lanes = <1 2 3 4>;
+				remote-endpoint = <&tc_bridge_in>;
+			};
+		};
+	};
+};
+
 &pwm1 {
 	pinctrl-0 = <&pinctrl_pwm1>;
 	pinctrl-names = "default";
@@ -880,6 +926,15 @@ MX8MP_IOMUXC_SAI3_TXD__AUDIOMIX_SAI3_TX_DATA00	0xd6
 		>;
 	};
 
+	pinctrl_tc9595: dhcom-tc9595-grp {
+		fsl,pins = <
+			/* RESET_DSIBRIDGE */
+			MX8MP_IOMUXC_SAI1_RXC__GPIO4_IO01		0x40000146
+			/* DSI-CONV_INT Interrupt */
+			MX8MP_IOMUXC_SAI5_RXD0__GPIO3_IO21		0x141
+		>;
+	};
+
 	pinctrl_touch: dhcom-touch-grp {
 		fsl,pins = <
 			/* #TOUCH_INT */
Signature · 1 line
2.39.2
#9 lore raw
Quoted 30 lines · Shawn Guo
Quoted 29 lines · Marek Vasut

Add TC9595 DSI-to-DPI and DSI-to-(e)DP bridge to
DH electronics i.MX8M Plus DHCOM SoM . The bridge
is populated on the SoM, but disabled by default
unless used for display output.

---
Cc: Conor Dooley <[email protected]>
Cc: Fabio Estevam <[email protected]>
Cc: Krzysztof Kozlowski <[email protected]>
Cc: NXP Linux Team <[email protected]>
Cc: Pengutronix Kernel Team <[email protected]>
Cc: Rob Herring <[email protected]>
Cc: Sascha Hauer <[email protected]>
Cc: Shawn Guo <[email protected]>
Cc: [email protected]
Cc: [email protected]

---
  .../boot/dts/freescale/imx8mp-dhcom-som.dtsi  | 55 +++++++++++++++++++
  1 file changed, 55 insertions(+)
arch/arm64/boot/dts/freescale/imx8mp-dhcom-som.dtsi +0 -0
index 98a11c31d7d45..9c0cb75386e36 100644
@@ -240,6 +240,36 @@ &i2c3 {
  	sda-gpios = <&gpio5 19 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
  	status = "okay";
 
Quoted 4 lines

arch/arm64/boot/dts/freescale/imx8mp-dhcom-som.dtsi &i2c3 { · line 244

Quoted 2 lines
arch/arm64/boot/dts/freescale/imx8mp-dhcom-som.dtsi +2 -0
+	tc_bridge: bridge@f {
+		compatible = "toshiba,tc9595", "toshiba,tc358767";

Is "toshiba,tc9595" documented?

Yes, the patch is coming in via drm-misc , see:

https://cgit.freedesktop.org/drm/drm-misc/commit/?id=adbcfcc92b5aaffdee4c5e62c077919014c483d9