162306a36Sopenharmony_ci# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
262306a36Sopenharmony_ci%YAML 1.2
362306a36Sopenharmony_ci---
462306a36Sopenharmony_ci$id: http://devicetree.org/schemas/phy/samsung,mipi-video-phy.yaml#
562306a36Sopenharmony_ci$schema: http://devicetree.org/meta-schemas/core.yaml#
662306a36Sopenharmony_ci
762306a36Sopenharmony_cititle: Samsung S5P/Exynos SoC MIPI CSIS/DSIM DPHY
862306a36Sopenharmony_ci
962306a36Sopenharmony_cimaintainers:
1062306a36Sopenharmony_ci  - Krzysztof Kozlowski <krzk@kernel.org>
1162306a36Sopenharmony_ci  - Marek Szyprowski <m.szyprowski@samsung.com>
1262306a36Sopenharmony_ci  - Sylwester Nawrocki <s.nawrocki@samsung.com>
1362306a36Sopenharmony_ci
1462306a36Sopenharmony_cidescription: |
1562306a36Sopenharmony_ci  For samsung,s5pv210-mipi-video-phy compatible PHYs the second cell in the
1662306a36Sopenharmony_ci  PHY specifier identifies the PHY and its meaning is as follows::
1762306a36Sopenharmony_ci    0 - MIPI CSIS 0,
1862306a36Sopenharmony_ci    1 - MIPI DSIM 0,
1962306a36Sopenharmony_ci    2 - MIPI CSIS 1,
2062306a36Sopenharmony_ci    3 - MIPI DSIM 1.
2162306a36Sopenharmony_ci
2262306a36Sopenharmony_ci  samsung,exynos5420-mipi-video-phy and samsung,exynos5433-mipi-video-phy
2362306a36Sopenharmony_ci  support additional fifth PHY::
2462306a36Sopenharmony_ci    4 - MIPI CSIS 2.
2562306a36Sopenharmony_ci
2662306a36Sopenharmony_ciproperties:
2762306a36Sopenharmony_ci  compatible:
2862306a36Sopenharmony_ci    enum:
2962306a36Sopenharmony_ci      - samsung,s5pv210-mipi-video-phy
3062306a36Sopenharmony_ci      - samsung,exynos5420-mipi-video-phy
3162306a36Sopenharmony_ci      - samsung,exynos5433-mipi-video-phy
3262306a36Sopenharmony_ci
3362306a36Sopenharmony_ci  "#phy-cells":
3462306a36Sopenharmony_ci    const: 1
3562306a36Sopenharmony_ci
3662306a36Sopenharmony_ci  syscon:
3762306a36Sopenharmony_ci    $ref: /schemas/types.yaml#/definitions/phandle
3862306a36Sopenharmony_ci    deprecated: true
3962306a36Sopenharmony_ci    description:
4062306a36Sopenharmony_ci      Phandle to PMU system controller interface, valid only for
4162306a36Sopenharmony_ci      samsung,s5pv210-mipi-video-phy and samsung,exynos5420-mipi-video-phy (if
4262306a36Sopenharmony_ci      not a child of PMU).
4362306a36Sopenharmony_ci
4462306a36Sopenharmony_ci  samsung,pmu-syscon:
4562306a36Sopenharmony_ci    $ref: /schemas/types.yaml#/definitions/phandle
4662306a36Sopenharmony_ci    deprecated: true
4762306a36Sopenharmony_ci    description:
4862306a36Sopenharmony_ci      Phandle to PMU system controller interface, valid for
4962306a36Sopenharmony_ci      samsung,exynos5433-mipi-video-phy (if not a child of PMU).
5062306a36Sopenharmony_ci
5162306a36Sopenharmony_ci  samsung,disp-sysreg:
5262306a36Sopenharmony_ci    $ref: /schemas/types.yaml#/definitions/phandle
5362306a36Sopenharmony_ci    description:
5462306a36Sopenharmony_ci      Phandle to DISP system controller interface, valid for
5562306a36Sopenharmony_ci      samsung,exynos5433-mipi-video-phy.
5662306a36Sopenharmony_ci
5762306a36Sopenharmony_ci  samsung,cam0-sysreg:
5862306a36Sopenharmony_ci    $ref: /schemas/types.yaml#/definitions/phandle
5962306a36Sopenharmony_ci    description:
6062306a36Sopenharmony_ci      Phandle to CAM0 system controller interface, valid for
6162306a36Sopenharmony_ci      samsung,exynos5433-mipi-video-phy.
6262306a36Sopenharmony_ci
6362306a36Sopenharmony_ci  samsung,cam1-sysreg:
6462306a36Sopenharmony_ci    $ref: /schemas/types.yaml#/definitions/phandle
6562306a36Sopenharmony_ci    description:
6662306a36Sopenharmony_ci      Phandle to CAM1 system controller interface, valid for
6762306a36Sopenharmony_ci      samsung,exynos5433-mipi-video-phy.
6862306a36Sopenharmony_ci
6962306a36Sopenharmony_cirequired:
7062306a36Sopenharmony_ci  - compatible
7162306a36Sopenharmony_ci  - "#phy-cells"
7262306a36Sopenharmony_ci
7362306a36Sopenharmony_ciallOf:
7462306a36Sopenharmony_ci  - if:
7562306a36Sopenharmony_ci      properties:
7662306a36Sopenharmony_ci        compatible:
7762306a36Sopenharmony_ci          contains:
7862306a36Sopenharmony_ci            enum:
7962306a36Sopenharmony_ci              - samsung,s5pv210-mipi-video-phy
8062306a36Sopenharmony_ci              - samsung,exynos5420-mipi-video-phy
8162306a36Sopenharmony_ci    then:
8262306a36Sopenharmony_ci      properties:
8362306a36Sopenharmony_ci        samsung,pmu-syscon: false
8462306a36Sopenharmony_ci        samsung,disp-sysreg: false
8562306a36Sopenharmony_ci        samsung,cam0-sysreg: false
8662306a36Sopenharmony_ci        samsung,cam1-sysreg: false
8762306a36Sopenharmony_ci    else:
8862306a36Sopenharmony_ci      properties:
8962306a36Sopenharmony_ci        syscon: false
9062306a36Sopenharmony_ci      required:
9162306a36Sopenharmony_ci        - samsung,disp-sysreg
9262306a36Sopenharmony_ci        - samsung,cam0-sysreg
9362306a36Sopenharmony_ci        - samsung,cam1-sysreg
9462306a36Sopenharmony_ci
9562306a36Sopenharmony_ciadditionalProperties: false
9662306a36Sopenharmony_ci
9762306a36Sopenharmony_ciexamples:
9862306a36Sopenharmony_ci  - |
9962306a36Sopenharmony_ci    phy {
10062306a36Sopenharmony_ci        compatible = "samsung,exynos5433-mipi-video-phy";
10162306a36Sopenharmony_ci        #phy-cells = <1>;
10262306a36Sopenharmony_ci        samsung,cam0-sysreg = <&syscon_cam0>;
10362306a36Sopenharmony_ci        samsung,cam1-sysreg = <&syscon_cam1>;
10462306a36Sopenharmony_ci        samsung,disp-sysreg = <&syscon_disp>;
10562306a36Sopenharmony_ci    };
10662306a36Sopenharmony_ci
10762306a36Sopenharmony_ci  - |
10862306a36Sopenharmony_ci    phy {
10962306a36Sopenharmony_ci        compatible = "samsung,s5pv210-mipi-video-phy";
11062306a36Sopenharmony_ci        syscon = <&pmu_system_controller>;
11162306a36Sopenharmony_ci        #phy-cells = <1>;
11262306a36Sopenharmony_ci    };
113