Skip to content

Commit 5ffdd15

Browse files
committed
tgupdate: merge t/DO-NOT-MERGE-git-markup-features-other-trees into t/DO-NOT-MERGE-mptcp-use-kmalloc-on-kasan-build base
2 parents e8862fa + 051d694 commit 5ffdd15

File tree

251 files changed

+12954
-6501
lines changed

Some content is hidden

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

251 files changed

+12954
-6501
lines changed

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

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,14 @@ properties:
6363
"#size-cells":
6464
const: 0
6565

66+
airoha,npu:
67+
$ref: /schemas/types.yaml#/definitions/phandle
68+
description:
69+
Phandle to the node used to configure the NPU module.
70+
The Airoha Network Processor Unit (NPU) provides a configuration
71+
interface to implement hardware flow offloading programming Packet
72+
Processor Engine (PPE) flow table.
73+
6674
patternProperties:
6775
"^ethernet@[1-4]$":
6876
type: object
@@ -132,6 +140,8 @@ examples:
132140
<GIC_SPI 49 IRQ_TYPE_LEVEL_HIGH>,
133141
<GIC_SPI 64 IRQ_TYPE_LEVEL_HIGH>;
134142
143+
airoha,npu = <&npu>;
144+
135145
#address-cells = <1>;
136146
#size-cells = <0>;
137147
Lines changed: 84 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,84 @@
1+
# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
2+
%YAML 1.2
3+
---
4+
$id: http://devicetree.org/schemas/net/airoha,en7581-npu.yaml#
5+
$schema: http://devicetree.org/meta-schemas/core.yaml#
6+
7+
title: Airoha Network Processor Unit for EN7581 SoC
8+
9+
maintainers:
10+
- Lorenzo Bianconi <[email protected]>
11+
12+
description:
13+
The Airoha Network Processor Unit (NPU) provides a configuration interface
14+
to implement wired and wireless hardware flow offloading programming Packet
15+
Processor Engine (PPE) flow table.
16+
17+
properties:
18+
compatible:
19+
enum:
20+
- airoha,en7581-npu
21+
22+
reg:
23+
maxItems: 1
24+
25+
interrupts:
26+
items:
27+
- description: mbox host irq line
28+
- description: watchdog0 irq line
29+
- description: watchdog1 irq line
30+
- description: watchdog2 irq line
31+
- description: watchdog3 irq line
32+
- description: watchdog4 irq line
33+
- description: watchdog5 irq line
34+
- description: watchdog6 irq line
35+
- description: watchdog7 irq line
36+
- description: wlan irq line0
37+
- description: wlan irq line1
38+
- description: wlan irq line2
39+
- description: wlan irq line3
40+
- description: wlan irq line4
41+
- description: wlan irq line5
42+
43+
memory-region:
44+
maxItems: 1
45+
description:
46+
Memory used to store NPU firmware binary.
47+
48+
required:
49+
- compatible
50+
- reg
51+
- interrupts
52+
- memory-region
53+
54+
additionalProperties: false
55+
56+
examples:
57+
- |
58+
#include <dt-bindings/interrupt-controller/arm-gic.h>
59+
#include <dt-bindings/interrupt-controller/irq.h>
60+
soc {
61+
#address-cells = <2>;
62+
#size-cells = <2>;
63+
64+
npu@1e900000 {
65+
compatible = "airoha,en7581-npu";
66+
reg = <0 0x1e900000 0 0x313000>;
67+
interrupts = <GIC_SPI 125 IRQ_TYPE_LEVEL_HIGH>,
68+
<GIC_SPI 103 IRQ_TYPE_LEVEL_HIGH>,
69+
<GIC_SPI 109 IRQ_TYPE_LEVEL_HIGH>,
70+
<GIC_SPI 113 IRQ_TYPE_LEVEL_HIGH>,
71+
<GIC_SPI 117 IRQ_TYPE_LEVEL_HIGH>,
72+
<GIC_SPI 134 IRQ_TYPE_LEVEL_HIGH>,
73+
<GIC_SPI 135 IRQ_TYPE_LEVEL_HIGH>,
74+
<GIC_SPI 136 IRQ_TYPE_LEVEL_HIGH>,
75+
<GIC_SPI 137 IRQ_TYPE_LEVEL_HIGH>,
76+
<GIC_SPI 118 IRQ_TYPE_LEVEL_HIGH>,
77+
<GIC_SPI 119 IRQ_TYPE_LEVEL_HIGH>,
78+
<GIC_SPI 120 IRQ_TYPE_LEVEL_HIGH>,
79+
<GIC_SPI 121 IRQ_TYPE_LEVEL_HIGH>,
80+
<GIC_SPI 122 IRQ_TYPE_LEVEL_HIGH>,
81+
<GIC_SPI 123 IRQ_TYPE_LEVEL_HIGH>;
82+
memory-region = <&npu_binary>;
83+
};
84+
};
Lines changed: 112 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,112 @@
1+
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2+
%YAML 1.2
3+
---
4+
$id: http://devicetree.org/schemas/net/fsl,gianfar-mdio.yaml#
5+
$schema: http://devicetree.org/meta-schemas/core.yaml#
6+
7+
title: Freescale Gianfar (TSEC) MDIO Device
8+
9+
description:
10+
This binding describes the MDIO is a bus to which the PHY devices are
11+
connected. For each device that exists on this bus, a child node should be
12+
created.
13+
14+
Some TSECs are associated with an internal Ten-Bit Interface (TBI) PHY. This
15+
PHY is accessed through the local MDIO bus. These buses are defined similarly
16+
to the mdio buses, except they are compatible with "fsl,gianfar-tbi". The TBI
17+
PHYs underneath them are similar to normal PHYs, but the reg property is
18+
considered instructive, rather than descriptive. The reg property should be
19+
chosen so it doesn't interfere with other PHYs on the bus.
20+
21+
maintainers:
22+
- J. Neuschäfer <[email protected]>
23+
24+
# This is needed to distinguish gianfar.yaml and gianfar-mdio.yaml, because
25+
# both use compatible = "gianfar" (with different device_type values)
26+
select:
27+
oneOf:
28+
- properties:
29+
compatible:
30+
contains:
31+
const: gianfar
32+
device_type:
33+
const: mdio
34+
required:
35+
- device_type
36+
37+
- properties:
38+
compatible:
39+
contains:
40+
enum:
41+
- fsl,gianfar-tbi
42+
- fsl,gianfar-mdio
43+
- fsl,etsec2-tbi
44+
- fsl,etsec2-mdio
45+
- fsl,ucc-mdio
46+
- ucc_geth_phy
47+
48+
required:
49+
- compatible
50+
51+
properties:
52+
compatible:
53+
enum:
54+
- fsl,gianfar-tbi
55+
- fsl,gianfar-mdio
56+
- fsl,etsec2-tbi
57+
- fsl,etsec2-mdio
58+
- fsl,ucc-mdio
59+
- gianfar
60+
- ucc_geth_phy
61+
62+
reg:
63+
minItems: 1
64+
items:
65+
- description:
66+
Offset and length of the register set for the device
67+
68+
- description:
69+
Optionally, the offset and length of the TBIPA register (TBI PHY
70+
address register). If TBIPA register is not specified, the driver
71+
will attempt to infer it from the register set specified (your
72+
mileage may vary).
73+
74+
device_type:
75+
const: mdio
76+
77+
required:
78+
- reg
79+
- "#address-cells"
80+
- "#size-cells"
81+
82+
allOf:
83+
- $ref: mdio.yaml#
84+
85+
- if:
86+
properties:
87+
compatible:
88+
contains:
89+
const: ucc_geth_phy
90+
then:
91+
required:
92+
- device_type
93+
94+
unevaluatedProperties: false
95+
96+
examples:
97+
- |
98+
soc {
99+
#address-cells = <1>;
100+
#size-cells = <1>;
101+
102+
mdio@24520 {
103+
reg = <0x24520 0x20>;
104+
compatible = "fsl,gianfar-mdio";
105+
#address-cells = <1>;
106+
#size-cells = <0>;
107+
108+
ethernet-phy@0 {
109+
reg = <0>;
110+
};
111+
};
112+
};

0 commit comments

Comments
 (0)