Skip to content

Commit 56bf36a

Browse files
author
Martin KaFai Lau
committed
Merge branch 'bpf-next/net' into for-next
No conflicts. Signed-off-by: Martin KaFai Lau <[email protected]>
2 parents ee7f556 + 67f4cfb commit 56bf36a

File tree

890 files changed

+29398
-10674
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

890 files changed

+29398
-10674
lines changed

Documentation/admin-guide/sysctl/net.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -355,9 +355,9 @@ skb_defer_max
355355
-------------
356356

357357
Max size (in skbs) of the per-cpu list of skbs being freed
358-
by the cpu which allocated them. Used by TCP stack so far.
358+
by the cpu which allocated them.
359359

360-
Default: 64
360+
Default: 128
361361

362362
optmem_max
363363
----------

Documentation/devicetree/bindings/net/airoha,en7581-eth.yaml

Lines changed: 34 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ properties:
1717
compatible:
1818
enum:
1919
- airoha,en7581-eth
20+
- airoha,an7583-eth
2021

2122
reg:
2223
items:
@@ -44,6 +45,7 @@ properties:
4445
- description: PDMA irq
4546

4647
resets:
48+
minItems: 7
4749
maxItems: 8
4850

4951
reset-names:
@@ -54,8 +56,9 @@ properties:
5456
- const: xsi-mac
5557
- const: hsi0-mac
5658
- const: hsi1-mac
57-
- const: hsi-mac
59+
- enum: [ hsi-mac, xfp-mac ]
5860
- const: xfp-mac
61+
minItems: 7
5962

6063
memory-region:
6164
items:
@@ -81,6 +84,36 @@ properties:
8184
interface to implement hardware flow offloading programming Packet
8285
Processor Engine (PPE) flow table.
8386

87+
allOf:
88+
- $ref: ethernet-controller.yaml#
89+
- if:
90+
properties:
91+
compatible:
92+
contains:
93+
enum:
94+
- airoha,en7581-eth
95+
then:
96+
properties:
97+
resets:
98+
minItems: 8
99+
100+
reset-names:
101+
minItems: 8
102+
103+
- if:
104+
properties:
105+
compatible:
106+
contains:
107+
enum:
108+
- airoha,an7583-eth
109+
then:
110+
properties:
111+
resets:
112+
maxItems: 7
113+
114+
reset-names:
115+
maxItems: 7
116+
84117
patternProperties:
85118
"^ethernet@[1-4]$":
86119
type: object

Documentation/devicetree/bindings/net/can/bosch,m_can.yaml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,26 @@ properties:
109109
maximum: 32
110110
minItems: 1
111111

112+
pinctrl-0:
113+
description: Default pinctrl state
114+
115+
pinctrl-1:
116+
description: Can be "sleep" or "wakeup" pinctrl state
117+
118+
pinctrl-2:
119+
description: Can be "sleep" or "wakeup" pinctrl state
120+
121+
pinctrl-names:
122+
description:
123+
When present should contain at least "default" describing the default pin
124+
states. Other states are "sleep" which describes the pinstate when
125+
sleeping and "wakeup" describing the pins if wakeup is enabled.
126+
minItems: 1
127+
items:
128+
- const: default
129+
- enum: [ sleep, wakeup ]
130+
- const: wakeup
131+
112132
power-domains:
113133
description:
114134
Power domain provider node and an args specifier containing
@@ -125,6 +145,11 @@ properties:
125145
minItems: 1
126146
maxItems: 2
127147

148+
wakeup-source:
149+
$ref: /schemas/types.yaml#/definitions/phandle-array
150+
description:
151+
List of phandles to system idle states in which mcan can wakeup the system.
152+
128153
required:
129154
- compatible
130155
- reg

Documentation/devicetree/bindings/net/cdns,macb.yaml

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -47,18 +47,19 @@ properties:
4747
- const: cdns,macb # Generic
4848

