|
| 1 | +// SPDX-License-Identifier: GPL-2.0 |
| 2 | +/* |
| 3 | + * Analog Devices AD405x |
| 4 | + * |
| 5 | + * hdl_project: <ad4052_ardz/coraz7s> |
| 6 | + * |
| 7 | + * Copyright (C) 2024 Analog Devices Inc. |
| 8 | + */ |
| 9 | + |
| 10 | +/dts-v1/; |
| 11 | +#include "zynq-coraz7s.dtsi" |
| 12 | +#include <dt-bindings/interrupt-controller/irq.h> |
| 13 | +#include <dt-bindings/gpio/gpio.h> |
| 14 | + |
| 15 | +&fpga_axi { |
| 16 | + rx_dma: rx-dmac@44a30000 { |
| 17 | + compatible = "adi,axi-dmac-1.00.a"; |
| 18 | + reg = <0x44a30000 0x1000>; |
| 19 | + #dma-cells = <1>; |
| 20 | + interrupt-parent = <&intc>; |
| 21 | + interrupts = <0 57 IRQ_TYPE_LEVEL_HIGH>; |
| 22 | + clocks = <&clkc 15>; |
| 23 | + }; |
| 24 | + |
| 25 | + spi_clk: axi-clkgen@44a70000 { |
| 26 | + compatible = "adi,axi-clkgen-2.00.a"; |
| 27 | + reg = <0x44a70000 0x10000>; |
| 28 | + #clock-cells = <0>; |
| 29 | + clocks = <&clkc 15>, <&clkc 15>; |
| 30 | + clock-names = "s_axi_aclk", "clkin1"; |
| 31 | + clock-output-names = "spi_clk"; |
| 32 | + }; |
| 33 | + |
| 34 | + adc_trigger: pwm@44b00000 { |
| 35 | + compatible = "adi,axi-pwmgen-2.00.a"; |
| 36 | + reg = <0x44b00000 0x1000>; |
| 37 | + label = "ad4052_cnv"; |
| 38 | + #pwm-cells = <2>; |
| 39 | + clocks = <&spi_clk>; |
| 40 | + }; |
| 41 | + |
| 42 | + axi_spi_engine: spi@44a00000 { |
| 43 | + compatible = "adi-ex,axi-spi-engine-1.00.a"; |
| 44 | + reg = <0x44a00000 0x1FF>; |
| 45 | + interrupt-parent = <&intc>; |
| 46 | + interrupts = <0 56 IRQ_TYPE_LEVEL_HIGH>; |
| 47 | + clocks = <&clkc 15>, <&spi_clk>; |
| 48 | + clock-names = "s_axi_aclk", "spi_clk"; |
| 49 | + num-cs = <1>; |
| 50 | + |
| 51 | + #address-cells = <0x1>; |
| 52 | + #size-cells = <0x0>; |
| 53 | + |
| 54 | + ad4052: ad4052@0 { |
| 55 | + compatible = "adi,ad4052"; |
| 56 | + reg = <0>; |
| 57 | + spi-max-frequency = <25000000>; |
| 58 | + clocks = <&spi_clk>; |
| 59 | + clock-names = "ref_clk"; |
| 60 | + dmas = <&rx_dma 0>; |
| 61 | + dma-names = "rx"; |
| 62 | + pwm-names = "cnv"; |
| 63 | + pwms = <&adc_trigger 0 0>; |
| 64 | + cnv-gpios = <&gpio0 88 GPIO_ACTIVE_HIGH>; |
| 65 | + interrupt-parent = <&intc>; |
| 66 | + interrupts = <0 58 IRQ_TYPE_EDGE_RISING>; |
| 67 | + |
| 68 | + adi,functional-mode = <0>; |
| 69 | + }; |
| 70 | + }; |
| 71 | +}; |
0 commit comments