Skip to content

Commit 99dd7fa

Browse files
robherringvinodkoul
authored andcommitted
dt-bindings: phy: Convert ti,da830-usb-phy to DT schema
Convert the TI DA830 USB PHY binding to DT schema format. Add "clocks" and "clock-names" which are already in use. As they are always present, make them required as well. Signed-off-by: Rob Herring (Arm) <[email protected]> Reviewed-by: David Lechner <[email protected]> Reviewed-by: Krzysztof Kozlowski <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Vinod Koul <[email protected]>
1 parent a91ec5e commit 99dd7fa

File tree

2 files changed

+53
-40
lines changed

2 files changed

+53
-40
lines changed

Documentation/devicetree/bindings/phy/phy-da8xx-usb.txt

Lines changed: 0 additions & 40 deletions
This file was deleted.
Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2+
%YAML 1.2
3+
---
4+
$id: http://devicetree.org/schemas/phy/ti,da830-usb-phy.yaml#
5+
$schema: http://devicetree.org/meta-schemas/core.yaml#
6+
7+
title: TI DA8xx/OMAP-L1xx/AM18xx USB PHY
8+
9+
maintainers:
10+
- David Lechner <[email protected]>
11+
12+
description: >
13+
This device controls the PHY for both the USB 1.1 OHCI and USB 2.0 OTG
14+
controllers on DA8xx SoCs.
15+
16+
It also requires a "syscon" node with compatible = "ti,da830-cfgchip", "syscon"
17+
to access the CFGCHIP2 register.
18+
19+
properties:
20+
compatible:
21+
items:
22+
- const: ti,da830-usb-phy
23+
24+
'#phy-cells':
25+
const: 1
26+
description:
27+
Consumers of this device should use index 0 for the USB 2.0 phy device and
28+
index 1 for the USB 1.1 phy device.
29+
30+
clocks:
31+
maxItems: 2
32+
33+
clock-names:
34+
items:
35+
- const: usb0_clk48
36+
- const: usb1_clk48
37+
38+
required:
39+
- compatible
40+
- '#phy-cells'
41+
- clocks
42+
- clock-names
43+
44+
additionalProperties: false
45+
46+
examples:
47+
- |
48+
usb-phy {
49+
compatible = "ti,da830-usb-phy";
50+
#phy-cells = <1>;
51+
clocks = <&usb_phy_clk 0>, <&usb_phy_clk 1>;
52+
clock-names = "usb0_clk48", "usb1_clk48";
53+
};

0 commit comments

Comments
 (0)