Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 15 additions & 11 deletions Documentation/devicetree/bindings/iio/trx-rf/adi,ad9088.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,20 +33,14 @@ properties:
description: Device clock name

'#clock-cells':
const: 0
const: 1

reset-gpios:
maxItems: 1

clock-output-names:
maxItems: 2

dev_clk-clock-scales:
description: |
Clock scaling factors for the device clock. Multiplier is
clock-scales[0] and divider is clock-scales[1].
$ref: /schemas/types.yaml#/definitions/uint32-array
maxItems: 2
minItems: 2
maxItems: 4

adi,spi-3wire-enable:
type: boolean
Expand Down Expand Up @@ -199,6 +193,15 @@ properties:
Used to export FFT done status to external GPIO pin.
Defaults to 18 if not specified.

patternProperties:
"-clock-scales$":
description: |
Clock scaling factors for the device clock, and sample clocks.
Multiplier is clock-scales[0] and divider is clock-scales[1].
$ref: /schemas/types.yaml#/definitions/uint32-array
minItems: 2
maxItems: 2

required:
- compatible
- adi,device-profile-fw-name
Expand All @@ -224,8 +227,9 @@ examples:

dev_clk-clock-scales = <1 10>;

clock-output-names = "rx_sampl_clk", "tx_sampl_clk";
#clock-cells = <0>;
clock-output-names = "rx_sampl_clk", "tx_sampl_clk",
"rx_sampl_clk_link2", "tx_sampl_clk_link2";
#clock-cells = <1>;

adi,axi-hsci-connected = <&axi_hsci>;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -579,7 +579,7 @@
reg = <0x0 0x881C0000 0x0 0x10000>;
dmas = <&rx_dma_b 0>;
dma-names = "rx";
clocks = <&trx0_ad9084 0>; /* FIXME */
clocks = <&trx0_ad9084 2>;
clock-names = "sampl_clk";
jesd204-device;
#jesd204-cells = <2>;
Expand All @@ -591,7 +591,7 @@
reg = <0x0 0x881E0000 0x0 0x10000>;
dmas = <&tx_dma_b 0>;
dma-names = "tx";
clocks = <&trx0_ad9084 1>; /* FIXME */
clocks = <&trx0_ad9084 3>;
clock-names = "sampl_clk";
adi,axi-pl-fifo-enable;
adi,axi-data-offload-connected = <&axi_data_offload_tx_b>;
Expand Down
4 changes: 2 additions & 2 deletions arch/arm64/boot/dts/xilinx/vu11p-ad9084-vpx-reva.dtso
Original file line number Diff line number Diff line change
Expand Up @@ -580,7 +580,7 @@
reg = <0x0 0x881C0000 0x0 0x10000>;
dmas = <&rx_dma_b 0>;
dma-names = "rx";
clocks = <&trx0_ad9084 0>; /* FIXME */
clocks = <&trx0_ad9084 2>;
clock-names = "sampl_clk";
jesd204-device;
#jesd204-cells = <2>;
Expand All @@ -592,7 +592,7 @@
reg = <0x0 0x881E0000 0x0 0x10000>;
dmas = <&tx_dma_b 0>;
dma-names = "tx";
clocks = <&trx0_ad9084 1>; /* FIXME */
clocks = <&trx0_ad9084 3>;
clock-names = "sampl_clk";
adi,axi-pl-fifo-enable;
adi,axi-data-offload-connected = <&axi_data_offload_tx_b>;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -623,7 +623,7 @@
reg = <0x0 0x881C0000 0x0 0x10000>;
dmas = <&rx_dma_b 0>;
dma-names = "rx";
clocks = <&trx0_ad9084 0>; /* FIXME */
clocks = <&trx0_ad9084 2>;
clock-names = "sampl_clk";
jesd204-device;
#jesd204-cells = <2>;
Expand All @@ -635,7 +635,7 @@
reg = <0x0 0x881E0000 0x0 0x10000>;
dmas = <&tx_dma_b 0>;
dma-names = "tx";
clocks = <&trx0_ad9084 1>; /* FIXME */
clocks = <&trx0_ad9084 3>;
clock-names = "sampl_clk";
adi,axi-pl-fifo-enable;
adi,axi-data-offload-connected = <&axi_data_offload_tx_b>;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -706,7 +706,7 @@
reg = <0x0 0x881C0000 0x0 0x10000>;
dmas = <&rx_dma_b 0>;
dma-names = "rx";
clocks = <&trx0_ad9084 0>; /* FIXME */
clocks = <&trx0_ad9084 2>;
clock-names = "sampl_clk";
jesd204-device;
#jesd204-cells = <2>;
Expand All @@ -718,7 +718,7 @@
reg = <0x0 0x881E0000 0x0 0x10000>;
dmas = <&tx_dma_b 0>;
dma-names = "tx";
clocks = <&trx0_ad9084 1>; /* FIXME */
clocks = <&trx0_ad9084 3>;
clock-names = "sampl_clk";
adi,axi-pl-fifo-enable;
adi,axi-data-offload-connected = <&axi_data_offload_tx_b>;
Expand Down
4 changes: 2 additions & 2 deletions arch/arm64/boot/dts/xilinx/vu11p-ad9084-vpx-revb.dtso
Original file line number Diff line number Diff line change
Expand Up @@ -664,7 +664,7 @@
reg = <0x0 0x881C0000 0x0 0x10000>;
dmas = <&rx_dma_b 0>;
dma-names = "rx";
clocks = <&trx0_ad9084 0>; /* FIXME */
clocks = <&trx0_ad9084 2>;
clock-names = "sampl_clk";
jesd204-device;
#jesd204-cells = <2>;
Expand All @@ -676,7 +676,7 @@
reg = <0x0 0x881E0000 0x0 0x10000>;
dmas = <&tx_dma_b 0>;
dma-names = "tx";
clocks = <&trx0_ad9084 1>; /* FIXME */
clocks = <&trx0_ad9084 3>;
clock-names = "sampl_clk";
adi,axi-pl-fifo-enable;
adi,axi-data-offload-connected = <&axi_data_offload_tx_b>;
Expand Down
4 changes: 2 additions & 2 deletions arch/microblaze/boot/dts/vcu118_ad9084.dts
Original file line number Diff line number Diff line change
Expand Up @@ -388,7 +388,7 @@
reg = <0x44ab0000 0x8000>;
dmas = <&rx_dma_b 0>;
dma-names = "rx";
clocks = <&trx0_ad9084 0>; /* FIXME */
clocks = <&trx0_ad9084 2>;

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could be a different patch given it's a different arch. But no strong feelings

