Commit 91b40d44 authored by Krzysztof Kozlowski's avatar Krzysztof Kozlowski Committed by Mauro Carvalho Chehab
Browse files

media: dt-bindings: samsung,s5p-cec: convert to DT schema



Convert Samsung S5P HDMI CEC adapter bindings to DT schema.

Signed-off-by: default avatarKrzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Reviewed-by: default avatarRob Herring <robh@kernel.org>
Signed-off-by: default avatarHans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@kernel.org>
parent d358c05b
Loading
Loading
Loading
Loading
+66 −0
Original line number Diff line number Diff line
# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
%YAML 1.2
---
$id: http://devicetree.org/schemas/media/cec/samsung,s5p-cec.yaml#
$schema: http://devicetree.org/meta-schemas/core.yaml#

title: Samsung S5PV210 and Exynos HDMI CEC

maintainers:
  - Krzysztof Kozlowski <krzk@kernel.org>
  - Marek Szyprowski <m.szyprowski@samsung.com>

allOf:
  - $ref: cec-common.yaml#

properties:
  compatible:
    const: samsung,s5p-cec

  clocks:
    maxItems: 1

  clock-names:
    items:
      - const: hdmicec

  interrupts:
    maxItems: 1

  samsung,syscon-phandle:
    $ref: /schemas/types.yaml#/definitions/phandle
    description:
      Phandle to PMU system controller interface

  reg:
    maxItems: 1

required:
  - compatible
  - clocks
  - clock-names
  - hdmi-phandle
  - interrupts
  - samsung,syscon-phandle
  - reg

unevaluatedProperties: false

examples:
  - |
    #include <dt-bindings/clock/exynos5420.h>
    #include <dt-bindings/interrupt-controller/arm-gic.h>

    cec@101b0000 {
        compatible = "samsung,s5p-cec";
        reg = <0x101B0000 0x200>;

        clocks = <&clock CLK_HDMI_CEC>;
        clock-names = "hdmicec";
        interrupts = <GIC_SPI 114 IRQ_TYPE_LEVEL_HIGH>;
        hdmi-phandle = <&hdmi>;
        needs-hpd;
        pinctrl-names = "default";
        pinctrl-0 = <&hdmi_cec>;
        samsung,syscon-phandle = <&pmu_system_controller>;
    };
+0 −36
Original line number Diff line number Diff line
* Samsung HDMI CEC driver

The HDMI CEC module is present is Samsung SoCs and its purpose is to
handle communication between HDMI connected devices over the CEC bus.

Required properties:
  - compatible : value should be following
	"samsung,s5p-cec"

  - reg : Physical base address of the IP registers and length of memory
	  mapped region.

  - interrupts : HDMI CEC interrupt number to the CPU.
  - clocks : from common clock binding: handle to HDMI CEC clock.
  - clock-names : from common clock binding: must contain "hdmicec",
		  corresponding to entry in the clocks property.
  - samsung,syscon-phandle - phandle to the PMU system controller
  - hdmi-phandle - phandle to the HDMI controller, see also cec.txt.

Optional:
  - needs-hpd : if present the CEC support is only available when the HPD
		is high. See cec.txt for more details.

Example:

hdmicec: cec@100b0000 {
	compatible = "samsung,s5p-cec";
	reg = <0x100B0000 0x200>;
	interrupts = <0 114 0>;
	clocks = <&clock CLK_HDMI_CEC>;
	clock-names = "hdmicec";
	samsung,syscon-phandle = <&pmu_system_controller>;
	hdmi-phandle = <&hdmi>;
	pinctrl-names = "default";
	pinctrl-0 = <&hdmi_cec>;
};
+1 −1
Original line number Diff line number Diff line
@@ -2868,7 +2868,7 @@ M: Marek Szyprowski <m.szyprowski@samsung.com>
L:	linux-samsung-soc@vger.kernel.org
L:	linux-media@vger.kernel.org
S:	Maintained
F:	Documentation/devicetree/bindings/media/s5p-cec.txt
F:	Documentation/devicetree/bindings/media/cec/samsung,s5p-cec.yaml
F:	drivers/media/cec/platform/s5p/
ARM/SAMSUNG S5P SERIES JPEG CODEC SUPPORT