Commit 38f408ce authored by Alexander Stein's avatar Alexander Stein Committed by Shawn Guo

arm64: dts: freescale: imx8mm/imx8mq: mba8mx: Use PCIe clock generator

PCIe reference clock is provided by Renesas 9FGV0441. Reference this
instead of a fixed-clock.
Signed-off-by: default avatarAlexander Stein <alexander.stein@ew.tq-group.com>
Signed-off-by: default avatarShawn Guo <shawnguo@kernel.org>
parent db5b701a
...@@ -5,6 +5,8 @@ ...@@ -5,6 +5,8 @@
/dts-v1/; /dts-v1/;
#include <dt-bindings/phy/phy-imx8-pcie.h>
#include "imx8mm-tqma8mqml.dtsi" #include "imx8mm-tqma8mqml.dtsi"
#include "mba8mx.dtsi" #include "mba8mx.dtsi"
...@@ -74,19 +76,23 @@ expander2: gpio@27 { ...@@ -74,19 +76,23 @@ expander2: gpio@27 {
}; };
&pcie_phy { &pcie_phy {
clocks = <&pcie0_refclk>; fsl,refclk-pad-mode = <IMX8_PCIE_REFCLK_PAD_INPUT>;
fsl,clkreq-unsupported;
clocks = <&pcieclk 2>;
clock-names = "ref";
status = "okay"; status = "okay";
}; };
/* PCIe slot on X36 */
&pcie0 { &pcie0 {
reset-gpio = <&expander0 14 GPIO_ACTIVE_LOW>; reset-gpio = <&expander0 14 GPIO_ACTIVE_LOW>;
clocks = <&clk IMX8MM_CLK_PCIE1_ROOT>, <&pcie0_refclk>, clocks = <&clk IMX8MM_CLK_PCIE1_ROOT>, <&pcieclk 3>,
<&clk IMX8MM_CLK_PCIE1_AUX>; <&clk IMX8MM_CLK_PCIE1_AUX>;
assigned-clocks = <&clk IMX8MM_CLK_PCIE1_AUX>, assigned-clocks = <&clk IMX8MM_CLK_PCIE1_AUX>,
<&clk IMX8MM_CLK_PCIE1_CTRL>; <&clk IMX8MM_CLK_PCIE1_CTRL>;
assigned-clock-rates = <10000000>, <250000000>; assigned-clock-rates = <10000000>, <250000000>;
assigned-clock-parents = <&clk IMX8MM_SYS_PLL2_50M>, assigned-clock-parents = <&clk IMX8MM_SYS_PLL2_50M>,
<&clk IMX8MM_SYS_PLL2_250M>; <&clk IMX8MM_SYS_PLL2_250M>;
status = "okay"; status = "okay";
}; };
......
...@@ -28,18 +28,6 @@ extcon_usbotg: extcon-usbotg0 { ...@@ -28,18 +28,6 @@ extcon_usbotg: extcon-usbotg0 {
id-gpios = <&gpio1 10 GPIO_ACTIVE_HIGH>; id-gpios = <&gpio1 10 GPIO_ACTIVE_HIGH>;
}; };
pcie0_refclk: pcie0-refclk {
compatible = "fixed-clock";
#clock-cells = <0>;
clock-frequency = <100000000>;
};
pcie1_refclk: pcie1-refclk {
compatible = "fixed-clock";
#clock-cells = <0>;
clock-frequency = <100000000>;
};
reg_otg_vbus: regulator-otg-vbus { reg_otg_vbus: regulator-otg-vbus {
compatible = "regulator-fixed"; compatible = "regulator-fixed";
pinctrl-names = "default"; pinctrl-names = "default";
...@@ -103,23 +91,24 @@ &led2 { ...@@ -103,23 +91,24 @@ &led2 {
gpios = <&gpio3 16 GPIO_ACTIVE_HIGH>; gpios = <&gpio3 16 GPIO_ACTIVE_HIGH>;
}; };
/* PCIe slot on X36 */
&pcie0 { &pcie0 {
reset-gpio = <&expander0 14 GPIO_ACTIVE_LOW>; reset-gpio = <&expander0 14 GPIO_ACTIVE_LOW>;
clocks = <&clk IMX8MQ_CLK_PCIE1_ROOT>, clocks = <&clk IMX8MQ_CLK_PCIE1_ROOT>,
<&pcie0_refclk>, <&pcieclk 3>,
<&clk IMX8MQ_CLK_PCIE1_PHY>, <&pcieclk 2>,
<&clk IMX8MQ_CLK_PCIE1_AUX>; <&clk IMX8MQ_CLK_PCIE1_AUX>;
status = "okay"; status = "okay";
}; };
/* /*
* miniPCIe, also usable for cards with USB. Therefore configure the reset as * miniPCIe on X28, also usable for cards with USB. Therefore configure the reset as
* static gpio hog. * static gpio hog.
*/ */
&pcie1 { &pcie1 {
clocks = <&clk IMX8MQ_CLK_PCIE2_ROOT>, clocks = <&clk IMX8MQ_CLK_PCIE2_ROOT>,
<&pcie1_refclk>, <&pcieclk 1>,
<&clk IMX8MQ_CLK_PCIE2_PHY>, <&pcieclk 0>,
<&clk IMX8MQ_CLK_PCIE2_AUX>; <&clk IMX8MQ_CLK_PCIE2_AUX>;
status = "okay"; status = "okay";
}; };
......
...@@ -29,6 +29,12 @@ chosen { ...@@ -29,6 +29,12 @@ chosen {
stdout-path = &uart3; stdout-path = &uart3;
}; };
clk_xtal25: clk-xtal25 {
compatible = "fixed-clock";
#clock-cells = <0>;
clock-frequency = <25000000>;
};
gpio-keys { gpio-keys {
compatible = "gpio-keys"; compatible = "gpio-keys";
pinctrl-names = "default"; pinctrl-names = "default";
...@@ -100,12 +106,6 @@ panel_in_lvds: endpoint { ...@@ -100,12 +106,6 @@ panel_in_lvds: endpoint {
}; };
}; };
pcie0_refclk: pcie0-refclk {
compatible = "fixed-clock";
#clock-cells = <0>;
clock-frequency = <100000000>;
};
reg_12v: regulator-12v { reg_12v: regulator-12v {
compatible = "regulator-fixed"; compatible = "regulator-fixed";
regulator-name = "MBA8MX_12V"; regulator-name = "MBA8MX_12V";
...@@ -264,6 +264,13 @@ eeprom3: eeprom@57 { ...@@ -264,6 +264,13 @@ eeprom3: eeprom@57 {
pagesize = <16>; pagesize = <16>;
vcc-supply = <&reg_vcc_3v3>; vcc-supply = <&reg_vcc_3v3>;
}; };
pcieclk: clk@68 {
compatible = "renesas,9fgv0441";
reg = <0x68>;
clocks = <&clk_xtal25>;
#clock-cells = <1>;
};
}; };
&i2c3 { &i2c3 {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment