summaryrefslogtreecommitdiffstats
path: root/Documentation/devicetree/bindings/media/silabs,si470x.yaml
blob: a3d19c562ca3961c3008cd17da87baa18005cc53 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
%YAML 1.2
---
$id: http://devicetree.org/schemas/media/silabs,si470x.yaml#
$schema: http://devicetree.org/meta-schemas/core.yaml#

title: Silicon Labs Si470x FM Radio Receiver

maintainers:
  - Hans Verkuil <hverkuil@xs4all.nl>
  - Paweł Chmiel <pawel.mikolaj.chmiel@gmail.com>

properties:
  compatible:
    const: silabs,si470x

  reg:
    maxItems: 1

  interrupts:
    maxItems: 1

  reset-gpios:
    maxItems: 1

required:
  - compatible
  - reg

additionalProperties: false

examples:
  - |
    #include <dt-bindings/gpio/gpio.h>
    #include <dt-bindings/interrupt-controller/irq.h>

    i2c {
        #address-cells = <1>;
        #size-cells = <0>;

        fmradio@10 {
            compatible = "silabs,si470x";
            reg = <0x10>;
            interrupt-parent = <&gpj2>;
            interrupts = <4 IRQ_TYPE_EDGE_FALLING>;
            reset-gpios = <&gpj2 5 GPIO_ACTIVE_HIGH>;
        };
    };