| # 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>; |
| }; |
| }; |