Microchip VSC7514 Ethernet switch controller
Schema identifier ($id): "http://devicetree.org/schemas/net/mscc,vsc7514-switch.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Vladimir Oltean <vladimir.oltean@nxp.com>", "Claudiu Manoil <claudiu.manoil@nxp.com>", "Alexandre Belloni <alexandre.belloni@bootlin.com>"
Bindings for the Microchip VSC7514 switch driver
The VSC7514 switch driver handles up to 11 ports and can inject/extract packets using CPU. Additionally, PTP is supported as well as FDMA for faster packet extraction/injection.
All of these rules must match (allOf) #
Rule 1 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereExact value (
const):"mscc,vsc7514-switch"When the condition matches (
then) #Shared schema rule (
$ref):ethernet-switch.yaml#/$defs/ethernet-portsRequired in this object (
required):"interrupts","interrupt-names"Properties and child nodes (
properties)
reg— not listed as required hereMinimum number of items (
minItems):21
reg-names— not listed as required hereMinimum number of items (
minItems):21
Rule 2 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereExact value (
const):"mscc,vsc7512-switch"When the condition matches (
then) #Shared schema rule (
$ref):/schemas/net/dsa/dsa.yaml#/$defs/ethernet-portsProperties and child nodes (
properties)
reg— not listed as required hereMaximum number of items (
maxItems):20
reg-names— not listed as required hereMaximum number of items (
maxItems):20
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "mscc,vsc7512-switch", "mscc,vsc7514-switch"
reg — required here #
Minimum number of items (minItems): 20
Array item rules (items) #
Item 1
system target
Item 2
rewriter target
Item 3
qs target
Item 4
PTP target
Item 5
Port0 target
Item 6
Port1 target
Item 7
Port2 target
Item 8
Port3 target
Item 9
Port4 target
Item 10
Port5 target
Item 11
Port6 target
Item 12
Port7 target
Item 13
Port8 target
Item 14
Port9 target
Item 15
Port10 target
Item 16
QSystem target
Item 17
Analyzer target
Item 18
S0 target
Item 19
S1 target
Item 20
S2 target
Item 21
fdma target
reg-names — required here #
Minimum number of items (minItems): 20
Array item rules (items) #
Item 1
Exact value (
const):"sys"
Item 2
Exact value (
const):"rew"
Item 3
Exact value (
const):"qs"
Item 4
Exact value (
const):"ptp"
Item 5
Exact value (
const):"port0"
Item 6
Exact value (
const):"port1"
Item 7
Exact value (
const):"port2"
Item 8
Exact value (
const):"port3"
Item 9
Exact value (
const):"port4"
Item 10
Exact value (
const):"port5"
Item 11
Exact value (
const):"port6"
Item 12
Exact value (
const):"port7"
Item 13
Exact value (
const):"port8"
Item 14
Exact value (
const):"port9"
Item 15
Exact value (
const):"port10"
Item 16
Exact value (
const):"qsys"
Item 17
Exact value (
const):"ana"
Item 18
Exact value (
const):"s0"
Item 19
Exact value (
const):"s1"
Item 20
Exact value (
const):"s2"
Item 21
Exact value (
const):"fdma"
interrupts — not listed as required here #
Minimum number of items (minItems): 1
Array item rules (items) #
Item 1
PTP ready
Item 2
register based extraction
Item 3
frame dma based extraction
interrupt-names — not listed as required here #
Minimum number of items (minItems): 1
Array item rules (items) #
Item 1
Exact value (
const):"ptp_rdy"
Item 2
Exact value (
const):"xtr"
Item 3
Exact value (
const):"fdma"
Required in this object (required): "compatible", "reg", "reg-names", "ethernet-ports"
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
switch@1010000 {
compatible = "mscc,vsc7514-switch";
reg = <0x1010000 0x10000>,
<0x1030000 0x10000>,
<0x1080000 0x100>,
<0x10e0000 0x10000>,
<0x11e0000 0x100>,
<0x11f0000 0x100>,
<0x1200000 0x100>,
<0x1210000 0x100>,
<0x1220000 0x100>,
<0x1230000 0x100>,
<0x1240000 0x100>,
<0x1250000 0x100>,
<0x1260000 0x100>,
<0x1270000 0x100>,
<0x1280000 0x100>,
<0x1800000 0x80000>,
<0x1880000 0x10000>,
<0x1040000 0x10000>,
<0x1050000 0x10000>,
<0x1060000 0x10000>,
<0x1a0 0x1c4>;
reg-names = "sys", "rew", "qs", "ptp", "port0", "port1",
"port2", "port3", "port4", "port5", "port6",
"port7", "port8", "port9", "port10", "qsys",
"ana", "s0", "s1", "s2", "fdma";
interrupts = <18 21 16>;
interrupt-names = "ptp_rdy", "xtr", "fdma";
ethernet-ports {
#address-cells = <1>;
#size-cells = <0>;
port0: port@0 {
reg = <0>;
phy-handle = <&phy0>;
phy-mode = "internal";
};
port1: port@1 {
reg = <1>;
phy-handle = <&phy1>;
phy-mode = "internal";
};
};
};
ethernet-switch@1 {
compatible = "mscc,vsc7512-switch";
reg = <0x71010000 0x10000>,
<0x71030000 0x10000>,
<0x71080000 0x100>,
<0x710e0000 0x10000>,
<0x711e0000 0x100>,
<0x711f0000 0x100>,
<0x71200000 0x100>,
<0x71210000 0x100>,
<0x71220000 0x100>,
<0x71230000 0x100>,
<0x71240000 0x100>,
<0x71250000 0x100>,
<0x71260000 0x100>,
<0x71270000 0x100>,
<0x71280000 0x100>,
<0x71800000 0x80000>,
<0x71880000 0x10000>,
<0x71040000 0x10000>,
<0x71050000 0x10000>,
<0x71060000 0x10000>;
reg-names = "sys", "rew", "qs", "ptp", "port0", "port1",
"port2", "port3", "port4", "port5", "port6",
"port7", "port8", "port9", "port10", "qsys",
"ana", "s0", "s1", "s2";
ethernet-ports {
#address-cells = <1>;
#size-cells = <0>;
port@0 {
reg = <0>;
ethernet = <&mac_sw>;
phy-handle = <&phy0>;
phy-mode = "internal";
};
port@1 {
reg = <1>;
phy-handle = <&phy1>;
phy-mode = "internal";
};
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
Line 128: VSC7514 (Switchdev)
Line 176: VSC7512 (DSA)