Tom Rini | 53633a8 | 2024-02-29 12:33:36 -0500 | [diff] [blame] | 1 | # SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause |
| 2 | %YAML 1.2 |
| 3 | --- |
| 4 | $id: http://devicetree.org/schemas/net/qcom,ipq8064-mdio.yaml# |
| 5 | $schema: http://devicetree.org/meta-schemas/core.yaml# |
| 6 | |
| 7 | title: Qualcomm ipq806x MDIO bus controller |
| 8 | |
| 9 | maintainers: |
| 10 | - Ansuel Smith <ansuelsmth@gmail.com> |
| 11 | |
| 12 | description: |
| 13 | The ipq806x soc have a MDIO dedicated controller that is |
| 14 | used to communicate with the gmac phy connected. |
| 15 | |
| 16 | allOf: |
| 17 | - $ref: mdio.yaml# |
| 18 | |
| 19 | properties: |
| 20 | compatible: |
| 21 | const: qcom,ipq8064-mdio |
| 22 | |
| 23 | reg: |
| 24 | maxItems: 1 |
| 25 | |
| 26 | clocks: |
| 27 | maxItems: 1 |
| 28 | |
| 29 | required: |
| 30 | - compatible |
| 31 | - reg |
| 32 | - clocks |
| 33 | - "#address-cells" |
| 34 | - "#size-cells" |
| 35 | |
| 36 | unevaluatedProperties: false |
| 37 | |
| 38 | examples: |
| 39 | - | |
| 40 | #include <dt-bindings/clock/qcom,gcc-ipq806x.h> |
| 41 | |
| 42 | mdio0: mdio@37000000 { |
| 43 | #address-cells = <1>; |
| 44 | #size-cells = <0>; |
| 45 | |
| 46 | compatible = "qcom,ipq8064-mdio"; |
| 47 | reg = <0x37000000 0x200000>; |
| 48 | |
| 49 | clocks = <&gcc GMAC_CORE1_CLK>; |
| 50 | |
| 51 | switch@10 { |
| 52 | compatible = "qca,qca8337"; |
| 53 | reg = <0x10>; |
| 54 | |
| 55 | ports { |
| 56 | #address-cells = <1>; |
| 57 | #size-cells = <0>; |
| 58 | /* ... */ |
| 59 | }; |
| 60 | }; |
| 61 | }; |