[net-next PATCH v14 02/16] dt-bindings: net: Document support for Airoha AN8855 Switch Virtual MDIO
Christian Marangi
ansuelsmth at gmail.com
Tue Apr 8 02:51:09 PDT 2025
Document support for Airoha AN8855 Virtual MDIO Passtrough. This is needed
as AN8855 require special handling as the same address on the MDIO bus is
shared for both Switch and PHY and special handling for the page
configuration is needed to switch accessing to Switch address space
or PHY.
Signed-off-by: Christian Marangi <ansuelsmth at gmail.com>
Reviewed-by: Rob Herring (Arm) <robh at kernel.org>
---
.../bindings/net/airoha,an8855-mdio.yaml | 56 +++++++++++++++++++
1 file changed, 56 insertions(+)
create mode 100644 Documentation/devicetree/bindings/net/airoha,an8855-mdio.yaml
diff --git a/Documentation/devicetree/bindings/net/airoha,an8855-mdio.yaml b/Documentation/devicetree/bindings/net/airoha,an8855-mdio.yaml
new file mode 100644
index 000000000000..3078277bf478
--- /dev/null
+++ b/Documentation/devicetree/bindings/net/airoha,an8855-mdio.yaml
@@ -0,0 +1,56 @@
+# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/net/airoha,an8855-mdio.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: Airoha AN8855 MDIO Passtrough
+
+maintainers:
+ - Christian Marangi <ansuelsmth at gmail.com>
+
+description:
+ Airoha AN8855 Virtual MDIO Passtrough. This is needed as AN8855
+ require special handling as the same address on the MDIO bus is
+ shared for both Switch and PHY and special handling for the page
+ configuration is needed to switch accessing to Switch address space
+ or PHY.
+
+$ref: /schemas/net/mdio.yaml#
+
+properties:
+ compatible:
+ const: airoha,an8855-mdio
+
+required:
+ - compatible
+
+unevaluatedProperties: false
+
+examples:
+ - |
+ mdio {
+ compatible = "airoha,an8855-mdio";
+ #address-cells = <1>;
+ #size-cells = <0>;
+
+ internal_phy1: phy at 1 {
+ reg = <1>;
+ };
+
+ internal_phy2: phy at 2 {
+ reg = <2>;
+ };
+
+ internal_phy3: phy at 3 {
+ reg = <3>;
+ };
+
+ internal_phy4: phy at 4 {
+ reg = <4>;
+ };
+
+ internal_phy5: phy at 5 {
+ reg = <5>;
+ };
+ };
--
2.48.1
More information about the Linux-mediatek
mailing list