linux-xiaomi-chiron/Documentation/devicetree/bindings/phy/qcom,edp-phy.yaml
Douglas Anderson c667d9c630 dt-bindings: phy: List supplies for qcom,edp-phy
We're supposed to list the supplies in the dt bindings but there are
none in the eDP PHY bindings.

Looking at the driver in Linux, I can see that there seem to be two
relevant supplies: "vdda-phy" and "vdda-pll". Let's add those to the
bindings.

NOTE: from looking at the Qualcomm datasheet for sc7280, it's not
immediately clear how to figure out how to fill in these supplies. The
only two eDP related supplies are simply described as "power for eDP
0.9V circuits" and "power for eDP 1.2V circuits". From guessing and
from comparing how a similar PHY is hooked up on other similar
Qualcomm boards, I'll make the educated guess that the 1.2V supply
goes to "vdda-phy" and the 0.9V supply goes to "vdda-pll" and I'll use
that in the example here.

Signed-off-by: Douglas Anderson <dianders@chromium.org>
Reviewed-by: Sankeerth Billakanti <quic_sbillaka@quicinc.com>
Link: https://lore.kernel.org/r/20220425140619.2.Iae013f0ff4599294189f3a6e91376fad137bbabf@changeid
Signed-off-by: Vinod Koul <vkoul@kernel.org>
2022-06-16 17:09:30 -07:00

75 lines
1.4 KiB
YAML

# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
%YAML 1.2
---
$id: "http://devicetree.org/schemas/phy/qcom,edp-phy.yaml#"
$schema: "http://devicetree.org/meta-schemas/core.yaml#"
title: Qualcomm eDP PHY
maintainers:
- Bjorn Andersson <bjorn.andersson@linaro.org>
description:
The Qualcomm eDP PHY is found in a number of Qualcomm platform and provides
the physical interface for Embedded Display Port.
properties:
compatible:
enum:
- qcom,sc7280-edp-phy
- qcom,sc8180x-edp-phy
reg:
items:
- description: PHY base register block
- description: tx0 register block
- description: tx1 register block
- description: PLL register block
clocks:
maxItems: 2
clock-names:
items:
- const: aux
- const: cfg_ahb
"#clock-cells":
const: 1
"#phy-cells":
const: 0
vdda-phy-supply: true
vdda-pll-supply: true
required:
- compatible
- reg
- clocks
- clock-names
- "#clock-cells"
- "#phy-cells"
additionalProperties: false
examples:
- |
phy@aec2a00 {
compatible = "qcom,sc8180x-edp-phy";
reg = <0x0aec2a00 0x1c0>,
<0x0aec2200 0xa0>,
<0x0aec2600 0xa0>,
<0x0aec2000 0x19c>;
clocks = <&dispcc 0>, <&dispcc 1>;
clock-names = "aux", "cfg_ahb";
#clock-cells = <1>;
#phy-cells = <0>;
vdda-phy-supply = <&vdd_a_edp_0_1p2>;
vdda-pll-supply = <&vdd_a_edp_0_0p9>;
};
...