-
Notifications
You must be signed in to change notification settings - Fork 810
/
adi,admfm2000.yaml
125 lines (100 loc) · 2.85 KB
/
adi,admfm2000.yaml
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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
# Copyright 2023 Analog Devices Inc.
%YAML 1.2
---
$id: http://devicetree.org/schemas/iio/frequency/adi,admfm2000.yaml#
$schema: http://devicetree.org/meta-schemas/core.yaml#
title: ADMFM2000 Dual Microwave Down Converter
maintainers:
- Kim Seer Paller <kimseer.paller@analog.com>
description: |
Dual microwave down converter module with input RF and LO frequency ranges
from 0.5 to 32 GHz and an output IF frequency range from 0.1 to 8 GHz.
It consists of a LNA, mixer, IF filter, DSA, and IF amplifier for each down
conversion path.
properties:
compatible:
enum:
- adi,admfm2000
vcc-supply: true
switch1-gpios:
description:
Must contain an array of 2 GPIO specifiers, referring to the GPIO pins
connected to the channel 1 switch controls.
minItems: 2
maxItems: 2
switch2-gpios:
description:
Must contain an array of 2 GPIO specifiers, referring to the GPIO pins
connected to the channel 2 switch controls.
minItems: 2
maxItems: 2
attenuation1-gpios:
description:
Must contain an array of 5 GPIO specifiers, referring to the GPIO pins
connected to the channel 1 DSA attenuation controls.
minItems: 5
maxItems: 5
attenuation2-gpios:
description:
Must contain an array of 5 GPIO specifiers, referring to the GPIO pins
connected to the channel 2 DSA attenuation controls.
minItems: 5
maxItems: 5
'#address-cells':
const: 1
'#size-cells':
const: 0
patternProperties:
"^channel@[0-1]$":
type: object
description: Represents a channel of the device.
properties:
reg:
description:
The channel number.
minimum: 0
maximum: 1
adi,direct-if-mode:
description:
Bypass mixer mode.
type: boolean
required:
- reg
required:
- compatible
- switch1-gpios
- switch2-gpios
- attenuation1-gpios
- attenuation2-gpios
additionalProperties: false
examples:
- |
#include <dt-bindings/gpio/gpio.h>
admfm2000 {
compatible = "adi,admfm2000";
switch1-gpios = <&gpio 1 GPIO_ACTIVE_LOW>,
<&gpio 2 GPIO_ACTIVE_HIGH>;
switch2-gpios = <&gpio 3 GPIO_ACTIVE_LOW>,
<&gpio 4 GPIO_ACTIVE_HIGH>;
attenuation1-gpios = <&gpio 17 GPIO_ACTIVE_LOW>,
<&gpio 22 GPIO_ACTIVE_LOW>,
<&gpio 23 GPIO_ACTIVE_LOW>,
<&gpio 24 GPIO_ACTIVE_LOW>,
<&gpio 25 GPIO_ACTIVE_LOW>;
attenuation2-gpios = <&gpio 0 GPIO_ACTIVE_LOW>,
<&gpio 5 GPIO_ACTIVE_LOW>,
<&gpio 6 GPIO_ACTIVE_LOW>,
<&gpio 16 GPIO_ACTIVE_LOW>,
<&gpio 26 GPIO_ACTIVE_LOW>;
#address-cells = <1>;
#size-cells = <0>;
channel@0 {
reg = <0>;
adi,direct-if-mode;
};
channel@1 {
reg = <1>;
};
};
...