Debian Codegraph @

Documentation/devicetree/bindings/phy/samsung,ufs-phy.yaml

raw
1 # SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
2 %YAML 1.2
3 ---
4 $id: http://devicetree.org/schemas/phy/samsung,ufs-phy.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
6
7 title: Samsung SoC series UFS PHY
8
9 maintainers:
10 - Alim Akhtar <[email protected]>
11
12 properties:
13 "#phy-cells":
14 const: 0
15
16 compatible:
17 enum:
18 - google,gs101-ufs-phy
19 - samsung,exynos7-ufs-phy
20 - samsung,exynosautov9-ufs-phy
21 - samsung,exynosautov920-ufs-phy
22 - tesla,fsd-ufs-phy
23
24 reg:
25 maxItems: 1
26
27 reg-names:
28 items:
29 - const: phy-pma
30
31 clocks:
32 minItems: 1
33 maxItems: 4
34
35 clock-names:
36 minItems: 1
37 maxItems: 4
38
39 power-domains:
40 maxItems: 1
41
42 samsung,pmu-syscon:
43 $ref: /schemas/types.yaml#/definitions/phandle-array
44 maxItems: 1
45 items:
46 minItems: 1
47 items:
48 - description: phandle for PMU system controller interface, used to
49 control pmu registers bits for ufs m-phy
50 - description: offset of the pmu control register
51 description:
52 It can be phandle/offset pair. The second cell which can represent an
53 offset is optional.
54
55 required:
56 - "#phy-cells"
57 - compatible
58 - reg
59 - reg-names
60 - clocks
61 - clock-names
62 - samsung,pmu-syscon
63
64 allOf:
65 - if:
66 properties:
67 compatible:
68 contains:
69 const: samsung,exynos7-ufs-phy
70
71 then:
72 properties:
73 clocks:
74 items:
75 - description: PLL reference clock
76 - description: symbol clock for input symbol (rx0-ch0 symbol clock)
77 - description: symbol clock for input symbol (rx1-ch1 symbol clock)
78 - description: symbol clock for output symbol (tx0 symbol clock)
79
80 clock-names:
81 items:
82 - const: ref_clk
83 - const: rx1_symbol_clk
84 - const: rx0_symbol_clk
85 - const: tx0_symbol_clk
86
87 else:
88 properties:
89 clocks:
90 items:
91 - description: PLL reference clock
92
93 clock-names:
94 items:
95 - const: ref_clk
96
97 additionalProperties: false
98
99 examples:
100 - |
101 #include <dt-bindings/clock/exynos7-clk.h>
102
103 ufs_phy: ufs-phy@15571800 {
104 compatible = "samsung,exynos7-ufs-phy";
105 reg = <0x15571800 0x240>;
106 reg-names = "phy-pma";
107 samsung,pmu-syscon = <&pmu_system_controller>;
108 #phy-cells = <0>;
109 clocks = <&clock_fsys1 SCLK_COMBO_PHY_EMBEDDED_26M>,
110 <&clock_fsys1 PHYCLK_UFS20_RX1_SYMBOL_USER>,
111 <&clock_fsys1 PHYCLK_UFS20_RX0_SYMBOL_USER>,
112 <&clock_fsys1 PHYCLK_UFS20_TX0_SYMBOL_USER>;
113 clock-names = "ref_clk", "rx1_symbol_clk",
114 "rx0_symbol_clk", "tx0_symbol_clk";
115
116 };
117 ...