* [PATCH v6 1/6] arm64: dts: Add i.MX8MM PCIe EP support
2023-01-20 5:25 [PATCH DTS v6 0/6] Add i.MX PCIe EP mode support Richard Zhu
@ 2023-01-20 5:25 ` Richard Zhu
2023-01-20 8:07 ` Krzysztof Kozlowski
2023-01-20 5:25 ` [PATCH v6 2/6] arm64: dts: Add i.MX8MM PCIe EP support on EVK board Richard Zhu
` (4 subsequent siblings)
5 siblings, 1 reply; 17+ messages in thread
From: Richard Zhu @ 2023-01-20 5:25 UTC (permalink / raw)
To: robh+dt, krzysztof.kozlowski+dt, shawnguo, peng.fan, marex,
marcel.ziswiler, tharvey, frank.li
Cc: lorenzo.pieralisi, hongxing.zhu, devicetree, linux-arm-kernel,
linux-kernel, kernel, linux-imx
Add i.MX8MM PCIe EP support.
Signed-off-by: Richard Zhu <hongxing.zhu@nxp.com>
---
arch/arm64/boot/dts/freescale/imx8mm.dtsi | 24 +++++++++++++++++++++++
1 file changed, 24 insertions(+)
diff --git a/arch/arm64/boot/dts/freescale/imx8mm.dtsi b/arch/arm64/boot/dts/freescale/imx8mm.dtsi
index 31f4548f85cf..9662aeccdb3b 100644
--- a/arch/arm64/boot/dts/freescale/imx8mm.dtsi
+++ b/arch/arm64/boot/dts/freescale/imx8mm.dtsi
@@ -1315,6 +1315,30 @@ pcie0: pcie@33800000 {
status = "disabled";
};
+ pcie0_ep: pcie_ep@33800000 {
+ compatible = "fsl,imx8mm-pcie-ep";
+ reg = <0x33800000 0x400000>,
+ <0x18000000 0x8000000>;
+ reg-names = "regs", "addr_space";
+ num-lanes = <1>;
+ interrupts = <GIC_SPI 127 IRQ_TYPE_LEVEL_HIGH>;
+ interrupt-names = "dma";
+ fsl,max-link-speed = <2>;
+ clocks = <&clk IMX8MM_CLK_PCIE1_ROOT>,
+ <&clk IMX8MM_CLK_PCIE1_PHY>,
+ <&clk IMX8MM_CLK_PCIE1_AUX>;
+ clock-names = "pcie", "pcie_bus", "pcie_aux";
+ power-domains = <&pgc_pcie>;
+ resets = <&src IMX8MQ_RESET_PCIE_CTRL_APPS_EN>,
+ <&src IMX8MQ_RESET_PCIE_CTRL_APPS_TURNOFF>;
+ reset-names = "apps", "turnoff";
+ phys = <&pcie_phy>;
+ phy-names = "pcie-phy";
+ num-ib-windows = <4>;
+ num-ob-windows = <4>;
+ status = "disabled";
+ };
+
gpu_3d: gpu@38000000 {
compatible = "vivante,gc";
reg = <0x38000000 0x8000>;
--
2.25.1
^ permalink raw reply related [flat|nested] 17+ messages in thread* Re: [PATCH v6 1/6] arm64: dts: Add i.MX8MM PCIe EP support
2023-01-20 5:25 ` [PATCH v6 1/6] arm64: dts: Add i.MX8MM PCIe EP support Richard Zhu
@ 2023-01-20 8:07 ` Krzysztof Kozlowski
2023-01-30 2:02 ` Hongxing Zhu
0 siblings, 1 reply; 17+ messages in thread
From: Krzysztof Kozlowski @ 2023-01-20 8:07 UTC (permalink / raw)
To: Richard Zhu, robh+dt, krzysztof.kozlowski+dt, shawnguo, peng.fan,
marex, marcel.ziswiler, tharvey, frank.li
Cc: lorenzo.pieralisi, devicetree, linux-arm-kernel, linux-kernel,
kernel, linux-imx
On 20/01/2023 06:25, Richard Zhu wrote:
> Add i.MX8MM PCIe EP support.
>
> Signed-off-by: Richard Zhu <hongxing.zhu@nxp.com>
> ---
> arch/arm64/boot/dts/freescale/imx8mm.dtsi | 24 +++++++++++++++++++++++
> 1 file changed, 24 insertions(+)
>
> diff --git a/arch/arm64/boot/dts/freescale/imx8mm.dtsi b/arch/arm64/boot/dts/freescale/imx8mm.dtsi
> index 31f4548f85cf..9662aeccdb3b 100644
> --- a/arch/arm64/boot/dts/freescale/imx8mm.dtsi
> +++ b/arch/arm64/boot/dts/freescale/imx8mm.dtsi
> @@ -1315,6 +1315,30 @@ pcie0: pcie@33800000 {
> status = "disabled";
> };
>
> + pcie0_ep: pcie_ep@33800000 {
No underscores in node names.
> + compatible = "fsl,imx8mm-pcie-ep";
Did you test it with bindings? Does it pass without warnings?
Best regards,
Krzysztof
^ permalink raw reply [flat|nested] 17+ messages in thread* RE: [PATCH v6 1/6] arm64: dts: Add i.MX8MM PCIe EP support
2023-01-20 8:07 ` Krzysztof Kozlowski
@ 2023-01-30 2:02 ` Hongxing Zhu
0 siblings, 0 replies; 17+ messages in thread
From: Hongxing Zhu @ 2023-01-30 2:02 UTC (permalink / raw)
To: Krzysztof Kozlowski, robh+dt@kernel.org,
krzysztof.kozlowski+dt@linaro.org, shawnguo@kernel.org, Peng Fan,
marex@denx.de, Marcel Ziswiler, tharvey@gateworks.com, Frank Li
Cc: lorenzo.pieralisi@arm.com, devicetree@vger.kernel.org,
linux-arm-kernel@lists.infradead.org,
linux-kernel@vger.kernel.org, kernel@pengutronix.de, dl-linux-imx
> -----Original Message-----
> From: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
> Sent: 2023年1月20日 16:08
> To: Hongxing Zhu <hongxing.zhu@nxp.com>; robh+dt@kernel.org;
> krzysztof.kozlowski+dt@linaro.org; shawnguo@kernel.org; Peng Fan
> <peng.fan@nxp.com>; marex@denx.de; Marcel Ziswiler
> <marcel.ziswiler@toradex.com>; tharvey@gateworks.com; Frank Li
> <frank.li@nxp.com>
> Cc: lorenzo.pieralisi@arm.com; devicetree@vger.kernel.org;
> linux-arm-kernel@lists.infradead.org; linux-kernel@vger.kernel.org;
> kernel@pengutronix.de; dl-linux-imx <linux-imx@nxp.com>
> Subject: Re: [PATCH v6 1/6] arm64: dts: Add i.MX8MM PCIe EP support
>
> On 20/01/2023 06:25, Richard Zhu wrote:
> > Add i.MX8MM PCIe EP support.
> >
> > Signed-off-by: Richard Zhu <hongxing.zhu@nxp.com>
> > ---
> > arch/arm64/boot/dts/freescale/imx8mm.dtsi | 24
> +++++++++++++++++++++++
> > 1 file changed, 24 insertions(+)
> >
> > diff --git a/arch/arm64/boot/dts/freescale/imx8mm.dtsi
> b/arch/arm64/boot/dts/freescale/imx8mm.dtsi
> > index 31f4548f85cf..9662aeccdb3b 100644
> > --- a/arch/arm64/boot/dts/freescale/imx8mm.dtsi
> > +++ b/arch/arm64/boot/dts/freescale/imx8mm.dtsi
> > @@ -1315,6 +1315,30 @@ pcie0: pcie@33800000 {
> > status = "disabled";
> > };
> >
> > + pcie0_ep: pcie_ep@33800000 {
>
> No underscores in node names.
Hi Krzystof:
Thanks for your review comments.
Sorry to reply late, since I'm taking the Spring Festival Vacation in the past days.
Got that. Would be changed later.
>
> > + compatible = "fsl,imx8mm-pcie-ep";
>
> Did you test it with bindings? Does it pass without warnings?
>
>
It's my fault that I'm trying to let fsl,imx6q-pcie.yaml to cover the binding
DT-schema for the Endpoint modes.
One standalone fsl,imx6q-pcie-ep.yaml should be created as DT-schema for i.MX
PCIe Endpoint modes.
I would summit next version a moment later. Please help to review them.
Thanks in advanced.
Best Regards
Richard Zhu
> Best regards,
> Krzysztof
^ permalink raw reply [flat|nested] 17+ messages in thread
* [PATCH v6 2/6] arm64: dts: Add i.MX8MM PCIe EP support on EVK board
2023-01-20 5:25 [PATCH DTS v6 0/6] Add i.MX PCIe EP mode support Richard Zhu
2023-01-20 5:25 ` [PATCH v6 1/6] arm64: dts: Add i.MX8MM PCIe EP support Richard Zhu
@ 2023-01-20 5:25 ` Richard Zhu
2023-01-20 8:08 ` Krzysztof Kozlowski
2023-01-20 5:25 ` [PATCH v6 3/6] arm64: dts: Add i.MX8MQ PCIe EP support Richard Zhu
` (3 subsequent siblings)
5 siblings, 1 reply; 17+ messages in thread
From: Richard Zhu @ 2023-01-20 5:25 UTC (permalink / raw)
To: robh+dt, krzysztof.kozlowski+dt, shawnguo, peng.fan, marex,
marcel.ziswiler, tharvey, frank.li
Cc: lorenzo.pieralisi, hongxing.zhu, devicetree, linux-arm-kernel,
linux-kernel, kernel, linux-imx
Add i.MX8MM PCIe EP support on EVK board.
Signed-off-by: Richard Zhu <hongxing.zhu@nxp.com>
---
arch/arm64/boot/dts/freescale/imx8mm-evk.dtsi | 13 +++++++++++++
1 file changed, 13 insertions(+)
diff --git a/arch/arm64/boot/dts/freescale/imx8mm-evk.dtsi b/arch/arm64/boot/dts/freescale/imx8mm-evk.dtsi
index 0ce3005d578d..9d65b70939fa 100644
--- a/arch/arm64/boot/dts/freescale/imx8mm-evk.dtsi
+++ b/arch/arm64/boot/dts/freescale/imx8mm-evk.dtsi
@@ -371,6 +371,19 @@ &pcie0 {
status = "okay";
};
+&pcie0_ep{
+ pinctrl-names = "default";
+ pinctrl-0 = <&pinctrl_pcie0>;
+ clocks = <&clk IMX8MM_CLK_PCIE1_ROOT>, <&pcie0_refclk>,
+ <&clk IMX8MM_CLK_PCIE1_AUX>;
+ assigned-clocks = <&clk IMX8MM_CLK_PCIE1_AUX>,
+ <&clk IMX8MM_CLK_PCIE1_CTRL>;
+ assigned-clock-rates = <10000000>, <250000000>;
+ assigned-clock-parents = <&clk IMX8MM_SYS_PLL2_50M>,
+ <&clk IMX8MM_SYS_PLL2_250M>;
+ status = "disabled";
+};
+
&sai2 {
#sound-dai-cells = <0>;
pinctrl-names = "default";
--
2.25.1
^ permalink raw reply related [flat|nested] 17+ messages in thread* Re: [PATCH v6 2/6] arm64: dts: Add i.MX8MM PCIe EP support on EVK board
2023-01-20 5:25 ` [PATCH v6 2/6] arm64: dts: Add i.MX8MM PCIe EP support on EVK board Richard Zhu
@ 2023-01-20 8:08 ` Krzysztof Kozlowski
2023-01-30 2:02 ` Hongxing Zhu
0 siblings, 1 reply; 17+ messages in thread
From: Krzysztof Kozlowski @ 2023-01-20 8:08 UTC (permalink / raw)
To: Richard Zhu, robh+dt, krzysztof.kozlowski+dt, shawnguo, peng.fan,
marex, marcel.ziswiler, tharvey, frank.li
Cc: lorenzo.pieralisi, devicetree, linux-arm-kernel, linux-kernel,
kernel, linux-imx
On 20/01/2023 06:25, Richard Zhu wrote:
> Add i.MX8MM PCIe EP support on EVK board.
>
> Signed-off-by: Richard Zhu <hongxing.zhu@nxp.com>
> ---
> arch/arm64/boot/dts/freescale/imx8mm-evk.dtsi | 13 +++++++++++++
> 1 file changed, 13 insertions(+)
>
> diff --git a/arch/arm64/boot/dts/freescale/imx8mm-evk.dtsi b/arch/arm64/boot/dts/freescale/imx8mm-evk.dtsi
> index 0ce3005d578d..9d65b70939fa 100644
> --- a/arch/arm64/boot/dts/freescale/imx8mm-evk.dtsi
> +++ b/arch/arm64/boot/dts/freescale/imx8mm-evk.dtsi
> @@ -371,6 +371,19 @@ &pcie0 {
> status = "okay";
> };
>
> +&pcie0_ep{
> + pinctrl-names = "default";
> + pinctrl-0 = <&pinctrl_pcie0>;
> + clocks = <&clk IMX8MM_CLK_PCIE1_ROOT>, <&pcie0_refclk>,
> + <&clk IMX8MM_CLK_PCIE1_AUX>;
> + assigned-clocks = <&clk IMX8MM_CLK_PCIE1_AUX>,
> + <&clk IMX8MM_CLK_PCIE1_CTRL>;
> + assigned-clock-rates = <10000000>, <250000000>;
> + assigned-clock-parents = <&clk IMX8MM_SYS_PLL2_50M>,
> + <&clk IMX8MM_SYS_PLL2_250M>;
> + status = "disabled";
It's already disabled. What are you doing here? Having disabled node is
useless, so entire patch should be dropped.
Best regards,
Krzysztof
^ permalink raw reply [flat|nested] 17+ messages in thread* RE: [PATCH v6 2/6] arm64: dts: Add i.MX8MM PCIe EP support on EVK board
2023-01-20 8:08 ` Krzysztof Kozlowski
@ 2023-01-30 2:02 ` Hongxing Zhu
0 siblings, 0 replies; 17+ messages in thread
From: Hongxing Zhu @ 2023-01-30 2:02 UTC (permalink / raw)
To: Krzysztof Kozlowski, robh+dt@kernel.org,
krzysztof.kozlowski+dt@linaro.org, shawnguo@kernel.org, Peng Fan,
marex@denx.de, Marcel Ziswiler, tharvey@gateworks.com, Frank Li
Cc: lorenzo.pieralisi@arm.com, devicetree@vger.kernel.org,
linux-arm-kernel@lists.infradead.org,
linux-kernel@vger.kernel.org, kernel@pengutronix.de, dl-linux-imx
> -----Original Message-----
> From: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
> Sent: 2023年1月20日 16:09
> To: Hongxing Zhu <hongxing.zhu@nxp.com>; robh+dt@kernel.org;
> krzysztof.kozlowski+dt@linaro.org; shawnguo@kernel.org; Peng Fan
> <peng.fan@nxp.com>; marex@denx.de; Marcel Ziswiler
> <marcel.ziswiler@toradex.com>; tharvey@gateworks.com; Frank Li
> <frank.li@nxp.com>
> Cc: lorenzo.pieralisi@arm.com; devicetree@vger.kernel.org;
> linux-arm-kernel@lists.infradead.org; linux-kernel@vger.kernel.org;
> kernel@pengutronix.de; dl-linux-imx <linux-imx@nxp.com>
> Subject: Re: [PATCH v6 2/6] arm64: dts: Add i.MX8MM PCIe EP support on EVK
> board
>
> On 20/01/2023 06:25, Richard Zhu wrote:
> > Add i.MX8MM PCIe EP support on EVK board.
> >
> > Signed-off-by: Richard Zhu <hongxing.zhu@nxp.com>
> > ---
> > arch/arm64/boot/dts/freescale/imx8mm-evk.dtsi | 13 +++++++++++++
> > 1 file changed, 13 insertions(+)
> >
> > diff --git a/arch/arm64/boot/dts/freescale/imx8mm-evk.dtsi
> > b/arch/arm64/boot/dts/freescale/imx8mm-evk.dtsi
> > index 0ce3005d578d..9d65b70939fa 100644
> > --- a/arch/arm64/boot/dts/freescale/imx8mm-evk.dtsi
> > +++ b/arch/arm64/boot/dts/freescale/imx8mm-evk.dtsi
> > @@ -371,6 +371,19 @@ &pcie0 {
> > status = "okay";
> > };
> >
> > +&pcie0_ep{
> > + pinctrl-names = "default";
> > + pinctrl-0 = <&pinctrl_pcie0>;
> > + clocks = <&clk IMX8MM_CLK_PCIE1_ROOT>, <&pcie0_refclk>,
> > + <&clk IMX8MM_CLK_PCIE1_AUX>;
> > + assigned-clocks = <&clk IMX8MM_CLK_PCIE1_AUX>,
> > + <&clk IMX8MM_CLK_PCIE1_CTRL>;
> > + assigned-clock-rates = <10000000>, <250000000>;
> > + assigned-clock-parents = <&clk IMX8MM_SYS_PLL2_50M>,
> > + <&clk IMX8MM_SYS_PLL2_250M>;
> > + status = "disabled";
>
> It's already disabled. What are you doing here? Having disabled node is useless,
> so entire patch should be dropped.
Okay, the 2/4/6 patches would be dropped. Thanks.
Best Regards
Richard Zhu
>
> Best regards,
> Krzysztof
^ permalink raw reply [flat|nested] 17+ messages in thread
* [PATCH v6 3/6] arm64: dts: Add i.MX8MQ PCIe EP support
2023-01-20 5:25 [PATCH DTS v6 0/6] Add i.MX PCIe EP mode support Richard Zhu
2023-01-20 5:25 ` [PATCH v6 1/6] arm64: dts: Add i.MX8MM PCIe EP support Richard Zhu
2023-01-20 5:25 ` [PATCH v6 2/6] arm64: dts: Add i.MX8MM PCIe EP support on EVK board Richard Zhu
@ 2023-01-20 5:25 ` Richard Zhu
2023-01-20 8:08 ` Krzysztof Kozlowski
2023-01-20 5:25 ` [PATCH v6 4/6] arm64: dts: Add i.MX8MQ PCIe EP support on EVK board Richard Zhu
` (2 subsequent siblings)
5 siblings, 1 reply; 17+ messages in thread
From: Richard Zhu @ 2023-01-20 5:25 UTC (permalink / raw)
To: robh+dt, krzysztof.kozlowski+dt, shawnguo, peng.fan, marex,
marcel.ziswiler, tharvey, frank.li
Cc: lorenzo.pieralisi, hongxing.zhu, devicetree, linux-arm-kernel,
linux-kernel, kernel, linux-imx
Add i.MX8MQ PCIe EP support.
Signed-off-by: Richard Zhu <hongxing.zhu@nxp.com>
---
arch/arm64/boot/dts/freescale/imx8mq.dtsi | 32 +++++++++++++++++++++++
1 file changed, 32 insertions(+)
diff --git a/arch/arm64/boot/dts/freescale/imx8mq.dtsi b/arch/arm64/boot/dts/freescale/imx8mq.dtsi
index 98fbba4c99a9..e1ffb7c9586d 100644
--- a/arch/arm64/boot/dts/freescale/imx8mq.dtsi
+++ b/arch/arm64/boot/dts/freescale/imx8mq.dtsi
@@ -1605,6 +1605,38 @@ pcie1: pcie@33c00000 {
status = "disabled";
};
+ pcie1_ep: pcie_ep@33c00000 {
+ compatible = "fsl,imx8mq-pcie-ep";
+ reg = <0x33c00000 0x000400000>,
+ <0x20000000 0x08000000>;
+ reg-names = "regs", "addr_space";
+ num-lanes = <1>;
+ interrupts = <GIC_SPI 80 IRQ_TYPE_LEVEL_HIGH>;
+ interrupt-names = "dma";
+ fsl,max-link-speed = <2>;
+ clocks = <&clk IMX8MQ_CLK_PCIE2_ROOT>,
+ <&clk IMX8MQ_CLK_PCIE2_PHY>,
+ <&clk IMX8MQ_CLK_PCIE2_PHY>,
+ <&clk IMX8MQ_CLK_PCIE2_AUX>;
+ clock-names = "pcie", "pcie_bus", "pcie_phy", "pcie_aux";
+ power-domains = <&pgc_pcie>;
+ resets = <&src IMX8MQ_RESET_PCIEPHY2>,
+ <&src IMX8MQ_RESET_PCIE2_CTRL_APPS_EN>,
+ <&src IMX8MQ_RESET_PCIE2_CTRL_APPS_TURNOFF>;
+ reset-names = "pciephy", "apps", "turnoff";
+ assigned-clocks = <&clk IMX8MQ_CLK_PCIE2_CTRL>,
+ <&clk IMX8MQ_CLK_PCIE2_PHY>,
+ <&clk IMX8MQ_CLK_PCIE2_AUX>;
+ assigned-clock-parents = <&clk IMX8MQ_SYS2_PLL_250M>,
+ <&clk IMX8MQ_SYS2_PLL_100M>,
+ <&clk IMX8MQ_SYS1_PLL_80M>;
+ assigned-clock-rates = <250000000>, <100000000>,
+ <10000000>;
+ num-ib-windows = <4>;
+ num-ob-windows = <4>;
+ status = "disabled";
+ };
+
gic: interrupt-controller@38800000 {
compatible = "arm,gic-v3";
reg = <0x38800000 0x10000>, /* GIC Dist */
--
2.25.1
^ permalink raw reply related [flat|nested] 17+ messages in thread* Re: [PATCH v6 3/6] arm64: dts: Add i.MX8MQ PCIe EP support
2023-01-20 5:25 ` [PATCH v6 3/6] arm64: dts: Add i.MX8MQ PCIe EP support Richard Zhu
@ 2023-01-20 8:08 ` Krzysztof Kozlowski
2023-01-30 2:03 ` Hongxing Zhu
0 siblings, 1 reply; 17+ messages in thread
From: Krzysztof Kozlowski @ 2023-01-20 8:08 UTC (permalink / raw)
To: Richard Zhu, robh+dt, krzysztof.kozlowski+dt, shawnguo, peng.fan,
marex, marcel.ziswiler, tharvey, frank.li
Cc: lorenzo.pieralisi, devicetree, linux-arm-kernel, linux-kernel,
kernel, linux-imx
On 20/01/2023 06:25, Richard Zhu wrote:
> Add i.MX8MQ PCIe EP support.
>
> Signed-off-by: Richard Zhu <hongxing.zhu@nxp.com>
> ---
> arch/arm64/boot/dts/freescale/imx8mq.dtsi | 32 +++++++++++++++++++++++
> 1 file changed, 32 insertions(+)
>
> diff --git a/arch/arm64/boot/dts/freescale/imx8mq.dtsi b/arch/arm64/boot/dts/freescale/imx8mq.dtsi
> index 98fbba4c99a9..e1ffb7c9586d 100644
> --- a/arch/arm64/boot/dts/freescale/imx8mq.dtsi
> +++ b/arch/arm64/boot/dts/freescale/imx8mq.dtsi
> @@ -1605,6 +1605,38 @@ pcie1: pcie@33c00000 {
> status = "disabled";
> };
>
> + pcie1_ep: pcie_ep@33c00000 {
Eh...
Best regards,
Krzysztof
^ permalink raw reply [flat|nested] 17+ messages in thread* RE: [PATCH v6 3/6] arm64: dts: Add i.MX8MQ PCIe EP support
2023-01-20 8:08 ` Krzysztof Kozlowski
@ 2023-01-30 2:03 ` Hongxing Zhu
0 siblings, 0 replies; 17+ messages in thread
From: Hongxing Zhu @ 2023-01-30 2:03 UTC (permalink / raw)
To: Krzysztof Kozlowski, robh+dt@kernel.org,
krzysztof.kozlowski+dt@linaro.org, shawnguo@kernel.org, Peng Fan,
marex@denx.de, Marcel Ziswiler, tharvey@gateworks.com, Frank Li
Cc: lorenzo.pieralisi@arm.com, devicetree@vger.kernel.org,
linux-arm-kernel@lists.infradead.org,
linux-kernel@vger.kernel.org, kernel@pengutronix.de, dl-linux-imx
> -----Original Message-----
> From: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
> Sent: 2023年1月20日 16:09
> To: Hongxing Zhu <hongxing.zhu@nxp.com>; robh+dt@kernel.org;
> krzysztof.kozlowski+dt@linaro.org; shawnguo@kernel.org; Peng Fan
> <peng.fan@nxp.com>; marex@denx.de; Marcel Ziswiler
> <marcel.ziswiler@toradex.com>; tharvey@gateworks.com; Frank Li
> <frank.li@nxp.com>
> Cc: lorenzo.pieralisi@arm.com; devicetree@vger.kernel.org;
> linux-arm-kernel@lists.infradead.org; linux-kernel@vger.kernel.org;
> kernel@pengutronix.de; dl-linux-imx <linux-imx@nxp.com>
> Subject: Re: [PATCH v6 3/6] arm64: dts: Add i.MX8MQ PCIe EP support
>
> On 20/01/2023 06:25, Richard Zhu wrote:
> > Add i.MX8MQ PCIe EP support.
> >
> > Signed-off-by: Richard Zhu <hongxing.zhu@nxp.com>
> > ---
> > arch/arm64/boot/dts/freescale/imx8mq.dtsi | 32
> +++++++++++++++++++++++
> > 1 file changed, 32 insertions(+)
> >
> > diff --git a/arch/arm64/boot/dts/freescale/imx8mq.dtsi
> b/arch/arm64/boot/dts/freescale/imx8mq.dtsi
> > index 98fbba4c99a9..e1ffb7c9586d 100644
> > --- a/arch/arm64/boot/dts/freescale/imx8mq.dtsi
> > +++ b/arch/arm64/boot/dts/freescale/imx8mq.dtsi
> > @@ -1605,6 +1605,38 @@ pcie1: pcie@33c00000 {
> > status = "disabled";
> > };
> >
> > + pcie1_ep: pcie_ep@33c00000 {
>
> Eh...
Would replace the underscore by hyphen.
Thanks.
Best Regards
Richard Zhu
>
> Best regards,
> Krzysztof
^ permalink raw reply [flat|nested] 17+ messages in thread
* [PATCH v6 4/6] arm64: dts: Add i.MX8MQ PCIe EP support on EVK board
2023-01-20 5:25 [PATCH DTS v6 0/6] Add i.MX PCIe EP mode support Richard Zhu
` (2 preceding siblings ...)
2023-01-20 5:25 ` [PATCH v6 3/6] arm64: dts: Add i.MX8MQ PCIe EP support Richard Zhu
@ 2023-01-20 5:25 ` Richard Zhu
2023-01-20 8:08 ` Krzysztof Kozlowski
2023-01-20 5:25 ` [PATCH v6 5/6] arm64: dts: Add i.MX8MP PCIe EP support Richard Zhu
2023-01-20 5:25 ` [PATCH v6 6/6] arm64: dts: Add i.MX8MP PCIe EP support on EVK board Richard Zhu
5 siblings, 1 reply; 17+ messages in thread
From: Richard Zhu @ 2023-01-20 5:25 UTC (permalink / raw)
To: robh+dt, krzysztof.kozlowski+dt, shawnguo, peng.fan, marex,
marcel.ziswiler, tharvey, frank.li
Cc: lorenzo.pieralisi, hongxing.zhu, devicetree, linux-arm-kernel,
linux-kernel, kernel, linux-imx
Add i.MX8MQ PCIe EP support on EVK board.
Signed-off-by: Richard Zhu <hongxing.zhu@nxp.com>
---
arch/arm64/boot/dts/freescale/imx8mq-evk.dts | 11 +++++++++++
1 file changed, 11 insertions(+)
diff --git a/arch/arm64/boot/dts/freescale/imx8mq-evk.dts b/arch/arm64/boot/dts/freescale/imx8mq-evk.dts
index 7507548cdb16..c48b94746efb 100644
--- a/arch/arm64/boot/dts/freescale/imx8mq-evk.dts
+++ b/arch/arm64/boot/dts/freescale/imx8mq-evk.dts
@@ -376,6 +376,17 @@ &pcie1 {
status = "okay";
};
+&pcie1_ep {
+ pinctrl-names = "default";
+ pinctrl-0 = <&pinctrl_pcie1>;
+ clocks = <&clk IMX8MQ_CLK_PCIE2_ROOT>,
+ <&pcie0_refclk>,
+ <&clk IMX8MQ_CLK_PCIE2_PHY>,
+ <&clk IMX8MQ_CLK_PCIE2_AUX>;
+ vph-supply = <&vgen5_reg>;
+ status = "disabled";
+};
+
&pgc_gpu {
power-supply = <&sw1a_reg>;
};
--
2.25.1
^ permalink raw reply related [flat|nested] 17+ messages in thread* Re: [PATCH v6 4/6] arm64: dts: Add i.MX8MQ PCIe EP support on EVK board
2023-01-20 5:25 ` [PATCH v6 4/6] arm64: dts: Add i.MX8MQ PCIe EP support on EVK board Richard Zhu
@ 2023-01-20 8:08 ` Krzysztof Kozlowski
2023-01-30 2:04 ` Hongxing Zhu
0 siblings, 1 reply; 17+ messages in thread
From: Krzysztof Kozlowski @ 2023-01-20 8:08 UTC (permalink / raw)
To: Richard Zhu, robh+dt, krzysztof.kozlowski+dt, shawnguo, peng.fan,
marex, marcel.ziswiler, tharvey, frank.li
Cc: lorenzo.pieralisi, devicetree, linux-arm-kernel, linux-kernel,
kernel, linux-imx
On 20/01/2023 06:25, Richard Zhu wrote:
> Add i.MX8MQ PCIe EP support on EVK board.
>
> Signed-off-by: Richard Zhu <hongxing.zhu@nxp.com>
> ---
> arch/arm64/boot/dts/freescale/imx8mq-evk.dts | 11 +++++++++++
> 1 file changed, 11 insertions(+)
>
> diff --git a/arch/arm64/boot/dts/freescale/imx8mq-evk.dts b/arch/arm64/boot/dts/freescale/imx8mq-evk.dts
> index 7507548cdb16..c48b94746efb 100644
> --- a/arch/arm64/boot/dts/freescale/imx8mq-evk.dts
> +++ b/arch/arm64/boot/dts/freescale/imx8mq-evk.dts
> @@ -376,6 +376,17 @@ &pcie1 {
> status = "okay";
> };
>
> +&pcie1_ep {
> + pinctrl-names = "default";
> + pinctrl-0 = <&pinctrl_pcie1>;
> + clocks = <&clk IMX8MQ_CLK_PCIE2_ROOT>,
> + <&pcie0_refclk>,
> + <&clk IMX8MQ_CLK_PCIE2_PHY>,
> + <&clk IMX8MQ_CLK_PCIE2_AUX>;
> + vph-supply = <&vgen5_reg>;
> + status = "disabled";
Nope, it's useless as disabled.
Best regards,
Krzysztof
^ permalink raw reply [flat|nested] 17+ messages in thread* RE: [PATCH v6 4/6] arm64: dts: Add i.MX8MQ PCIe EP support on EVK board
2023-01-20 8:08 ` Krzysztof Kozlowski
@ 2023-01-30 2:04 ` Hongxing Zhu
0 siblings, 0 replies; 17+ messages in thread
From: Hongxing Zhu @ 2023-01-30 2:04 UTC (permalink / raw)
To: Krzysztof Kozlowski, robh+dt@kernel.org,
krzysztof.kozlowski+dt@linaro.org, shawnguo@kernel.org, Peng Fan,
marex@denx.de, Marcel Ziswiler, tharvey@gateworks.com, Frank Li
Cc: lorenzo.pieralisi@arm.com, devicetree@vger.kernel.org,
linux-arm-kernel@lists.infradead.org,
linux-kernel@vger.kernel.org, kernel@pengutronix.de, dl-linux-imx
> -----Original Message-----
> From: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
> Sent: 2023年1月20日 16:09
> To: Hongxing Zhu <hongxing.zhu@nxp.com>; robh+dt@kernel.org;
> krzysztof.kozlowski+dt@linaro.org; shawnguo@kernel.org; Peng Fan
> <peng.fan@nxp.com>; marex@denx.de; Marcel Ziswiler
> <marcel.ziswiler@toradex.com>; tharvey@gateworks.com; Frank Li
> <frank.li@nxp.com>
> Cc: lorenzo.pieralisi@arm.com; devicetree@vger.kernel.org;
> linux-arm-kernel@lists.infradead.org; linux-kernel@vger.kernel.org;
> kernel@pengutronix.de; dl-linux-imx <linux-imx@nxp.com>
> Subject: Re: [PATCH v6 4/6] arm64: dts: Add i.MX8MQ PCIe EP support on EVK
> board
>
> On 20/01/2023 06:25, Richard Zhu wrote:
> > Add i.MX8MQ PCIe EP support on EVK board.
> >
> > Signed-off-by: Richard Zhu <hongxing.zhu@nxp.com>
> > ---
> > arch/arm64/boot/dts/freescale/imx8mq-evk.dts | 11 +++++++++++
> > 1 file changed, 11 insertions(+)
> >
> > diff --git a/arch/arm64/boot/dts/freescale/imx8mq-evk.dts
> b/arch/arm64/boot/dts/freescale/imx8mq-evk.dts
> > index 7507548cdb16..c48b94746efb 100644
> > --- a/arch/arm64/boot/dts/freescale/imx8mq-evk.dts
> > +++ b/arch/arm64/boot/dts/freescale/imx8mq-evk.dts
> > @@ -376,6 +376,17 @@ &pcie1 {
> > status = "okay";
> > };
> >
> > +&pcie1_ep {
> > + pinctrl-names = "default";
> > + pinctrl-0 = <&pinctrl_pcie1>;
> > + clocks = <&clk IMX8MQ_CLK_PCIE2_ROOT>,
> > + <&pcie0_refclk>,
> > + <&clk IMX8MQ_CLK_PCIE2_PHY>,
> > + <&clk IMX8MQ_CLK_PCIE2_AUX>;
> > + vph-supply = <&vgen5_reg>;
> > + status = "disabled";
>
> Nope, it's useless as disabled.
Okay, would be dropped.
Thanks.
Best Regards
Richard Zhu
>
> Best regards,
> Krzysztof
^ permalink raw reply [flat|nested] 17+ messages in thread
* [PATCH v6 5/6] arm64: dts: Add i.MX8MP PCIe EP support
2023-01-20 5:25 [PATCH DTS v6 0/6] Add i.MX PCIe EP mode support Richard Zhu
` (3 preceding siblings ...)
2023-01-20 5:25 ` [PATCH v6 4/6] arm64: dts: Add i.MX8MQ PCIe EP support on EVK board Richard Zhu
@ 2023-01-20 5:25 ` Richard Zhu
2023-01-20 5:25 ` [PATCH v6 6/6] arm64: dts: Add i.MX8MP PCIe EP support on EVK board Richard Zhu
5 siblings, 0 replies; 17+ messages in thread
From: Richard Zhu @ 2023-01-20 5:25 UTC (permalink / raw)
To: robh+dt, krzysztof.kozlowski+dt, shawnguo, peng.fan, marex,
marcel.ziswiler, tharvey, frank.li
Cc: lorenzo.pieralisi, hongxing.zhu, devicetree, linux-arm-kernel,
linux-kernel, kernel, linux-imx
Add i.MX8MP PCIe EP support.
Signed-off-by: Richard Zhu <hongxing.zhu@nxp.com>
---
arch/arm64/boot/dts/freescale/imx8mp.dtsi | 26 +++++++++++++++++++++++
1 file changed, 26 insertions(+)
diff --git a/arch/arm64/boot/dts/freescale/imx8mp.dtsi b/arch/arm64/boot/dts/freescale/imx8mp.dtsi
index 5120c20fc601..c1963876e612 100644
--- a/arch/arm64/boot/dts/freescale/imx8mp.dtsi
+++ b/arch/arm64/boot/dts/freescale/imx8mp.dtsi
@@ -1246,6 +1246,32 @@ pcie: pcie@33800000 {
status = "disabled";
};
+ pcie_ep: pcie_ep@33800000 {
+ compatible = "fsl,imx8mp-pcie-ep";
+ reg = <0x33800000 0x000400000>, <0x18000000 0x08000000>;
+ reg-names = "regs", "addr_space";
+ clocks = <&clk IMX8MP_CLK_HSIO_ROOT>,
+ <&clk IMX8MP_CLK_HSIO_AXI>,
+ <&clk IMX8MP_CLK_PCIE_ROOT>;
+ clock-names = "pcie", "pcie_bus", "pcie_aux";
+ assigned-clocks = <&clk IMX8MP_CLK_PCIE_AUX>;
+ assigned-clock-rates = <10000000>;
+ assigned-clock-parents = <&clk IMX8MP_SYS_PLL2_50M>;
+ num-lanes = <1>;
+ interrupts = <GIC_SPI 127 IRQ_TYPE_LEVEL_HIGH>; /* eDMA */
+ interrupt-names = "dma";
+ fsl,max-link-speed = <3>;
+ power-domains = <&hsio_blk_ctrl IMX8MP_HSIOBLK_PD_PCIE>;
+ resets = <&src IMX8MP_RESET_PCIE_CTRL_APPS_EN>,
+ <&src IMX8MP_RESET_PCIE_CTRL_APPS_TURNOFF>;
+ reset-names = "apps", "turnoff";
+ phys = <&pcie_phy>;
+ phy-names = "pcie-phy";
+ num-ib-windows = <4>;
+ num-ob-windows = <4>;
+ status = "disabled";
+ };
+
gpu3d: gpu@38000000 {
compatible = "vivante,gc";
reg = <0x38000000 0x8000>;
--
2.25.1
^ permalink raw reply related [flat|nested] 17+ messages in thread* [PATCH v6 6/6] arm64: dts: Add i.MX8MP PCIe EP support on EVK board
2023-01-20 5:25 [PATCH DTS v6 0/6] Add i.MX PCIe EP mode support Richard Zhu
` (4 preceding siblings ...)
2023-01-20 5:25 ` [PATCH v6 5/6] arm64: dts: Add i.MX8MP PCIe EP support Richard Zhu
@ 2023-01-20 5:25 ` Richard Zhu
2023-01-20 8:09 ` Krzysztof Kozlowski
5 siblings, 1 reply; 17+ messages in thread
From: Richard Zhu @ 2023-01-20 5:25 UTC (permalink / raw)
To: robh+dt, krzysztof.kozlowski+dt, shawnguo, peng.fan, marex,
marcel.ziswiler, tharvey, frank.li
Cc: lorenzo.pieralisi, hongxing.zhu, devicetree, linux-arm-kernel,
linux-kernel, kernel, linux-imx
Add i.MX8MP PCIe EP support on EVK board.
Signed-off-by: Richard Zhu <hongxing.zhu@nxp.com>
---
arch/arm64/boot/dts/freescale/imx8mp-evk.dts | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/arch/arm64/boot/dts/freescale/imx8mp-evk.dts b/arch/arm64/boot/dts/freescale/imx8mp-evk.dts
index 7816853162b3..6c94d57912b4 100644
--- a/arch/arm64/boot/dts/freescale/imx8mp-evk.dts
+++ b/arch/arm64/boot/dts/freescale/imx8mp-evk.dts
@@ -404,6 +404,12 @@ &pcie {
status = "okay";
};
+&pcie_ep{
+ pinctrl-names = "default";
+ pinctrl-0 = <&pinctrl_pcie0>;
+ status = "disabled";
+};
+
&pwm1 {
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_pwm1>;
--
2.25.1
^ permalink raw reply related [flat|nested] 17+ messages in thread* Re: [PATCH v6 6/6] arm64: dts: Add i.MX8MP PCIe EP support on EVK board
2023-01-20 5:25 ` [PATCH v6 6/6] arm64: dts: Add i.MX8MP PCIe EP support on EVK board Richard Zhu
@ 2023-01-20 8:09 ` Krzysztof Kozlowski
2023-01-30 2:04 ` Hongxing Zhu
0 siblings, 1 reply; 17+ messages in thread
From: Krzysztof Kozlowski @ 2023-01-20 8:09 UTC (permalink / raw)
To: Richard Zhu, robh+dt, krzysztof.kozlowski+dt, shawnguo, peng.fan,
marex, marcel.ziswiler, tharvey, frank.li
Cc: lorenzo.pieralisi, devicetree, linux-arm-kernel, linux-kernel,
kernel, linux-imx
On 20/01/2023 06:25, Richard Zhu wrote:
> Add i.MX8MP PCIe EP support on EVK board.
>
> Signed-off-by: Richard Zhu <hongxing.zhu@nxp.com>
> ---
> arch/arm64/boot/dts/freescale/imx8mp-evk.dts | 6 ++++++
> 1 file changed, 6 insertions(+)
>
> diff --git a/arch/arm64/boot/dts/freescale/imx8mp-evk.dts b/arch/arm64/boot/dts/freescale/imx8mp-evk.dts
> index 7816853162b3..6c94d57912b4 100644
> --- a/arch/arm64/boot/dts/freescale/imx8mp-evk.dts
> +++ b/arch/arm64/boot/dts/freescale/imx8mp-evk.dts
> @@ -404,6 +404,12 @@ &pcie {
> status = "okay";
> };
>
> +&pcie_ep{
> + pinctrl-names = "default";
> + pinctrl-0 = <&pinctrl_pcie0>;
> + status = "disabled";
Ditto (drop patch)
Best regards,
Krzysztof
^ permalink raw reply [flat|nested] 17+ messages in thread* RE: [PATCH v6 6/6] arm64: dts: Add i.MX8MP PCIe EP support on EVK board
2023-01-20 8:09 ` Krzysztof Kozlowski
@ 2023-01-30 2:04 ` Hongxing Zhu
0 siblings, 0 replies; 17+ messages in thread
From: Hongxing Zhu @ 2023-01-30 2:04 UTC (permalink / raw)
To: Krzysztof Kozlowski, robh+dt@kernel.org,
krzysztof.kozlowski+dt@linaro.org, shawnguo@kernel.org, Peng Fan,
marex@denx.de, Marcel Ziswiler, tharvey@gateworks.com, Frank Li
Cc: lorenzo.pieralisi@arm.com, devicetree@vger.kernel.org,
linux-arm-kernel@lists.infradead.org,
linux-kernel@vger.kernel.org, kernel@pengutronix.de, dl-linux-imx
> -----Original Message-----
> From: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
> Sent: 2023年1月20日 16:09
> To: Hongxing Zhu <hongxing.zhu@nxp.com>; robh+dt@kernel.org;
> krzysztof.kozlowski+dt@linaro.org; shawnguo@kernel.org; Peng Fan
> <peng.fan@nxp.com>; marex@denx.de; Marcel Ziswiler
> <marcel.ziswiler@toradex.com>; tharvey@gateworks.com; Frank Li
> <frank.li@nxp.com>
> Cc: lorenzo.pieralisi@arm.com; devicetree@vger.kernel.org;
> linux-arm-kernel@lists.infradead.org; linux-kernel@vger.kernel.org;
> kernel@pengutronix.de; dl-linux-imx <linux-imx@nxp.com>
> Subject: Re: [PATCH v6 6/6] arm64: dts: Add i.MX8MP PCIe EP support on EVK
> board
>
> On 20/01/2023 06:25, Richard Zhu wrote:
> > Add i.MX8MP PCIe EP support on EVK board.
> >
> > Signed-off-by: Richard Zhu <hongxing.zhu@nxp.com>
> > ---
> > arch/arm64/boot/dts/freescale/imx8mp-evk.dts | 6 ++++++
> > 1 file changed, 6 insertions(+)
> >
> > diff --git a/arch/arm64/boot/dts/freescale/imx8mp-evk.dts
> b/arch/arm64/boot/dts/freescale/imx8mp-evk.dts
> > index 7816853162b3..6c94d57912b4 100644
> > --- a/arch/arm64/boot/dts/freescale/imx8mp-evk.dts
> > +++ b/arch/arm64/boot/dts/freescale/imx8mp-evk.dts
> > @@ -404,6 +404,12 @@ &pcie {
> > status = "okay";
> > };
> >
> > +&pcie_ep{
> > + pinctrl-names = "default";
> > + pinctrl-0 = <&pinctrl_pcie0>;
> > + status = "disabled";
>
> Ditto (drop patch)
Okay, would be dropped.
Thanks.
Best Regards
Richard Zhu
>
> Best regards,
> Krzysztof
^ permalink raw reply [flat|nested] 17+ messages in thread