0001 # SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
0002 %YAML 1.2
0003 ---
0004 $id: http://devicetree.org/schemas/phy/samsung,mipi-video-phy.yaml#
0005 $schema: http://devicetree.org/meta-schemas/core.yaml#
0006
0007 title: Samsung S5P/Exynos SoC MIPI CSIS/DSIM DPHY
0008
0009 maintainers:
0010 - Krzysztof Kozlowski <krzk@kernel.org>
0011 - Marek Szyprowski <m.szyprowski@samsung.com>
0012 - Sylwester Nawrocki <s.nawrocki@samsung.com>
0013
0014 description: |
0015 For samsung,s5pv210-mipi-video-phy compatible PHYs the second cell in the
0016 PHY specifier identifies the PHY and its meaning is as follows::
0017 0 - MIPI CSIS 0,
0018 1 - MIPI DSIM 0,
0019 2 - MIPI CSIS 1,
0020 3 - MIPI DSIM 1.
0021
0022 samsung,exynos5420-mipi-video-phy and samsung,exynos5433-mipi-video-phy
0023 support additional fifth PHY::
0024 4 - MIPI CSIS 2.
0025
0026 properties:
0027 compatible:
0028 enum:
0029 - samsung,s5pv210-mipi-video-phy
0030 - samsung,exynos5420-mipi-video-phy
0031 - samsung,exynos5433-mipi-video-phy
0032
0033 "#phy-cells":
0034 const: 1
0035
0036 syscon:
0037 $ref: /schemas/types.yaml#/definitions/phandle
0038 description:
0039 Phandle to PMU system controller interface, valid only for
0040 samsung,s5pv210-mipi-video-phy and samsung,exynos5420-mipi-video-phy.
0041
0042 samsung,pmu-syscon:
0043 $ref: /schemas/types.yaml#/definitions/phandle
0044 description:
0045 Phandle to PMU system controller interface, valid for
0046 samsung,exynos5433-mipi-video-phy.
0047
0048 samsung,disp-sysreg:
0049 $ref: /schemas/types.yaml#/definitions/phandle
0050 description:
0051 Phandle to DISP system controller interface, valid for
0052 samsung,exynos5433-mipi-video-phy.
0053
0054 samsung,cam0-sysreg:
0055 $ref: /schemas/types.yaml#/definitions/phandle
0056 description:
0057 Phandle to CAM0 system controller interface, valid for
0058 samsung,exynos5433-mipi-video-phy.
0059
0060 samsung,cam1-sysreg:
0061 $ref: /schemas/types.yaml#/definitions/phandle
0062 description:
0063 Phandle to CAM1 system controller interface, valid for
0064 samsung,exynos5433-mipi-video-phy.
0065
0066 required:
0067 - compatible
0068 - "#phy-cells"
0069
0070 allOf:
0071 - if:
0072 properties:
0073 compatible:
0074 contains:
0075 enum:
0076 - samsung,s5pv210-mipi-video-phy
0077 - samsung,exynos5420-mipi-video-phy
0078 then:
0079 properties:
0080 samsung,pmu-syscon: false
0081 samsung,disp-sysreg: false
0082 samsung,cam0-sysreg: false
0083 samsung,cam1-sysreg: false
0084 required:
0085 - syscon
0086 else:
0087 properties:
0088 syscon: false
0089 required:
0090 - samsung,pmu-syscon
0091 - samsung,disp-sysreg
0092 - samsung,cam0-sysreg
0093 - samsung,cam1-sysreg
0094
0095 additionalProperties: false
0096
0097 examples:
0098 - |
0099 phy {
0100 compatible = "samsung,exynos5433-mipi-video-phy";
0101 #phy-cells = <1>;
0102 samsung,pmu-syscon = <&pmu_system_controller>;
0103 samsung,cam0-sysreg = <&syscon_cam0>;
0104 samsung,cam1-sysreg = <&syscon_cam1>;
0105 samsung,disp-sysreg = <&syscon_disp>;
0106 };
0107
0108 - |
0109 phy {
0110 compatible = "samsung,s5pv210-mipi-video-phy";
0111 syscon = <&pmu_system_controller>;
0112 #phy-cells = <1>;
0113 };