4949
- enum:
50-
- atmel,sama5d29-gem # GEM XL IP (10/100) on Atmel sama5d29 SoCs
5150
- atmel,sama5d2-gem # GEM IP (10/100) on Atmel sama5d2 SoCs
51+
- atmel,sama5d29-gem # GEM XL IP (10/100) on Atmel sama5d29 SoCs
5252
- atmel,sama5d3-gem # Gigabit IP on Atmel sama5d3 SoCs
5353
- atmel,sama5d4-gem # GEM IP (10/100) on Atmel sama5d4 SoCs
54+
- cdns,emac # Generic
55+
- cdns,gem # Generic
56+
- cdns,macb # Generic
5457
- cdns,np4-macb # NP4 SoC devices
5558
- microchip,sama7g5-emac # Microchip SAMA7G5 ethernet interface
5659
- microchip,sama7g5-gem # Microchip SAMA7G5 gigabit ethernet interface
60+
- mobileye,eyeq5-gem # Mobileye EyeQ5 SoCs
5761
- raspberrypi,rp1-gem # Raspberry Pi RP1 gigabit ethernet interface
5862
- sifive,fu540-c000-gem # SiFive FU540-C000 SoC
59-
- cdns,emac # Generic
60-
- cdns,gem # Generic
61-
- cdns,macb # Generic
6263

6364
- items:
6465
- enum:
@@ -183,6 +184,15 @@ allOf:
183184
reg:
184185
maxItems: 1
185186

187+
- if:
188+
properties:
189+
compatible:
190+
contains:
191+
const: mobileye,eyeq5-gem
192+
then:
193+
required:
194+
- phys
195+
186196
unevaluatedProperties: false
187197

188198
examples:

Documentation/devicetree/bindings/net/dsa/lantiq,gswip.yaml

Lines changed: 156 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,14 @@
44
$id: http://devicetree.org/schemas/net/dsa/lantiq,gswip.yaml#
55
$schema: http://devicetree.org/meta-schemas/core.yaml#
66

7-
title: Lantiq GSWIP Ethernet switches
7+
title: Lantiq GSWIP and MaxLinear GSW1xx Ethernet switches
88

9-
allOf:
10-
- $ref: dsa.yaml#/$defs/ethernet-ports
9+
description:
10+
Lantiq GSWIP and MaxLinear GSW1xx switches share the same hardware IP.
11+
Lantiq switches are embedded in SoCs and accessed via memory-mapped I/O,
12+
while MaxLinear switches are standalone ICs connected via MDIO.
13+
14+
$ref: dsa.yaml#
1115

1216
maintainers:
1317
- Hauke Mehrtens <[email protected]>
@@ -18,9 +22,14 @@ properties:
1822
- lantiq,xrx200-gswip
1923
- lantiq,xrx300-gswip
2024
- lantiq,xrx330-gswip
25+
- maxlinear,gsw120
26+
- maxlinear,gsw125
27+
- maxlinear,gsw140
28+
- maxlinear,gsw141
29+
- maxlinear,gsw145
2130

2231
reg:
23-
minItems: 3
32+
minItems: 1
2433
maxItems: 3
2534

2635
reg-names:
@@ -37,9 +46,6 @@ properties:
3746
compatible:
3847
const: lantiq,xrx200-mdio
3948

40-
required:
41-
- compatible
42-
4349
gphy-fw:
4450
type: object
4551
properties:
@@ -91,10 +97,63 @@ properties:
9197

9298
additionalProperties: false
9399

