linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 0/2] Add support for DP and HDMI on j721e-sk
@ 2022-05-05  9:07 Rahul T R
  2022-05-05  9:07 ` [PATCH v2 1/2] arm64: dts: ti: k3-j721e-sk: Enable DisplayPort Rahul T R
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Rahul T R @ 2022-05-05  9:07 UTC (permalink / raw)
  To: nm
  Cc: vigneshr, kristo, robh+dt, krzysztof.kozlowski+dt,
	linux-arm-kernel, devicetree, linux-kernel, tomi.valkeinen,
	laurent.pinchart, kishon, a-bhatia1, r-ravikumar

The following series of patches enables DisplayPort and
HDMI on j721e-sk

v2:
   - Fix name for dpi1 dss endpoint

This series depends on
https://lore.kernel.org/all/20220429112639.13004-1-r-ravikumar@ti.com/
which adds required nodes in the SoC dtsi file

boot logs:
   https://gist.githubusercontent.com/ravi-rahul/d2e139d8ff9446ede003291a6a3e8be5/raw/ed51498efe7f7bc4848dffb27e2b37e0beb7a94d/j7_sk_DP_HDMI_boot.log

kernel patch verify report:
   https://gist.githubusercontent.com/ravi-rahul/1e2350b53ac7d6ba7694373c0b3bbb44/raw/f09f75821610b42ad1f8b4bf3e5ef7843de0c76e/report-kernel-patch-verify-sk-dp-hdmi.txt

Rahul T R (2):
  arm64: dts: ti: k3-j721e-sk: Enable DisplayPort
  arm64: dts: ti: k3-j721e-sk: Enable HDMI

 arch/arm64/boot/dts/ti/k3-j721e-sk.dts | 123 ++++++++++++++++++++++++-
 1 file changed, 119 insertions(+), 4 deletions(-)

-- 
2.17.1


^ permalink raw reply	[flat|nested] 5+ messages in thread

* [PATCH v2 1/2] arm64: dts: ti: k3-j721e-sk: Enable DisplayPort
  2022-05-05  9:07 [PATCH v2 0/2] Add support for DP and HDMI on j721e-sk Rahul T R
@ 2022-05-05  9:07 ` Rahul T R
  2022-05-05  9:07 ` [PATCH v2 2/2] arm64: dts: ti: k3-j721e-sk: Enable HDMI Rahul T R
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: Rahul T R @ 2022-05-05  9:07 UTC (permalink / raw)
  To: nm
  Cc: vigneshr, kristo, robh+dt, krzysztof.kozlowski+dt,
	linux-arm-kernel, devicetree, linux-kernel, tomi.valkeinen,
	laurent.pinchart, kishon, a-bhatia1, r-ravikumar

Add the endpoint nodes to describe connection from
DSS => MHDP => DisplayPort connector.

Signed-off-by: Rahul T R <r-ravikumar@ti.com>
---
 arch/arm64/boot/dts/ti/k3-j721e-sk.dts | 45 +++++++++++++++++++++++---
 1 file changed, 41 insertions(+), 4 deletions(-)

diff --git a/arch/arm64/boot/dts/ti/k3-j721e-sk.dts b/arch/arm64/boot/dts/ti/k3-j721e-sk.dts
index 98177a20b45f..07b1e40fbc47 100644
--- a/arch/arm64/boot/dts/ti/k3-j721e-sk.dts
+++ b/arch/arm64/boot/dts/ti/k3-j721e-sk.dts
@@ -213,6 +213,18 @@
 		enable-active-high;
 	};
 
+	dp0: connector {
+		compatible = "dp-connector";
+		label = "DP0";
+		type = "full-size";
+		dp-pwr-supply = <&dp_pwr_3v3>;
+
+		port {
+			dp_connector_in: endpoint {
+				remote-endpoint = <&dp0_out>;
+			};
+		};
+	};
 };
 
 &main_pmx0 {
@@ -638,6 +650,8 @@
 &mhdp {
 	phys = <&torrent_phy_dp>;
 	phy-names = "dpphy";
+	pinctrl-names = "default";
+	pinctrl-0 = <&dp0_pins_default>;
 };
 
 &usbss0 {
@@ -718,6 +732,33 @@
 				 <&k3_clks 152 18>;	/* DPI1_EXT_CLKSEL_OUT0 */
 };
 
+&dss_ports {
+	port {
+		dpi0_out: endpoint {
+			remote-endpoint = <&dp0_in>;
+		};
+	};
+};
+
+&dp0_ports {
+	#address-cells = <1>;
+	#size-cells = <0>;
+
+	port@0 {
+		reg = <0>;
+		dp0_in: endpoint {
+			remote-endpoint = <&dpi0_out>;
+		};
+	};
+
+	port@4 {
+		reg = <4>;
+		dp0_out: endpoint {
+			remote-endpoint = <&dp_connector_in>;
+		};
+	};
+};
+
 &mcasp0 {
 	/* Unused */
 	status = "disabled";
@@ -852,10 +893,6 @@
 	status = "disabled";
 };
 
-&dss {
-	status = "disabled";
-};
-
 &icssg0_mdio {
 	status = "disabled";
 };
-- 
2.17.1


^ permalink raw reply related	[flat|nested] 5+ messages in thread

* [PATCH v2 2/2] arm64: dts: ti: k3-j721e-sk: Enable HDMI
  2022-05-05  9:07 [PATCH v2 0/2] Add support for DP and HDMI on j721e-sk Rahul T R
  2022-05-05  9:07 ` [PATCH v2 1/2] arm64: dts: ti: k3-j721e-sk: Enable DisplayPort Rahul T R
