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

dt-bindings: phy: qcom,usb-hsic-phy: convert to DT schema

Convert Qualcomm USB HSIC PHY bindings to DT schema.

Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Reviewed-by: Rob Herring <robh@kernel.org>
Link: https://lore.kernel.org/r/20221222155805.139284-1-krzysztof.kozlowski@linaro.org
Signed-off-by: Vinod Koul <vkoul@kernel.org>

authored by

Krzysztof Kozlowski and committed by
Vinod Koul
4214f371 3cde1ef6

+67 -65
-65
Documentation/devicetree/bindings/phy/qcom,usb-hsic-phy.txt
··· 1 - Qualcomm's USB HSIC PHY 2 - 3 - PROPERTIES 4 - 5 - - compatible: 6 - Usage: required 7 - Value type: <string> 8 - Definition: Should contain "qcom,usb-hsic-phy" and more specifically one of the 9 - following: 10 - 11 - "qcom,usb-hsic-phy-mdm9615" 12 - "qcom,usb-hsic-phy-msm8974" 13 - 14 - - #phy-cells: 15 - Usage: required 16 - Value type: <u32> 17 - Definition: Should contain 0 18 - 19 - - clocks: 20 - Usage: required 21 - Value type: <prop-encoded-array> 22 - Definition: Should contain clock specifier for phy, calibration and 23 - a calibration sleep clock 24 - 25 - - clock-names: 26 - Usage: required 27 - Value type: <stringlist> 28 - Definition: Should contain "phy, "cal" and "cal_sleep" 29 - 30 - - pinctrl-names: 31 - Usage: required 32 - Value type: <stringlist> 33 - Definition: Should contain "init" and "default" in that order 34 - 35 - - pinctrl-0: 36 - Usage: required 37 - Value type: <prop-encoded-array> 38 - Definition: List of pinctrl settings to apply to keep HSIC pins in a glitch 39 - free state 40 - 41 - - pinctrl-1: 42 - Usage: required 43 - Value type: <prop-encoded-array> 44 - Definition: List of pinctrl settings to apply to mux out the HSIC pins 45 - 46 - EXAMPLE 47 - 48 - usb-controller { 49 - ulpi { 50 - phy { 51 - compatible = "qcom,usb-hsic-phy-msm8974", 52 - "qcom,usb-hsic-phy"; 53 - #phy-cells = <0>; 54 - pinctrl-names = "init", "default"; 55 - pinctrl-0 = <&hsic_sleep>; 56 - pinctrl-1 = <&hsic_default>; 57 - clocks = <&gcc GCC_USB_HSIC_CLK>, 58 - <&gcc GCC_USB_HSIC_IO_CAL_CLK>, 59 - <&gcc GCC_USB_HSIC_IO_CAL_SLEEP_CLK>; 60 - clock-names = "phy", "cal", "cal_sleep"; 61 - assigned-clocks = <&gcc GCC_USB_HSIC_IO_CAL_CLK>; 62 - assigned-clock-rates = <960000>; 63 - }; 64 - }; 65 - };
+67
Documentation/devicetree/bindings/phy/qcom,usb-hsic-phy.yaml
··· 1 + # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) 2 + %YAML 1.2 3 + --- 4 + $id: http://devicetree.org/schemas/phy/qcom,usb-hsic-phy.yaml# 5 + $schema: http://devicetree.org/meta-schemas/core.yaml# 6 + 7 + title: Qualcomm USB HSIC PHY Controller 8 + 9 + maintainers: 10 + - Bjorn Andersson <andersson@kernel.org> 11 + - Vinod Koul <vkoul@kernel.org> 12 + 13 + properties: 14 + compatible: 15 + items: 16 + - enum: 17 + - qcom,usb-hsic-phy-mdm9615 18 + - qcom,usb-hsic-phy-msm8974 19 + - const: qcom,usb-hsic-phy 20 + 21 + clocks: 22 + maxItems: 3 23 + 24 + clock-names: 25 + items: 26 + - const: phy 27 + - const: cal 28 + - const: cal_sleep 29 + 30 + "#phy-cells": 31 + const: 0 32 + 33 + pinctrl-0: true 34 + pinctrl-1: true 35 + 36 + pinctrl-names: 37 + items: 38 + - const: init 39 + - const: default 40 + 41 + required: 42 + - compatible 43 + - clocks 44 + - clock-names 45 + - "#phy-cells" 46 + - pinctrl-0 47 + - pinctrl-1 48 + - pinctrl-names 49 + 50 + additionalProperties: false 51 + 52 + examples: 53 + - | 54 + #include <dt-bindings/clock/qcom,gcc-msm8974.h> 55 + 56 + phy { 57 + compatible = "qcom,usb-hsic-phy-msm8974", 58 + "qcom,usb-hsic-phy"; 59 + clocks = <&gcc GCC_USB_HSIC_CLK>, 60 + <&gcc GCC_USB_HSIC_IO_CAL_CLK>, 61 + <&gcc GCC_USB_HSIC_IO_CAL_SLEEP_CLK>; 62 + clock-names = "phy", "cal", "cal_sleep"; 63 + #phy-cells = <0>; 64 + pinctrl-names = "init", "default"; 65 + pinctrl-0 = <&hsic_sleep>; 66 + pinctrl-1 = <&hsic_default>; 67 + };