From 087e7afc2179c0cc33e06437e8bbbabbaa9ac763 Mon Sep 17 00:00:00 2001 From: David Lechner Date: Tue, 12 Sep 2023 13:33:26 -0500 Subject: [PATCH] arm: dts: zynq-adv7511: ad2s1210: add devicetree for ad2s1210 eval This offers basic support for EVAL-AD2S1210SDZ on the ZedBoard. Co-developed-by: Apelete Seketeli Signed-off-by: Apelete Seketeli Signed-off-by: David Lechner --- .../boot/dts/zynq-zed-adv7511-ad2s1210.dts | 63 +++++++++++++++++++ 1 file changed, 63 insertions(+) create mode 100644 arch/arm/boot/dts/zynq-zed-adv7511-ad2s1210.dts diff --git a/arch/arm/boot/dts/zynq-zed-adv7511-ad2s1210.dts b/arch/arm/boot/dts/zynq-zed-adv7511-ad2s1210.dts new file mode 100644 index 0000000000000..c33b708f3e570 --- /dev/null +++ b/arch/arm/boot/dts/zynq-zed-adv7511-ad2s1210.dts @@ -0,0 +1,63 @@ +// SPDX-License-Identifier: GPL-2.0 +/* + * Analog Devices AD2S1210 + * https://wiki.analog.com/resources/tools-software/linux-drivers/iio-resolver/ad2s1210 + * https://wiki.analog.com/resources/eval/user-guides/ad2s1210_sdz + * + * hdl_project: + * board_revision: <> + * + * Copyright (C) 2023 BayLibre SAS. + */ +/dts-v1/; + +#include + +#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_clkin>; + sample-gpios = <&gpio0 90 GPIO_ACTIVE_LOW>; + mode-gpios = <&gpio0 87 0>, <&gpio0 86 0>; + resolution-gpios = <&gpio0 89 0>, <&gpio0 88 0>; + assigned-resolution-bits = <16>; + avdd-supply = <&ad2s1210_avdd>; + dvdd-supply = <&ad2s1210_dvdd>; + vdrive-supply = <&ad2s1210_dvdd>; + }; +}; + +/ { + /* external oscilator on AD2S1210 eval board */ + ad2s1210_clkin: ad2s1210-clkin-clock { + compatible = "fixed-clock"; + #clock-cells = <0>; + clock-frequency = <8192000>; + }; + + /* U704 on eval board */ + ad2s1210_avdd: ad2s1210-avdd-regulator { + compatible = "regulator-fixed"; + regulator-name = "ad2s1210_avdd"; + regulator-min-microvolt = <5000000>; + regulator-max-microvolt = <5000000>; + regulator-always-on; + }; + + /* U700 on eval board */ + ad2s1210_dvdd: ad2s1210-dvdd-regulator { + compatible = "regulator-fixed"; + regulator-name = "ad2s1210_dvdd"; + regulator-min-microvolt = <5000000>; + regulator-max-microvolt = <5000000>; + regulator-always-on; + }; +};