From nobody Sun May 10 16:26:52 2026 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 584F7C433EF for ; Fri, 29 Apr 2022 11:27:55 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1348452AbiD2LbK (ORCPT ); Fri, 29 Apr 2022 07:31:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58778 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1358464AbiD2Lap (ORCPT ); Fri, 29 Apr 2022 07:30:45 -0400 Received: from fllv0016.ext.ti.com (fllv0016.ext.ti.com [198.47.19.142]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C0F3FC12D2; Fri, 29 Apr 2022 04:26:55 -0700 (PDT) Received: from fllv0035.itg.ti.com ([10.64.41.0]) by fllv0016.ext.ti.com (8.15.2/8.15.2) with ESMTP id 23TBQkNf064002; Fri, 29 Apr 2022 06:26:46 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1651231606; bh=gRQr7XeEvyTpJ2fKnZIXTDb/h++VKf/bmPBC0uraUJc=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=RLORGy49FxhwOvn4yRN/YR3FcYcWpJhM8Xshnp1XtwB/+FLOBtn2gvMZ5S1gy66UV dUCI5ZqK40efXFOWnZ3Aahc4CPy6QjkOhtiUN7JOFtYKU/6CgPLHRkHCLWyfdNTjBL 5+s2bxQQSy0ScZRgv8qnaUElOgMTCpH5se2VdUS4= Received: from DLEE107.ent.ti.com (dlee107.ent.ti.com [157.170.170.37]) by fllv0035.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 23TBQjeS110324 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Fri, 29 Apr 2022 06:26:46 -0500 Received: from DLEE100.ent.ti.com (157.170.170.30) by DLEE107.ent.ti.com (157.170.170.37) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2308.14; Fri, 29 Apr 2022 06:26:45 -0500 Received: from lelv0327.itg.ti.com (10.180.67.183) by DLEE100.ent.ti.com (157.170.170.30) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2308.14 via Frontend Transport; Fri, 29 Apr 2022 06:26:45 -0500 Received: from localhost (ileax41-snat.itg.ti.com [10.172.224.153]) by lelv0327.itg.ti.com (8.15.2/8.15.2) with ESMTP id 23TBQii7037776; Fri, 29 Apr 2022 06:26:44 -0500 From: Rahul T R To: CC: , , , , , , , , , , , Subject: [PATCH v5 1/2] arm64: dts: ti: k3-j721e-*: add DP & DP PHY Date: Fri, 29 Apr 2022 16:56:38 +0530 Message-ID: <20220429112639.13004-2-r-ravikumar@ti.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20220429112639.13004-1-r-ravikumar@ti.com> References: <20220429112639.13004-1-r-ravikumar@ti.com> MIME-Version: 1.0 X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" From: Tomi Valkeinen Add DT nodes for DisplayPort and DisplayPort PHY. The DP is Cadence MHDP 8546 and the PHY is a Cadence Torrent PHY with TI WIZ wrapper. Also add the required phy link nodes in the board dts files. A slight irregularity in the bindings is the DPTX PHY register block, which is in the MHDP IP, but is needed and mapped by the PHY. Signed-off-by: Tomi Valkeinen Signed-off-by: Rahul T R Reviewed-by: Aradhya Bhatia --- .../dts/ti/k3-j721e-common-proc-board.dts | 16 ++++ arch/arm64/boot/dts/ti/k3-j721e-main.dtsi | 75 ++++++++++++++++++- arch/arm64/boot/dts/ti/k3-j721e-sk.dts | 16 ++++ 3 files changed, 105 insertions(+), 2 deletions(-) diff --git a/arch/arm64/boot/dts/ti/k3-j721e-common-proc-board.dts b/arch/a= rm64/boot/dts/ti/k3-j721e-common-proc-board.dts index f5ca8e26ed99..2f119e94e783 100644 --- a/arch/arm64/boot/dts/ti/k3-j721e-common-proc-board.dts +++ b/arch/arm64/boot/dts/ti/k3-j721e-common-proc-board.dts @@ -793,6 +793,22 @@ }; }; =20 +&serdes4 { + torrent_phy_dp: phy@0 { + reg =3D <0>; + resets =3D <&serdes_wiz4 1>; + cdns,phy-type =3D ; + cdns,num-lanes =3D <4>; + cdns,max-bit-rate =3D <5400>; + #phy-cells =3D <0>; + }; +}; + +&mhdp { + phys =3D <&torrent_phy_dp>; + phy-names =3D "dpphy"; +}; + &pcie0_rc { reset-gpios =3D <&exp1 6 GPIO_ACTIVE_HIGH>; phys =3D <&serdes0_pcie_link>; diff --git a/arch/arm64/boot/dts/ti/k3-j721e-main.dtsi b/arch/arm64/boot/dt= s/ti/k3-j721e-main.dtsi index db0669985e42..43b6cf5791ee 100644 --- a/arch/arm64/boot/dts/ti/k3-j721e-main.dtsi +++ b/arch/arm64/boot/dts/ti/k3-j721e-main.dtsi @@ -5,6 +5,7 @@ * Copyright (C) 2016-2020 Texas Instruments Incorporated - https://www.ti= .com/ */ #include +#include #include #include =20 @@ -789,6 +790,47 @@ #size-cells =3D <2>; }; =20 + serdes_wiz4: wiz@5050000 { + compatible =3D "ti,am64-wiz-10g"; + #address-cells =3D <1>; + #size-cells =3D <1>; + power-domains =3D <&k3_pds 297 TI_SCI_PD_EXCLUSIVE>; + clocks =3D <&k3_clks 297 1>, <&k3_clks 297 9>, <&cmn_refclk>; + clock-names =3D "fck", "core_ref_clk", "ext_ref_clk"; + assigned-clocks =3D <&k3_clks 297 9>; + assigned-clock-parents =3D <&k3_clks 297 10>; + assigned-clock-rates =3D <19200000>; + num-lanes =3D <4>; + #reset-cells =3D <1>; + #clock-cells =3D <1>; + ranges =3D <0x05050000 0x00 0x05050000 0x010000>, + <0x0a030a00 0x00 0x0a030a00 0x40>; + + serdes4: serdes@5050000 { + /* + * Note: we also map DPTX PHY registers as the Torrent + * needs to manage those. + */ + compatible =3D "ti,j721e-serdes-10g"; + reg =3D <0x05050000 0x010000>, + <0x0a030a00 0x40>; /* DPTX PHY */ + reg-names =3D "torrent_phy", "dptx_phy"; + + resets =3D <&serdes_wiz4 0>; + reset-names =3D "torrent_reset"; + clocks =3D <&serdes_wiz4 TI_WIZ_PLL0_REFCLK>; + clock-names =3D "refclk"; + assigned-clocks =3D <&serdes_wiz4 TI_WIZ_PLL0_REFCLK>, + <&serdes_wiz4 TI_WIZ_PLL1_REFCLK>, + <&serdes_wiz4 TI_WIZ_REFCLK_DIG>; + assigned-clock-parents =3D <&k3_clks 297 9>, + <&k3_clks 297 9>, + <&k3_clks 297 9>; + #address-cells =3D <1>; + #size-cells =3D <0>; + }; + }; + main_uart0: serial@2800000 { compatible =3D "ti,j721e-uart", "ti,am654-uart"; reg =3D <0x00 0x02800000 0x00 0x100>; @@ -1267,6 +1309,37 @@ }; }; =20 + mhdp: dp-bridge@a000000 { + compatible =3D "ti,j721e-mhdp8546"; + /* + * Note: we do not map DPTX PHY area, as that is handled by + * the PHY driver. + */ + reg =3D <0x00 0x0a000000 0x00 0x030a00>, /* DSS_EDP0_V2A_CORE_VP_REGS_AP= B */ + <0x00 0x04f40000 0x00 0x20>; /* DSS_EDP0_INTG_CFG_VP */ + reg-names =3D "mhdptx", "j721e-intg"; + + clocks =3D <&k3_clks 151 36>; + + interrupt-parent =3D <&gic500>; + interrupts =3D ; + + power-domains =3D <&k3_pds 151 TI_SCI_PD_EXCLUSIVE>; + + dp0_ports: ports { + #address-cells =3D <1>; + #size-cells =3D <0>; + + port@0 { + reg =3D <0>; + }; + + port@4 { + reg =3D <4>; + }; + }; + }; + dss: dss@4a00000 { compatible =3D "ti,j721e-dss"; reg =3D @@ -1317,8 +1390,6 @@ "common_s2"; =20 dss_ports: ports { - #address-cells =3D <1>; - #size-cells =3D <0>; }; }; =20 diff --git a/arch/arm64/boot/dts/ti/k3-j721e-sk.dts b/arch/arm64/boot/dts/t= i/k3-j721e-sk.dts index f25d85169e0d..98177a20b45f 100644 --- a/arch/arm64/boot/dts/ti/k3-j721e-sk.dts +++ b/arch/arm64/boot/dts/ti/k3-j721e-sk.dts @@ -624,6 +624,22 @@ }; }; =20 +&serdes4 { + torrent_phy_dp: phy@0 { + reg =3D <0>; + resets =3D <&serdes_wiz4 1>; + cdns,phy-type =3D ; + cdns,num-lanes =3D <4>; + cdns,max-bit-rate =3D <5400>; + #phy-cells =3D <0>; + }; +}; + +&mhdp { + phys =3D <&torrent_phy_dp>; + phy-names =3D "dpphy"; +}; + &usbss0 { pinctrl-names =3D "default"; pinctrl-0 =3D <&main_usbss0_pins_default>; --=20 2.17.1 From nobody Sun May 10 16:26:52 2026 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 0E2DFC433F5 for ; Fri, 29 Apr 2022 11:27:42 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1358523AbiD2La4 (ORCPT ); Fri, 29 Apr 2022 07:30:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58884 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1358461AbiD2Lao (ORCPT ); Fri, 29 Apr 2022 07:30:44 -0400 Received: from fllv0015.ext.ti.com (fllv0015.ext.ti.com [198.47.19.141]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A8687B6E4A; Fri, 29 Apr 2022 04:26:56 -0700 (PDT) Received: from lelv0265.itg.ti.com ([10.180.67.224]) by fllv0015.ext.ti.com (8.15.2/8.15.2) with ESMTP id 23TBQlgR055164; Fri, 29 Apr 2022 06:26:47 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1651231607; bh=KPOapqf9VP0TJfSrKIsW5oh7Ireah9e96Bp/fBV7dO0=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=fGuBJfc1WsASRTaeErP9QiL5rXha02A4o8eFi9sDgBYF8EwaBHhCQe4IloLzXEJwU JmcNBGp8JF/jnWdlOYnAtfva5O7M52+66UQ0tnoLNQClAnW+aySpaZBkBYvbhoz8VS cApcWel/z7fD5kL2ihCH72K58oMCp+uC+aAoDluQ= Received: from DFLE102.ent.ti.com (dfle102.ent.ti.com [10.64.6.23]) by lelv0265.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 23TBQlEk023869 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Fri, 29 Apr 2022 06:26:47 -0500 Received: from DFLE103.ent.ti.com (10.64.6.24) by DFLE102.ent.ti.com (10.64.6.23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2308.14; Fri, 29 Apr 2022 06:26:47 -0500 Received: from fllv0039.itg.ti.com (10.64.41.19) by DFLE103.ent.ti.com (10.64.6.24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2308.14 via Frontend Transport; Fri, 29 Apr 2022 06:26:47 -0500 Received: from localhost (ileax41-snat.itg.ti.com [10.172.224.153]) by fllv0039.itg.ti.com (8.15.2/8.15.2) with ESMTP id 23TBQkIt077679; Fri, 29 Apr 2022 06:26:46 -0500 From: Rahul T R To: CC: , , , , , , , , , , , Subject: [PATCH v5 2/2] arm64: dts: ti: k3-j721e-common-proc-board: add DP to j7 evm Date: Fri, 29 Apr 2022 16:56:39 +0530 Message-ID: <20220429112639.13004-3-r-ravikumar@ti.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20220429112639.13004-1-r-ravikumar@ti.com> References: <20220429112639.13004-1-r-ravikumar@ti.com> MIME-Version: 1.0 X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" From: Tomi Valkeinen Add the endpoint nodes to describe connection from DSS =3D> MHDP =3D> DisplayPort connector. Also add the required pinmux nodes for hotplug. Signed-off-by: Tomi Valkeinen Signed-off-by: Rahul T R Reviewed-by: Aradhya Bhatia --- .../dts/ti/k3-j721e-common-proc-board.dts | 61 +++++++++++++++++-- 1 file changed, 57 insertions(+), 4 deletions(-) diff --git a/arch/arm64/boot/dts/ti/k3-j721e-common-proc-board.dts b/arch/a= rm64/boot/dts/ti/k3-j721e-common-proc-board.dts index 2f119e94e783..2bc26a296496 100644 --- a/arch/arm64/boot/dts/ti/k3-j721e-common-proc-board.dts +++ b/arch/arm64/boot/dts/ti/k3-j721e-common-proc-board.dts @@ -148,6 +148,28 @@ pinctrl-0 =3D <&main_mcan2_gpio_pins_default>; standby-gpios =3D <&main_gpio0 127 GPIO_ACTIVE_HIGH>; }; + + dp_pwr_3v3: regulator-dp-pwr { + compatible =3D "regulator-fixed"; + regulator-name =3D "dp-pwr"; + regulator-min-microvolt =3D <3300000>; + regulator-max-microvolt =3D <3300000>; + gpio =3D <&exp4 0 GPIO_ACTIVE_HIGH>; /* P0 - DP0_PWR_SW_EN */ + enable-active-high; + }; + + dp0: connector { + compatible =3D "dp-connector"; + label =3D "DP0"; + type =3D "full-size"; + dp-pwr-supply =3D <&dp_pwr_3v3>; + + port { + dp_connector_in: endpoint { + remote-endpoint =3D <&dp0_out>; + }; + }; + }; }; =20 &main_pmx0 { @@ -190,6 +212,12 @@ >; }; =20 + dp0_pins_default: dp0-pins-default { + pinctrl-single,pins =3D < + J721E_IOPAD(0x1c4, PIN_INPUT, 5) /* SPI0_CS1.DP0_HPD */ + >; + }; + main_i2c1_exp4_pins_default: main-i2c1-exp4-pins-default { pinctrl-single,pins =3D < J721E_IOPAD(0x230, PIN_INPUT, 7) /* (U2) ECAP0_IN_APWM_OUT.GPIO1_11 */ @@ -658,6 +686,33 @@ <&k3_clks 152 18>; /* PLL23_HSDIV0 */ }; =20 +&dss_ports { + port { + dpi0_out: endpoint { + remote-endpoint =3D <&dp0_in>; + }; + }; +}; + +&dp0_ports { + #address-cells =3D <1>; + #size-cells =3D <0>; + + port@0 { + reg =3D <0>; + dp0_in: endpoint { + remote-endpoint =3D <&dpi0_out>; + }; + }; + + port@4 { + reg =3D <4>; + dp0_out: endpoint { + remote-endpoint =3D <&dp_connector_in>; + }; + }; +}; + &mcasp0 { status =3D "disabled"; }; @@ -807,6 +862,8 @@ &mhdp { phys =3D <&torrent_phy_dp>; phy-names =3D "dpphy"; + pinctrl-names =3D "default"; + pinctrl-0 =3D <&dp0_pins_default>; }; =20 &pcie0_rc { @@ -859,10 +916,6 @@ status =3D "disabled"; }; =20 -&dss { - status =3D "disabled"; -}; - &icssg0_mdio { status =3D "disabled"; }; --=20 2.17.1