18c2ecf20Sopenharmony_ci# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
28c2ecf20Sopenharmony_ci%YAML 1.2
38c2ecf20Sopenharmony_ci---
48c2ecf20Sopenharmony_ci$id: http://devicetree.org/schemas/phy/samsung,ufs-phy.yaml#
58c2ecf20Sopenharmony_ci$schema: http://devicetree.org/meta-schemas/core.yaml#
68c2ecf20Sopenharmony_ci
78c2ecf20Sopenharmony_cititle: Samsung SoC series UFS PHY Device Tree Bindings
88c2ecf20Sopenharmony_ci
98c2ecf20Sopenharmony_cimaintainers:
108c2ecf20Sopenharmony_ci  - Alim Akhtar <alim.akhtar@samsung.com>
118c2ecf20Sopenharmony_ci
128c2ecf20Sopenharmony_ciproperties:
138c2ecf20Sopenharmony_ci  "#phy-cells":
148c2ecf20Sopenharmony_ci    const: 0
158c2ecf20Sopenharmony_ci
168c2ecf20Sopenharmony_ci  compatible:
178c2ecf20Sopenharmony_ci    enum:
188c2ecf20Sopenharmony_ci      - samsung,exynos7-ufs-phy
198c2ecf20Sopenharmony_ci
208c2ecf20Sopenharmony_ci  reg:
218c2ecf20Sopenharmony_ci    maxItems: 1
228c2ecf20Sopenharmony_ci
238c2ecf20Sopenharmony_ci  reg-names:
248c2ecf20Sopenharmony_ci    items:
258c2ecf20Sopenharmony_ci      - const: phy-pma
268c2ecf20Sopenharmony_ci
278c2ecf20Sopenharmony_ci  clocks:
288c2ecf20Sopenharmony_ci    items:
298c2ecf20Sopenharmony_ci      - description: PLL reference clock
308c2ecf20Sopenharmony_ci      - description: symbol clock for input symbol ( rx0-ch0 symbol clock)
318c2ecf20Sopenharmony_ci      - description: symbol clock for input symbol ( rx1-ch1 symbol clock)
328c2ecf20Sopenharmony_ci      - description: symbol clock for output symbol ( tx0 symbol clock)
338c2ecf20Sopenharmony_ci
348c2ecf20Sopenharmony_ci  clock-names:
358c2ecf20Sopenharmony_ci    items:
368c2ecf20Sopenharmony_ci      - const: ref_clk
378c2ecf20Sopenharmony_ci      - const: rx1_symbol_clk
388c2ecf20Sopenharmony_ci      - const: rx0_symbol_clk
398c2ecf20Sopenharmony_ci      - const: tx0_symbol_clk
408c2ecf20Sopenharmony_ci
418c2ecf20Sopenharmony_ci  samsung,pmu-syscon:
428c2ecf20Sopenharmony_ci    $ref: '/schemas/types.yaml#/definitions/phandle'
438c2ecf20Sopenharmony_ci    description: phandle for PMU system controller interface, used to
448c2ecf20Sopenharmony_ci                 control pmu registers bits for ufs m-phy
458c2ecf20Sopenharmony_ci
468c2ecf20Sopenharmony_cirequired:
478c2ecf20Sopenharmony_ci  - "#phy-cells"
488c2ecf20Sopenharmony_ci  - compatible
498c2ecf20Sopenharmony_ci  - reg
508c2ecf20Sopenharmony_ci  - reg-names
518c2ecf20Sopenharmony_ci  - clocks
528c2ecf20Sopenharmony_ci  - clock-names
538c2ecf20Sopenharmony_ci  - samsung,pmu-syscon
548c2ecf20Sopenharmony_ci
558c2ecf20Sopenharmony_ciadditionalProperties: false
568c2ecf20Sopenharmony_ci
578c2ecf20Sopenharmony_ciexamples:
588c2ecf20Sopenharmony_ci  - |
598c2ecf20Sopenharmony_ci    #include <dt-bindings/clock/exynos7-clk.h>
608c2ecf20Sopenharmony_ci
618c2ecf20Sopenharmony_ci    ufs_phy: ufs-phy@15571800 {
628c2ecf20Sopenharmony_ci        compatible = "samsung,exynos7-ufs-phy";
638c2ecf20Sopenharmony_ci        reg = <0x15571800 0x240>;
648c2ecf20Sopenharmony_ci        reg-names = "phy-pma";
658c2ecf20Sopenharmony_ci        samsung,pmu-syscon = <&pmu_system_controller>;
668c2ecf20Sopenharmony_ci        #phy-cells = <0>;
678c2ecf20Sopenharmony_ci        clocks = <&clock_fsys1 SCLK_COMBO_PHY_EMBEDDED_26M>,
688c2ecf20Sopenharmony_ci                 <&clock_fsys1 PHYCLK_UFS20_RX1_SYMBOL_USER>,
698c2ecf20Sopenharmony_ci                 <&clock_fsys1 PHYCLK_UFS20_RX0_SYMBOL_USER>,
708c2ecf20Sopenharmony_ci                 <&clock_fsys1 PHYCLK_UFS20_TX0_SYMBOL_USER>;
718c2ecf20Sopenharmony_ci        clock-names = "ref_clk", "rx1_symbol_clk",
728c2ecf20Sopenharmony_ci                      "rx0_symbol_clk", "tx0_symbol_clk";
738c2ecf20Sopenharmony_ci
748c2ecf20Sopenharmony_ci    };
758c2ecf20Sopenharmony_ci...
76