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

dt-bindings: phy: convert meson-gxl-usb2-phy.txt to dt-schema

Convert the Amlogic Meson GXL USB2 PHY bindings to dt-schema.

Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Reviewed-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com>
Signed-off-by: Neil Armstrong <neil.armstrong@linaro.org>
Link: https://lore.kernel.org/r/20221117-b4-amlogic-bindings-convert-v2-8-36ad050bb625@linaro.org
Signed-off-by: Vinod Koul <vkoul@kernel.org>

authored by

Neil Armstrong and committed by
Vinod Koul
43108bb2 9b9e29af

+56 -21
+56
Documentation/devicetree/bindings/phy/amlogic,meson-gxl-usb2-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/amlogic,meson-gxl-usb2-phy.yaml# 5 + $schema: http://devicetree.org/meta-schemas/core.yaml# 6 + 7 + title: Amlogic Meson GXL USB2 PHY 8 + 9 + maintainers: 10 + - Neil Armstrong <neil.armstrong@linaro.org> 11 + 12 + properties: 13 + compatible: 14 + const: amlogic,meson-gxl-usb2-phy 15 + 16 + reg: 17 + maxItems: 1 18 + 19 + clocks: 20 + maxItems: 1 21 + 22 + clock-names: 23 + items: 24 + - const: phy 25 + 26 + resets: 27 + maxItems: 1 28 + 29 + reset-names: 30 + items: 31 + - const: phy 32 + 33 + "#phy-cells": 34 + const: 0 35 + 36 + phy-supply: true 37 + 38 + required: 39 + - compatible 40 + - reg 41 + - "#phy-cells" 42 + 43 + additionalProperties: false 44 + 45 + examples: 46 + - | 47 + phy@78000 { 48 + compatible = "amlogic,meson-gxl-usb2-phy"; 49 + reg = <0x78000 0x20>; 50 + clocks = <&xtal>; 51 + clock-names = "phy"; 52 + resets = <&phy_reset>; 53 + reset-names = "phy"; 54 + #phy-cells = <0>; 55 + phy-supply = <&usb2_supply>; 56 + };
-21
Documentation/devicetree/bindings/phy/meson-gxl-usb2-phy.txt
··· 1 - * Amlogic Meson GXL and GXM USB2 PHY binding 2 - 3 - Required properties: 4 - - compatible: Should be "amlogic,meson-gxl-usb2-phy" 5 - - reg: The base address and length of the registers 6 - - #phys-cells: must be 0 (see phy-bindings.txt in this directory) 7 - 8 - Optional properties: 9 - - clocks: a phandle to the clock of this PHY 10 - - clock-names: must be "phy" 11 - - resets: a phandle to the reset line of this PHY 12 - - reset-names: must be "phy" 13 - - phy-supply: see phy-bindings.txt in this directory 14 - 15 - 16 - Example: 17 - usb2_phy0: phy@78000 { 18 - compatible = "amlogic,meson-gxl-usb2-phy"; 19 - #phy-cells = <0>; 20 - reg = <0x0 0x78000 0x0 0x20>; 21 - };