Skip to content

Commit f500a2f

Browse files
Richard Zhukwilczynski
authored andcommitted
dt-bindings: PCI: imx6q-pcie: Add reg-name "dbi2" and "atu" for i.MX8M PCIe Endpoint
Add reg-name: "dbi2", "atu" for i.MX8M PCIe Endpoint. For i.MX8M PCIe EP, the dbi2 and atu addresses are pre-defined in the driver. This method is not good. In commit b7d67c6 ("PCI: imx6: Add iMX95 Endpoint (EP) support"), Frank suggests to fetch the dbi2 and atu from DT directly. This commit is preparation to do that for i.MX8M PCIe EP. These changes wouldn't break driver function. When "dbi2" and "atu" properties are present, i.MX PCIe driver would fetch the according base addresses from DT directly. If only two reg properties are provided, i.MX PCIe driver would fall back to the old method. Link: https://lore.kernel.org/linux-pci/1723534943-28499-2-git-send-email-hongxing.zhu@nxp.com Signed-off-by: Richard Zhu <hongxing.zhu@nxp.com> Signed-off-by: Krzysztof Wilczyński <kwilczynski@kernel.org> Reviewed-by: Frank Li <Frank.Li@nxp.com> Reviewed-by: Rob Herring (Arm) <robh@kernel.org>
1 parent dff07b5 commit f500a2f

1 file changed

Lines changed: 9 additions & 4 deletions

File tree

Documentation/devicetree/bindings/pci/fsl,imx6q-pcie-ep.yaml

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -65,12 +65,14 @@ allOf:
6565
then:
6666
properties:
6767
reg:
68-
minItems: 2
69-
maxItems: 2
68+
minItems: 4
69+
maxItems: 4
7070
reg-names:
7171
items:
7272
- const: dbi
7373
- const: addr_space
74+
- const: dbi2
75+
- const: atu
7476

7577
- if:
7678
properties:
@@ -129,8 +131,11 @@ examples:
129131
130132
pcie_ep: pcie-ep@33800000 {
131133
compatible = "fsl,imx8mp-pcie-ep";
132-
reg = <0x33800000 0x000400000>, <0x18000000 0x08000000>;
133-
reg-names = "dbi", "addr_space";
134+
reg = <0x33800000 0x100000>,
135+
<0x18000000 0x8000000>,
136+
<0x33900000 0x100000>,
137+
<0x33b00000 0x100000>;
138+
reg-names = "dbi", "addr_space", "dbi2", "atu";
134139
clocks = <&clk IMX8MP_CLK_HSIO_ROOT>,
135140
<&clk IMX8MP_CLK_HSIO_AXI>,
136141
<&clk IMX8MP_CLK_PCIE_ROOT>;

0 commit comments

Comments
 (0)