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

media: dt-bindings: nvidia,tegra114-cec: convert to DT schema



Convert NVIDIA Tegra HDMI CEC bindings to DT schema.

Signed-off-by: default avatarKrzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Reviewed-by: default avatarRob Herring <robh@kernel.org>
Acked-by: default avatarThierry Reding <treding@nvidia.com>
Signed-off-by: default avatarHans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@kernel.org>
parent 343e1eb4
Loading
Loading
Loading
Loading
+58 −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/nvidia,tegra114-cec.yaml#
$schema: http://devicetree.org/meta-schemas/core.yaml#

title: NVIDIA Tegra HDMI CEC

maintainers:
  - Hans Verkuil <hverkuil-cisco@xs4all.nl>

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

properties:
  compatible:
    enum:
      - nvidia,tegra114-cec
      - nvidia,tegra124-cec
      - nvidia,tegra210-cec

  clocks:
    maxItems: 1

  clock-names:
    items:
      - const: cec

  interrupts:
    maxItems: 1

  reg:
    maxItems: 1

required:
  - compatible
  - clocks
  - clock-names
  - hdmi-phandle
  - interrupts
  - reg

unevaluatedProperties: false

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

    cec@70015000 {
        compatible = "nvidia,tegra124-cec";
        reg = <0x70015000 0x00001000>;
        interrupts = <GIC_SPI 3 IRQ_TYPE_LEVEL_HIGH>;
        clocks = <&tegra_car TEGRA124_CLK_CEC>;
        clock-names = "cec";
        status = "disabled";
        hdmi-phandle = <&hdmi>;
    };
+0 −27
Original line number Diff line number Diff line
* Tegra HDMI CEC hardware

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

Required properties:
  - compatible : value should be one of the following:
	"nvidia,tegra114-cec"
	"nvidia,tegra124-cec"
	"nvidia,tegra210-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 "cec",
		  corresponding to the entry in the clocks property.
  - hdmi-phandle : phandle to the HDMI controller, see also cec.txt.

Example:

cec@70015000 {
	compatible = "nvidia,tegra124-cec";
	reg = <0x0 0x70015000 0x0 0x00001000>;
	interrupts = <GIC_SPI 3 IRQ_TYPE_LEVEL_HIGH>;
	clocks = <&tegra_car TEGRA124_CLK_CEC>;
	clock-names = "cec";
};
+1 −1
Original line number Diff line number Diff line
@@ -3001,7 +3001,7 @@ M: Hans Verkuil <hverkuil-cisco@xs4all.nl>
L:	linux-tegra@vger.kernel.org
L:	linux-media@vger.kernel.org
S:	Maintained
F:	Documentation/devicetree/bindings/media/tegra-cec.txt
F:	Documentation/devicetree/bindings/media/cec/nvidia,tegra114-cec.yaml
F:	drivers/media/cec/platform/tegra/
ARM/TESLA FSD SoC SUPPORT