Skip to content

Commit 4c3d05d

Browse files
robherringvinodkoul
authored andcommitted
dt-bindings: phy: Convert brcm,sr-usb-combo-phy to DT schema
Convert the Broadcom Stingray USB PHY binding to DT schema format. It's a straight forward conversion. Signed-off-by: Rob Herring (Arm) <[email protected]> Reviewed-by: Florian Fainelli <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Vinod Koul <[email protected]>
1 parent 99dd7fa commit 4c3d05d

File tree

2 files changed

+65
-32
lines changed

2 files changed

+65
-32
lines changed
Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2+
%YAML 1.2
3+
---
4+
$id: http://devicetree.org/schemas/phy/brcm,sr-usb-combo-phy.yaml#
5+
$schema: http://devicetree.org/meta-schemas/core.yaml#
6+
7+
title: Broadcom Stingray USB PHY
8+
9+
maintainers:
10+
- Ray Jui <[email protected]>
11+
- Scott Branden <[email protected]>
12+
13+
properties:
14+
compatible:
15+
enum:
16+
- brcm,sr-usb-combo-phy
17+
- brcm,sr-usb-hs-phy
18+
19+
reg:
20+
maxItems: 1
21+
22+
'#phy-cells':
23+
description: PHY cell count indicating PHY type
24+
enum: [ 0, 1 ]
25+
26+
required:
27+
- compatible
28+
- reg
29+
- '#phy-cells'
30+
31+
allOf:
32+
- if:
33+
properties:
34+
compatible:
35+
contains:
36+
const: brcm,sr-usb-combo-phy
37+
then:
38+
properties:
39+
'#phy-cells':
40+
const: 1
41+
- if:
42+
properties:
43+
compatible:
44+
contains:
45+
const: brcm,sr-usb-hs-phy
46+
then:
47+
properties:
48+
'#phy-cells':
49+
const: 0
50+
51+
additionalProperties: false
52+
53+
examples:
54+
- |
55+
usb-phy@0 {
56+
compatible = "brcm,sr-usb-combo-phy";
57+
reg = <0x00000000 0x100>;
58+
#phy-cells = <1>;
59+
};
60+
- |
61+
usb-phy@20000 {
62+
compatible = "brcm,sr-usb-hs-phy";
63+
reg = <0x00020000 0x100>;
64+
#phy-cells = <0>;
65+
};

Documentation/devicetree/bindings/phy/brcm,stingray-usb-phy.txt

Lines changed: 0 additions & 32 deletions
This file was deleted.

0 commit comments

Comments
 (0)