From: Vignesh Raghavendra <vigneshr@ti.com>
To: Rahul T R <r-ravikumar@ti.com>, <nm@ti.com>
Cc: <kristo@kernel.org>, <robh+dt@kernel.org>,
<krzysztof.kozlowski@canonical.com>,
<linux-arm-kernel@lists.infradead.org>,
<devicetree@vger.kernel.org>, <linux-kernel@vger.kernel.org>,
<tomi.valkeinen@ideasonboard.com>,
<laurent.pinchart@ideasonboard.com>, <kishon@ti.com>
Subject: Re: [PATCH v3 1/2] arm64: dts: ti: k3-j721e-main: add DP & DP PHY
Date: Fri, 15 Apr 2022 12:57:33 +0530 [thread overview]
Message-ID: <758ce7b9-a164-51b7-a64e-fb8df9f7d282@ti.com> (raw)
In-Reply-To: <20220406165852.13026-2-r-ravikumar@ti.com>
On 06/04/22 10:28 pm, Rahul T R wrote:
> From: Tomi Valkeinen <tomi.valkeinen@ti.com>
>
> 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.
>
> 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 <tomi.valkeinen@ti.com>
> Signed-off-by: Rahul T R <r-ravikumar@ti.com>
> ---
> arch/arm64/boot/dts/ti/k3-j721e-main.dtsi | 65 +++++++++++++++++++++++
> 1 file changed, 65 insertions(+)
>
> diff --git a/arch/arm64/boot/dts/ti/k3-j721e-main.dtsi b/arch/arm64/boot/dts/ti/k3-j721e-main.dtsi
> index db0669985e42..11426c25a09d 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 <dt-bindings/phy/phy.h>
> +#include <dt-bindings/phy/phy-ti.h>
> #include <dt-bindings/mux/mux.h>
> #include <dt-bindings/mux/ti-serdes.h>
>
> @@ -789,6 +790,47 @@
> #size-cells = <2>;
> };
>
> + serdes_wiz4: wiz@5050000 {
> + compatible = "ti,am64-wiz-10g";
> + #address-cells = <1>;
> + #size-cells = <1>;
> + power-domains = <&k3_pds 297 TI_SCI_PD_EXCLUSIVE>;
> + clocks = <&k3_clks 297 1>, <&k3_clks 297 9>, <&cmn_refclk>;
> + clock-names = "fck", "core_ref_clk", "ext_ref_clk";
> + assigned-clocks = <&k3_clks 297 9>;
> + assigned-clock-parents = <&k3_clks 297 10>;
> + assigned-clock-rates = <19200000>;
> + num-lanes = <4>;
> + #reset-cells = <1>;
> + #clock-cells = <1>;
> + ranges = <0x5050000 0x0 0x5050000 0x10000>,
> + <0xa030a00 0x0 0xa030a00 0x40>;
Add leading 0s to align to 8 digit value like rest of the file:
ranges = <0x05050000 0x00 0x05050000 0x10000>,
<0x0a030a00 0x00 0x0a030a00 0x40>;
> +
> + serdes4: serdes@5050000 {
> + /*
> + * Note: we also map DPTX PHY registers as the Torrent
> + * needs to manage those.
> + */
> + compatible = "ti,j721e-serdes-10g";
> + reg = <0x5050000 0x10000>,
> + <0xa030a00 0x40>; /* DPTX PHY */
Same here.
> + reg-names = "torrent_phy", "dptx_phy";
> +
> + resets = <&serdes_wiz4 0>;
> + reset-names = "torrent_reset";
> + clocks = <&serdes_wiz4 TI_WIZ_PLL0_REFCLK>;
> + clock-names = "refclk";
> + assigned-clocks = <&serdes_wiz4 TI_WIZ_PLL0_REFCLK>,
> + <&serdes_wiz4 TI_WIZ_PLL1_REFCLK>,
> + <&serdes_wiz4 TI_WIZ_REFCLK_DIG>;
> + assigned-clock-parents = <&k3_clks 297 9>,
> + <&k3_clks 297 9>,
> + <&k3_clks 297 9>;
> + #address-cells = <1>;
> + #size-cells = <0>;
> + };
> + };
> +
> main_uart0: serial@2800000 {
> compatible = "ti,j721e-uart", "ti,am654-uart";
> reg = <0x00 0x02800000 0x00 0x100>;
> @@ -1267,6 +1309,29 @@
> };
> };
>
> + mhdp: dp-bridge@a000000 {
> + compatible = "ti,j721e-mhdp8546";
> + /*
> + * Note: we do not map DPTX PHY area, as that is handled by
> + * the PHY driver.
> + */
> + reg = <0x0 0xa000000 0x0 0x30a00>, /* DSS_EDP0_V2A_CORE_VP_REGS_APB */
> + <0x0 0x4f40000 0x0 0x20>; /* DSS_EDP0_INTG_CFG_VP */
Please use 0x00 as rest of the file like:
reg = <0x00 0x0a000000 0x00 0x30a00>,
<0x00 0x04f40000 0x00 0x20>;
> + reg-names = "mhdptx", "j721e-intg";
> +
> + clocks = <&k3_clks 151 36>;
> +
> + interrupt-parent = <&gic500>;
> + interrupts = <GIC_SPI 614 IRQ_TYPE_LEVEL_HIGH>;
> +
> + power-domains = <&k3_pds 151 TI_SCI_PD_EXCLUSIVE>;
> +
> + dp0_ports: ports {
> + #address-cells = <1>;
> + #size-cells = <0>;
> + };
> + };
> +
> dss: dss@4a00000 {
> compatible = "ti,j721e-dss";
> reg =
next prev parent reply other threads:[~2022-04-15 7:27 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-04-06 16:58 [PATCH v3 0/2] DSS: Add support for DisplayPort Rahul T R
2022-04-06 16:58 ` [PATCH v3 1/2] arm64: dts: ti: k3-j721e-main: add DP & DP PHY Rahul T R
2022-04-15 7:27 ` Vignesh Raghavendra [this message]
2022-04-06 16:58 ` [PATCH v3 2/2] arm64: dts: ti: k3-j721e-common-proc-board: add DP to j7 evm Rahul T R
2022-04-15 7:21 ` [PATCH v3 0/2] DSS: Add support for DisplayPort Vignesh Raghavendra
2022-04-22 14:16 ` Rahul T R
2022-04-22 16:17 ` Nishanth Menon
2022-04-26 14:56 ` Rahul T R
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=758ce7b9-a164-51b7-a64e-fb8df9f7d282@ti.com \
--to=vigneshr@ti.com \
--cc=devicetree@vger.kernel.org \
--cc=kishon@ti.com \
--cc=kristo@kernel.org \
--cc=krzysztof.kozlowski@canonical.com \
--cc=laurent.pinchart@ideasonboard.com \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=nm@ti.com \
--cc=r-ravikumar@ti.com \
--cc=robh+dt@kernel.org \
--cc=tomi.valkeinen@ideasonboard.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).