mirror of
https://github.com/torvalds/linux
synced 2024-10-16 16:29:20 +00:00
b9823df7bb
The name "base" is misleading as the definition is for a complete schema definition without additional properties allowed, not a "base class". Align the same to be the same as dsa.yaml. This schema file without any json pointer path is the base schema which can be extended. There are not yet any references to $defs/base to update. Signed-off-by: Rob Herring <robh@kernel.org> Acked-by: Arınç ÜNAL <arinc.unal@arinc9.com> Reviewed-by: Vladimir Oltean <vladimir.oltean@nxp.com> Acked-by: Linus Walleij <linus.walleij@linaro.org> Link: https://lore.kernel.org/r/20231016-dt-net-cleanups-v1-5-a525a090b444@kernel.org Signed-off-by: Jakub Kicinski <kuba@kernel.org>
69 lines
1.5 KiB
YAML
69 lines
1.5 KiB
YAML
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
|
|
%YAML 1.2
|
|
---
|
|
$id: http://devicetree.org/schemas/net/ethernet-switch.yaml#
|
|
$schema: http://devicetree.org/meta-schemas/core.yaml#
|
|
|
|
title: Generic Ethernet Switch
|
|
|
|
maintainers:
|
|
- Andrew Lunn <andrew@lunn.ch>
|
|
- Florian Fainelli <f.fainelli@gmail.com>
|
|
- Vladimir Oltean <olteanv@gmail.com>
|
|
|
|
description:
|
|
Ethernet switches are multi-port Ethernet controllers. Each port has
|
|
its own number and is represented as its own Ethernet controller.
|
|
The minimum required functionality is to pass packets to software.
|
|
They may or may not be able to forward packets automonously between
|
|
ports.
|
|
|
|
select: false
|
|
|
|
properties:
|
|
$nodename:
|
|
pattern: "^(ethernet-)?switch(@.*)?$"
|
|
|
|
patternProperties:
|
|
"^(ethernet-)?ports$":
|
|
type: object
|
|
unevaluatedProperties: false
|
|
|
|
properties:
|
|
'#address-cells':
|
|
const: 1
|
|
'#size-cells':
|
|
const: 0
|
|
|
|
patternProperties:
|
|
"^(ethernet-)?port@[0-9a-f]+$":
|
|
type: object
|
|
description: Ethernet switch ports
|
|
|
|
required:
|
|
- "#address-cells"
|
|
- "#size-cells"
|
|
|
|
oneOf:
|
|
- required:
|
|
- ports
|
|
- required:
|
|
- ethernet-ports
|
|
|
|
additionalProperties: true
|
|
|
|
$defs:
|
|
ethernet-ports:
|
|
description: An ethernet switch without any extra port properties
|
|
$ref: '#'
|
|
|
|
patternProperties:
|
|
"^(ethernet-)?ports$":
|
|
patternProperties:
|
|
"^(ethernet-)?port@[0-9a-f]+$":
|
|
description: Ethernet switch ports
|
|
$ref: ethernet-switch-port.yaml#
|
|
unevaluatedProperties: false
|
|
|
|
...
|