@ 2022-05-05  9:07 ` Rahul T R
  2022-05-05  9:18 ` [PATCH v2 0/2] Add support for DP and HDMI on j721e-sk Aradhya Bhatia
  2022-05-06 10:33 ` Vignesh Raghavendra
  3 siblings, 0 replies; 5+ messages in thread
From: Rahul T R @ 2022-05-05  9:07 UTC (permalink / raw)
  To: nm
  Cc: vigneshr, kristo, robh+dt, krzysztof.kozlowski+dt,
	linux-arm-kernel, devicetree, linux-kernel, tomi.valkeinen,
	laurent.pinchart, kishon, a-bhatia1, r-ravikumar

Add node for dvi bridge and the endpoint nodes to
describe connection from
DSS => TI TFP410 DPI-to-DVI Bridge => HDMI connector.
Also add the required pinmux for HDMI hotplug and
powerdown

Signed-off-by: Rahul T R <r-ravikumar@ti.com>
---
 arch/arm64/boot/dts/ti/k3-j721e-sk.dts | 80 +++++++++++++++++++++++++-
 1 file changed, 79 insertions(+), 1 deletion(-)

diff --git a/arch/arm64/boot/dts/ti/k3-j721e-sk.dts b/arch/arm64/boot/dts/ti/k3-j721e-sk.dts
index 07b1e40fbc47..80358cba6954 100644
--- a/arch/arm64/boot/dts/ti/k3-j721e-sk.dts
+++ b/arch/arm64/boot/dts/ti/k3-j721e-sk.dts
@@ -225,6 +225,59 @@
 			};
 		};
 	};
+
+	hdmi-connector {
+		compatible = "hdmi-connector";
+		label = "hdmi";
+		type = "a";
+
+		pinctrl-names = "default";
+		pinctrl-0 = <&hdmi_hpd_pins_default>;
+
+		ddc-i2c-bus = <&main_i2c1>;
+
+		/* HDMI_HPD */
+		hpd-gpios = <&main_gpio1 0 GPIO_ACTIVE_HIGH>;
+
+		port {
+			hdmi_connector_in: endpoint {
+				remote-endpoint = <&tfp410_out>;
+			};
+		};
+	};
+
+	dvi-bridge {
+		compatible = "ti,tfp410";
+
+		pinctrl-names = "default";
+		pinctrl-0 = <&hdmi_pdn_pins_default>;
+
+		powerdown-gpios = <&main_gpio0 127 GPIO_ACTIVE_LOW>;
+		ti,deskew = <0>;
+
+		ports {
+			#address-cells = <1>;
+			#size-cells = <0>;
+
+			port@0 {
+				reg = <0>;
+
+				tfp410_in: endpoint {
+					remote-endpoint = <&dpi1_out>;
+					pclk-sample = <1>;
+				};
+			};
+
+			port@1 {
+				reg = <1>;
+
+				tfp410_out: endpoint {
+					remote-endpoint =
+						<&hdmi_connector_in>;
+				};
+			};
+		};
+	};
 };
 
 &main_pmx0 {
@@ -329,6 +382,18 @@
 		>;
 	};
 
+	hdmi_hpd_pins_default: hdmi-hpd-pins-default {
+		pinctrl-single,pins = <
+			J721E_IOPAD(0x204, PIN_INPUT, 7) /* (AD5) UART1_RTSn.GPIO1_0 */
+		>;
+	};
+
+	hdmi_pdn_pins_default: hdmi-pdn-pins-default {
+		pinctrl-single,pins = <
+			J721E_IOPAD(0x200, PIN_INPUT, 7) /* (AC4) UART1_CTSn.GPIO0_127 */
+		>;
+	};
+
 	/* Reset for M.2 E Key slot on PCIe0  */
 	ekey_reset_pins_default: ekey-reset-pns-pins-default {
 		pinctrl-single,pins = <
@@ -733,11 +798,24 @@
 };
 
 &dss_ports {
-	port {
+	#address-cells = <1>;
+	#size-cells = <0>;
+
+	port@0  {
+		reg = <0>;
+
 		dpi0_out: endpoint {
 			remote-endpoint = <&dp0_in>;
 		};
 	};
+
+	port@1 {
+		reg = <1>;
+
+		dpi1_out: endpoint {
+			remote-endpoint = <&tfp410_in>;
+		};
+	};
 };
 
 &dp0_ports {
-- 
2.17.1


^ permalink raw reply related	[flat|nested] 5+ messages in thread

* Re: [PATCH v2 0/2] Add support for DP and HDMI on j721e-sk
  2022-05-05  9:07 [PATCH v2 0/2] Add support for DP and HDMI on j721e-sk Rahul T R
  2022-05-05  9:07 ` [PATCH v2 1/2] arm64: dts: ti: k3-j721e-sk: Enable DisplayPort Rahul T R
  2022-05-05  9:07 ` [PATCH v2 2/2] arm64: dts: ti: k3-j721e-sk: Enable HDMI Rahul T R
@ 2022-05-05  9:18 ` Aradhya Bhatia
  2022-05-06 10:33 ` Vignesh Raghavendra
  3 siblings, 0 replies; 5+ messages in thread
From: Aradhya Bhatia @ 2022-05-05  9:18 UTC (permalink / raw)
  To: Rahul T R, nm
  Cc: vigneshr, kristo, robh+dt, krzysztof.kozlowski+dt,
	linux-arm-kernel, devicetree, linux-kernel, tomi.valkeinen,
	laurent.pinchart, kishon


On 05/05/22 14:37, Rahul T R wrote:
> The following series of patches enables DisplayPort and
> HDMI on j721e-sk
> 
> v2:
>    - Fix name for dpi1 dss endpoint
> 
> This series depends on
> https://lore.kernel.org/all/20220429112639.13004-1-r-ravikumar@ti.com/
> which adds required nodes in the SoC dtsi file
> 
> boot logs:
>    https://gist.githubusercontent.com/ravi-rahul/d2e139d8ff9446ede003291a6a3e8be5/raw/ed51498efe7f7bc4848dffb27e2b37e0beb7a94d/j7_sk_DP_HDMI_boot.log
> 
> kernel patch verify report:
>    https://gist.githubusercontent.com/ravi-rahul/1e2350b53ac7d6ba7694373c0b3bbb44/raw/f09f75821610b42ad1f8b4bf3e5ef7843de0c76e/report-kernel-patch-verify-sk-dp-hdmi.txt
> 
> Rahul T R (2):
>   arm64: dts: ti: k3-j721e-sk: Enable DisplayPort
>   arm64: dts: ti: k3-j721e-sk: Enable HDMI
> 
>  arch/arm64/boot/dts/ti/k3-j721e-sk.dts | 123 ++++++++++++++++++++++++-
>  1 file changed, 119 insertions(+), 4 deletions(-)
> 

Reviewed-by: Aradhya Bhatia <a-bhatia1@ti.com>

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH v2 0/2] Add support for DP and HDMI on j721e-sk
  2022-05-05  9:07 [PATCH v2 0/2] Add support for DP and HDMI on j721e-sk Rahul T R
                   ` (2 preceding siblings ...)
  2022-05-05  9:18 ` [PATCH v2 0/2] Add support for DP and HDMI on j721e-sk Aradhya Bhatia
@ 2022-05-06 10:33 ` Vignesh Raghavendra
  3 siblings, 0 replies; 5+ messages in thread
