Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

dt-bindings: phy: Convert img,pistachio-usb-phy to DT schema

Convert the Imagination Pistachio USB PHY binding to DT schema format.
It's a straight forward conversion.

Signed-off-by: Rob Herring (Arm) <robh@kernel.org>
Link: https://lore.kernel.org/r/20250607212531.742082-1-robh@kernel.org
Signed-off-by: Vinod Koul <vkoul@kernel.org>

authored by

Rob Herring (Arm) and committed by
Vinod Koul
66acaf8f 7cc5efcd

+62 -29
+62
Documentation/devicetree/bindings/phy/img,pistachio-usb-phy.yaml
··· 1 + # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 2 + %YAML 1.2 3 + --- 4 + $id: http://devicetree.org/schemas/phy/img,pistachio-usb-phy.yaml# 5 + $schema: http://devicetree.org/meta-schemas/core.yaml# 6 + 7 + title: Imagination Pistachio USB PHY 8 + 9 + maintainers: 10 + - Andrew Bresticker <abrestic@chromium.org> 11 + 12 + properties: 13 + compatible: 14 + const: img,pistachio-usb-phy 15 + 16 + clocks: 17 + maxItems: 1 18 + 19 + clock-names: 20 + items: 21 + - const: usb_phy 22 + 23 + '#phy-cells': 24 + const: 0 25 + 26 + phy-supply: 27 + description: USB VBUS supply. Must supply 5.0V. 28 + 29 + img,refclk: 30 + description: 31 + Reference clock source for the USB PHY. See 32 + <dt-bindings/phy/phy-pistachio-usb.h> for valid values. 33 + $ref: /schemas/types.yaml#/definitions/uint32 34 + 35 + img,cr-top: 36 + description: CR_TOP syscon phandle. 37 + $ref: /schemas/types.yaml#/definitions/phandle 38 + 39 + required: 40 + - compatible 41 + - clocks 42 + - clock-names 43 + - '#phy-cells' 44 + - img,refclk 45 + - img,cr-top 46 + 47 + additionalProperties: false 48 + 49 + examples: 50 + - | 51 + #include <dt-bindings/phy/phy-pistachio-usb.h> 52 + #include <dt-bindings/clock/pistachio-clk.h> 53 + 54 + usb-phy { 55 + compatible = "img,pistachio-usb-phy"; 56 + clocks = <&clk_core CLK_USB_PHY>; 57 + clock-names = "usb_phy"; 58 + #phy-cells = <0>; 59 + phy-supply = <&usb_vbus>; 60 + img,refclk = <REFCLK_CLK_CORE>; 61 + img,cr-top = <&cr_top>; 62 + };
-29
Documentation/devicetree/bindings/phy/pistachio-usb-phy.txt
··· 1 - IMG Pistachio USB PHY 2 - ===================== 3 - 4 - Required properties: 5 - -------------------- 6 - - compatible: Must be "img,pistachio-usb-phy". 7 - - #phy-cells: Must be 0. See ./phy-bindings.txt for details. 8 - - clocks: Must contain an entry for each entry in clock-names. 9 - See ../clock/clock-bindings.txt for details. 10 - - clock-names: Must include "usb_phy". 11 - - img,cr-top: Must contain a phandle to the CR_TOP syscon node. 12 - - img,refclk: Indicates the reference clock source for the USB PHY. 13 - See <dt-bindings/phy/phy-pistachio-usb.h> for a list of valid values. 14 - 15 - Optional properties: 16 - -------------------- 17 - - phy-supply: USB VBUS supply. Must supply 5.0V. 18 - 19 - Example: 20 - -------- 21 - usb_phy: usb-phy { 22 - compatible = "img,pistachio-usb-phy"; 23 - clocks = <&clk_core CLK_USB_PHY>; 24 - clock-names = "usb_phy"; 25 - phy-supply = <&usb_vbus>; 26 - img,refclk = <REFCLK_CLK_CORE>; 27 - img,cr-top = <&cr_top>; 28 - #phy-cells = <0>; 29 - };