clock-names = "sampl_clk";
// jesd204-device;
// #jesd204-cells = <2>;
Expand All @@ -400,7 +400,7 @@
reg = <0x44bb0000 0x4000>;
dmas = <&tx_dma_b 0>;
dma-names = "tx";
clocks = <&trx0_ad9084 1>; /* FIXME */
clocks = <&trx0_ad9084 3>;
clock-names = "sampl_clk";
adi,axi-pl-fifo-enable;
adi,axi-data-offload-connected = <&axi_data_offload_tx_b>;
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
// SPDX-License-Identifier: GPL-2.0
/*
* Analog Devices AD9084 RevC
* https://analogdevicesinc.github.io/linux/drivers/iio-trx-rf/ad9088/
* https://analogdevicesinc.github.io/system-level/solutions/reference-designs/ad9084_ebz/user-guide/
*
* hdl_project: <ad9084_ebz/vcu118>
* board_revision: <Rev.C>
*
* Copyright (C) 2026 Analog Devices Inc.
*/

#define DEVICE_PROFILE_NAME "204C_M4_L12_NP12_20p0_4x1.bin"

#define HMC7044_PLL2_FREQ (2500000000) // 2.5 GHz (2150...3200 MHz range)
#define AION_VCO_FREQ_HZ (2500000000) // 2.5 GHz (2375...2625 MHz range)

/*
* OUT_CLK_SELECT options:
* XCVR_OUTCLK_PCS
* XCVR_OUTCLK_PMA
* XCVR_REFCLK
* XCVR_REFCLK_DIV2
* XCVR_PROGDIV_CLK (GTHE3, GTHE4, GTYE4 only)
*/
#define OUT_CLK_SELECT XCVR_PROGDIV_CLK

/*
* SYS_CLK_SELECT options:
* XCVR_CPLL (CPLL: GTHE3, GTHE4, GTYE4, GTXE2)
* XCVR_QPLL1 (QPLL1: GTHE3, GTHE4, GTYE4)
* XCVR_QPLL (QPLL0: GTHE3, GTHE4, GTYE4, GTXE2)
*/
#define SYS_CLK_SELECT XCVR_QPLL

#define SYSREF_CLK_MHz (10000000)

#define WITH_AION 1
#define WITH_AXI_AION_TRIG 0
#define ASYNM_A_B_MODE 1

#include "vcu118_ad9084.dts"

&trx0_ad9084 {
rx_sampl_clk-clock-scales = <1 10>;
tx_sampl_clk-clock-scales = <1 10>;
/* Scale to up to 42.9GHz */
rx_sampl_clk_link2-clock-scales = <1 10>;
tx_sampl_clk_link2-clock-scales = <1 10>;
};