100+
patternProperties:
101+
"^(ethernet-)?ports$":
102+
type: object
103+
patternProperties:
104+
"^(ethernet-)?port@[0-6]$":
105+
$ref: dsa-port.yaml#
106+
unevaluatedProperties: false
107+
108+
properties:
109+
maxlinear,rmii-refclk-out:
110+
type: boolean
111+
description:
112+
Configure the RMII reference clock to be a clock output
113+
rather than an input. Only applicable for RMII mode.
114+
tx-internal-delay-ps:
115+
enum: [0, 500, 1000, 1500, 2000, 2500, 3000, 3500]
116+
description:
117+
RGMII TX Clock Delay defined in pico seconds.
118+
The delay lines adjust the MII clock vs. data timing.
119+
If this property is not present the delay is determined by
120+
the interface mode.
121+
rx-internal-delay-ps:
122+
enum: [0, 500, 1000, 1500, 2000, 2500, 3000, 3500]
123+
description:
124+
RGMII RX Clock Delay defined in pico seconds.
125+
The delay lines adjust the MII clock vs. data timing.
126+
If this property is not present the delay is determined by
127+
the interface mode.
128+
94129
required:
95130
- compatible
96131
- reg
97132

133+
allOf:
134+
- if:
135+
properties:
136+
compatible:
137+
contains:
138+
enum:
139+
- lantiq,xrx200-gswip
140+
- lantiq,xrx300-gswip
141+
- lantiq,xrx330-gswip
142+
then:
143+
properties:
144+
reg:
145+
minItems: 3
146+
maxItems: 3
147+
mdio:
148+
required:
149+
- compatible
150+
else:
151+
properties:
152+
reg:
153+
maxItems: 1
154+
reg-names: false
155+
gphy-fw: false
156+
98157
unevaluatedProperties: false
99158

100159
examples:
@@ -113,8 +172,10 @@ examples:
113172
port@0 {
114173
reg = <0>;
115174
label = "lan3";
116-
phy-mode = "rgmii";
175+
phy-mode = "rgmii-id";
117176
phy-handle = <&phy0>;
177+
tx-internal-delay-ps = <2000>;
178+
rx-internal-delay-ps = <2000>;
118179
};
119180
120181
port@1 {
@@ -200,3 +261,90 @@ examples:
200261
};
201262
};
202263
};
264+
265+
- |
266+
#include <dt-bindings/leds/common.h>
267+
268+
mdio {
269+
#address-cells = <1>;
270+
#size-cells = <0>;
271+
272+
switch@1f {
273+
compatible = "maxlinear,gsw125";
274+
reg = <0x1f>;
275+
276+
ports {
277+
#address-cells = <1>;
278+
#size-cells = <0>;
279+
280+
port@0 {
281+
reg = <0>;
282+
label = "lan0";
283+
phy-handle = <&switchphy0>;
284+
phy-mode = "internal";
285+
};
286+
287+
port@1 {
288+
reg = <1>;
289+
label = "lan1";
290+
phy-handle = <&switchphy1>;
291+
phy-mode = "internal";
292+
};
293+
294+
port@4 {
295+
reg = <4>;
296+
label = "wan";
297+
phy-mode = "1000base-x";
298+
managed = "in-band-status";
299+
};
300+
301+
port@5 {
302+
reg = <5>;
303+
phy-mode = "rgmii-id";
304+
tx-internal-delay-ps = <2000>;
305+
rx-internal-delay-ps = <2000>;
306+
ethernet = <&eth0>;
307+
308+
fixed-link {
309+
speed = <1000>;
310+
full-duplex;
311+
};
312+
};
313+
};
314+
315+
mdio {
316+
#address-cells = <1>;
317+
#size-cells = <0>;
318+
319+
switchphy0: switchphy@0 {
320+
reg = <0>;
321+
322+
leds {
323+
#address-cells = <1>;
324+
#size-cells = <0>;
325+
326+
led@0 {
327+
reg = <0>;
328+
color = <LED_COLOR_ID_GREEN>;
329+
function = LED_FUNCTION_LAN;
330+
};
331+
};
332+
};
333+
334+
switchphy1: switchphy@1 {
335+
reg = <1>;
336+
337+
leds {
338+
#address-cells = <1>;
339+
#size-cells = <0>;
340+
341+
led@0 {
342+
reg = <0>;
343+
color = <LED_COLOR_ID_GREEN>;
344+
function = LED_FUNCTION_LAN;
345+
};
346+
};
347+
};
348+
};
349+
};
350+
};

0 commit comments

Comments
 (0)