-
Notifications
You must be signed in to change notification settings - Fork 914
Add device tree for ADAQ23875. Add one lane support for CN0577 #2860
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
Draft
IuliaCMoldovan
wants to merge
9
commits into
main
Choose a base branch
from
add_adaq2387x
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Changes from 3 commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
ab10bf1
drivers: iio: adc: ltc2387: Add support for one lane
IuliaCMoldovan beb559a
arch: arm: boot: dts: xilinx: cn0577: Add DMA src and dest widths
IuliaCMoldovan ba27099
arch: arm: boot: dts: xilinx: Add dts support for ADAQ23875 on Zedboard
IuliaCMoldovan bd93f1e
review: ltc2387.c: Remove else condition
IuliaCMoldovan 04fc46b
Add ADAQ23878 dts. Fix osc freq for ADAQ23875
IuliaCMoldovan c121a1e
dts: add a space
IuliaCMoldovan 5516926
ltc2387.c: fix duty offset condition in if
IuliaCMoldovan eac3e34
add prints
IuliaCMoldovan 86d24b8
works now
IuliaCMoldovan 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
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,95 @@ | ||
| // SPDX-License-Identifier: GPL-2.0 | ||
| /* | ||
| * Analog Devices LTC2387-16/ADAQ23875 | ||
| * | ||
| * hdl_project: <cn0577/zed with make parameter ADC_RES=16> | ||
| * for all config modes, please check the README of the HDL project | ||
| * board_revision: <A> | ||
| * | ||
| * Copyright (C) 2022 - 2025 Analog Devices Inc. | ||
| */ | ||
| /dts-v1/; | ||
|
|
||
| #include "zynq-zed.dtsi" | ||
| #include "zynq-zed-adv7511.dtsi" | ||
| #include <dt-bindings/gpio/gpio.h> | ||
| #include <dt-bindings/pwm/pwm.h> | ||
|
|
||
| / { | ||
| vref: regulator-vref { | ||
| compatible = "regulator-fixed"; | ||
| regulator-name = "fixed-supply"; | ||
| regulator-min-microvolt = <4096000>; | ||
| regulator-max-microvolt = <4096000>; | ||
| regulator-always-on; | ||
| }; | ||
|
|
||
| clocks { | ||
| ext_clk: clock@0 { | ||
| #clock-cells = <0>; | ||
| compatible = "fixed-clock"; | ||
| clock-frequency = <120000000>; | ||
| }; | ||
| }; | ||
| gpio-control@0 { | ||
| compatible = "adi,one-bit-adc-dac"; | ||
| #address-cells = <1>; | ||
| #size-cells = <0>; | ||
| out-gpios = <&gpio0 86 GPIO_ACTIVE_HIGH>, | ||
| <&gpio0 87 GPIO_ACTIVE_HIGH>; | ||
| channel@0 { | ||
| reg = <0>; | ||
| label = "adaq23875_testpat"; | ||
| }; | ||
| channel@1 { | ||
| reg = <1>; | ||
| label = "adaq23875_pd"; | ||
| }; | ||
| }; | ||
| }; | ||
|
|
||
| &fpga_axi { | ||
| rx_dma: dma-controller@44a30000 { | ||
| compatible = "adi,axi-dmac-1.00.a"; | ||
| reg = <0x44a30000 0x1000>; | ||
| #dma-cells = <1>; | ||
| interrupts = <0 57 IRQ_TYPE_LEVEL_HIGH>; | ||
| clocks = <&clkc 15>; | ||
|
|
||
| adi,channels { | ||
| #size-cells = <0>; | ||
| #address-cells = <1>; | ||
|
|
||
| dma-channel@0 { | ||
| reg = <0>; | ||
| adi,source-bus-width = <16>; | ||
| adi,source-bus-type = <2>; | ||
| adi,destination-bus-width = <64>; | ||
| adi,destination-bus-type = <0>; | ||
| }; | ||
| }; | ||
| }; | ||
|
|
||
| axi_pwm_gen: pwm@44a60000 { | ||
| compatible = "adi,axi-pwmgen-2.00.a"; | ||
| reg = <0x44a60000 0x1000>; | ||
| label = "adaq23875_if"; | ||
| #pwm-cells = <2>; | ||
| clocks = <&clkc 15>, <&ext_clk>; | ||
| clock-names = "axi", "ext"; | ||
| }; | ||
|
|
||
| adaq23875@0{ | ||
| compatible = "adaq23875"; | ||
| clocks = <&ext_clk>; | ||
| dmas = <&rx_dma 0>; | ||
| dma-names = "rx"; | ||
| pwms = <&axi_pwm_gen 0 0 | ||
| &axi_pwm_gen 1 0>; | ||
| pwm-names = "cnv", "clk_en"; | ||
| vref-supply = <&vref>; | ||
|
|
||
| // uncomment the below command to use in one lane mode | ||
| // adi,use-one-lane; | ||
| }; | ||
| }; |
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
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.
Can you remove this else?
After an
if return, you don't need it and reviewers upstream will ask for this changeUh oh!
There was an error while loading. Please reload this page.
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.
Done in a separate commit. Will squash it after review