&axi_ad9084_core_tx {
sampl_clk-clock-scales = <1 10>;
};

&axi_ad9084_core_tx_b {
sampl_clk-clock-scales = <1 10>;
};

&axi_ad9084_core_rx_b {
sampl_clk-clock-scales = <1 10>;
};
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
// SPDX-License-Identifier: GPL-2.0
/*
* Analog Devices AD9088 8T8R
* https://analogdevicesinc.github.io/linux/drivers/iio-trx-rf/ad9088/
* https://analogdevicesinc.github.io/system-level/solutions/reference-designs/ad9084_ebz/user-guide/
*
* hdl_project: <ad9084_ebz/vcu118>
* board_revision: <Rev.C>
*
* Copyright (C) 2026 Analog Devices Inc.
*/

#define DEVICE_PROFILE_NAME "204C_8T8R_M8_L2_NP16_8p0_4x8.bin"

#define HMC7044_PLL2_FREQ (2500000000) // 2.5 GHz (2150...3200 MHz range)
#define AION_VCO_FREQ_HZ (2500000000) // 2.5 GHz (2375...2625 MHz range)

#define SYSREF_CLK_MHz (7812500) // HMC7044_PLL2_FREQ / 320

#define OUT_CLK_SELECT XCVR_PROGDIV_CLK
#define SYS_CLK_SELECT XCVR_QPLL1

#define WITH_AION 1
#define WITH_AXI_AION_TRIG 0
#define ASYNM_A_B_MODE 1

#include "vcu118_ad9084.dts"

/ {
model = "Analog Devices AD9088-FMCA-EBZ @Xilinx/vcu118 204C_M8_L2_NP16_8p0_8x4";
};

&hmc7044_c3 {
adi,divider = <320>; /* 320 for 250 MHz */
};

&hmc7044_c8 {
adi,divider = <10>;
};

&hmc7044_c9 {
adi,divider = <10>;
};

&hmc7044_c10 {
adi,divider = <10>;
};

&hmc7044_c11 {
adi,divider = <10>;
};

&hmc7044_c12 {
adi,divider = <10>;
};

&trx0_ad9084 {
compatible = "adi,ad9088";
};
2 changes: 1 addition & 1 deletion arch/microblaze/configs/adi_mb_apollo_defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ CONFIG_NET_DSA=y
CONFIG_PCI=y
CONFIG_DEVTMPFS=y
CONFIG_DEVTMPFS_MOUNT=y
CONFIG_EXTRA_FIRMWARE="app_signed_encrypted_B/flash_image_0x01030000.bin app_signed_encrypted_B/flash_image_0x02000000.bin app_signed_encrypted_B/flash_image_0x20000000.bin app_signed_encrypted_B/flash_image_0x21000000.bin app_signed_encrypted_prod_B/flash_image_0x01030000.bin app_signed_encrypted_prod_B/flash_image_0x02000000.bin app_signed_encrypted_prod_B/flash_image_0x20000000.bin app_signed_encrypted_prod_B/flash_image_0x21000000.bin AD9088_stream_image.bin 204C_M4_L2_NP16_12p8_8x8_4x8.bin 204C_M4_L2_NP16_12p8_8x4_4x4.bin 204C_M4_L8_NP12_16p2_6x1.bin 204C_M4_L8_NP16_20p0_4x4.bin 204C_M4_L8_NP16_20p0_4x2.bin"
CONFIG_EXTRA_FIRMWARE="app_signed_encrypted_B/flash_image_0x01030000.bin app_signed_encrypted_B/flash_image_0x02000000.bin app_signed_encrypted_B/flash_image_0x20000000.bin app_signed_encrypted_B/flash_image_0x21000000.bin app_signed_encrypted_prod_B/flash_image_0x01030000.bin app_signed_encrypted_prod_B/flash_image_0x02000000.bin app_signed_encrypted_prod_B/flash_image_0x20000000.bin app_signed_encrypted_prod_B/flash_image_0x21000000.bin AD9088_stream_image.bin 204C_M4_L2_NP16_12p8_8x8_4x8.bin 204C_M4_L2_NP16_12p8_8x4_4x4.bin 204C_M4_L8_NP12_16p2_6x1.bin 204C_M4_L8_NP16_20p0_4x4.bin 204C_M4_L8_NP16_20p0_4x2.bin 204C_8T8R_M8_L2_NP16_8p0_4x8.bin 204C_M4_L12_NP12_20p0_4x1.bin"
CONFIG_EXTRA_FIRMWARE_DIR="./firmware"
CONFIG_MTD=y
CONFIG_MTD_CMDLINE_PARTS=y
Expand Down
Loading
Loading