Skip to content

Commit bb8ab1a

Browse files
committed
arm: dts: xilinx: Add dts for AD4062 on cora
Add device tree for using AD4062 on CoraZ7. Signed-off-by: Jorge Marques <jorge.marques@analog.com>
1 parent 86e6a3b commit bb8ab1a

File tree

1 file changed

+78
-0
lines changed

1 file changed

+78
-0
lines changed
Lines changed: 78 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,78 @@
1+
// SPDX-License-Identifier: GPL-2.0
2+
/*
3+
* Analog Devices AD4062
4+
*
5+
* hdl_project: <ad4062_ardz/coraz7s>
6+
* Link: https://github.com/analogdevicesinc/hdl/tree/main/projects/ad4062_ardz
7+
* board_revision: <A>
8+
*
9+
* Copyright (C) 2025 Analog Devices Inc.
10+
*/
11+
/dts-v1/;
12+
#include "zynq-coraz7s.dtsi"
13+
#include "zynq-coraz7s-axi-sysid.dtsi"
14+
#include <dt-bindings/interrupt-controller/irq.h>
15+
#include <dt-bindings/gpio/gpio.h>
16+
#include <dt-bindings/iio/adc/adi,ad4052.h>
17+
18+
/ {
19+
vdd: regulator-vdd {
20+
compatible = "regulator-fixed";
21+
regulator-name = "vdd-fixed-supply";
22+
regulator-min-microvolt = <3300000>;
23+
regulator-max-microvolt = <3300000>;
24+
regulator-always-on;
25+
};
26+
27+
vio: regulator-vio {
28+
compatible = "regulator-fixed";
29+
regulator-name = "vio-fixed-supply";
30+
regulator-min-microvolt = <3300000>;
31+
regulator-max-microvolt = <3300000>;
32+
regulator-always-on;
33+
};
34+
35+
ref: regulator-ref {
36+
compatible = "regulator-fixed";
37+
regulator-name = "ref-fixed-supply";
38+
regulator-min-microvolt = <2500000>;
39+
regulator-max-microvolt = <2500000>;
40+
regulator-always-on;
41+
};
42+
};
43+
44+
&fpga_axi {
45+
i3c_master: i3c-master@44a00000 {
46+
compatible = "adi,i3c-master-v1";
47+
reg = <0x44a00000 0x1000>;
48+
interrupt-parent = <&intc>;
49+
interrupts = <0 56 IRQ_TYPE_LEVEL_HIGH>;
50+
clocks = <&clkc 15>;
51+
clock-names = "axi";
52+
53+
#address-cells = <3>;
54+
#size-cells = <0>;
55+
56+
eeprom1: eeprom@52 {
57+
compatible = "atmel,24c32";
58+
reg = <0x52 0x0 0x10>;
59+
};
60+
61+
ad4062: adc@0,2ee007c0000 {
62+
/* Ensure to update the PID (e.g. <0x0 0x2ee 0x707000> */
63+
reg = <0x0 0x2ee 0x7c0000>;
64+
/* Just for ACE, Linux uses the PID */
65+
compatible = "adi,ad4062";
66+
gp1-gpios = <&gpio0 87 GPIO_ACTIVE_HIGH>;
67+
gp0-gpios = <&gpio0 86 GPIO_ACTIVE_HIGH>;
68+
vdd-supply = <&vdd>;
69+
vio-supply = <&vio>;
70+
ref-supply = <&ref>;
71+
72+
interrupt-parent = <&gpio0>;
73+
interrupts = <86 IRQ_TYPE_EDGE_RISING>,
74+
<87 IRQ_TYPE_EDGE_FALLING>;
75+
interrupt-names = "gp0", "gp1";
76+
};
77+
};
78+
};

0 commit comments

Comments
 (0)