[PATCH v2 10/11] dt-bindings: net: dwmac: Deprecate the PHY reset properties

Maxime Ripard
2019-06-10T09:30:35Z

Even though the DWMAC driver uses some driver specific properties, the PHY
core has a bunch of generic properties and can deal with them nicely.

Let's deprecate our specific properties.

Signed-off-by: Maxime Ripard <maxime.ripard@bootlin.com>

---

Changes from v1:
- New patch
---
Documentation/devicetree/bindings/net/snps,dwmac.yaml | 54 ++++++------
1 file changed, 30 insertions(+), 24 deletions(-)

diff --git a/Documentation/devicetree/bindings/net/snps,dwmac.yaml b/Documentation/devicetree/bindings/net/snps,dwmac.yaml
index c48a089edc21..a2d56e8a7a39 100644
--- a/Documentation/devicetree/bindings/net/snps,dwmac.yaml
+++ b/Documentation/devicetree/bindings/net/snps,dwmac.yaml
@@ -171,26 +171,6 @@ properties:
* snps,low_credit, max read outstanding req. limit
* snps,priority, TX queue priority (Range 0x0 to 0xF)

- snps,reset-gpio:
- maxItems: 1
- description:
- PHY Reset GPIO
-
- snps,reset-active-low:
- $ref: /schemas/types.yaml#definitions/flag
- description:
- Indicates that the PHY Reset is active low
-
- snps,reset-delays-us:
- allOf:
- - $ref: /schemas/types.yaml#definitions/uint32-array
- - minItems: 3
- maxItems: 3
- description:
- Triplet of delays. The 1st cell is reset pre-delay in micro
- seconds. The 2nd cell is reset pulse in micro seconds. The 3rd
- cell is reset post-delay in micro seconds.
-
snps,aal:
$ref: /schemas/types.yaml#definitions/flag
description:
@@ -253,6 +233,36 @@ properties:
required:
- compatible

+ ## Deprecated properties
+ #
+ # Deprecated in favor of ethernet phy's reset-gpios property
+ # snps,reset-gpio:
+ # maxItems: 1
+ # description:
+ # PHY Reset GPIO
+
+ # Deprecated in favor of ethernet phy's reset-gpios property
+ # snps,reset-active-low:
+ # $ref: /schemas/types.yaml#definitions/flag
+ # description:
+ # Indicates that the PHY Reset is active low
+
+ # Deprecated in favor of ethernet phy's reset-assert-us and
+ # reset-deassert-us properties
+ # snps,reset-delays-us:
+ # allOf:
+ # - $ref: /schemas/types.yaml#definitions/uint32-array
+ # - minItems: 3
+ # maxItems: 3
+ # description:
+ # Triplet of delays. The 1st cell is reset pre-delay in micro
+ # seconds. The 2nd cell is reset pulse in micro seconds. The 3rd
+ # cell is reset post-delay in micro seconds.
+
+# dependencies:
+# snps,reset-active-low: ["snps,reset-gpio"]
+# snps,reset-delay-us: ["snps,reset-gpio"]
+
required:
- compatible
- reg
@@ -260,10 +270,6 @@ required:
- interrupt-names
- phy-mode

-dependencies:
- snps,reset-active-low: ["snps,reset-gpio"]
- snps,reset-delay-us: ["snps,reset-gpio"]
-
allOf:
- $ref: "ethernet-controller.yaml#"
- if:
--
git-series 0.9.1