Skip to content

Commit

Permalink
arm: dts: Add device tree for ADAQ7769-1 on ZedBoard
Browse files Browse the repository at this point in the history
Enables using the ADAQ7769-1 device on ZedBoard with FMC
connector.

Signed-off-by: Jonathan Santos <[email protected]>
  • Loading branch information
jonathanns committed Oct 14, 2024
1 parent 57877cf commit 37a9790
Showing 1 changed file with 96 additions and 0 deletions.
96 changes: 96 additions & 0 deletions arch/arm/boot/dts/zynq-zed-adv7511-adaq7769-1-evb.dts
Original file line number Diff line number Diff line change
@@ -0,0 +1,96 @@
// SPDX-License-Identifier: GPL-2.0
/*
* Analog Devices ADAQ7769-1
* https://wiki.analog.com/resources/eval/user-guides/ad7768-1
*
* hdl_project: <ad77681evb/zed>
* board_revision: <B>
*
* Copyright (C) 2024 Analog Devices Inc.
*/
/dts-v1/;

#include "zynq-zed.dtsi"
#include "zynq-zed-adv7511.dtsi"
#include <dt-bindings/interrupt-controller/irq.h>
#include <dt-bindings/gpio/gpio.h>

/ {
vref: regulator-vref {
compatible = "regulator-fixed";
regulator-name = "fixed-supply";
regulator-min-microvolt = <4096000>;
regulator-max-microvolt = <4096000>;
regulator-always-on;
};

clocks {
ad7768_1_mclk: clock@0 {
#clock-cells = <0>;
compatible = "fixed-clock";
clock-frequency = <16384000>;
};
};
};

&fpga_axi {
rx_dma: rx-dmac@0x44a30000 {
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 16>;

adi,channels {
#size-cells = <0>;
#address-cells = <1>;

dma-channel@0 {
reg = <0>;
adi,source-bus-width = <32>;
adi,source-bus-type = <1>;
adi,destination-bus-width = <64>;
adi,destination-bus-type = <0>;
};
};
};

spi_clock: spieng-axi-clkgen@44a70000 {
compatible = "adi,axi-clkgen-2.00.a";
reg = <0x44a70000 0x10000>;
#clock-cells = <0>;
clocks = <&clkc 15>, <&clkc 16>;
clock-names = "s_axi_aclk", "clkin1";
};

axi_spi_engine_0: spi@0x44a00000 {
compatible = "adi-ex,axi-spi-engine-1.00.a";
reg = <0x44a00000 0x1000>;
interrupt-parent = <&intc>;
interrupts = <0 56 IRQ_TYPE_LEVEL_HIGH>;
clocks = <&clkc 15 &spi_clock>;
clock-names = "s_axi_aclk", "spi_clk";
num-cs = <1>;

#address-cells = <0x1>;
#size-cells = <0x0>;

adaq7769_1: adc@0 {
compatible = "adi,adaq7769-1";
reg = <0>;
spi-max-frequency = <40000000>;
spi-cpol;
spi-cpha;
vref-supply = <&vref>;
adi,sync-in-gpios = <&gpio0 92 GPIO_ACTIVE_LOW>;
adi,aaf-gain = <143>;
reset-gpios = <&gpio0 86 GPIO_ACTIVE_LOW>;
clocks = <&ad7768_1_mclk>;
clock-names = "mclk";
dmas = <&rx_dma 0>;
dma-names = "rx";
#io-channel-cells = <1>;
};
};
};

0 comments on commit 37a9790

Please sign in to comment.