On Fri, 25 Dec 2020 15:52:48 +0800, Chunfeng Yun wrote:
Convert usb-device.txt to YAML schema usb-device.yaml
Signed-off-by: Chunfeng Yun chunfeng.yun@mediatek.com
v5: changes suggested by Rob:
- limit the pattern length
- remove properties description for hard wired USB devices in usb-hcd.yaml
depends on series: https://patchwork.kernel.org/project/linux-usb/list/?series=399561 [v6,00/19] dt-bindings: usb: Add generic USB HCD, xHCI, DWC USB3 DT schema
v4: no changes, update dependent series: https://patchwork.kernel.org/project/linux-usb/list/?series=399561 [v6,00/19] dt-bindings: usb: Add generic USB HCD, xHCI, DWC USB3 DT schema
v3:
- remove $nodenmae and items key word for compatilbe;
- add additionalProperties;
The followings are suggested by Rob: 3. merge the following patch [v2,1/4] dt-bindings: usb: convert usb-device.txt to YAML schema [v2,2/4] dt-bindings: usb: add properties for hard wired devices 4. define the unit-address for hard-wired device in usb-hcd.yaml, also define its 'reg' and 'compatible'; 5. This series is base on Serge's series: https://patchwork.kernel.org/project/linux-usb/cover/20201111090853.14112-1-... [v4,00/18] dt-bindings: usb: Add generic USB HCD, xHCI, DWC USB3 DT schema
v2 changes suggested by Rob:
- modify pattern to support any USB class
- convert usb-device.txt into usb-device.yaml
.../devicetree/bindings/usb/usb-device.txt | 102 -------------- .../devicetree/bindings/usb/usb-device.yaml | 124 ++++++++++++++++++ .../devicetree/bindings/usb/usb-hcd.yaml | 19 +++ 3 files changed, 143 insertions(+), 102 deletions(-) delete mode 100644 Documentation/devicetree/bindings/usb/usb-device.txt create mode 100644 Documentation/devicetree/bindings/usb/usb-device.yaml
Reviewed-by: Rob Herring robh@kernel.org