dt-bindings: media: hisilicon,hix5hd2-ir: convert to YAML
Subsystems (2)
PATCH 1/1 dt-bindings: media: hisilicon,hix5hd2-ir: convert to YAML
Convert the HiSilicon Hix5hd2 IR bindings to DT schema.
Signed-off-by Andrea Poldi <[email protected]>
--- .../bindings/media/hisilicon,hix5hd2-ir.yaml | 53 +++++++++++++++++++ .../devicetree/bindings/media/hix5hd2-ir.txt | 26 --------- 2 files changed, 53 insertions(+), 26 deletions(-) create mode 100644 Documentation/devicetree/bindings/media/hisilicon,hix5hd2-ir.yaml delete mode 100644 Documentation/devicetree/bindings/media/hix5hd2-ir.txt
Documentation/devicetree/bindings/media/hisilicon,hix5hd2-ir.yaml new file +53 -0
@@ -0,0 +1,53 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/media/hisilicon,hix5hd2-ir.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: HiSilicon Hix5hd2 Infrared Receiver + +maintainers: + - Shawn Guo <[email protected]> + +allOf: + - $ref: rc.yaml# + +properties: + compatible: + enum: + - hisilicon,hix5hd2-ir + - hisilicon,hi3796cv300-ir + + reg: + maxItems: 1 + + interrupts: + maxItems: 1 + + clocks: + maxItems: 1 + + hisilicon,power-syscon: + $ref: /schemas/types.yaml#/definitions/phandle + description: phandle of syscon used to control power. + deprecated: true + +required: + - compatible + - reg + - interrupts + - clocks + +unevaluatedProperties: false + +examples: + - | + #include <dt-bindings/interrupt-controller/arm-gic.h> + + ir@f8001000 { + compatible = "hisilicon,hix5hd2-ir"; + reg = <0xf8001000 0x1000>; + interrupts = <0 47 4>; + clocks = <&clock 0>; + linux,rc-map-name = "rc-tivo"; + };
Documentation/devicetree/bindings/media/hix5hd2-ir.txt deleted +0 -26
@@ -1,26 +0,0 @@ -Device-Tree bindings for hix5hd2 ir IP - -Required properties: - - compatible: Should contain "hisilicon,hix5hd2-ir", or: - - "hisilicon,hi3796cv300-ir" for Hi3796CV300 IR device. - - reg: Base physical address of the controller and length of memory - mapped region. - - interrupts: interrupt-specifier for the sole interrupt generated by - the device. The interrupt specifier format depends on the interrupt - controller parent. - - clocks: clock phandle and specifier pair. - -Optional properties: - - linux,rc-map-name: see rc.txt file in the same directory. - - hisilicon,power-syscon: DEPRECATED. Don't use this in new dts files. - Provide correct clocks instead. - -Example node: - - ir: ir@f8001000 { - compatible = "hisilicon,hix5hd2-ir"; - reg = <0xf8001000 0x1000>; - interrupts = <0 47 4>; - clocks = <&clock HIX5HD2_IR_CLOCK>; - linux,rc-map-name = "rc-tivo"; - };
Signature · 1 line
2.50.1 (Apple Git-155)
Quoted 6 lines · Andrea Poldi
Convert the HiSilicon Hix5hd2 IR bindings to DT schema.
Signed-off-by Andrea Poldi <[email protected]>--- .../bindings/media/hisilicon,hix5hd2-ir.yaml | 53 +++++++++++++++++++ .../devicetree/bindings/media/hix5hd2-ir.txt | 26 ---------
Use dfn: on lore. It's your prerequisite for doing conversion.
Binding was already done for three days.
Best regards,
Krzysztof