Commit 630ecc93 authored by Alexander Stein's avatar Alexander Stein Committed by Shawn Guo

arm64: dts: tqma8mpql: add PCIe support

Add PCIe support on TQMa8MPxL module on MBa8MPxL mainboard.
Signed-off-by: default avatarAlexander Stein <alexander.stein@ew.tq-group.com>
Signed-off-by: default avatarShawn Guo <shawnguo@kernel.org>
parent a9404a89
...@@ -8,6 +8,7 @@ ...@@ -8,6 +8,7 @@
#include <dt-bindings/leds/common.h> #include <dt-bindings/leds/common.h>
#include <dt-bindings/net/ti-dp83867.h> #include <dt-bindings/net/ti-dp83867.h>
#include <dt-bindings/phy/phy-imx8-pcie.h>
#include <dt-bindings/pwm/pwm.h> #include <dt-bindings/pwm/pwm.h>
#include "imx8mp-tqma8mpql.dtsi" #include "imx8mp-tqma8mpql.dtsi"
...@@ -48,6 +49,12 @@ backlight_lvds: backlight { ...@@ -48,6 +49,12 @@ backlight_lvds: backlight {
status = "disabled"; status = "disabled";
}; };
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";
...@@ -340,9 +347,16 @@ &gpio4 { ...@@ -340,9 +347,16 @@ &gpio4 {
"", "", "", "", "", "", "", "",
"", "", "", "", "", "", "", "",
"", "", "DP_IRQ", "DSI_EN", "", "", "DP_IRQ", "DSI_EN",
"HDMI_OC#", "TEMP_EVENT#", "PCIE_CLK_OE#", "", "HDMI_OC#", "TEMP_EVENT#", "PCIE_REFCLK_OE#", "",
"", "", "", "FAN_PWR", "", "", "", "FAN_PWR",
"RTC_EVENT#", "CODEC_RST#", "", ""; "RTC_EVENT#", "CODEC_RST#", "", "";
pcie-refclkreq-hog {
gpio-hog;
gpios = <22 0>;
output-high;
line-name = "PCIE_REFCLK_OE#";
};
}; };
&gpio5 { &gpio5 {
...@@ -377,6 +391,13 @@ at24c02_54: eeprom@54 { ...@@ -377,6 +391,13 @@ at24c02_54: eeprom@54 {
pagesize = <16>; pagesize = <16>;
vcc-supply = <&reg_vcc_3v3>; vcc-supply = <&reg_vcc_3v3>;
}; };
pcieclk: clock-generator@6a {
compatible = "renesas,9fgv0241";
reg = <0x6a>;
clocks = <&clk_xtal25>;
#clock-cells = <1>;
};
}; };
&i2c4 { &i2c4 {
...@@ -407,6 +428,25 @@ &pcf85063 { ...@@ -407,6 +428,25 @@ &pcf85063 {
interrupts = <28 IRQ_TYPE_EDGE_FALLING>; interrupts = <28 IRQ_TYPE_EDGE_FALLING>;
}; };
&pcie_phy {
fsl,clkreq-unsupported;
fsl,refclk-pad-mode = <IMX8_PCIE_REFCLK_PAD_INPUT>;
clocks = <&pcieclk 0>;
clock-names = "ref";
status = "okay";
};
&pcie {
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>;
status = "okay";
};
&pwm2 { &pwm2 {
pinctrl-names = "default"; pinctrl-names = "default";
pinctrl-0 = <&pinctrl_pwm2>; pinctrl-0 = <&pinctrl_pwm2>;
......
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