-
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: davinci-mdio: convert bindings to json-schema
Now that we have the DT validation in place, let's convert the device tree bindings for the TI SoC Davinci/OMAP/Keystone2 MDIO Controllerr over to a YAML schemas. Signed-off-by: Grygorii Strashko <grygorii.strashko@ti.com> Reviewed-by: Simon Horman <simon.horman@netronome.com> Signed-off-by: Rob Herring <robh@kernel.org>
- Loading branch information
Grygorii Strashko
authored and
Rob Herring
committed
Nov 6, 2019
1 parent
454f5d9
commit 6453ae7
Showing
2 changed files
with
71 additions
and
36 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
71 changes: 71 additions & 0 deletions
71
Documentation/devicetree/bindings/net/ti,davinci-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,71 @@ | ||
# SPDX-License-Identifier: GPL-2.0 | ||
%YAML 1.2 | ||
--- | ||
$id: http://devicetree.org/schemas/net/ti,davinci-mdio.yaml# | ||
$schema: http://devicetree.org/meta-schemas/core.yaml# | ||
|
||
title: TI SoC Davinci/Keystone2 MDIO Controller | ||
|
||
maintainers: | ||
- Grygorii Strashko <grygorii.strashko@ti.com> | ||
|
||
description: | ||
TI SoC Davinci/Keystone2 MDIO Controller | ||
|
||
allOf: | ||
- $ref: "mdio.yaml#" | ||
|
||
properties: | ||
compatible: | ||
oneOf: | ||
- const: ti,davinci_mdio | ||
- items: | ||
- const: ti,keystone_mdio | ||
- const: ti,davinci_mdio | ||
- items: | ||
- const: ti,cpsw-mdio | ||
- const: ti,davinci_mdio | ||
- items: | ||
- const: ti,am4372-mdio | ||
- const: ti,cpsw-mdio | ||
- const: ti,davinci_mdio | ||
|
||
reg: | ||
maxItems: 1 | ||
|
||
bus_freq: | ||
maximum: 2500000 | ||
description: | ||
MDIO Bus frequency | ||
|
||
ti,hwmods: | ||
description: TI hwmod name | ||
deprecated: true | ||
allOf: | ||
- $ref: /schemas/types.yaml#/definitions/string-array | ||
- items: | ||
const: davinci_mdio | ||
|
||
if: | ||
properties: | ||
compatible: | ||
contains: | ||
const: ti,davinci_mdio | ||
required: | ||
- bus_freq | ||
|
||
required: | ||
- compatible | ||
- reg | ||
- "#address-cells" | ||
- "#size-cells" | ||
|
||
examples: | ||
- | | ||
davinci_mdio: mdio@4a101000 { | ||
compatible = "ti,davinci_mdio"; | ||
#address-cells = <1>; | ||
#size-cells = <0>; | ||
reg = <0x4a101000 0x1000>; | ||
bus_freq = <1000000>; | ||
}; |