Tom Rini | 53633a8 | 2024-02-29 12:33:36 -0500 | [diff] [blame^] | 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 | |
| 7 | title: Silicon Labs Si470x FM Radio Receiver |
| 8 | |
| 9 | maintainers: |
| 10 | - Hans Verkuil <hverkuil@xs4all.nl> |
| 11 | - Paweł Chmiel <pawel.mikolaj.chmiel@gmail.com> |
| 12 | |
| 13 | properties: |
| 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 | |
| 26 | required: |
| 27 | - compatible |
| 28 | - reg |
| 29 | |
| 30 | additionalProperties: false |
| 31 | |
| 32 | examples: |
| 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 | }; |