Commit 2653fad0 authored by Neil Armstrong's avatar Neil Armstrong Committed by Mauro Carvalho Chehab
Browse files

media: dt-bindings: media: convert meson-ir.txt to dt-schema



Convert the Amlogic Meson IR remote control receiver bindings to
dt-schema.

Take in account the used variant with amlogic,meson-gx-ir.

Reviewed-by: default avatarMartin Blumenstingl <martin.blumenstingl@googlemail.com>
Reviewed-by: default avatarKrzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Signed-off-by: default avatarNeil Armstrong <neil.armstrong@linaro.org>
Signed-off-by: default avatarSakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@kernel.org>
parent 52eee3b9
Loading
Loading
Loading
Loading
+47 −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/amlogic,meson6-ir.yaml#
$schema: http://devicetree.org/meta-schemas/core.yaml#

title: Amlogic Meson IR remote control receiver

maintainers:
  - Neil Armstrong <neil.armstrong@linaro.org>

allOf:
  - $ref: rc.yaml#

properties:
  compatible:
    oneOf:
      - enum:
          - amlogic,meson6-ir
          - amlogic,meson8b-ir
          - amlogic,meson-gxbb-ir
      - items:
          - const: amlogic,meson-gx-ir
          - const: amlogic,meson-gxbb-ir

  reg:
    maxItems: 1

  interrupts:
    maxItems: 1

required:
  - compatible
  - reg
  - interrupts

unevaluatedProperties: false

examples:
  - |
    #include <dt-bindings/interrupt-controller/irq.h>
    #include <dt-bindings/interrupt-controller/arm-gic.h>
    ir-receiver@c8100480 {
        compatible = "amlogic,meson6-ir";
        reg = <0xc8100480 0x20>;
        interrupts = <GIC_SPI 15 IRQ_TYPE_EDGE_RISING>;
    };
+0 −20
Original line number Diff line number Diff line
* Amlogic Meson IR remote control receiver

Required properties:
 - compatible	: depending on the platform this should be one of:
		  - "amlogic,meson6-ir"
		  - "amlogic,meson8b-ir"
		  - "amlogic,meson-gxbb-ir"
 - reg		: physical base address and length of the device registers
 - interrupts	: a single specifier for the interrupt from the device

Optional properties:
 - linux,rc-map-name:	see rc.txt file in the same directory.

Example:

	ir-receiver@c8100480 {
		compatible= "amlogic,meson6-ir";
		reg = <0xc8100480 0x20>;
		interrupts = <0 15 1>;
	};