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