[PATCH 2/7] dt-bindings: phy: ti,am335x-usb-phy: Convert to DT schema
Bhargav Joshi <[email protected]>
| Newsgroups | org.kernel.vger.dmaengine,org.infradead.lists.linux-phy,org.kernel.vger.linux-devicetree,org.kernel.vger.linux-kernel,org.kernel.vger.linux-omap,org.kernel.vger.linux-usb |
|---|---|
| Message-ID | <[email protected]> |
Convert the TI AM335x USB PHY text bindings to DT schema. Add undocumented vcc-supply property to match existing DTS usage. Signed-off-by: Bhargav Joshi <[email protected]> --- .../devicetree/bindings/phy/ti,am335x-usb-phy.yaml | 49 ++++++++++++++++++++++ .../devicetree/bindings/usb/am33xx-usb.txt | 9 ---- 2 files changed, 49 insertions(+), 9 deletions(-) diff --git a/Documentation/devicetree/bindings/phy/ti,am335x-usb-phy.yaml b/Documentation/devicetree/bindings/phy/ti,am335x-usb-phy.yaml new file mode 100644 index 000000000000..b28cd42ece5e --- /dev/null +++ b/Documentation/devicetree/bindings/phy/ti,am335x-usb-phy.yaml @@ -0,0 +1,49 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/phy/ti,am335x-usb-phy.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: TI AM335x USB PHY + +maintainers: + - Sebastian Andrzej Siewior <[email protected]> + +properties: + compatible: + const: ti,am335x-usb-phy + + reg: + maxItems: 1 + + reg-names: + const: phy + + ti,ctrl_mod: + $ref: /schemas/types.yaml#/definitions/phandle + description: Reference to the reset module node. + + "#phy-cells": + const: 0 + + vcc-supply: + description: Phandle to the regulator that provides power to the PHY. + +required: + - compatible + - reg + - reg-names + - ti,ctrl_mod + - "#phy-cells" + +additionalProperties: false + +examples: + - | + usb-phy@47401300 { + compatible = "ti,am335x-usb-phy"; + reg = <0x47401300 0x100>; + reg-names = "phy"; + ti,ctrl_mod = <&ctrl_mod>; + #phy-cells = <0>; + }; diff --git a/Documentation/devicetree/bindings/usb/am33xx-usb.txt b/Documentation/devicetree/bindings/usb/am33xx-usb.txt index 8431de346129..8832843c7d7c 100644 --- a/Documentation/devicetree/bindings/usb/am33xx-usb.txt +++ b/Documentation/devicetree/bindings/usb/am33xx-usb.txt @@ -17,15 +17,6 @@ Reset module - reg-names: "phy_ctrl" for the "USB control registers" and "wakeup" for the USB wake up control register. -USB PHY -~~~~~~~ -compatible: ti,am335x-usb-phy -reg: offset and length of the "USB PHY" register space -ti,ctrl_mod: reference to the "reset module" node -reg-names: phy -The PHY should have a "phy" alias numbered properly in the alias -node. - USB ~~~ - compatible: ti,musb-am33xx -- 2.55.0