diff options
author | Lubomir Rintel <lkundrak@v3.sk> | 2020-03-17 12:39:14 +0300 |
---|---|---|
committer | Rob Herring <robh@kernel.org> | 2020-03-31 18:03:33 +0300 |
commit | d0539d208de818662437be670b3ad32ad2dae26f (patch) | |
tree | c0030a31a2ff7615aa546b070b95627a38e5f475 /Documentation/devicetree/bindings/phy/marvell,mmp3-usb-phy.yaml | |
parent | cdcbb193883461273c78cec918c15bd916a2c85c (diff) | |
download | linux-d0539d208de818662437be670b3ad32ad2dae26f.tar.xz |
dt-bindings: phy: Convert phy-mmp3-usb to json-schema
A rather straightforward conversion of the phy-mmp3-usb binding to DT
schema format using json-schema.
Signed-off-by: Lubomir Rintel <lkundrak@v3.sk>
[robh: add additionalProperties]
Signed-off-by: Rob Herring <robh@kernel.org>
Diffstat (limited to 'Documentation/devicetree/bindings/phy/marvell,mmp3-usb-phy.yaml')
-rw-r--r-- | Documentation/devicetree/bindings/phy/marvell,mmp3-usb-phy.yaml | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/Documentation/devicetree/bindings/phy/marvell,mmp3-usb-phy.yaml b/Documentation/devicetree/bindings/phy/marvell,mmp3-usb-phy.yaml new file mode 100644 index 000000000000..c97043eaa8fb --- /dev/null +++ b/Documentation/devicetree/bindings/phy/marvell,mmp3-usb-phy.yaml @@ -0,0 +1,42 @@ +# SPDX-License-Identifier: (GPL-2.0-or-later OR BSD-2-Clause) +# Copyright 2019,2020 Lubomir Rintel <lkundrak@v3.sk> +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/phy/marvell,mmp3-usb-phy.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Marvell MMP3 USB PHY bindings + +maintainers: + - Lubomir Rintel <lkundrak@v3.sk> + +properties: + $nodename: + pattern: '^usb-phy@[a-f0-9]+$' + + compatible: + const: marvell,mmp3-usb-phy + + reg: + maxItems: 1 + description: base address of the device + + '#phy-cells': + const: 0 + +required: + - compatible + - reg + - '#phy-cells' + +additionalProperties: false + +examples: + - | + usb-phy@d4207000 { + compatible = "marvell,mmp3-usb-phy"; + reg = <0xd4207000 0x40>; + #phy-cells = <0>; + }; + +... |