File Index
Files and directories
Sign in
FILE

samsung,mipi-video-phy.yaml

File preview with syntax highlighting.

linux-6.19.14/Documentation/devicetree/bindings/phy/samsung,mipi-video-phy.yaml YAML
  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,mipi-video-phy.yaml#
  5$schema: http://devicetree.org/meta-schemas/core.yaml#
  6
  7title: Samsung S5P/Exynos SoC MIPI CSIS/DSIM DPHY
  8
  9maintainers:
 10  - Krzysztof Kozlowski <krzk@kernel.org>
 11  - Marek Szyprowski <m.szyprowski@samsung.com>
 12  - Sylwester Nawrocki <s.nawrocki@samsung.com>
 13
 14description: |
 15  For samsung,s5pv210-mipi-video-phy compatible PHYs the second cell in the
 16  PHY specifier identifies the PHY and its meaning is as follows::
 17    0 - MIPI CSIS 0,
 18    1 - MIPI DSIM 0,
 19    2 - MIPI CSIS 1,
 20    3 - MIPI DSIM 1.
 21
 22  samsung,exynos5420-mipi-video-phy and samsung,exynos5433-mipi-video-phy
 23  support additional fifth PHY::
 24    4 - MIPI CSIS 2.
 25
 26properties:
 27  compatible:
 28    enum:
 29      - samsung,s5pv210-mipi-video-phy
 30      - samsung,exynos5420-mipi-video-phy
 31      - samsung,exynos5433-mipi-video-phy
 32      - samsung,exynos7870-mipi-video-phy
 33
 34  "#phy-cells":
 35    const: 1
 36
 37  syscon:
 38    $ref: /schemas/types.yaml#/definitions/phandle
 39    deprecated: true
 40    description:
 41      Phandle to PMU system controller interface, valid only for
 42      samsung,s5pv210-mipi-video-phy and samsung,exynos5420-mipi-video-phy (if
 43      not a child of PMU).
 44
 45  samsung,pmu-syscon:
 46    $ref: /schemas/types.yaml#/definitions/phandle
 47    deprecated: true
 48    description:
 49      Phandle to PMU system controller interface, valid for
 50      samsung,exynos5433-mipi-video-phy and samsung,exynos7870-mipi-video-phy
 51      (if not a child of PMU).
 52
 53  samsung,disp-sysreg:
 54    $ref: /schemas/types.yaml#/definitions/phandle
 55    description:
 56      Phandle to DISP system controller interface, valid for
 57      samsung,exynos5433-mipi-video-phy and samsung,exynos7870-mipi-video-phy.
 58
 59  samsung,cam0-sysreg:
 60    $ref: /schemas/types.yaml#/definitions/phandle
 61    description:
 62      Phandle to CAM0 system controller interface, valid for
 63      samsung,exynos5433-mipi-video-phy and samsung,exynos7870-mipi-video-phy.
 64
 65  samsung,cam1-sysreg:
 66    $ref: /schemas/types.yaml#/definitions/phandle
 67    description:
 68      Phandle to CAM1 system controller interface, valid for
 69      samsung,exynos5433-mipi-video-phy.
 70
 71required:
 72  - compatible
 73  - "#phy-cells"
 74
 75allOf:
 76  - if:
 77      properties:
 78        compatible:
 79          contains:
 80            enum:
 81              - samsung,s5pv210-mipi-video-phy
 82              - samsung,exynos5420-mipi-video-phy
 83    then:
 84      properties:
 85        samsung,pmu-syscon: false
 86        samsung,disp-sysreg: false
 87        samsung,cam0-sysreg: false
 88        samsung,cam1-sysreg: false
 89
 90  - if:
 91      properties:
 92        compatible:
 93          contains:
 94            const: samsung,exynos5433-mipi-video-phy
 95    then:
 96      properties:
 97        syscon: false
 98      required:
 99        - samsung,disp-sysreg
100        - samsung,cam0-sysreg
101        - samsung,cam1-sysreg
102
103  - if:
104      properties:
105        compatible:
106          contains:
107            const: samsung,exynos7870-mipi-video-phy
108    then:
109      properties:
110        syscon: false
111        samsung,cam1-sysreg: false
112      required:
113        - samsung,disp-sysreg
114        - samsung,cam0-sysreg
115
116additionalProperties: false
117
118examples:
119  - |
120    phy {
121        compatible = "samsung,exynos5433-mipi-video-phy";
122        #phy-cells = <1>;
123        samsung,cam0-sysreg = <&syscon_cam0>;
124        samsung,cam1-sysreg = <&syscon_cam1>;
125        samsung,disp-sysreg = <&syscon_disp>;
126    };
127
128  - |
129    phy {
130        compatible = "samsung,s5pv210-mipi-video-phy";
131        syscon = <&pmu_system_controller>;
132        #phy-cells = <1>;
133    };
~/ Read-only file preview.