PCIE support for i.MX8MQ (DT changes)
Subsystems (2)
v2 cover PCIE support for i.MX8MQ (DT changes)
Everyone:
This series contains all of the i.MX Device Tree changes I made to enable support of PCIe on i.MX8MQ EVK. Marked as RFC since "arm64:
dts: imx8mq-evk: Enable PCIE0 interface" contains proposed AUX clock binding that is not part of the PCI tree yet (to be submitted once we agree on this RFC).
NOTE: Immutable brach containing imx8mq-reset.h used in "arm64: dts:
Add nodes for PCIe IP blocks" is availible in [reset-imx8mq]
Feedback is welcome!
Changes since [v1]:
- Dropped unsupported IRQ from PCIe nodes (a leftover from vendor tree)
- Added "pcie_aux" clock and moved clock configuration to board file since "pcie_bus" clock is now board specific
Thanks,
Andrey Smirnov
[reset-imx8mq] git://git.pengutronix.de/pza/linux reset/imx8mq
[v1] https://lore.kernel.org/lkml/[email protected]/
Andrey Smirnov (5):
arm64: dts: imx8mq: Mark iomuxc_gpr as i.MX6Q compatible
arm64: dts: imx8mq: Add a node for SRC IP block
arm64: dts: imx8mq: Combine PCIE power domains
arm64: dts: imx8mq: Add nodes for PCIe IP blocks
arm64: dts: imx8mq-evk: Enable PCIE0 interface
arch/arm64/boot/dts/freescale/imx8mq-evk.dts | 34 ++++++++ arch/arm64/boot/dts/freescale/imx8mq.dtsi | 87 +++++++++++++++++++- 2 files changed, 119 insertions(+), 2 deletions(-)
Signature · 1 line
2.20.1
RFC v2 1/5 arm64: dts: imx8mq: Mark iomuxc_gpr as i.MX6Q compatible
Mark iomuxc_gpr as compatible with "fsl,imx6q-iomuxc-gpr" in order for to allow i.MX6 PCIe driver to use it.
--- arch/arm64/boot/dts/freescale/imx8mq.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm64/boot/dts/freescale/imx8mq.dtsi +1 -1
@@ -230,7 +230,7 @@ }; iomuxc_gpr: syscon@30340000 { - compatible = "fsl,imx8mq-iomuxc-gpr", "syscon"; + compatible = "fsl,imx8mq-iomuxc-gpr", "fsl,imx6q-iomuxc-gpr", "syscon"; reg = <0x30340000 0x10000>; };
Signature · 1 line
2.20.1
Re: [RFC v2 1/5] arm64: dts: imx8mq: Mark iomuxc_gpr as i.MX6Q compatible
Am Donnerstag, den 07.02.2019, 16:29 -0800 schrieb Andrey Smirnov:
Quoted 4 lines
Mark
iomuxc_gpras compatible with "fsl,imx6q-iomuxc-gpr" in order for to allow i.MX6 PCIe driver to use it.Quoted 1 line
Signed-off-by Andrey Smirnov <[email protected]>
Quoted 10 lines
Cc Shawn Guo <[email protected]>Cc Fabio Estevam <[email protected]>Cc Chris Healy <[email protected]>Cc Lucas Stach <[email protected]>Cc Leonard Crestez <[email protected]>Cc "A.s. Dong" <[email protected]>Cc Richard Zhu <[email protected]>
I think that's the right thing to do.
Quoted 17 lines
---
arch/arm64/boot/dts/freescale/imx8mq.dtsi | 2 +-1 file changed, 1 insertion(+), 1 deletion(-)arch/arm64/boot/dts/freescale/imx8mq.dtsi +0
-0@@ -230,7 +230,7 @@ > };
iomuxc_gpr: syscon@30340000 {arch/arm64/boot/dts/freescale/imx8mq.dtsi +1
-1- compatible = "fsl,imx8mq-iomuxc-gpr", "syscon"; + compatible = "fsl,imx8mq-iomuxc-gpr", "fsl,imx6q-iomuxc-gpr", "syscon";reg = <
0x303400000x10000>; };
RFC v2 2/5 arm64: dts: imx8mq: Add a node for SRC IP block
In reply to Andrey SmirnovAdd a node for reset controller IP block found on i.MX8MQ.
--- arch/arm64/boot/dts/freescale/imx8mq.dtsi | 6 ++++++ 1 file changed, 6 insertions(+)
arch/arm64/boot/dts/freescale/imx8mq.dtsi +6 -0
@@ -254,6 +254,12 @@ "clk_ext3", "clk_ext4"; }; + src: src@30390000 { + compatible = "fsl,imx8mq-src", "syscon"; + reg = <0x30390000 0x10000>; + #reset-cells = <1>; + }; + gpc: gpc@303a0000 { compatible = "fsl,imx8mq-gpc"; reg = <0x303a0000 0x10000>;
Signature · 1 line
2.20.1
Re: [RFC v2 2/5] arm64: dts: imx8mq: Add a node for SRC IP block
Am Donnerstag, den 07.02.2019, 16:29 -0800 schrieb Andrey Smirnov:
Quoted 13 lines
Add a node for reset controller IP block found on i.MX8MQ.
Quoted 1 line
Signed-off-by Andrey Smirnov <[email protected]>Cc Shawn Guo <[email protected]>Cc Fabio Estevam <[email protected]>Cc Chris Healy <[email protected]>Cc Lucas Stach <[email protected]>Cc Leonard Crestez <[email protected]>Cc "A.s. Dong" <[email protected]>Cc Richard Zhu <[email protected]>
Quoted 21 lines
---
arch/arm64/boot/dts/freescale/imx8mq.dtsi | 6 ++++++1 file changed, 6 insertions(+)arch/arm64/boot/dts/freescale/imx8mq.dtsi +0
-0@@ -254,6 +254,12 @@ "clk_ext3", "clk_ext4"; };arch/arm64/boot/dts/freescale/imx8mq.dtsi +6
-0+ src: src@30390000 { + compatible = "fsl,imx8mq-src", "syscon"; + reg = <0x30390000 0x10000>; + #reset-cells = <1>; + }; +gpc: gpc@303a0000 { compatible = "fsl,imx8mq-gpc"; reg = <
0x303a00000x10000>;
RFC v2 3/5 arm64: dts: imx8mq: Combine PCIE power domains
In reply to Andrey SmirnovAccording to NXP's FAE feedback and a comment in ATF firmware, PCIE1 and PCIE2 power domains can't really be used independently. Due to shared reset line both power domains have to be turned on at the same time. Account for that quirk by combining PCIE power domains into a single 'pgc_pcie' power domain.
--- arch/arm64/boot/dts/freescale/imx8mq.dtsi | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-)
arch/arm64/boot/dts/freescale/imx8mq.dtsi +20 -1
@@ -273,9 +273,28 @@ reg = <IMX8M_POWER_DOMAIN_MIPI>; }; - pgc_pcie1: power-domain@1 { + /* + * As per comment in ATF source code: + * + * PCIE1 and PCIE2 share the + * same reset signal, if we + * power down PCIE2, PCIE1 + * will be held in reset too. + * + * So instead of creating two + * separate power domains for + * PCIE1 and PCIE2. We create + * a link between 1 and 10 and + * use what was supposed to be + * domain 1 as a shared PCIE + * power domain powering both + * PCIE1 and PCIE2 at the same + * time + */ + pgc_pcie: power-domain@1 { #power-domain-cells = <0>; reg = <IMX8M_POWER_DOMAIN_PCIE1>; + power-domains = <&pgc_pcie2>; }; pgc_otg1: power-domain@2 {
Signature · 1 line
2.20.1
Re: [RFC v2 3/5] arm64: dts: imx8mq: Combine PCIE power domains
Am Donnerstag, den 07.02.2019, 16:29 -0800 schrieb Andrey Smirnov:
Quoted 6 lines
According to NXP's FAE feedback and a comment in ATF firmware, PCIE1 and PCIE2 power domains can't really be used independently. Due to shared reset line both power domains have to be turned on at the same time. Account for that quirk by combining PCIE power domains into a single '
pgc_pcie' power domain.
Quoted 11 lines
Signed-off-by Andrey Smirnov <[email protected]>Cc Shawn Guo <[email protected]>Cc Fabio Estevam <[email protected]>Cc Chris Healy <[email protected]>Cc Lucas Stach <[email protected]>Cc Leonard Crestez <[email protected]>Cc "A.s. Dong" <[email protected]>Cc Richard Zhu <[email protected]>
Nit below, otherwise:
Quoted 15 lines
---
arch/arm64/boot/dts/freescale/imx8mq.dtsi | 21 ++++++++++++++++++++-1 file changed, 20 insertions(+), 1 deletion(-)arch/arm64/boot/dts/freescale/imx8mq.dtsi +0
-0@@ -273,9 +273,28 @@ reg = <IMX8M_POWER_DOMAIN_MIPI>; };arch/arm64/boot/dts/freescale/imx8mq.dtsi +2
-1- pgc_pcie1: power-domain@1 { + /* + * As per comment in ATF source code:
arch/arm64/boot/dts/freescale/imx8mq.dtsi line 287
Quoted 10 lines
arch/arm64/boot/dts/freescale/imx8mq.dtsi +10
-0+ * + * PCIE1 and PCIE2 share the + * same reset signal, if we + * power down PCIE2, PCIE1 + * will be held in reset too. + * + * So instead of creating two + * separate power domains for + * PCIE1 and PCIE2. We create + * a link between 1 and 10 and
1 and 10 is not something that directly shows up in the DTS, so I think it could be confusing to the reader. I would just state that as "link between both" or something to that tune.
Quoted 13 lines
arch/arm64/boot/dts/freescale/imx8mq.dtsi +7
-0+ * use what was supposed to be + * domain 1 as a shared PCIE + * power domain powering both + * PCIE1 and PCIE2 at the same + * time + */ + pgc_pcie: power-domain@1 {#power-domain-cells = <0>; reg = <
IMX8M_POWER_DOMAIN_PCIE1>;arch/arm64/boot/dts/freescale/imx8mq.dtsi +1
-0+ power-domains = <&pgc_pcie2>;};
pgc_otg1: power-domain@2 {
RFC v2 4/5 arm64: dts: imx8mq: Add nodes for PCIe IP blocks
In reply to Andrey SmirnovAdd nodes for two PCIe controllers found on i.MX8MQ.
--- arch/arm64/boot/dts/freescale/imx8mq.dtsi | 58 +++++++++++++++++++++++ 1 file changed, 58 insertions(+)
arch/arm64/boot/dts/freescale/imx8mq.dtsi +58 -0
@@ -6,6 +6,7 @@ #include <dt-bindings/clock/imx8mq-clock.h> #include <dt-bindings/power/imx8mq-power.h> +#include <dt-bindings/reset/imx8mq-reset.h> #include <dt-bindings/gpio/gpio.h> #include <dt-bindings/interrupt-controller/arm-gic.h> #include "imx8mq-pinfunc.h"
@@ -539,6 +540,63 @@ }; }; + pcie0: pcie@33800000 { + compatible = "fsl,imx8mq-pcie"; + reg = <0x33800000 0x400000>, + <0x1ff00000 0x80000>; + reg-names = "dbi", "config"; + #address-cells = <3>; + #size-cells = <2>; + device_type = "pci"; + bus-range = <0x00 0xff>; + ranges = <0x81000000 0 0x00000000 0x1ff80000 0 0x00010000 /* downstream I/O 64KB */ + 0x82000000 0 0x18000000 0x18000000 0 0x07f00000>; /* non-prefetchable memory */ + num-lanes = <1>; + interrupts = <GIC_SPI 122 IRQ_TYPE_LEVEL_HIGH>; + interrupt-names = "msi"; + #interrupt-cells = <1>; + interrupt-map-mask = <0 0 0 0x7>; + interrupt-map = <0 0 0 1 &gic GIC_SPI 125 IRQ_TYPE_LEVEL_HIGH>, + <0 0 0 2 &gic GIC_SPI 124 IRQ_TYPE_LEVEL_HIGH>, + <0 0 0 3 &gic GIC_SPI 123 IRQ_TYPE_LEVEL_HIGH>, + <0 0 0 4 &gic GIC_SPI 122 IRQ_TYPE_LEVEL_HIGH>; + fsl,max-link-speed = <2>; + power-domains = <&pgc_pcie>; + resets = <&src IMX8MQ_RESET_PCIEPHY>, + <&src IMX8MQ_RESET_PCIE_CTRL_APPS_EN>, + <&src IMX8MQ_RESET_PCIE_CTRL_APPS_TURNOFF>; + reset-names = "pciephy", "apps", "turnoff"; + status = "disabled"; + }; + + pcie1: pcie@0x33c00000 { + compatible = "fsl,imx8mq-pcie"; + reg = <0x33c00000 0x400000>, + <0x27f00000 0x80000>; + reg-names = "dbi", "config"; + #address-cells = <3>; + #size-cells = <2>; + device_type = "pci"; + ranges = <0x81000000 0 0x00000000 0x27f80000 0 0x00010000 /* downstream I/O 64KB */ + 0x82000000 0 0x20000000 0x20000000 0 0x07f00000>; /* non-prefetchable memory */ + num-lanes = <1>; + interrupts = <GIC_SPI 74 IRQ_TYPE_LEVEL_HIGH>; + interrupt-names = "msi"; + #interrupt-cells = <1>; + interrupt-map-mask = <0 0 0 0x7>; + interrupt-map = <0 0 0 1 &gic GIC_SPI 77 IRQ_TYPE_LEVEL_HIGH>, + <0 0 0 2 &gic GIC_SPI 76 IRQ_TYPE_LEVEL_HIGH>, + <0 0 0 3 &gic GIC_SPI 75 IRQ_TYPE_LEVEL_HIGH>, + <0 0 0 4 &gic GIC_SPI 74 IRQ_TYPE_LEVEL_HIGH>; + fsl,max-link-speed = <2>; + 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"; + status = "disabled"; + }; + gic: interrupt-controller@38800000 { compatible = "arm,gic-v3"; reg = <0x38800000 0x10000>, /* GIC Dist */
Signature · 1 line
2.20.1
Re: [RFC v2 4/5] arm64: dts: imx8mq: Add nodes for PCIe IP blocks
Am Donnerstag, den 07.02.2019, 16:29 -0800 schrieb Andrey Smirnov:
Quoted 10 lines
Add nodes for two PCIe controllers found on i.MX8MQ.
Quoted 8 lines
Signed-off-by Andrey Smirnov <[email protected]>Cc Shawn Guo <[email protected]>Cc Fabio Estevam <[email protected]>Cc Chris Healy <[email protected]>Cc Lucas Stach <[email protected]>Cc Leonard Crestez <[email protected]>Cc "A.s. Dong" <[email protected]>Cc Richard Zhu <[email protected]>
Quoted 3 lines
One minor thing below, otherwise:
Quoted 48 lines
---
arch/arm64/boot/dts/freescale/imx8mq.dtsi | 58 +++++++++++++++++++++++1 file changed, 58 insertions(+)arch/arm64/boot/dts/freescale/imx8mq.dtsi +0
-0@@ -6,6 +6,7 @@
#include <dt-bindings/clock/imx8mq-clock.h> #include <dt-bindings/power/imx8mq-power.h> +#include <dt-bindings/reset/imx8mq-reset.h> #include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/interrupt-controller/arm-gic.h> #include "imx8mq-pinfunc.h"arch/arm64/boot/dts/freescale/imx8mq.dtsi +0
-0@@ -539,6 +540,63 @@ > }; > };Quoted 28 lines
Quoted 1 line
arch/arm64/boot/dts/freescale/imx8mq.dtsi +1
-0+ pcie0: pcie@33800000 {arch/arm64/boot/dts/freescale/imx8mq.dtsi +27
-0+ compatible = "fsl,imx8mq-pcie"; + reg = <0x33800000 0x400000>, + <0x1ff00000 0x80000>; + reg-names = "dbi", "config"; + #address-cells = <3>; + #size-cells = <2>; + device_type = "pci"; + bus-range = <0x00 0xff>; + ranges = <0x81000000 0 0x00000000 0x1ff80000 0 0x00010000 /* downstream I/O 64KB */ + 0x82000000 0 0x18000000 0x18000000 0 0x07f00000>; /* non-prefetchable memory */ + num-lanes = <1>; + interrupts = <GIC_SPI 122 IRQ_TYPE_LEVEL_HIGH>; + interrupt-names = "msi"; + #interrupt-cells = <1>; + interrupt-map-mask = <0 0 0 0x7>; + interrupt-map = <0 0 0 1 &gic GIC_SPI 125 IRQ_TYPE_LEVEL_HIGH>, + <0 0 0 2 &gic GIC_SPI 124 IRQ_TYPE_LEVEL_HIGH>, + <0 0 0 3 &gic GIC_SPI 123 IRQ_TYPE_LEVEL_HIGH>, + <0 0 0 4 &gic GIC_SPI 122 IRQ_TYPE_LEVEL_HIGH>; + fsl,max-link-speed = <2>; + power-domains = <&pgc_pcie>; + resets = <&src IMX8MQ_RESET_PCIEPHY>, + <&src IMX8MQ_RESET_PCIE_CTRL_APPS_EN>, + <&src IMX8MQ_RESET_PCIE_CTRL_APPS_TURNOFF>; + reset-names = "pciephy", "apps", "turnoff"; + status = "disabled"; + };
arch/arm64/boot/dts/freescale/imx8mq.dtsi line 572
Quoted 2 lines
arch/arm64/boot/dts/freescale/imx8mq.dtsi +2
-0+ + pcie1: pcie@0x33c00000 {
^
Node name should not have the hex prefix in the address.
Quoted 30 lines
arch/arm64/boot/dts/freescale/imx8mq.dtsi +1
-0+ compatible = "fsl,imx8mq-pcie";Quoted 15 lines
arch/arm64/boot/dts/freescale/imx8mq.dtsi +15
-0+ reg = <0x33c00000 0x400000>, + <0x27f00000 0x80000>; + reg-names = "dbi", "config"; + #address-cells = <3>; + #size-cells = <2>; + device_type = "pci"; + ranges = <0x81000000 0 0x00000000 0x27f80000 0 0x00010000 /* downstream I/O 64KB */ + 0x82000000 0 0x20000000 0x20000000 0 0x07f00000>; /* non-prefetchable memory */ + num-lanes = <1>; + interrupts = <GIC_SPI 74 IRQ_TYPE_LEVEL_HIGH>; + interrupt-names = "msi"; + #interrupt-cells = <1>; + interrupt-map-mask = <0 0 0 0x7>; + interrupt-map = <0 0 0 1 &gic GIC_SPI 77 IRQ_TYPE_LEVEL_HIGH>, + <0 0 0 2 &gic GIC_SPI 76 IRQ_TYPE_LEVEL_HIGH>,arch/arm64/boot/dts/freescale/imx8mq.dtsi line 598
Quoted 10 lines
arch/arm64/boot/dts/freescale/imx8mq.dtsi +10
-0+ <0 0 0 3 &gic GIC_SPI 75 IRQ_TYPE_LEVEL_HIGH>, + <0 0 0 4 &gic GIC_SPI 74 IRQ_TYPE_LEVEL_HIGH>; + fsl,max-link-speed = <2>; + 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"; + status = "disabled"; + };+
Quoted 3 lines
Quoted 1 line
gic: interrupt-controller@38800000 {
compatible = "arm,gic-v3";
Quoted 1 line
reg = <
0x388000000x10000>, /* GIC Dist */
RFC v2 5/5 arm64: dts: imx8mq-evk: Enable PCIE0 interface
In reply to Andrey SmirnovEnable PCIE0 interface connected to BCM4356 WiFi/Bluetooth module.
--- arch/arm64/boot/dts/freescale/imx8mq-evk.dts | 34 ++++++++++++++++++++ 1 file changed, 34 insertions(+)
arch/arm64/boot/dts/freescale/imx8mq-evk.dts +34 -0
@@ -31,6 +31,12 @@ gpio = <&gpio2 19 GPIO_ACTIVE_HIGH>; enable-active-high; }; + + pcie0_refclk: pcie0-refclk { + compatible = "fixed-clock"; + #clock-cells = <0>; + clock-frequency = <100000000>; + }; }; &fec1 {
@@ -40,6 +46,14 @@ status = "okay"; }; +&gpio5 { + wl-reg-on { + gpio-hog; + gpios = <29 GPIO_ACTIVE_HIGH>; + output-high; + }; +}; + &i2c1 { clock-frequency = <100000>; pinctrl-names = "default";
@@ -131,6 +145,18 @@ }; }; +&pcie0 { + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_pcie0>; + reset-gpio = <&gpio5 28 GPIO_ACTIVE_LOW>; + clocks = <&clk IMX8MQ_CLK_PCIE1_ROOT>, + <&clk IMX8MQ_CLK_PCIE1_AUX>, + <&clk IMX8MQ_CLK_PCIE1_PHY>, + <&pcie0_refclk>; + clock-names = "pcie", "pcie_aux", "pcie_phy", "pcie_bus"; + status = "okay"; +}; + &uart1 { pinctrl-names = "default"; pinctrl-0 = <&pinctrl_uart1>;
@@ -195,6 +221,14 @@ >; }; + pinctrl_pcie0: pcie0grp { + fsl,pins = < + MX8MQ_IOMUXC_I2C4_SCL_PCIE1_CLKREQ_B 0x76 + MX8MQ_IOMUXC_UART4_TXD_GPIO5_IO29 0x16 + MX8MQ_IOMUXC_UART4_RXD_GPIO5_IO28 0x16 + >; + }; + pinctrl_reg_usdhc2: regusdhc2grpgpio { fsl,pins = < MX8MQ_IOMUXC_SD2_RESET_B_GPIO2_IO19 0x41
Signature · 1 line
2.20.1
Re: [RFC v2 5/5] arm64: dts: imx8mq-evk: Enable PCIE0 interface
Am Donnerstag, den 07.02.2019, 16:29 -0800 schrieb Andrey Smirnov:
Quoted 54 lines
Enable PCIE0 interface connected to BCM4356 WiFi/Bluetooth module.
Quoted 1 line
Signed-off-by Andrey Smirnov <[email protected]>Cc Shawn Guo <[email protected]>Cc Fabio Estevam <[email protected]>Cc Chris Healy <[email protected]>Cc Lucas Stach <[email protected]>Cc Leonard Crestez <[email protected]>Cc "A.s. Dong" <[email protected]>Cc Richard Zhu <[email protected]>---
arch/arm64/boot/dts/freescale/imx8mq-evk.dts | 34 ++++++++++++++++++++1 file changed, 34 insertions(+)arch/arm64/boot/dts/freescale/imx8mq-evk.dts +6
-0@@ -31,6 +31,12 @@ gpio = <&gpio2 19 GPIO_ACTIVE_HIGH>; enable-active-high; }; + + pcie0_refclk: pcie0-refclk { + compatible = "fixed-clock"; + #clock-cells = <0>; + clock-frequency = <100000000>; + }; };
&fec1 {arch/arm64/boot/dts/freescale/imx8mq-evk.dts +0
-0@@ -40,6 +46,14 @@ > status = "okay"; };
+&gpio5 {
+ wl-reg-on {arch/arm64/boot/dts/freescale/imx8mq-evk.dts +6
-0+ gpio-hog; + gpios = <29 GPIO_ACTIVE_HIGH>; + output-high; + }; +}; +&i2c1 {
Quoted 2 lines
clock-frequency = <100000>;
pinctrl-names = "default";arch/arm64/boot/dts/freescale/imx8mq-evk.dts +0
-0@@ -131,6 +145,18 @@ > }; };
+&pcie0 {
arch/arm64/boot/dts/freescale/imx8mq-evk.dts line 158
Quoted 10 lines
arch/arm64/boot/dts/freescale/imx8mq-evk.dts +10
-0+ pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_pcie0>; + reset-gpio = <&gpio5 28 GPIO_ACTIVE_LOW>; + clocks = <&clk IMX8MQ_CLK_PCIE1_ROOT>, + <&clk IMX8MQ_CLK_PCIE1_AUX>, + <&clk IMX8MQ_CLK_PCIE1_PHY>, + <&pcie0_refclk>; + clock-names = "pcie", "pcie_aux", "pcie_phy", "pcie_bus"; + status = "okay"; +};
From a PCIe PoV I think this is fine. Please send a patch for the PCIe driver to use the pcie_aux clock.
arch/arm64/boot/dts/freescale/imx8mq-evk.dts line 227
Quoted 12 lines
+
&uart1 {
pinctrl-names = "default"; pinctrl-0 = <&pinctrl_uart1>;arch/arm64/boot/dts/freescale/imx8mq-evk.dts +0
-0@@ -195,6 +221,14 @@ >; };arch/arm64/boot/dts/freescale/imx8mq-evk.dts +4
-0+ pinctrl_pcie0: pcie0grp { + fsl,pins = < + MX8MQ_IOMUXC_I2C4_SCL_PCIE1_CLKREQ_B 0x76 + MX8MQ_IOMUXC_UART4_TXD_GPIO5_IO29 0x16
Shouldn't this GPIO be separated in a pinctrl group for gpio5?
Quoted 7 lines
arch/arm64/boot/dts/freescale/imx8mq-evk.dts +4
-0+ MX8MQ_IOMUXC_UART4_RXD_GPIO5_IO28 0x16 + >; + }; +
pinctrl_reg_usdhc2: regusdhc2grpgpio { fsl,pins = <
MX8MQ_IOMUXC_SD2_RESET_B_GPIO2_IO190x41