From: Vignesh Raghavendra @ 2022-05-06 10:33 UTC (permalink / raw)
  To: nm, Rahul T R
  Cc: Vignesh Raghavendra, laurent.pinchart, kishon, linux-arm-kernel,
	krzysztof.kozlowski+dt, tomi.valkeinen, a-bhatia1, kristo,
	linux-kernel, devicetree, robh+dt

Hi Rahul T R,
 
On Thu, 5 May 2022 14:37:07 +0530, Rahul T R wrote:
> The following series of patches enables DisplayPort and
> HDMI on j721e-sk
> 
> v2:
>    - Fix name for dpi1 dss endpoint
> 
> This series depends on
> https://lore.kernel.org/all/20220429112639.13004-1-r-ravikumar@ti.com/
> which adds required nodes in the SoC dtsi file
> 
> [...]
 
I have applied the following to branch ti-k3-dts-next on [1].
Thank you!
 
[1/2] arm64: dts: ti: k3-j721e-sk: Enable DisplayPort
      commit: d4f3c8a169ab82b91ba1e10a495e900477a75cf5
[2/2] arm64: dts: ti: k3-j721e-sk: Enable HDMI
      commit: 7d4686fc3c2ad9bfd1eaf3c54515d6469e542578
 
All being well this means that it will be integrated into the linux-next
tree (usually sometime in the next 24 hours) and sent up the chain during
the next merge window (or sooner if it is a relevant bug fix), however if
problems are discovered then the patch may be dropped or reverted.
 
You may get further e-mails resulting from automated or manual testing
and review of the tree, please engage with people reporting problems and
send followup patches addressing any issues that are reported if needed.
 
If any updates are required or you are submitting further changes they
should be sent as incremental updates against current git, existing
patches will not be replaced.
 
Please add any relevant lists and maintainers to the CCs when replying
to this mail.
 
[1] https://git.kernel.org/pub/scm/linux/kernel/git/ti/linux.git
--
Vignesh


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2022-05-06 10:34 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-05-05  9:07 [PATCH v2 0/2] Add support for DP and HDMI on j721e-sk Rahul T R
2022-05-05  9:07 ` [PATCH v2 1/2] arm64: dts: ti: k3-j721e-sk: Enable DisplayPort Rahul T R
2022-05-05  9:07 ` [PATCH v2 2/2] arm64: dts: ti: k3-j721e-sk: Enable HDMI Rahul T R
2022-05-05  9:18 ` [PATCH v2 0/2] Add support for DP and HDMI on j721e-sk Aradhya Bhatia
2022-05-06 10:33 ` Vignesh Raghavendra

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).