Skip to content

Commit 26b982c

Browse files
paliLorenzo Pieralisi
authored andcommitted
dt-bindings: PCI: mvebu: Add num-lanes property
Controller driver needs to correctly configure PCIe link if it contains 1 or 4 SerDes PCIe lanes. Therefore add a new 'num-lanes' DT property for mvebu PCIe controller. Property 'num-lanes' seems to be de-facto standard way how number of lanes is specified in other PCIe controllers. Link: https://lore.kernel.org/r/20220222155030.988-5-pali@kernel.org Signed-off-by: Pali Rohár <pali@kernel.org> Signed-off-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com> Acked-by: Rob Herring <robh@kernel.org>
1 parent 3767a90 commit 26b982c

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

Documentation/devicetree/bindings/pci/mvebu-pci.txt

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@ and the following optional properties:
7777
- marvell,pcie-lane: the physical PCIe lane number, for ports having
7878
multiple lanes. If this property is not found, we assume that the
7979
value is 0.
80+
- num-lanes: number of SerDes PCIe lanes for this link (1 or 4)
8081
- reset-gpios: optional GPIO to PERST#
8182
- reset-delay-us: delay in us to wait after reset de-assertion, if not
8283
specified will default to 100ms, as required by the PCIe specification.
@@ -141,6 +142,7 @@ pcie-controller {
141142
interrupt-map = <0 0 0 0 &mpic 58>;
142143
marvell,pcie-port = <0>;
143144
marvell,pcie-lane = <0>;
145+
num-lanes = <1>;
144146
/* low-active PERST# reset on GPIO 25 */
145147
reset-gpios = <&gpio0 25 1>;
146148
/* wait 20ms for device settle after reset deassertion */
@@ -161,6 +163,7 @@ pcie-controller {
161163
interrupt-map = <0 0 0 0 &mpic 59>;
162164
marvell,pcie-port = <0>;
163165
marvell,pcie-lane = <1>;
166+
num-lanes = <1>;
164167
clocks = <&gateclk 6>;
165168
};
166169

@@ -177,6 +180,7 @@ pcie-controller {
177180
interrupt-map = <0 0 0 0 &mpic 60>;
178181
marvell,pcie-port = <0>;
179182
marvell,pcie-lane = <2>;
183+
num-lanes = <1>;
180184
clocks = <&gateclk 7>;
181185
};
182186

@@ -193,6 +197,7 @@ pcie-controller {
193197
interrupt-map = <0 0 0 0 &mpic 61>;
194198
marvell,pcie-port = <0>;
195199
marvell,pcie-lane = <3>;
200+
num-lanes = <1>;
196201
clocks = <&gateclk 8>;
197202
};
198203

@@ -209,6 +214,7 @@ pcie-controller {
209214
interrupt-map = <0 0 0 0 &mpic 62>;
210215
marvell,pcie-port = <1>;
211216
marvell,pcie-lane = <0>;
217+
num-lanes = <1>;
212218
clocks = <&gateclk 9>;
213219
};
214220

@@ -225,6 +231,7 @@ pcie-controller {
225231
interrupt-map = <0 0 0 0 &mpic 63>;
226232
marvell,pcie-port = <1>;
227233
marvell,pcie-lane = <1>;
234+
num-lanes = <1>;
228235
clocks = <&gateclk 10>;
229236
};
230237

@@ -241,6 +248,7 @@ pcie-controller {
241248
interrupt-map = <0 0 0 0 &mpic 64>;
242249
marvell,pcie-port = <1>;
243250
marvell,pcie-lane = <2>;
251+
num-lanes = <1>;
244252
clocks = <&gateclk 11>;
245253
};
246254

@@ -257,6 +265,7 @@ pcie-controller {
257265
interrupt-map = <0 0 0 0 &mpic 65>;
258266
marvell,pcie-port = <1>;
259267
marvell,pcie-lane = <3>;
268+
num-lanes = <1>;
260269
clocks = <&gateclk 12>;
261270
};
262271

@@ -273,6 +282,7 @@ pcie-controller {
273282
interrupt-map = <0 0 0 0 &mpic 99>;
274283
marvell,pcie-port = <2>;
275284
marvell,pcie-lane = <0>;
285+
num-lanes = <1>;
276286
clocks = <&gateclk 26>;
277287
};
278288

@@ -289,6 +299,7 @@ pcie-controller {
289299
interrupt-map = <0 0 0 0 &mpic 103>;
290300
marvell,pcie-port = <3>;
291301
marvell,pcie-lane = <0>;
302+
num-lanes = <1>;
292303
clocks = <&gateclk 27>;
293304
};
294305
};

0 commit comments

Comments
 (0)