xref: /freebsd/sys/contrib/device-tree/Bindings/media/silabs,si470x.yaml (revision fe75646a0234a261c0013bf1840fdac4acaf0cec)
1# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
2%YAML 1.2
3---
4$id: http://devicetree.org/schemas/media/silabs,si470x.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: Silicon Labs Si470x FM Radio Receiver
8
9maintainers:
10  - Hans Verkuil <hverkuil@xs4all.nl>
11  - Paweł Chmiel <pawel.mikolaj.chmiel@gmail.com>
12
13properties:
14  compatible:
15    const: silabs,si470x
16
17  reg:
18    maxItems: 1
19
20  interrupts:
21    maxItems: 1
22
23  reset-gpios:
24    maxItems: 1
25
26required:
27  - compatible
28  - reg
29
30additionalProperties: false
31
32examples:
33  - |
34    #include <dt-bindings/gpio/gpio.h>
35    #include <dt-bindings/interrupt-controller/irq.h>
36
37    i2c {
38        #address-cells = <1>;
39        #size-cells = <0>;
40
41        fmradio@10 {
42            compatible = "silabs,si470x";
43            reg = <0x10>;
44            interrupt-parent = <&gpj2>;
45            interrupts = <4 IRQ_TYPE_EDGE_FALLING>;
46            reset-gpios = <&gpj2 5 GPIO_ACTIVE_HIGH>;
47        };
48    };
49