|
| 1 | +// SPDX-License-Identifier: GPL-2.0 |
| 2 | +/* |
| 3 | + * Analog Devices AD4630-24 |
| 4 | + * |
| 5 | + * hdl_project: <ad4630_fmc/zed> |
| 6 | + * board_revision: <B> |
| 7 | + * |
| 8 | + * Copyright (C) 2023 Analog Devices Inc. |
| 9 | + */ |
| 10 | +/dts-v1/; |
| 11 | + |
| 12 | +#include "zynq-zed.dtsi" |
| 13 | +#include "zynq-zed-adv7511.dtsi" |
| 14 | +#include <dt-bindings/gpio/gpio.h> |
| 15 | +#include <dt-bindings/pwm/pwm.h> |
| 16 | + |
| 17 | +/ { |
| 18 | + vref: regulator-vref { |
| 19 | + compatible = "regulator-fixed"; |
| 20 | + regulator-name = "fixed-supply"; |
| 21 | + regulator-min-microvolt = <5000000>; |
| 22 | + regulator-max-microvolt = <5000000>; |
| 23 | + regulator-always-on; |
| 24 | + }; |
| 25 | + |
| 26 | + vdd_1_8: regulator-vdd-1-8 { |
| 27 | + compatible = "regulator-fixed"; |
| 28 | + regulator-name = "fixed-supply"; |
| 29 | + regulator-min-microvolt = <1800000>; |
| 30 | + regulator-max-microvolt = <1800000>; |
| 31 | + regulator-always-on; |
| 32 | + }; |
| 33 | + |
| 34 | + vio: regulator-vio { |
| 35 | + compatible = "regulator-fixed"; |
| 36 | + regulator-name = "fixed-supply"; |
| 37 | + regulator-min-microvolt = <1800000>; |
| 38 | + regulator-max-microvolt = <1800000>; |
| 39 | + regulator-always-on; |
| 40 | + }; |
| 41 | + |
| 42 | + clocks { |
| 43 | + cnv_ext_clk: ext-clk { |
| 44 | + #clock-cells = <0x0>; |
| 45 | + compatible = "fixed-clock"; |
| 46 | + clock-frequency = <100000000>; |
| 47 | + clock-output-names = "cnv_ext_clk"; |
| 48 | + }; |
| 49 | + }; |
| 50 | +}; |
| 51 | + |
| 52 | +&fpga_axi { |
| 53 | + rx_dma: rx-dmac@44a30000 { |
| 54 | + compatible = "adi,axi-dmac-1.00.a"; |
| 55 | + reg = <0x44a30000 0x1000>; |
| 56 | + #dma-cells = <1>; |
| 57 | + interrupts = <0 57 IRQ_TYPE_LEVEL_HIGH>; |
| 58 | + clocks = <&clkc 15>; |
| 59 | + |
| 60 | + adi,channels { |
| 61 | + #size-cells = <0>; |
| 62 | + #address-cells = <1>; |
| 63 | + |
| 64 | + dma-channel@0 { |
| 65 | + reg = <0>; |
| 66 | + adi,source-bus-width = <64>; |
| 67 | + adi,source-bus-type = <1>; |
| 68 | + adi,destination-bus-width = <64>; |
| 69 | + adi,destination-bus-type = <0>; |
| 70 | + }; |
| 71 | + }; |
| 72 | + }; |
| 73 | + |
| 74 | + spi_clk: axi-clkgen@0x44a70000 { |
| 75 | + compatible = "adi,axi-clkgen-2.00.a"; |
| 76 | + reg = <0x44a70000 0x10000>; |
| 77 | + #clock-cells = <0>; |
| 78 | + clocks = <&clkc 15>, <&clkc 15>; |
| 79 | + clock-names = "s_axi_aclk", "clkin1"; |
| 80 | + clock-output-names = "spi_clk"; |
| 81 | + }; |
| 82 | + |
| 83 | + axi_pwm_gen: axi-pwm-gen@ { |
| 84 | + compatible = "adi,axi-pwmgen"; |
| 85 | + reg = <0x44b00000 0x1000>; |
| 86 | + label = "ad463x_cnv"; |
| 87 | + #pwm-cells = <2>; |
| 88 | + clocks = <&cnv_ext_clk>; |
| 89 | + |
| 90 | + }; |
| 91 | + |
| 92 | + axi_spi_engine: spi@44a00000 { |
| 93 | + compatible = "adi-ex,axi-spi-engine-1.00.a"; |
| 94 | + reg = <0x44a00000 0x1FF>; |
| 95 | + interrupt-parent = <&intc>; |
| 96 | + interrupts = <0 56 IRQ_TYPE_LEVEL_HIGH>; |
| 97 | + clocks = <&clkc 15>, <&spi_clk>; |
| 98 | + clock-names = "s_axi_aclk", "spi_clk"; |
| 99 | + num-cs = <1>; |
| 100 | + |
| 101 | + #address-cells = <0x1>; |
| 102 | + #size-cells = <0x0>; |
| 103 | + |
| 104 | + ad4030: ad4030@0 { |
| 105 | + compatible = "adi,ad4030-24"; |
| 106 | + reg = <0>; |
| 107 | + vdd-supply = <&vref>; |
| 108 | + vdd_1_8-supply = <&vdd_1_8>; |
| 109 | + vio-supply = <&vio>; |
| 110 | + vref-supply = <&vref>; |
| 111 | + spi-max-frequency = <80000000>; |
| 112 | + reset-gpios = <&gpio0 86 GPIO_ACTIVE_LOW>; |
| 113 | + |
| 114 | + adi,lane-mode = <0>; |
| 115 | + adi,clock-mode = <0>; |
| 116 | + adi,out-data-mode = <0>; |
| 117 | + |
| 118 | + adi,spi-trigger; |
| 119 | + clocks = <&cnv_ext_clk>; |
| 120 | + clock-names = "trigger_clock"; |
| 121 | + dmas = <&rx_dma 0>; |
| 122 | + dma-names = "rx"; |
| 123 | + pwm-names = "spi_trigger", "cnv"; |
| 124 | + pwms = <&axi_pwm_gen 0 0>, <&axi_pwm_gen 1 0>; |
| 125 | + }; |
| 126 | + }; |
| 127 | +}; |
0 commit comments