[net-next PATCH v15 03/12] dt-bindings: net: dsa: Document support for Airoha AN8855 DSA Switch
Rob Herring
robh at kernel.org
Fri Jun 27 14:46:07 PDT 2025
On Thu, Jun 26, 2025 at 11:23:02PM +0200, Christian Marangi wrote:
> Document support for Airoha AN8855 5-port Gigabit Switch.
>
> It does expose the 5 Internal PHYs on the MDIO bus and each port
> can access the Switch register space by configurting the PHY page.
>
> Signed-off-by: Christian Marangi <ansuelsmth at gmail.com>
> ---
> .../net/dsa/airoha,an8855-switch.yaml | 86 +++++++++++++++++++
> 1 file changed, 86 insertions(+)
> create mode 100644 Documentation/devicetree/bindings/net/dsa/airoha,an8855-switch.yaml
>
> diff --git a/Documentation/devicetree/bindings/net/dsa/airoha,an8855-switch.yaml b/Documentation/devicetree/bindings/net/dsa/airoha,an8855-switch.yaml
> new file mode 100644
> index 000000000000..fbb9219fadae
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/net/dsa/airoha,an8855-switch.yaml
> @@ -0,0 +1,86 @@
> +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
> +%YAML 1.2
> +---
> +$id: http://devicetree.org/schemas/net/dsa/airoha,an8855-switch.yaml#
> +$schema: http://devicetree.org/meta-schemas/core.yaml#
> +
> +title: Airoha AN8855 Gigabit Switch
> +
> +maintainers:
> + - Christian Marangi <ansuelsmth at gmail.com>
> +
> +description: >
> + Airoha AN8855 is a 5-port Gigabit Switch.
> +
> + It does expose the 5 Internal PHYs on the MDIO bus and each port
> + can access the Switch register space by configurting the PHY page.
> +
> +$ref: dsa.yaml#/$defs/ethernet-ports
> +
> +properties:
> + compatible:
> + const: airoha,an8855-switch
> +
> +required:
> + - compatible
> +
> +unevaluatedProperties: false
> +
> +examples:
> + - |
> + ethernet-switch {
> + compatible = "airoha,an8855-switch";
> +
> + ports {
ethernet-ports is preferred.
> + #address-cells = <1>;
> + #size-cells = <0>;
> +
> + port at 0 {
And ethernet-port at 0
Reviewed-by: Rob Herring (Arm) <robh at kernel.org>
More information about the Linux-mediatek
mailing list