-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
dt-bindings: net: Add ipq806x mdio bindings
Add documentations for ipq806x mdio driver. Signed-off-by: Ansuel Smith <ansuelsmth@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
- Loading branch information
Ansuel Smith
authored and
David S. Miller
committed
Mar 7, 2020
1 parent
caaa71f
commit ae9e82c
Showing
1 changed file
with
53 additions
and
0 deletions.
There are no files selected for viewing
53 changes: 53 additions & 0 deletions
53
Documentation/devicetree/bindings/net/qcom,ipq8064-mdio.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause | ||
%YAML 1.2 | ||
--- | ||
$id: http://devicetree.org/schemas/net/qcom,ipq8064-mdio.yaml# | ||
$schema: http://devicetree.org/meta-schemas/core.yaml# | ||
|
||
title: Qualcomm ipq806x MDIO bus controller | ||
|
||
maintainers: | ||
- Ansuel Smith <ansuelsmth@gmail.com> | ||
|
||
description: | ||
The ipq806x soc have a MDIO dedicated controller that is | ||
used to communicate with the gmac phy connected. | ||
|
||
allOf: | ||
- $ref: "mdio.yaml#" | ||
|
||
properties: | ||
compatible: | ||
const: qcom,ipq8064-mdio | ||
|
||
reg: | ||
maxItems: 1 | ||
|
||
clocks: | ||
maxItems: 1 | ||
|
||
required: | ||
- compatible | ||
- reg | ||
- clocks | ||
- "#address-cells" | ||
- "#size-cells" | ||
|
||
examples: | ||
- | | ||
#include <dt-bindings/clock/qcom,gcc-ipq806x.h> | ||
mdio0: mdio@37000000 { | ||
#address-cells = <1>; | ||
#size-cells = <0>; | ||
compatible = "qcom,ipq8064-mdio"; | ||
reg = <0x37000000 0x200000>; | ||
clocks = <&gcc GMAC_CORE1_CLK>; | ||
switch@10 { | ||
compatible = "qca,qca8337"; | ||
/* ... */ | ||
}; | ||
}; |