1# SPDX-License-Identifier: GPL-2.0-only or BSD-2-Clause
2%YAML 1.2
3---
4$id: http://devicetree.org/schemas/display/msm/dsi-phy-10nm.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: Qualcomm Display DSI 10nm PHY
8
9maintainers:
10  - Krishna Manikandan <quic_mkrishn@quicinc.com>
11
12allOf:
13  - $ref: dsi-phy-common.yaml#
14
15properties:
16  compatible:
17    enum:
18      - qcom,dsi-phy-10nm
19      - qcom,dsi-phy-10nm-8998
20
21  reg:
22    items:
23      - description: dsi phy register set
24      - description: dsi phy lane register set
25      - description: dsi pll register set
26
27  reg-names:
28    items:
29      - const: dsi_phy
30      - const: dsi_phy_lane
31      - const: dsi_pll
32
33  vdds-supply:
34    description: |
35      Connected to DSI0_MIPI_DSI_PLL_VDDA0P9 pin for sc7180 target and
36      connected to VDDA_MIPI_DSI_0_PLL_0P9 pin for sdm845 target
37
38  qcom,phy-rescode-offset-top:
39    $ref: /schemas/types.yaml#/definitions/int8-array
40    maxItems: 5
41    description:
42      Integer array of offset for pull-up legs rescode for all five lanes.
43      To offset the drive strength from the calibrated value in an increasing
44      manner, -32 is the weakest and +31 is the strongest.
45    items:
46      minimum: -32
47      maximum: 31
48
49  qcom,phy-rescode-offset-bot:
50    $ref: /schemas/types.yaml#/definitions/int8-array
51    maxItems: 5
52    description:
53      Integer array of offset for pull-down legs rescode for all five lanes.
54      To offset the drive strength from the calibrated value in a decreasing
55      manner, -32 is the weakest and +31 is the strongest.
56    items:
57      minimum: -32
58      maximum: 31
59
60  qcom,phy-drive-ldo-level:
61    $ref: "/schemas/types.yaml#/definitions/uint32"
62    description:
63      The PHY LDO has an amplitude tuning feature to adjust the LDO output
64      for the HSTX drive. Use supported levels (mV) to offset the drive level
65      from the default value.
66    enum: [ 375, 400, 425, 450, 475, 500 ]
67
68required:
69  - compatible
70  - reg
71  - reg-names
72  - vdds-supply
73
74unevaluatedProperties: false
75
76examples:
77  - |
78     #include <dt-bindings/clock/qcom,dispcc-sdm845.h>
79     #include <dt-bindings/clock/qcom,rpmh.h>
80
81     dsi-phy@ae94400 {
82         compatible = "qcom,dsi-phy-10nm";
83         reg = <0x0ae94400 0x200>,
84               <0x0ae94600 0x280>,
85               <0x0ae94a00 0x1e0>;
86         reg-names = "dsi_phy",
87                     "dsi_phy_lane",
88                     "dsi_pll";
89
90         #clock-cells = <1>;
91         #phy-cells = <0>;
92
93         vdds-supply = <&vdda_mipi_dsi0_pll>;
94         clocks = <&dispcc DISP_CC_MDSS_AHB_CLK>,
95                  <&rpmhcc RPMH_CXO_CLK>;
96         clock-names = "iface", "ref";
97
98         qcom,phy-rescode-offset-top = /bits/ 8 <0 0 0 0 0>;
99         qcom,phy-rescode-offset-bot = /bits/ 8 <0 0 0 0 0>;
100         qcom,phy-drive-ldo-level = <400>;
101     };
102...
103