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

dt-bindings: usb: Convert ehci-mv to json-schema

A straightforward conversion of the ehci-mv binding to DT schema format
using json-schema.

Signed-off-by: Lubomir Rintel <lkundrak@v3.sk>
[robh: add unevaluatedProperties]
Signed-off-by: Rob Herring <robh@kernel.org>

authored by

Lubomir Rintel and committed by
Rob Herring
ece9e068 7882d822

+62 -23
-23
Documentation/devicetree/bindings/usb/ehci-mv.txt
··· 1 - * Marvell PXA/MMP EHCI controller. 2 - 3 - Required properties: 4 - 5 - - compatible: must be "marvell,pxau2o-ehci" 6 - - reg: physical base addresses of the controller and length of memory mapped region 7 - - interrupts: one EHCI controller interrupt should be described here 8 - - clocks: phandle list of usb clocks 9 - - clock-names: should be "USBCLK" 10 - - phys: phandle for the PHY device 11 - - phy-names: should be "usb" 12 - 13 - Example: 14 - 15 - ehci0: usb-ehci@d4208000 { 16 - compatible = "marvell,pxau2o-ehci"; 17 - reg = <0xd4208000 0x200>; 18 - interrupts = <44>; 19 - clocks = <&soc_clocks MMP2_CLK_USB>; 20 - clock-names = "USBCLK"; 21 - phys = <&usb_otg_phy>; 22 - phy-names = "usb"; 23 - };
+62
Documentation/devicetree/bindings/usb/marvell,pxau2o-ehci.yaml
··· 1 + # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 2 + # Copyright 2019,2020 Lubomir Rintel <lkundrak@v3.sk> 3 + %YAML 1.2 4 + --- 5 + $id: http://devicetree.org/schemas/usb/marvell,pxau2o-ehci.yaml# 6 + $schema: http://devicetree.org/meta-schemas/core.yaml# 7 + 8 + title: Marvell PXA/MMP EHCI bindings 9 + 10 + maintainers: 11 + - Lubomir Rintel <lkundrak@v3.sk> 12 + 13 + allOf: 14 + - $ref: usb-hcd.yaml# 15 + 16 + properties: 17 + compatible: 18 + const: marvell,pxau2o-ehci 19 + 20 + reg: 21 + maxItems: 1 22 + 23 + interrupts: 24 + maxItems: 1 25 + 26 + clocks: 27 + maxItems: 1 28 + 29 + clock-names: 30 + const: USBCLK 31 + 32 + phys: 33 + maxItems: 1 34 + 35 + phy-names: 36 + const: usb 37 + 38 + required: 39 + - compatible 40 + - reg 41 + - interrupts 42 + - clocks 43 + - clock-names 44 + - phys 45 + - phy-names 46 + 47 + unevaluatedProperties: false 48 + 49 + examples: 50 + - | 51 + #include <dt-bindings/clock/marvell,mmp2.h> 52 + usb@d4208000 { 53 + compatible = "marvell,pxau2o-ehci"; 54 + reg = <0xd4208000 0x200>; 55 + interrupts = <44>; 56 + clocks = <&soc_clocks MMP2_CLK_USB>; 57 + clock-names = "USBCLK"; 58 + phys = <&usb_otg_phy>; 59 + phy-names = "usb"; 60 + }; 61 + 62 + ...