-
Notifications
You must be signed in to change notification settings - Fork 944
Madura add orx #2923
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Madura add orx #2923
Changes from all commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
78a01ea
iio: adc: adrv902x: Make JESD ops static
danmois 9ed7f70
arm64: boot: dts: Add ORx support in DT
danmois e9352fd
microblaze: boot: dts: Add ORx support in DT
danmois fc035f1
firmware: Add ADRV9025 NLS profile
danmois fcd4abf
arch: arm64: configs: Update adi_zynqmp_defconfig
danmois 66a5601
arch: microblaze: configs: Update adi_mb_defconfig
danmois ccc2d9a
iio: adc: adrv902x: Add ORx support in the driver
danmois File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
103 changes: 103 additions & 0 deletions
103
arch/arm64/boot/dts/xilinx/zynqmp-zcu102-rev10-adrv9025-nls.dts
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,103 @@ | ||
| // SPDX-License-Identifier: GPL-2.0 | ||
| /* | ||
| * Analog Devices ADRV9025 | ||
| * https://wiki.analog.com/resources/eval/user-guides/adrv9025 | ||
| * https://wiki.analog.com/resources/tools-software/linux-drivers/iio-transceiver/adrv9025 | ||
| * | ||
| * hdl_project: <adrv9026/zcu102> | ||
| * board_revision: <> | ||
| * | ||
| * Copyright (C) 2020-2025 Analog Devices Inc. | ||
| */ | ||
| #include "zynqmp-zcu102-rev10-adrv9025.dts" | ||
|
|
||
| &trx0_adrv9025 { | ||
|
|
||
| clock-output-names = "rx_sampl_clk", "tx_sampl_clk", "rx_os_sampl_clk"; | ||
|
|
||
| adi,device-profile-name = "ActiveUseCase_NLS.profile"; | ||
|
|
||
| jesd204-device; | ||
| #jesd204-cells = <2>; | ||
| jesd204-top-device = <0>; /* This is the TOP device */ | ||
| jesd204-link-ids = <DEFRAMER0_LINK_TX FRAMER0_LINK_RX FRAMER1_LINK_RX>; | ||
|
|
||
| jesd204-inputs = | ||
| <&axi_adrv9025_rx_jesd 0 FRAMER0_LINK_RX>, | ||
| <&axi_adrv9025_rx_os_jesd 0 FRAMER1_LINK_RX>, | ||
| <&axi_adrv9025_core_tx 0 DEFRAMER0_LINK_TX>; | ||
| }; | ||
|
|
||
| &fpga_axi { | ||
| rx_os_dma: dma@9c800000 { | ||
| compatible = "adi,axi-dmac-1.00.a"; | ||
| reg = <0x9c800000 0x10000>; | ||
| #dma-cells = <1>; | ||
| #clock-cells = <0>; | ||
| dma-coherent; | ||
| interrupts = <0 111 IRQ_TYPE_LEVEL_HIGH>; | ||
| clocks = <&zynqmp_clk 73>; | ||
| }; | ||
|
|
||
| axi_rx_os_clkgen: axi-clkgen@83c20000 { | ||
| compatible = "adi,axi-clkgen-2.00.a"; | ||
| reg = <0x83c20000 0x10000>; | ||
| #clock-cells = <0>; | ||
| clocks = <&clk0_ad9528 3>, <&zynqmp_clk 71>; | ||
| clock-names = "clkin1", "s_axi_aclk"; | ||
| clock-output-names = "axi_rx_os_clkgen"; | ||
| }; | ||
|
|
||
| axi_adrv9025_core_rx_os: axi-adrv9025-rx-os-hpc@84a08000 { | ||
| compatible = "adi,axi-adrv9025-obs-1.0"; | ||
| reg = <0x84a08000 0x8000>; | ||
| dmas = <&rx_os_dma 0>; | ||
| dma-names = "rx"; | ||
| clocks = <&trx0_adrv9025 2>; | ||
| clock-names = "sampl_clk"; | ||
| spibus-connected=<&trx0_adrv9025>; | ||
| label="axi-adrv9025-rx-os-hpc"; | ||
| }; | ||
|
|
||
| axi_adrv9025_rx_os_jesd: axi-jesd204-rx-os@85aa0000 { | ||
| compatible = "adi,axi-jesd204-rx-1.0"; | ||
| reg = <0x85aa0000 0x1000>; | ||
|
|
||
| interrupts = <0 108 IRQ_TYPE_LEVEL_HIGH>; | ||
|
|
||
| clocks = <&zynqmp_clk 71>, <&axi_rx_os_clkgen>, <&axi_adrv9025_adxcvr_rx_os 0>; | ||
| clock-names = "s_axi_aclk", "device_clk", "lane_clk"; | ||
|
|
||
| #clock-cells = <0>; | ||
| clock-output-names = "jesd_rx_os_lane_clk"; | ||
|
|
||
| adi,octets-per-frame = <4>; | ||
| adi,frames-per-multiframe = <32>; | ||
|
|
||
| jesd204-device; | ||
| #jesd204-cells = <2>; | ||
| jesd204-inputs = <&axi_adrv9025_adxcvr_rx_os 0 FRAMER1_LINK_RX>; | ||
| }; | ||
|
|
||
| axi_adrv9025_adxcvr_rx_os: axi-adxcvr-rx-os@85a60000 { | ||
| #address-cells = <1>; | ||
| #size-cells = <0>; | ||
| compatible = "adi,axi-adxcvr-1.0"; | ||
| reg = <0x85a60000 0x1000>; | ||
|
|
||
| clocks = <&clk0_ad9528 13>; | ||
| clock-names = "conv"; | ||
|
|
||
| #clock-cells = <1>; | ||
| clock-output-names = "rx_os_gt_clk", "rx_os_out_clk"; | ||
|
|
||
| adi,sys-clk-select = <XCVR_CPLL>; | ||
| adi,out-clk-select = <XCVR_REFCLK>; | ||
| adi,use-lpm-enable; | ||
| adi,use-cpll-enable; | ||
|
|
||
| jesd204-device; | ||
| #jesd204-cells = <2>; | ||
| jesd204-inputs = <&clk0_ad9528 0 FRAMER1_LINK_RX>; | ||
| }; | ||
| }; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,102 @@ | ||
| // SPDX-License-Identifier: GPL-2.0 | ||
| /* | ||
| * Analog Devices ADRV9025 | ||
| * https://wiki.analog.com/resources/eval/user-guides/adrv9025 | ||
| * https://wiki.analog.com/resources/tools-software/linux-drivers/iio-transceiver/adrv9025 | ||
| * | ||
| * hdl_project: <adrv9026/zcu102> | ||
| * board_revision: <> | ||
| * | ||
| * Copyright (C) 2020-2025 Analog Devices Inc. | ||
| */ | ||
| #include "vcu118_adrv9025.dts" | ||
|
|
||
| &trx0_adrv9025 { | ||
|
|
||
| clock-output-names = "rx_sampl_clk", "tx_sampl_clk", "rx_os_sampl_clk"; | ||
|
|
||
| jesd204-device; | ||
| #jesd204-cells = <2>; | ||
| jesd204-top-device = <0>; /* This is the TOP device */ | ||
| jesd204-link-ids = <DEFRAMER0_LINK_TX FRAMER0_LINK_RX FRAMER1_LINK_RX>; | ||
|
|
||
| jesd204-inputs = | ||
| <&axi_adrv9025_rx_jesd 0 FRAMER0_LINK_RX>, | ||
| <&axi_adrv9025_rx_os_jesd 0 FRAMER1_LINK_RX>, | ||
| <&axi_adrv9025_core_tx 0 DEFRAMER0_LINK_TX>; | ||
| }; | ||
|
|
||
| &amba_pl { | ||
| rx_os_dma: dma@7c800000 { | ||
| compatible = "adi,axi-dmac-1.00.a"; | ||
| reg = <0x7c800000 0x10000>; | ||
| #dma-cells = <1>; | ||
| #clock-cells = <0>; | ||
| interrupt-parent = <&axi_intc>; | ||
| interrupts = <14 2>; | ||
| clocks = <&clk_bus_0>; | ||
| }; | ||
|
|
||
| axi_rx_os_clkgen: axi-clkgen@43c20000 { | ||
| compatible = "adi,axi-clkgen-2.00.a"; | ||
| reg = <0x43c20000 0x10000>; | ||
| #clock-cells = <0>; | ||
| clocks = <&clk0_ad9528 3>, <&clk_bus_0>; | ||
| clock-names = "clkin1", "s_axi_aclk"; | ||
| clock-output-names = "axi_rx_os_clkgen"; | ||
| }; | ||
|
|
||
| axi_adrv9025_core_rx_os: axi-adrv9025-rx-os-hpc@44a08000 { | ||
| compatible = "adi,axi-adrv9025-obs-1.0"; | ||
| reg = <0x44a08000 0x8000>; | ||
| dmas = <&rx_os_dma 0>; | ||
| dma-names = "rx"; | ||
| clocks = <&trx0_adrv9025 2>; | ||
| clock-names = "sampl_clk"; | ||
| spibus-connected=<&trx0_adrv9025>; | ||
| label="axi-adrv9025-rx-os-hpc"; | ||
| }; | ||
|
|
||
| axi_adrv9025_rx_os_jesd: axi-jesd204-rx-os@45aa0000 { | ||
| compatible = "adi,axi-jesd204-rx-1.0"; | ||
| reg = <0x45aa0000 0x1000>; | ||
|
|
||
| interrupt-parent = <&axi_intc>; | ||
| interrupts = <15 IRQ_TYPE_LEVEL_HIGH>; | ||
|
|
||
| clocks = <&clk_bus_0>, <&axi_rx_os_clkgen>, <&axi_adrv9025_adxcvr_rx_os 0>; | ||
| clock-names = "s_axi_aclk", "device_clk", "lane_clk"; | ||
|
|
||
| #clock-cells = <0>; | ||
| clock-output-names = "jesd_rx_os_lane_clk"; | ||
|
|
||
| adi,octets-per-frame = <4>; | ||
| adi,frames-per-multiframe = <32>; | ||
|
|
||
| jesd204-device; | ||
| #jesd204-cells = <2>; | ||
| jesd204-inputs = <&axi_adrv9025_adxcvr_rx_os 0 FRAMER1_LINK_RX>; | ||
| }; | ||
|
|
||
| axi_adrv9025_adxcvr_rx_os: axi-adxcvr-rx-os@45a60000 { | ||
| #address-cells = <1>; | ||
| #size-cells = <0>; | ||
| compatible = "adi,axi-adxcvr-1.0"; | ||
| reg = <0x45a60000 0x1000>; | ||
|
|
||
| clocks = <&clk0_ad9528 13>; | ||
| clock-names = "conv"; | ||
|
|
||
| #clock-cells = <1>; | ||
| clock-output-names = "rx_os_gt_clk", "rx_os_out_clk"; | ||
|
|
||
| adi,sys-clk-select = <XCVR_CPLL>; | ||
| adi,out-clk-select = <XCVR_REFCLK>; | ||
| adi,use-lpm-enable; | ||
| adi,use-cpll-enable; | ||
|
|
||
| jesd204-device; | ||
| #jesd204-cells = <2>; | ||
| jesd204-inputs = <&clk0_ad9528 0 FRAMER1_LINK_RX>; | ||
| }; | ||
| }; | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -74,7 +74,7 @@ CONFIG_NET_DSA=y | |
| CONFIG_PCI=y | ||
| CONFIG_DEVTMPFS=y | ||
| CONFIG_DEVTMPFS_MOUNT=y | ||
| CONFIG_EXTRA_FIRMWARE="ad9467_intbypass_ad9517.stp ad9517.stp Mykonos_M3.bin TaliseStream.bin TaliseTDDArmFirmware.bin TaliseTxArmFirmware.bin TaliseRxArmFirmware.bin ADRV9025_DPDCORE_FW.bin ADRV9025_FW.bin ADRV9025_RxGainTable.csv ADRV9025_TxAttenTable.csv stream_image_6E3E00EFB74FE7D465FA88A171B81B8F.bin ActiveUseCase.profile ActiveUtilInit.profile" | ||
| CONFIG_EXTRA_FIRMWARE="ad9467_intbypass_ad9517.stp ad9517.stp Mykonos_M3.bin TaliseStream.bin TaliseTDDArmFirmware.bin TaliseTxArmFirmware.bin TaliseRxArmFirmware.bin ADRV9025_DPDCORE_FW.bin ADRV9025_FW.bin ADRV9025_RxGainTable.csv ADRV9025_TxAttenTable.csv stream_image_6E3E00EFB74FE7D465FA88A171B81B8F.bin ActiveUseCase.profile ActiveUtilInit.profile ActiveUseCase_NLS.profile" | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It would also be a different patch |
||
| CONFIG_EXTRA_FIRMWARE_DIR="./firmware" | ||
| CONFIG_MTD=y | ||
| CONFIG_MTD_CMDLINE_PARTS=y | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah I failed to realize this... Being nitpicky, the microblaze DT should be in a separate patch. Anyways, just a hint for the future. No need to change it if there isn't a stronger reason for you to re-spin.