Skip to content

Commit

Permalink
arm: dts: zynq-adv7511: ad2s1210: add devicetree for ad2s1210 eval
Browse files Browse the repository at this point in the history
This offers basic support for EVAL-AD2S1210SDZ on the ZedBoard.

Signed-off-by: Apelete Seketeli <[email protected]>
Signed-off-by: David Lechner <[email protected]>
  • Loading branch information
dlech committed Sep 12, 2023
1 parent 02deb60 commit c0d0601
Showing 1 changed file with 42 additions and 0 deletions.
42 changes: 42 additions & 0 deletions arch/arm/boot/dts/zynq-zed-adv7511-ad2s1210.dts
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
// SPDX-License-Identifier: GPL-2.0
/*
* Analog Devices AD2S1210
* https://wiki.analog.com/resources/tools-software/linux-drivers/iio-resolver/ad2s1210
*
* hdl_project: <ad2s1210_sdz/zed>
* board_revision: <>
*
* Copyright (C) 2023 BayLibre SAS.
*/
/dts-v1/;

#include <dt-bindings/gpio/gpio.h>

#include "zynq-zed.dtsi"
#include "zynq-zed-adv7511.dtsi"

&spi0 {
status = "okay";

ad2s1210@0 {
compatible = "adi,ad2s1210";
reg = <0>;
spi-cpha;
spi-max-frequency = <20000000>;
clocks = <&ad2s1210_osc>;
clock-names = "fclkin";
sample-gpios = <&gpio0 90 0>;
mode-gpios = <&gpio0 86 0>, <&gpio0 87 0>;
resolution-gpios = <&gpio0 88 0>, <&gpio0 89 0>;
};
};

/ {
/* external oscilator on AD2S1210 eval board */
ad2s1210_osc: ad2s1210-osc {
compatible = "fixed-clock";
#clock-cells = <0>;
clock-frequency = <8192000>;
};
};

0 comments on commit c0d0601

Please sign in to comment.