Skip to content

Commit 934de34

Browse files
superna9999Lorenzo Pieralisi
authored andcommitted
arm64: dts: meson-g12a: Add PCIe node
This adds the Amlogic G12A PCI Express controller node, also using the USB3+PCIe Combo PHY. The PHY mode selection is static, thus the USB3+PCIe Combo PHY phandle would need to be removed from the USB control node if the shared differential lines are used for PCIe instead of USB3. Signed-off-by: Neil Armstrong <[email protected]> Signed-off-by: Lorenzo Pieralisi <[email protected]> Reviewed-by: Andrew Murray <[email protected]>
1 parent 6316272 commit 934de34

File tree

2 files changed

+37
-0
lines changed

2 files changed

+37
-0
lines changed

arch/arm64/boot/dts/amlogic/meson-g12-common.dtsi

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,39 @@
9595
#size-cells = <2>;
9696
ranges;
9797

98+
pcie: pcie@fc000000 {
99+
compatible = "amlogic,g12a-pcie", "snps,dw-pcie";
100+
reg = <0x0 0xfc000000 0x0 0x400000
101+
0x0 0xff648000 0x0 0x2000
102+
0x0 0xfc400000 0x0 0x200000>;
103+
reg-names = "elbi", "cfg", "config";
104+
interrupts = <GIC_SPI 221 IRQ_TYPE_LEVEL_HIGH>;
105+
#interrupt-cells = <1>;
106+
interrupt-map-mask = <0 0 0 0>;
107+
interrupt-map = <0 0 0 0 &gic GIC_SPI 223 IRQ_TYPE_LEVEL_HIGH>;
108+
bus-range = <0x0 0xff>;
109+
#address-cells = <3>;
110+
#size-cells = <2>;
111+
device_type = "pci";
112+
ranges = <0x81000000 0 0 0x0 0xfc600000 0 0x00100000
113+
0x82000000 0 0xfc700000 0x0 0xfc700000 0 0x1900000>;
114+
115+
clocks = <&clkc CLKID_PCIE_PHY
116+
&clkc CLKID_PCIE_COMB
117+
&clkc CLKID_PCIE_PLL>;
118+
clock-names = "general",
119+
"pclk",
120+
"port";
121+
resets = <&reset RESET_PCIE_CTRL_A>,
122+
<&reset RESET_PCIE_APB>;
123+
reset-names = "port",
124+
"apb";
125+
num-lanes = <1>;
126+
phys = <&usb3_pcie_phy PHY_TYPE_PCIE>;
127+
phy-names = "pcie";
128+
status = "disabled";
129+
};
130+
98131
ethmac: ethernet@ff3f0000 {
99132
compatible = "amlogic,meson-axg-dwmac",
100133
"snps,dwmac-3.70a",

arch/arm64/boot/dts/amlogic/meson-sm1.dtsi

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,10 @@
134134
power-domains = <&pwrc PWRC_SM1_ETH_ID>;
135135
};
136136

137+
&pcie {
138+
power-domains = <&pwrc PWRC_SM1_PCIE_ID>;
139+
};
140+
137141
&pwrc {
138142
compatible = "amlogic,meson-sm1-pwrc";
139143
};

0 commit comments

Comments
 (0)