mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-29 05:44:11 +00:00
dt-bindings: phy: qcom,msm8998-qmp-usb3-phy: split from sc8280xp PHY schema
In preparation to defining the USB-C handling on MSM8998, QCM2290 and SM6115 split existing QMP USB3 PHY schema into pure USB3 and USB-C schema definitions. Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org> Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> Link: https://lore.kernel.org/r/20240113-pmi632-typec-v2-3-182d9aa0a5b3@linaro.org Signed-off-by: Vinod Koul <vkoul@kernel.org>
This commit is contained in:
parent
b34ae8598c
commit
159919a184
2 changed files with 132 additions and 22 deletions
|
@ -0,0 +1,132 @@
|
||||||
|
# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
|
||||||
|
%YAML 1.2
|
||||||
|
---
|
||||||
|
$id: http://devicetree.org/schemas/phy/qcom,msm8998-qmp-usb3-phy.yaml#
|
||||||
|
$schema: http://devicetree.org/meta-schemas/core.yaml#
|
||||||
|
|
||||||
|
title: Qualcomm QMP PHY controller (USB, MSM8998)
|
||||||
|
|
||||||
|
maintainers:
|
||||||
|
- Vinod Koul <vkoul@kernel.org>
|
||||||
|
|
||||||
|
description:
|
||||||
|
The QMP PHY controller supports physical layer functionality for USB-C on
|
||||||
|
several Qualcomm chipsets.
|
||||||
|
|
||||||
|
properties:
|
||||||
|
compatible:
|
||||||
|
enum:
|
||||||
|
- qcom,msm8998-qmp-usb3-phy
|
||||||
|
- qcom,qcm2290-qmp-usb3-phy
|
||||||
|
- qcom,sm6115-qmp-usb3-phy
|
||||||
|
|
||||||
|
reg:
|
||||||
|
maxItems: 1
|
||||||
|
|
||||||
|
clocks:
|
||||||
|
maxItems: 4
|
||||||
|
|
||||||
|
clock-names:
|
||||||
|
maxItems: 4
|
||||||
|
|
||||||
|
resets:
|
||||||
|
maxItems: 2
|
||||||
|
|
||||||
|
reset-names:
|
||||||
|
items:
|
||||||
|
- const: phy
|
||||||
|
- const: phy_phy
|
||||||
|
|
||||||
|
vdda-phy-supply: true
|
||||||
|
|
||||||
|
vdda-pll-supply: true
|
||||||
|
|
||||||
|
"#clock-cells":
|
||||||
|
const: 0
|
||||||
|
|
||||||
|
clock-output-names:
|
||||||
|
maxItems: 1
|
||||||
|
|
||||||
|
"#phy-cells":
|
||||||
|
const: 0
|
||||||
|
|
||||||
|
required:
|
||||||
|
- compatible
|
||||||
|
- reg
|
||||||
|
- clocks
|
||||||
|
- clock-names
|
||||||
|
- resets
|
||||||
|
- reset-names
|
||||||
|
- vdda-phy-supply
|
||||||
|
- vdda-pll-supply
|
||||||
|
- "#clock-cells"
|
||||||
|
- clock-output-names
|
||||||
|
- "#phy-cells"
|
||||||
|
|
||||||
|
allOf:
|
||||||
|
- if:
|
||||||
|
properties:
|
||||||
|
compatible:
|
||||||
|
contains:
|
||||||
|
enum:
|
||||||
|
- qcom,msm8998-qmp-usb3-phy
|
||||||
|
then:
|
||||||
|
properties:
|
||||||
|
clocks:
|
||||||
|
maxItems: 4
|
||||||
|
clock-names:
|
||||||
|
items:
|
||||||
|
- const: aux
|
||||||
|
- const: ref
|
||||||
|
- const: cfg_ahb
|
||||||
|
- const: pipe
|
||||||
|
|
||||||
|
- if:
|
||||||
|
properties:
|
||||||
|
compatible:
|
||||||
|
contains:
|
||||||
|
enum:
|
||||||
|
- qcom,qcm2290-qmp-usb3-phy
|
||||||
|
- qcom,sm6115-qmp-usb3-phy
|
||||||
|
then:
|
||||||
|
properties:
|
||||||
|
clocks:
|
||||||
|
maxItems: 4
|
||||||
|
clock-names:
|
||||||
|
items:
|
||||||
|
- const: cfg_ahb
|
||||||
|
- const: ref
|
||||||
|
- const: com_aux
|
||||||
|
- const: pipe
|
||||||
|
|
||||||
|
additionalProperties: false
|
||||||
|
|
||||||
|
examples:
|
||||||
|
- |
|
||||||
|
#include <dt-bindings/clock/qcom,gcc-msm8998.h>
|
||||||
|
#include <dt-bindings/clock/qcom,rpmh.h>
|
||||||
|
|
||||||
|
phy@c010000 {
|
||||||
|
compatible = "qcom,msm8998-qmp-usb3-phy";
|
||||||
|
reg = <0x0c010000 0x1000>;
|
||||||
|
|
||||||
|
clocks = <&gcc GCC_USB3_PHY_AUX_CLK>,
|
||||||
|
<&gcc GCC_USB3_CLKREF_CLK>,
|
||||||
|
<&gcc GCC_USB_PHY_CFG_AHB2PHY_CLK>,
|
||||||
|
<&gcc GCC_USB3_PHY_PIPE_CLK>;
|
||||||
|
clock-names = "aux",
|
||||||
|
"ref",
|
||||||
|
"cfg_ahb",
|
||||||
|
"pipe";
|
||||||
|
clock-output-names = "usb3_phy_pipe_clk_src";
|
||||||
|
#clock-cells = <0>;
|
||||||
|
#phy-cells = <0>;
|
||||||
|
|
||||||
|
resets = <&gcc GCC_USB3_PHY_BCR>,
|
||||||
|
<&gcc GCC_USB3PHY_PHY_BCR>;
|
||||||
|
reset-names = "phy",
|
||||||
|
"phy_phy";
|
||||||
|
|
||||||
|
vdda-phy-supply = <&vreg_l1a_0p875>;
|
||||||
|
vdda-pll-supply = <&vreg_l2a_1p2>;
|
||||||
|
};
|
|
@ -20,15 +20,12 @@ properties:
|
||||||
- qcom,ipq8074-qmp-usb3-phy
|
- qcom,ipq8074-qmp-usb3-phy
|
||||||
- qcom,ipq9574-qmp-usb3-phy
|
- qcom,ipq9574-qmp-usb3-phy
|
||||||
- qcom,msm8996-qmp-usb3-phy
|
- qcom,msm8996-qmp-usb3-phy
|
||||||
- qcom,msm8998-qmp-usb3-phy
|
|
||||||
- qcom,qcm2290-qmp-usb3-phy
|
|
||||||
- qcom,sa8775p-qmp-usb3-uni-phy
|
- qcom,sa8775p-qmp-usb3-uni-phy
|
||||||
- qcom,sc8280xp-qmp-usb3-uni-phy
|
- qcom,sc8280xp-qmp-usb3-uni-phy
|
||||||
- qcom,sdm845-qmp-usb3-uni-phy
|
- qcom,sdm845-qmp-usb3-uni-phy
|
||||||
- qcom,sdx55-qmp-usb3-uni-phy
|
- qcom,sdx55-qmp-usb3-uni-phy
|
||||||
- qcom,sdx65-qmp-usb3-uni-phy
|
- qcom,sdx65-qmp-usb3-uni-phy
|
||||||
- qcom,sdx75-qmp-usb3-uni-phy
|
- qcom,sdx75-qmp-usb3-uni-phy
|
||||||
- qcom,sm6115-qmp-usb3-phy
|
|
||||||
- qcom,sm8150-qmp-usb3-uni-phy
|
- qcom,sm8150-qmp-usb3-uni-phy
|
||||||
- qcom,sm8250-qmp-usb3-uni-phy
|
- qcom,sm8250-qmp-usb3-uni-phy
|
||||||
- qcom,sm8350-qmp-usb3-uni-phy
|
- qcom,sm8350-qmp-usb3-uni-phy
|
||||||
|
@ -93,7 +90,6 @@ allOf:
|
||||||
- qcom,ipq8074-qmp-usb3-phy
|
- qcom,ipq8074-qmp-usb3-phy
|
||||||
- qcom,ipq9574-qmp-usb3-phy
|
- qcom,ipq9574-qmp-usb3-phy
|
||||||
- qcom,msm8996-qmp-usb3-phy
|
- qcom,msm8996-qmp-usb3-phy
|
||||||
- qcom,msm8998-qmp-usb3-phy
|
|
||||||
- qcom,sdx55-qmp-usb3-uni-phy
|
- qcom,sdx55-qmp-usb3-uni-phy
|
||||||
- qcom,sdx65-qmp-usb3-uni-phy
|
- qcom,sdx65-qmp-usb3-uni-phy
|
||||||
- qcom,sdx75-qmp-usb3-uni-phy
|
- qcom,sdx75-qmp-usb3-uni-phy
|
||||||
|
@ -108,24 +104,6 @@ allOf:
|
||||||
- const: cfg_ahb
|
- const: cfg_ahb
|
||||||
- const: pipe
|
- const: pipe
|
||||||
|
|
||||||
- if:
|
|
||||||
properties:
|
|
||||||
compatible:
|
|
||||||
contains:
|
|
||||||
enum:
|
|
||||||
- qcom,qcm2290-qmp-usb3-phy
|
|
||||||
- qcom,sm6115-qmp-usb3-phy
|
|
||||||
then:
|
|
||||||
properties:
|
|
||||||
clocks:
|
|
||||||
maxItems: 4
|
|
||||||
clock-names:
|
|
||||||
items:
|
|
||||||
- const: cfg_ahb
|
|
||||||
- const: ref
|
|
||||||
- const: com_aux
|
|
||||||
- const: pipe
|
|
||||||
|
|
||||||
- if:
|
- if:
|
||||||
properties:
|
properties:
|
||||||
compatible:
|
compatible:
|
||||||
|
|
Loading…
Reference in a new issue