1c66ec88fSEmmanuel Vadot# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause 2c66ec88fSEmmanuel Vadot%YAML 1.2 3c66ec88fSEmmanuel Vadot--- 4c66ec88fSEmmanuel Vadot$id: http://devicetree.org/schemas/net/qcom,ipq8064-mdio.yaml# 5c66ec88fSEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml# 6c66ec88fSEmmanuel Vadot 7c66ec88fSEmmanuel Vadottitle: Qualcomm ipq806x MDIO bus controller 8c66ec88fSEmmanuel Vadot 9c66ec88fSEmmanuel Vadotmaintainers: 10c66ec88fSEmmanuel Vadot - Ansuel Smith <ansuelsmth@gmail.com> 11c66ec88fSEmmanuel Vadot 12c66ec88fSEmmanuel Vadotdescription: 13c66ec88fSEmmanuel Vadot The ipq806x soc have a MDIO dedicated controller that is 14c66ec88fSEmmanuel Vadot used to communicate with the gmac phy connected. 15c66ec88fSEmmanuel Vadot 16c66ec88fSEmmanuel VadotallOf: 17*fac71e4eSEmmanuel Vadot - $ref: mdio.yaml# 18c66ec88fSEmmanuel Vadot 19c66ec88fSEmmanuel Vadotproperties: 20c66ec88fSEmmanuel Vadot compatible: 21c66ec88fSEmmanuel Vadot const: qcom,ipq8064-mdio 22c66ec88fSEmmanuel Vadot 23c66ec88fSEmmanuel Vadot reg: 24c66ec88fSEmmanuel Vadot maxItems: 1 25c66ec88fSEmmanuel Vadot 26c66ec88fSEmmanuel Vadot clocks: 27c66ec88fSEmmanuel Vadot maxItems: 1 28c66ec88fSEmmanuel Vadot 29c66ec88fSEmmanuel Vadotrequired: 30c66ec88fSEmmanuel Vadot - compatible 31c66ec88fSEmmanuel Vadot - reg 32c66ec88fSEmmanuel Vadot - clocks 33c66ec88fSEmmanuel Vadot - "#address-cells" 34c66ec88fSEmmanuel Vadot - "#size-cells" 35c66ec88fSEmmanuel Vadot 366be33864SEmmanuel VadotunevaluatedProperties: false 376be33864SEmmanuel Vadot 38c66ec88fSEmmanuel Vadotexamples: 39c66ec88fSEmmanuel Vadot - | 40c66ec88fSEmmanuel Vadot #include <dt-bindings/clock/qcom,gcc-ipq806x.h> 41c66ec88fSEmmanuel Vadot 42c66ec88fSEmmanuel Vadot mdio0: mdio@37000000 { 43c66ec88fSEmmanuel Vadot #address-cells = <1>; 44c66ec88fSEmmanuel Vadot #size-cells = <0>; 45c66ec88fSEmmanuel Vadot 46c66ec88fSEmmanuel Vadot compatible = "qcom,ipq8064-mdio"; 47c66ec88fSEmmanuel Vadot reg = <0x37000000 0x200000>; 48c66ec88fSEmmanuel Vadot 49c66ec88fSEmmanuel Vadot clocks = <&gcc GMAC_CORE1_CLK>; 50c66ec88fSEmmanuel Vadot 51c66ec88fSEmmanuel Vadot switch@10 { 52c66ec88fSEmmanuel Vadot compatible = "qca,qca8337"; 53c66ec88fSEmmanuel Vadot reg = <0x10>; 548cc087a1SEmmanuel Vadot 558cc087a1SEmmanuel Vadot ports { 56*fac71e4eSEmmanuel Vadot #address-cells = <1>; 57*fac71e4eSEmmanuel Vadot #size-cells = <0>; 58c66ec88fSEmmanuel Vadot /* ... */ 59c66ec88fSEmmanuel Vadot }; 60c66ec88fSEmmanuel Vadot }; 618cc087a1SEmmanuel Vadot }; 62