Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Lubomir Rintel and committed by
Rob Herring
d0539d20 cdcbb193

+42 -13
+42
Documentation/devicetree/bindings/phy/marvell,mmp3-usb-phy.yaml
··· 1 + # SPDX-License-Identifier: (GPL-2.0-or-later OR BSD-2-Clause) 2 + # Copyright 2019,2020 Lubomir Rintel <lkundrak@v3.sk> 3 + %YAML 1.2 4 + --- 5 + $id: http://devicetree.org/schemas/phy/marvell,mmp3-usb-phy.yaml# 6 + $schema: http://devicetree.org/meta-schemas/core.yaml# 7 + 8 + title: Marvell MMP3 USB PHY bindings 9 + 10 + maintainers: 11 + - Lubomir Rintel <lkundrak@v3.sk> 12 + 13 + properties: 14 + $nodename: 15 + pattern: '^usb-phy@[a-f0-9]+$' 16 + 17 + compatible: 18 + const: marvell,mmp3-usb-phy 19 + 20 + reg: 21 + maxItems: 1 22 + description: base address of the device 23 + 24 + '#phy-cells': 25 + const: 0 26 + 27 + required: 28 + - compatible 29 + - reg 30 + - '#phy-cells' 31 + 32 + additionalProperties: false 33 + 34 + examples: 35 + - | 36 + usb-phy@d4207000 { 37 + compatible = "marvell,mmp3-usb-phy"; 38 + reg = <0xd4207000 0x40>; 39 + #phy-cells = <0>; 40 + }; 41 + 42 + ...
-13
Documentation/devicetree/bindings/phy/phy-mmp3-usb.txt
··· 1 - Marvell MMP3 USB PHY 2 - -------------------- 3 - 4 - Required properties: 5 - - compatible: must be "marvell,mmp3-usb-phy" 6 - - #phy-cells: must be 0 7 - 8 - Example: 9 - usb-phy: usb-phy@d4207000 { 10 - compatible = "marvell,mmp3-usb-phy"; 11 - reg = <0xd4207000 0x40>; 12 - #phy-cells = <0>; 13 - };