From: Marcel Ziswiler <marcel.ziswiler@toradex.com>
To: "shawnguo@kernel.org" <shawnguo@kernel.org>
Cc: "laurent.pinchart@ideasonboard.com"
<laurent.pinchart@ideasonboard.com>,
Max Krummenacher <max.krummenacher@toradex.com>,
"linux-imx@nxp.com" <linux-imx@nxp.com>,
"kernel@pengutronix.de" <kernel@pengutronix.de>,
"festevam@gmail.com" <festevam@gmail.com>,
Philippe Schenker <philippe.schenker@toradex.com>,
"devicetree@vger.kernel.org" <devicetree@vger.kernel.org>,
"s.hauer@pengutronix.de" <s.hauer@pengutronix.de>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
"linux-arm-kernel@lists.infradead.org"
<linux-arm-kernel@lists.infradead.org>,
"krzysztof.kozlowski+dt@linaro.org"
<krzysztof.kozlowski+dt@linaro.org>,
"robh+dt@kernel.org" <robh+dt@kernel.org>
Subject: Re: [PATCH v1 6/8] arm64: dts: verdin-imx8mp: add pcie support
Date: Sun, 23 Oct 2022 21:46:56 +0000 [thread overview]
Message-ID: <9d922d5f8fce469a61396a94dd292d2fd2315b4e.camel@toradex.com> (raw)
In-Reply-To: <20221023131232.GN125525@dragon>
Hi Shawn
On Sun, 2022-10-23 at 21:12 +0800, Shawn Guo wrote:
> On Thu, Sep 22, 2022 at 06:29:23PM +0200, Marcel Ziswiler wrote:
> > From: Marcel Ziswiler <marcel.ziswiler@toradex.com>
> >
> > Add PCIe support on the Verdin iMX8M Plus.
> >
> > Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
> >
> > ---
> > This still relies on the PHY part landing [1] and the internal SYSPLL
> > mode getting sorted [2].
> >
> > [1] https://lore.kernel.org/all/1663659498-5180-1-git-send-email-hongxing.zhu@nxp.com/
> > [2]
> > https://lore.kernel.org/all/AS8PR04MB867657D03C61774096A5A1628C4C9@AS8PR04MB8676.eurprd04.prod.outlook.com/
>
> Are these dependencies already landed on v6.1-rc1?
No, but [1] Vinod pulled into -next on October 17 so we should be fine. Actually, your pull of [3] into -next
as of September 17 is more important, as otherwise that pcie and pcie_phy node I'm referencing would not exist
yet. Of course, it will only be really functional once [2] also gets sorted. However, it should really not hurt
already having it in there.
Thanks!
[3] https://lore.kernel.org/all/1662109086-15881-1-git-send-email-hongxing.zhu@nxp.com/
> Shawn
>
> > ly
> > .../dts/freescale/imx8mp-verdin-dahlia.dtsi | 9 +++++++-
> > .../boot/dts/freescale/imx8mp-verdin.dtsi | 22 ++++++++++++++++++-
> > 2 files changed, 29 insertions(+), 2 deletions(-)
> >
> > diff --git a/arch/arm64/boot/dts/freescale/imx8mp-verdin-dahlia.dtsi
> > b/arch/arm64/boot/dts/freescale/imx8mp-verdin-dahlia.dtsi
> > index 4b8f86f63081..60f9dc4847db 100644
> > --- a/arch/arm64/boot/dts/freescale/imx8mp-verdin-dahlia.dtsi
> > +++ b/arch/arm64/boot/dts/freescale/imx8mp-verdin-dahlia.dtsi
> > @@ -67,7 +67,14 @@ &i2c4 {
> > /* TODO: Audio Codec */
> > };
> >
> > -/* TODO: Verdin PCIE_1 */
> > +/* Verdin PCIE_1 */
> > +&pcie {
> > + status = "okay";
> > +};
> > +
> > +&pcie_phy {
> > + status = "okay";
> > +};
> >
> > /* Verdin PWM_1 */
> > &pwm1 {
> > diff --git a/arch/arm64/boot/dts/freescale/imx8mp-verdin.dtsi b/arch/arm64/boot/dts/freescale/imx8mp-
> > verdin.dtsi
> > index 7be7e922927b..160bb32cb5f7 100644
> > --- a/arch/arm64/boot/dts/freescale/imx8mp-verdin.dtsi
> > +++ b/arch/arm64/boot/dts/freescale/imx8mp-verdin.dtsi
> > @@ -734,7 +734,27 @@ eeprom_carrier_board: eeprom@57 {
> > };
> > };
> >
> > -/* TODO: Verdin PCIE_1 */
> > +/* Verdin PCIE_1 */
> > +&pcie {
> > + assigned-clocks = <&clk IMX8MP_CLK_PCIE_AUX>;
> > + assigned-clock-parents = <&clk IMX8MP_SYS_PLL2_50M>;
> > + assigned-clock-rates = <10000000>;
> > + clocks = <&clk IMX8MP_CLK_HSIO_ROOT>,
> > + <&clk IMX8MP_CLK_PCIE_ROOT>,
> > + <&clk IMX8MP_CLK_HSIO_AXI>;
> > + clock-names = "pcie", "pcie_aux", "pcie_bus";
> > + pinctrl-names = "default";
> > + pinctrl-0 = <&pinctrl_pcie>;
> > + /* PCIE_1_RESET# (SODIMM 244) */
> > + reset-gpio = <&gpio4 19 GPIO_ACTIVE_LOW>;
> > +};
> > +
> > +&pcie_phy {
> > + clocks = <&clk IMX8MP_CLK_HSIO_ROOT>;
> > + clock-names = "ref";
> > + fsl,clkreq-unsupported;
> > + fsl,refclk-pad-mode = <IMX8_PCIE_REFCLK_PAD_OUTPUT>;
> > +};
> >
> > /* Verdin PWM_1 */
> > &pwm1 {
> > --
> > 2.36.1
Cheers
Marcel
next prev parent reply other threads:[~2022-10-23 21:47 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-09-22 16:29 [PATCH v1 0/8] arm64: dts: verdin-imx8mm: verdin-imx8mp: pcie. et. al Marcel Ziswiler
2022-09-22 16:29 ` [PATCH v1 1/8] arm64: dts: verdin-imx8mp: fix ctrl_sleep_moci Marcel Ziswiler
2022-10-23 13:08 ` Shawn Guo
2022-09-22 16:29 ` [PATCH v1 2/8] arm64: dts: verdin-imx8mm: verdin-imx8mp: improve include notation Marcel Ziswiler
2022-10-23 13:09 ` Shawn Guo
2022-10-23 21:27 ` Marcel Ziswiler
2022-09-22 16:29 ` [PATCH v1 3/8] arm64: dts: colibri-imx8x: " Marcel Ziswiler
2022-10-23 13:09 ` Shawn Guo
2022-09-22 16:29 ` [PATCH v1 4/8] arm64: dts: verdin-imx8mm: verdin-imx8mp: rename sn65dsi83 to sn65dsi84 Marcel Ziswiler
2022-10-23 13:10 ` Shawn Guo
2022-09-22 16:29 ` [PATCH v1 5/8] arm64: dts: verdin-imx8mm: improve pcie node Marcel Ziswiler
2022-10-23 13:11 ` Shawn Guo
2022-09-22 16:29 ` [PATCH v1 6/8] arm64: dts: verdin-imx8mp: add pcie support Marcel Ziswiler
2022-10-23 13:12 ` Shawn Guo
2022-10-23 21:46 ` Marcel Ziswiler [this message]
2022-09-22 16:29 ` [PATCH v1 7/8] arm64: defconfig: enable snvs lpgpr support Marcel Ziswiler
2022-10-23 13:15 ` Shawn Guo
2022-09-22 16:29 ` [PATCH v1 8/8] arm64: defconfig: enable i.mx 8m plus specific interconnect support Marcel Ziswiler
2022-10-23 13:15 ` Shawn Guo
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=9d922d5f8fce469a61396a94dd292d2fd2315b4e.camel@toradex.com \
--to=marcel.ziswiler@toradex.com \
--cc=devicetree@vger.kernel.org \
--cc=festevam@gmail.com \
--cc=kernel@pengutronix.de \
--cc=krzysztof.kozlowski+dt@linaro.org \
--cc=laurent.pinchart@ideasonboard.com \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-imx@nxp.com \
--cc=linux-kernel@vger.kernel.org \
--cc=max.krummenacher@toradex.com \
--cc=philippe.schenker@toradex.com \
--cc=robh+dt@kernel.org \
--cc=s.hauer@pengutronix.de \
--cc=shawnguo@kernel.org \
/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