-
Notifications
You must be signed in to change notification settings - Fork 809
/
zynq-zed-adv7511-ad4134.dts
146 lines (120 loc) · 3.03 KB
/
zynq-zed-adv7511-ad4134.dts
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
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
// SPDX-License-Identifier: GPL-2.0-or-later
/*
* Analog Devices AD4134
* https://wiki.analog.com/resources/tools-software/linux-drivers/iio-adc/ad4134
* https://wiki.analog.com/resources/eval/user-guides/ad4134
*
* hdl_project: <ad4134_fmc/zed>
*
* Copyright (C) 2022 Analog Devices, Inc.
*/
/dts-v1/;
#include <dt-bindings/gpio/gpio.h>
#include "zynq-zed.dtsi"
#include "zynq-zed-adv7511.dtsi"
/ {
avdd5: regulator-avdd5 {
compatible = "regulator-fixed";
regulator-name = "avdd5";
regulator-min-microvolt = <5000000>;
regulator-max-microvolt = <5000000>;
regulator-always-on;
};
avdd1v8: regulator-avdd1v8 {
compatible = "regulator-fixed";
regulator-name = "avdd1v8";
regulator-min-microvolt = <1800000>;
regulator-max-microvolt = <1800000>;
regulator-always-on;
};
iovdd: regulator-iovdd {
compatible = "regulator-fixed";
regulator-name = "iovdd";
regulator-min-microvolt = <1800000>;
regulator-max-microvolt = <1800000>;
regulator-always-on;
};
refin: regulator-refin {
compatible = "regulator-fixed";
regulator-name = "refin";
regulator-min-microvolt = <4096000>;
regulator-max-microvolt = <4096000>;
regulator-always-on;
};
sys_clk: sys-clk {
compatible = "fixed-clock";
#clock-cells = <0>;
clock-frequency = <48000000>;
};
};
&fpga_axi {
rx_dma: rx-dmac@44a30000 {
compatible = "adi,axi-dmac-1.00.a";
reg = <0x44a30000 0x1000>;
#dma-cells = <1>;
interrupt-parent = <&intc>;
interrupts = <0 57 IRQ_TYPE_LEVEL_HIGH>;
clocks = <&clkc 15>;
adi,channels {
#size-cells = <0>;
#address-cells = <1>;
dma-channel@0 {
reg = <0>;
adi,source-bus-width = <128>;
adi,source-bus-type = <1>;
adi,destination-bus-width = <64>;
adi,destination-bus-type = <0>;
};
};
};
axi_spi_engine_0: spi@44a00000 {
compatible = "adi,axi-spi-engine-1.00.a";
reg = <0x44a00000 0x10000>;
interrupt-parent = <&intc>;
interrupts = <0 56 IRQ_TYPE_LEVEL_HIGH>;
clocks = <&clkc 15 &spi_clk>;
clock-names = "s_axi_aclk", "spi_clk";
num-cs = <1>;
#address-cells = <0x1>;
#size-cells = <0x0>;
ad4134_spi_engine: spi_engine@0 {
compatible = "adi,ad4134-spi-engine";
reg = <0>;
spi-max-frequency = <48000000>;
spi-cpha;
};
};
ad4134_odr_generator: odr_generator@44b00000 {
compatible = "adi,axi-pwmgen";
reg = <0x44b00000 0x10000>;
#pwm-cells = <2>;
clocks = <&clkc 15>;
};
spi_clk: axi_clkgen@44b10000 {
compatible = "adi,axi-clkgen-2.00.a";
reg = <0x44b10000 0x10000>;
#clock-cells = <0>;
clocks = <&clkc 15>, <&clkc 15>;
clock-names = "s_axi_aclk", "clkin1";
};
};
&spi0 {
status = "okay";
ad4134: adc@0 {
compatible = "adi,ad4134";
reg = <0>;
spi-max-frequency = <1000000>;
reset-gpios = <&gpio0 86 GPIO_ACTIVE_LOW>;
clocks = <&sys_clk>;
clock-names = "sys_clk";
dmas = <&rx_dma 0>;
dma-names = "rx";
pwms = <&ad4134_odr_generator 0 0>;
pwm-names = "odr_pwm";
avdd5-supply = <&avdd5>;
avdd1v8-supply = <&avdd1v8>;
iovdd-supply = <&iovdd>;
refin-supply = <&refin>;
adi,spi-engine = <&ad4134_spi_engine>;
};
};