From ff68cd053102d257c5fb0e7119ac3ba7d4cbb647 Mon Sep 17 00:00:00 2001 From: Christian Marangi Date: Thu, 18 Jun 2026 14:46:08 +0200 Subject: [PATCH] schemas: net: add PCS producer/consumer common property Add simple schemas to document the common property of a Network PCS producer/consumer with related cells and pcs-handle/pcs-names. Signed-off-by: Christian Marangi --- dtschema/schemas/net/pcs-consumer.yaml | 25 +++++++++++++++++++++++++ dtschema/schemas/net/pcs-provider.yaml | 19 +++++++++++++++++++ 2 files changed, 44 insertions(+) create mode 100644 dtschema/schemas/net/pcs-consumer.yaml create mode 100644 dtschema/schemas/net/pcs-provider.yaml diff --git a/dtschema/schemas/net/pcs-consumer.yaml b/dtschema/schemas/net/pcs-consumer.yaml new file mode 100644 index 0000000..5880f56 --- /dev/null +++ b/dtschema/schemas/net/pcs-consumer.yaml @@ -0,0 +1,25 @@ +# SPDX-License-Identifier: BSD-2-Clause +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/net/pcs-consumer.yaml# +$schema: http://devicetree.org/meta-schemas/base.yaml# + +title: PCS Consumer Common Properties + +maintainers: + - Christian Marangi + +# always select the core schema +select: true + +properties: + pcs-handle: + $ref: /schemas/types.yaml#/definitions/phandle-array + + pcs-names: + $ref: /schemas/types.yaml#/definitions/string-array + +dependencies: + pcs-names: [ pcs-handle ] + +additionalProperties: true diff --git a/dtschema/schemas/net/pcs-provider.yaml b/dtschema/schemas/net/pcs-provider.yaml new file mode 100644 index 0000000..8b09165 --- /dev/null +++ b/dtschema/schemas/net/pcs-provider.yaml @@ -0,0 +1,19 @@ +# SPDX-License-Identifier: BSD-2-Clause +--- +$id: http://devicetree.org/schemas/net/pcs-provider.yaml# +$schema: http://devicetree.org/meta-schemas/base.yaml# + +title: PCS Provider Common Properties + +maintainers: + - Christian Marangi + +# always select the core schema +select: true + +properties: + '#pcs-cells': true + +additionalProperties: true + +...