Marvell Prestera switch family
Schema identifier ($id): "http://devicetree.org/schemas/net/marvell,prestera.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Miquel Raynal <miquel.raynal@bootlin.com>"
Properties and child nodes (properties) #
compatible — required here #
Exactly one of these rules must match (oneOf) #
Rule 1
Array item rules (
items)Item 1
Allowed values (
enum):"marvell,prestera-98dx3236","marvell,prestera-98dx3336","marvell,prestera-98dx4251"Item 2
Exact value (
const):"marvell,prestera"
Rule 2
Allowed values (
enum):"pci11ab,c804","pci11ab,c80c","pci11ab,cc1e"
reg — required here #
Maximum number of items (maxItems): 1
interrupts — not listed as required here #
Maximum number of items (maxItems): 3
dfx — not listed as required here #
Reference to the DFX Server bus node.
Shared schema rule ($ref): /schemas/types.yaml#/definitions/phandle
nvmem-cells — not listed as required here #
true — No constraints added by this property rule.
nvmem-cell-names — not listed as required here #
true — No constraints added by this property rule.
Condition (if) #
Properties and child nodes (
properties) #
compatible— not listed as required here #Rule for matching array elements (
contains)Exact value (
const):"marvell,prestera"
When the condition matches (then) #
Properties and child nodes (
properties) #
nvmem-cells— not listed as required here #
false— Not permitted by this property rule.
nvmem-cell-names— not listed as required here #
false— Not permitted by this property rule.
When the condition does not match (else) #
Properties and child nodes (
properties) #
interrupts— not listed as required here #
false— Not permitted by this property rule.
dfx— not listed as required here #
false— Not permitted by this property rule.
Required in this object (required): "compatible", "reg"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
Value type (
type):"object"
Examples (examples) #
packet-processor@0 {
compatible = "marvell,prestera-98dx3236", "marvell,prestera";
reg = <0 0x4000000>;
interrupts = <33>, <34>, <35>;
dfx = <&dfx>;
};
pcie@0 {
#address-cells = <3>;
#size-cells = <2>;
ranges = <0x02000000 0x0 0x100000 0x10000000 0x0 0x0>;
reg = <0x0 0x1000>;
device_type = "pci";
switch@0,0 {
reg = <0x0 0x0 0x0 0x0 0x0>;
compatible = "pci11ab,c80c";
nvmem-cells = <&mac_address 0>;
nvmem-cell-names = "mac-address";
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
Line 46: Memory mapped AlleyCat3 family
Line 54: PCI Aldrin family
Line 64: Ports can also be described