mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/chenhuacai/linux-loongson
synced 2025-08-28 18:10:32 +00:00

The Exynos7870 MIPI PHY device contains one DSIM PHY block and three CSIS PHY blocks. It also requires two sysregs, one for display, and the other for cameras. Document this device. Signed-off-by: Kaustabh Chakraborty <kauschluss@disroot.org> Acked-by: Conor Dooley <conor.dooley@microchip.com> Link: https://lore.kernel.org/r/20250612-exynos7870-mipi-phy-v1-1-3fff0b62d9d3@disroot.org Signed-off-by: Vinod Koul <vkoul@kernel.org>
134 lines
3.5 KiB
YAML
134 lines
3.5 KiB
YAML
# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
|
|
%YAML 1.2
|
|
---
|
|
$id: http://devicetree.org/schemas/phy/samsung,mipi-video-phy.yaml#
|
|
$schema: http://devicetree.org/meta-schemas/core.yaml#
|
|
|
|
title: Samsung S5P/Exynos SoC MIPI CSIS/DSIM DPHY
|
|
|
|
maintainers:
|
|
- Krzysztof Kozlowski <krzk@kernel.org>
|
|
- Marek Szyprowski <m.szyprowski@samsung.com>
|
|
- Sylwester Nawrocki <s.nawrocki@samsung.com>
|
|
|
|
description: |
|
|
For samsung,s5pv210-mipi-video-phy compatible PHYs the second cell in the
|
|
PHY specifier identifies the PHY and its meaning is as follows::
|
|
0 - MIPI CSIS 0,
|
|
1 - MIPI DSIM 0,
|
|
2 - MIPI CSIS 1,
|
|
3 - MIPI DSIM 1.
|
|
|
|
samsung,exynos5420-mipi-video-phy and samsung,exynos5433-mipi-video-phy
|
|
support additional fifth PHY::
|
|
4 - MIPI CSIS 2.
|
|
|
|
properties:
|
|
compatible:
|
|
enum:
|
|
- samsung,s5pv210-mipi-video-phy
|
|
- samsung,exynos5420-mipi-video-phy
|
|
- samsung,exynos5433-mipi-video-phy
|
|
- samsung,exynos7870-mipi-video-phy
|
|
|
|
"#phy-cells":
|
|
const: 1
|
|
|
|
syscon:
|
|
$ref: /schemas/types.yaml#/definitions/phandle
|
|
deprecated: true
|
|
description:
|
|
Phandle to PMU system controller interface, valid only for
|
|
samsung,s5pv210-mipi-video-phy and samsung,exynos5420-mipi-video-phy (if
|
|
not a child of PMU).
|
|
|
|
samsung,pmu-syscon:
|
|
$ref: /schemas/types.yaml#/definitions/phandle
|
|
deprecated: true
|
|
description:
|
|
Phandle to PMU system controller interface, valid for
|
|
samsung,exynos5433-mipi-video-phy and samsung,exynos7870-mipi-video-phy
|
|
(if not a child of PMU).
|
|
|
|
samsung,disp-sysreg:
|
|
$ref: /schemas/types.yaml#/definitions/phandle
|
|
description:
|
|
Phandle to DISP system controller interface, valid for
|
|
samsung,exynos5433-mipi-video-phy and samsung,exynos7870-mipi-video-phy.
|
|
|
|
samsung,cam0-sysreg:
|
|
$ref: /schemas/types.yaml#/definitions/phandle
|
|
description:
|
|
Phandle to CAM0 system controller interface, valid for
|
|
samsung,exynos5433-mipi-video-phy and samsung,exynos7870-mipi-video-phy.
|
|
|
|
samsung,cam1-sysreg:
|
|
$ref: /schemas/types.yaml#/definitions/phandle
|
|
description:
|
|
Phandle to CAM1 system controller interface, valid for
|
|
samsung,exynos5433-mipi-video-phy.
|
|
|
|
required:
|
|
- compatible
|
|
- "#phy-cells"
|
|
|
|
allOf:
|
|
- if:
|
|
properties:
|
|
compatible:
|
|
contains:
|
|
enum:
|
|
- samsung,s5pv210-mipi-video-phy
|
|
- samsung,exynos5420-mipi-video-phy
|
|
then:
|
|
properties:
|
|
samsung,pmu-syscon: false
|
|
samsung,disp-sysreg: false
|
|
samsung,cam0-sysreg: false
|
|
samsung,cam1-sysreg: false
|
|
|
|
- if:
|
|
properties:
|
|
compatible:
|
|
contains:
|
|
const: samsung,exynos5433-mipi-video-phy
|
|
then:
|
|
properties:
|
|
syscon: false
|
|
required:
|
|
- samsung,disp-sysreg
|
|
- samsung,cam0-sysreg
|
|
- samsung,cam1-sysreg
|
|
|
|
- if:
|
|
properties:
|
|
compatible:
|
|
contains:
|
|
const: samsung,exynos7870-mipi-video-phy
|
|
then:
|
|
properties:
|
|
syscon: false
|
|
samsung,cam1-sysreg: false
|
|
required:
|
|
- samsung,disp-sysreg
|
|
- samsung,cam0-sysreg
|
|
|
|
additionalProperties: false
|
|
|
|
examples:
|
|
- |
|
|
phy {
|
|
compatible = "samsung,exynos5433-mipi-video-phy";
|
|
#phy-cells = <1>;
|
|
samsung,cam0-sysreg = <&syscon_cam0>;
|
|
samsung,cam1-sysreg = <&syscon_cam1>;
|
|
samsung,disp-sysreg = <&syscon_disp>;
|
|
};
|
|
|
|
- |
|
|
phy {
|
|
compatible = "samsung,s5pv210-mipi-video-phy";
|
|
syscon = <&pmu_system_controller>;
|
|
#phy-cells = <1>;
|
|
};
|