Path: blob/master/Documentation/devicetree/bindings/iio/frequency/adi,admfm2000.yaml
26309 views
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)1# Copyright 2024 Analog Devices Inc.2%YAML 1.23---4$id: http://devicetree.org/schemas/iio/frequency/adi,admfm2000.yaml#5$schema: http://devicetree.org/meta-schemas/core.yaml#67title: ADMFM2000 Dual Microwave Down Converter89maintainers:10- Kim Seer Paller <kimseer.paller@analog.com>1112description:13Dual microwave down converter module with input RF and LO frequency ranges14from 0.5 to 32 GHz and an output IF frequency range from 0.1 to 8 GHz.15It consists of a LNA, mixer, IF filter, DSA, and IF amplifier for each down16conversion path.1718properties:19compatible:20enum:21- adi,admfm20002223'#address-cells':24const: 12526'#size-cells':27const: 02829patternProperties:30"^channel@[0-1]$":31type: object32description: Represents a channel of the device.3334additionalProperties: false3536properties:37reg:38description:39The channel number.40minimum: 041maximum: 14243adi,mixer-mode:44description:45Enable mixer mode for the channel. It downconverts RF between 5 GHz46and 32 GHz to IF between 0.5 GHz and 8 GHz. If not present, the channel47is in direct IF mode which bypasses the mixer and downconverts RF48between 2 GHz and 8 GHz to IF between 0.5 GHz and 8 GHz.49type: boolean5051switch-gpios:52description: |53GPIOs to select the RF path for the channel. The same state of CTRL-A54and CTRL-B GPIOs is not permitted.55CTRL-A CTRL-B CH1 Status CH2 Status561 0 Direct IF mode Mixer mode570 1 Mixer mode Direct IF mode5859items:60- description: CTRL-A GPIO61- description: CTRL-B GPIO6263attenuation-gpios:64description: |65Choice of attenuation:66DSA-V4 DSA-V3 DSA-V2 DSA-V1 DSA-V0671 1 1 1 1 0 dB681 1 1 1 0 -1 dB691 1 1 0 1 -2 dB701 1 0 1 1 -4 dB711 0 1 1 1 -8 dB720 1 1 1 1 -16 dB730 0 0 0 0 -31 dB7475items:76- description: DSA-V0 GPIO77- description: DSA-V1 GPIO78- description: DSA-V2 GPIO79- description: DSA-V3 GPIO80- description: DSA-V4 GPIO8182required:83- reg84- switch-gpios85- attenuation-gpios8687required:88- compatible8990additionalProperties: false9192examples:93- |94#include <dt-bindings/gpio/gpio.h>95converter {96compatible = "adi,admfm2000";9798#address-cells = <1>;99#size-cells = <0>;100101channel@0 {102reg = <0>;103switch-gpios = <&gpio 1 GPIO_ACTIVE_LOW>,104<&gpio 2 GPIO_ACTIVE_HIGH>;105106attenuation-gpios = <&gpio 17 GPIO_ACTIVE_LOW>,107<&gpio 22 GPIO_ACTIVE_LOW>,108<&gpio 23 GPIO_ACTIVE_LOW>,109<&gpio 24 GPIO_ACTIVE_LOW>,110<&gpio 25 GPIO_ACTIVE_LOW>;111};112113channel@1 {114reg = <1>;115adi,mixer-mode;116switch-gpios = <&gpio 3 GPIO_ACTIVE_LOW>,117<&gpio 4 GPIO_ACTIVE_HIGH>;118119attenuation-gpios = <&gpio 0 GPIO_ACTIVE_LOW>,120<&gpio 5 GPIO_ACTIVE_LOW>,121<&gpio 6 GPIO_ACTIVE_LOW>,122<&gpio 16 GPIO_ACTIVE_LOW>,123<&gpio 26 GPIO_ACTIVE_LOW>;124};125};126...127128129