Commit 03c866ca authored by Duje Mihanović's avatar Duje Mihanović Committed by Vinod Koul
Browse files

dt-bindings: phy: Convert PXA1928 USB/HSIC PHY to DT schema



Convert the binding for the Marvell PXA1928 USB and HSIC PHYs from TXT
to DT schema.

Signed-off-by: default avatarDuje Mihanović <duje.mihanovic@skole.hr>
Reviewed-by: default avatarKrzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Link: https://lore.kernel.org/r/20231004-pxa1928-usb-yaml-v3-1-150c9ef3ab9d@skole.hr


Signed-off-by: default avatarVinod Koul <vkoul@kernel.org>
parent dd69a637
Loading
Loading
Loading
Loading
+47 −0
Original line number Diff line number Diff line
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
%YAML 1.2
---
$id: http://devicetree.org/schemas/phy/marvell,pxa1928-usb-phy.yaml#
$schema: http://devicetree.org/meta-schemas/core.yaml#

title: Marvell PXA1928 USB/HSIC PHY

maintainers:
  - Duje Mihanović <duje.mihanovic@skole.hr>

properties:
  compatible:
    enum:
      - marvell,pxa1928-usb-phy
      - marvell,pxa1928-hsic-phy

  reg:
    maxItems: 1

  clocks:
    maxItems: 1

  '#phy-cells':
    const: 0

  resets:
    maxItems: 1

required:
  - compatible
  - reg
  - clocks
  - '#phy-cells'

additionalProperties: false

examples:
  - |
    #include <dt-bindings/clock/marvell,pxa1928.h>

    usbphy: phy@7000 {
        compatible = "marvell,pxa1928-usb-phy";
        reg = <0x7000 0xe0>;
        clocks = <&apmu PXA1928_CLK_USB>;
        #phy-cells = <0>;
    };
+0 −18
Original line number Diff line number Diff line
* Marvell PXA1928 USB and HSIC PHYs

Required properties:
- compatible: "marvell,pxa1928-usb-phy" or "marvell,pxa1928-hsic-phy"
- reg: base address and length of the registers
- clocks - A single clock. From common clock binding.
- #phys-cells: should be 0. From common phy binding.
- resets: reference to the reset controller

Example:

	usbphy: phy@7000 {
		compatible = "marvell,pxa1928-usb-phy";
		reg = <0x7000 0xe0>;
		clocks = <&apmu_clocks PXA1928_CLK_USB>;
		#phy-cells = <0>;
	};