Post Go back to editing

Assistance Required with AD9434-FMC-500EBZ Register Write Issue

Category: Software
Product Number: ad9434-fmc-500ebz, ad9434
Software Version: petalinux 2022.1 , Linux version 5.15.0, Xilinx ZC702 Eval kit
I am currently using the AD9434-FMC-500EBZ card for my project. I am able to successfully detect the device using the following command:   
iio_context_find_device(ctx, "9517-4");

However, I encounter an issue when attempting to write to the registers. The reg_write_status returns a non-negative number, specifically 254, for the following register write operations:
reg_write_status = iio_device_reg_write(ad9517, 0x000, 0x3c);
reg_write_status = iio_device_reg_write(ad9517, 0x232, 0x01);
reg_write_status = iio_device_reg_write(ad9517, 0x000, 0x18);
reg_write_status = iio_device_reg_write(ad9517, 0x232, 0x01);

I have attached the kernel log, the application.c code, and the .dtsi file for your reference.

Could you please assist me in understanding why I am unable to write the values to the registers? Any guidance or troubleshooting tips would be greatly appreciated.

void ad9434_init()
{
	uint8_t reg_write_status;
	ctx = iio_create_local_context();
	if( ctx != NULL )
	{
		printf(" iio_create_local_passed\n ");
	} 
	count = iio_context_get_devices_count( ctx );
	printf(" Dev count : %d\n",count );
	/* ad9517 configuration */   
	ad9517 = iio_context_find_device( ctx ,"ad9517-4" );
	if( NULL != ad9517 )
	{
		printf(" sucessfully ad9517 dev structure\n");
	}
	else
	{
		printf( " Failed ad9517 dev structure \n");
	}
	reg_write_status=iio_device_reg_write( ad9517,0x000,0x3c );
	reg_write_status=iio_device_reg_write( ad9517,0x232,0x01 );
	reg_write_status=iio_device_reg_write( ad9517,0x000,0x18 );
	reg_write_status=iio_device_reg_write( ad9517,0x232,0x01 );
	if( 0 != reg_write_status)
		printf(" ad9517 configuration error \n");
	else
		printf(" ad9517 configuration success\n"); 

	/* ad9434 configuration */
	ad9434 = iio_context_find_device( ctx ,"axi-ad9434-core-lpc" );
	if( NULL != ad9434 )
	{
		printf(" sucessfully ad9434 dev structure\n");
	}
	else
	{
		printf( " Failed ad9434 dev structure \n");
	}
	reg_write_status = iio_device_reg_write( ad9434,0x14,0 );
	reg_write_status = iio_device_reg_write( ad9434,0x0d,0 );
	reg_write_status = iio_device_reg_write( ad9434,0xFF,0x01);

	if( 0 != reg_write_status )
		printf(" ad9434 configuration error \n");
	else
		printf(" ad9434 configuration success\n"); 
}
 root_value Func : get_shot_config :: Oh no its NULL ad9517 & ad9434 initializat
 iio_create_local_passed
  Dev count : 3
 sucessfully ad9517 dev structure
reg_write_status of reg 0x00 0x3c 254
reg_write_status of reg 0x232 0x01 254
reg_write_status of reg 0x0 0x018 254
reg_write_status of reg 0x232 0x01 254
U-Boot 2022.01 (Sep 25 2024 - 08:40:58 +0000)

CPU:   Zynq 7z020
Silicon: v3.1
Model: Xilinx Zynq Zc702
DRAM:  ECC disabled 1 GiB
Flash: 0 Bytes
NAND:  0 MiB
MMC:   mmc@e0100000: 0
Loading Environment from FAT... *** Error - No Valid Environment Area found
*** Warning - bad env area, using default environment

In:    serial@e0001000
Out:   serial@e0001000
Err:   serial@e0001000
Net:   
ZYNQ GEM: e000b000, mdio bus e000b000, phyaddr 7, interface rgmii-id
zynq_gem ethernet@e000b000: Failed to read eth PHY id, err: -2
eth0: ethernet@e000b000
Hit any key to stop autoboot:  2  1  0 
switch to partitions #0, OK
mmc0 is current device
Scanning mmc 0:1...
Found U-Boot script /boot.scr
2776 bytes read in 13 ms (208 KiB/s)
## Executing script at 03000000
Trying to load boot images from mmc0
19440112 bytes read in 1378 ms (13.5 MiB/s)
## Loading kernel from FIT Image at 10000000 ...
   Using 'conf-system-top.dtb' configuration
   Verifying Hash Integrity ... OK
   Trying 'kernel-1' kernel subimage
     Description:  Linux kernel
     Type:         Kernel Image
     Compression:  uncompressed
     Data Start:   0x100000ec
     Data Size:    5382048 Bytes = 5.1 MiB
     Architecture: ARM
     OS:           Linux
     Load Address: 0x00200000
     Entry Point:  0x00200000
     Hash algo:    sha256
     Hash value:   5395e794c6ad254ed2e3bf357a0e4d30a15ed053195b75faa474078d9a879515
   Verifying Hash Integrity ... sha256+ OK
## Loading ramdisk from FIT Image at 10000000 ...
   Using 'conf-system-top.dtb' configuration
   Verifying Hash Integrity ... OK
   Trying 'ramdisk-1' ramdisk subimage
     Description:  petalinux-image-minimal
     Type:         RAMDisk Image
     Compression:  uncompressed
     Data Start:   0x105279f8
     Data Size:    14033538 Bytes = 13.4 MiB
     Architecture: ARM
     OS:           Linux
     Load Address: unavailable
     Entry Point:  unavailable
     Hash algo:    sha256
     Hash value:   6f0ee6da35682b2caffb2ebd0de5aeba2f8263790577d31c213faccb49e42cae
   Verifying Hash Integrity ... sha256+ OK
## Loading fdt from FIT Image at 10000000 ...
   Using 'conf-system-top.dtb' configuration
   Verifying Hash Integrity ... OK
   Trying 'fdt-system-top.dtb' fdt subimage
     Description:  Flattened Device Tree blob
     Type:         Flat Device Tree
     Compression:  uncompressed
     Data Start:   0x10522198
     Data Size:    22420 Bytes = 21.9 KiB
     Architecture: ARM
     Hash algo:    sha256
     Hash value:   e4eb50ae0222fdb17696c84fe5bc479aab061080c6fe58de695bea36dc63fe2f
   Verifying Hash Integrity ... sha256+ OK
   Booting using the fdt blob at 0x10522198
   Loading Kernel Image
   Loading Ramdisk to 2f29d000, end 2ffff282 ... OK
   Loading Device Tree to 2f294000, end 2f29c793 ... OK

Starting kernel ...

[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 5.15.0-xilinx-v2022.1 (oe-user@oe-host) (arm-xilinx-linux-gnueabi-gcc (GCC) 11.2.0, GNU ld (GNU Binutils) 2.37.20210721) #1 SMP PREEMPT Mon Dec 20 02:57:12 UTC 2021
[    0.000000] CPU: ARMv7 Processor [413fc090] revision 0 (ARMv7), cr=18c5387d
[    0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[    0.000000] OF: fdt: Machine model: Xilinx Zynq Zc702
[    0.000000] earlycon: cdns0 at MMIO 0xe0001000 (options '115200n8')
[    0.000000] printk: bootconsole [cdns0] enabled
[    0.000000] Memory policy: Data cache writealloc
[    0.000000] cma: Reserved 16 MiB at 0x3f000000
[    0.000000] Zone ranges:
[    0.000000]   Normal   [mem 0x0000000000000000-0x000000002fffffff]
[    0.000000]   HighMem  [mem 0x0000000030000000-0x000000003fffffff]
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x0000000000000000-0x000000003fffffff]
[    0.000000] Initmem setup node 0 [mem 0x0000000000000000-0x000000003fffffff]
[    0.000000] percpu: Embedded 12 pages/cpu s16588 r8192 d24372 u49152
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 260608
[    0.000000] Kernel command line: console=ttyPS0,115200 earlycon root=/dev/ram0 rw
[    0.000000] Dentry cache hash table entries: 131072 (order: 7, 524288 bytes, linear)
[    0.000000] Inode-cache hash table entries: 65536 (order: 6, 262144 bytes, linear)
[    0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
[    0.000000] Memory: 991328K/1048576K available (8192K kernel code, 662K rwdata, 6056K rodata, 1024K init, 436K bss, 40864K reserved, 16384K cma-reserved, 245760K highmem)
[    0.000000] rcu: Preemptible hierarchical RCU implementation.
[    0.000000] rcu: 	RCU event tracing is enabled.
[    0.000000] rcu: 	RCU restricting CPUs from NR_CPUS=4 to nr_cpu_ids=2.
[    0.000000] 	Trampoline variant of Tasks RCU enabled.
[    0.000000] rcu: RCU calculated value of scheduler-enlistment delay is 10 jiffies.
[    0.000000] rcu: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=2
[    0.000000] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
[    0.000000] efuse mapped to (ptrval)
[    0.000000] slcr mapped to (ptrval)
[    0.000000] GIC physical location is 0xf8f01000
[    0.000000] L2C: platform modifies aux control register: 0x72360000 -> 0x72760000
[    0.000000] L2C: DT/platform modifies aux control register: 0x72360000 -> 0x72760000
[    0.000000] L2C-310 erratum 769419 enabled
[    0.000000] L2C-310 enabling early BRESP for Cortex-A9
[    0.000000] L2C-310 full line of zeros enabled for Cortex-A9
[    0.000000] L2C-310 ID prefetch enabled, offset 1 lines
[    0.000000] L2C-310 dynamic clock gating enabled, standby mode enabled
[    0.000000] L2C-310 cache controller enabled, 8 ways, 512 kB
[    0.000000] L2C-310: CACHE_ID 0x410000c8, AUX_CTRL 0x76760001
[    0.000000] random: get_random_bytes called from start_kernel+0x364/0x5d0 with crng_init=0
[    0.000000] zynq_clock_init: clkc starts at (ptrval)
[    0.000000] Zynq clock init
[    0.000001] sched_clock: 64 bits at 166MHz, resolution 6ns, wraps every 4398046511103ns
[    0.005517] clocksource: arm_global_timer: mask: 0xffffffffffffffff max_cycles: 0x26703d7dd8, max_idle_ns: 440795208065 ns
[    0.016452] Switching to timer-based delay loop, resolution 6ns
[    0.022385] clocksource: ttc_clocksource: mask: 0xffff max_cycles: 0xffff, max_idle_ns: 537538477 ns
[    0.031339] timer #0 at (ptrval), irq=25
[    0.035977] Console: colour dummy device 80x30
[    0.039602] Calibrating delay loop (skipped), value calculated using timer frequency.. 333.33 BogoMIPS (lpj=1666666)
[    0.049987] pid_max: default: 32768 minimum: 301
[    0.054739] Mount-cache hash table entries: 2048 (order: 1, 8192 bytes, linear)
[    0.061773] Mountpoint-cache hash table entries: 2048 (order: 1, 8192 bytes, linear)
[    0.070186] CPU: Testing write buffer coherency: ok
[    0.074226] CPU0: Spectre v2: using BPIALL workaround
[    0.079411] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[    0.085534] Setting up static identity map for 0x100000 - 0x100060
[    0.091061] rcu: Hierarchical SRCU implementation.
[    0.096019] smp: Bringing up secondary CPUs ...
[    0.100966] CPU1: thread -1, cpu 1, socket 0, mpidr 80000001
[    0.100987] CPU1: Spectre v2: using BPIALL workaround
[    0.110818] smp: Brought up 1 node, 2 CPUs
[    0.114732] SMP: Total of 2 processors activated (666.66 BogoMIPS).
[    0.120968] CPU: All CPU(s) started in SVC mode.
[    0.126138] devtmpfs: initialized
[    0.133774] VFP support v0.3: implementor 41 architecture 3 part 30 variant 9 rev 4
[    0.136587] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.146073] futex hash table entries: 512 (order: 3, 32768 bytes, linear)
[    0.153668] pinctrl core: initialized pinctrl subsystem
[    0.158759] NET: Registered PF_NETLINK/PF_ROUTE protocol family
[    0.166146] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.171730] thermal_sys: Registered thermal governor 'step_wise'
[    0.171885] cpuidle: using governor menu
[    0.191734] amba f8801000.etb: Fixing up cyclic dependency with replicator
[    0.193376] amba f8803000.tpiu: Fixing up cyclic dependency with replicator
[    0.200299] amba f8804000.funnel: Fixing up cyclic dependency with replicator
[    0.207342] amba f889c000.ptm: Fixing up cyclic dependency with f8804000.funnel
[    0.214527] amba f889d000.ptm: Fixing up cyclic dependency with f8804000.funnel
[    0.223791] hw-breakpoint: found 5 (+1 reserved) breakpoint and 1 watchpoint registers.
[    0.229282] hw-breakpoint: maximum watchpoint size is 4 bytes.
[    0.235579] e0001000.serial: ttyPS0 at MMIO 0xe0001000 (irq = 35, base_baud = 3125000) is a xuartps
[    0.249602] printk: console [ttyPS0] enabled
[    0.249602] printk: console [ttyPS0] enabled
[    0.253893] printk: bootconsole [cdns0] disabled
[    0.253893] printk: bootconsole [cdns0] disabled
[    0.274439] vgaarb: loaded
[    0.277542] SCSI subsystem initialized
[    0.281527] usbcore: registered new interface driver usbfs
[    0.287096] usbcore: registered new interface driver hub
[    0.292448] usbcore: registered new device driver usb
[    0.297652] mc: Linux media interface: v0.10
[    0.301952] videodev: Linux video capture interface: v2.00
[    0.307501] pps_core: LinuxPPS API ver. 1 registered
[    0.312462] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    0.321620] PTP clock support registered
[    0.325604] EDAC MC: Ver: 3.0.0
[    0.329210] FPGA manager framework
[    0.332943] Advanced Linux Sound Architecture Driver Initialized.
[    0.340090] clocksource: Switched to clocksource arm_global_timer
[    0.356825] NET: Registered PF_INET protocol family
[    0.361938] IP idents hash table entries: 16384 (order: 5, 131072 bytes, linear)
[    0.370761] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 6144 bytes, linear)
[    0.379209] TCP established hash table entries: 8192 (order: 3, 32768 bytes, linear)
[    0.387056] TCP bind hash table entries: 8192 (order: 4, 65536 bytes, linear)
[    0.394362] TCP: Hash tables configured (established 8192 bind 8192)
[    0.400865] UDP hash table entries: 512 (order: 2, 16384 bytes, linear)
[    0.407520] UDP-Lite hash table entries: 512 (order: 2, 16384 bytes, linear)
[    0.414836] NET: Registered PF_UNIX/PF_LOCAL protocol family
[    0.421136] RPC: Registered named UNIX socket transport module.
[    0.427056] RPC: Registered udp transport module.
[    0.431792] RPC: Registered tcp transport module.
[    0.436490] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.442969] PCI: CLS 0 bytes, default 64
[    0.447219] armv7-pmu f8891000.pmu: hw perfevents: no interrupt-affinity property, guessing.
[    0.447302] Trying to unpack rootfs image as initramfs...
[    0.461110] hw perfevents: enabled with armv7_cortex_a9 PMU driver, 7 counters available
[    0.470816] workingset: timestamp_bits=30 max_order=18 bucket_order=0
[    0.478356] jffs2: version 2.2. (NAND) (SUMMARY)  � 2001-2006 Red Hat, Inc.
[    0.485882] bounce: pool size: 64 pages
[    0.489741] io scheduler mq-deadline registered
[    0.494329] io scheduler kyber registered
[    0.499558] zynq-pinctrl 700.pinctrl: zynq pinctrl initialized
[    0.521022] dma-pl330 f8003000.dmac: Loaded driver for PL330 DMAC-241330
[    0.527739] dma-pl330 f8003000.dmac: 	DBUFF-128x8bytes Num_Chans-8 Num_Peri-4 Num_Events-16
[    0.558901] brd: module loaded
[    0.567079] loop: module loaded
[    0.573924] spi_master spi0: cannot find modalias for /axi/spi@e000d000/flash@0
[    0.581370] spi_master spi0: Failed to create SPI device for /axi/spi@e000d000/flash@0
[    0.590241] libphy: Fixed MDIO Bus: probed
[    0.595701] CAN device driver interface
[    0.600563] xilinx_can e0008000.can can0: TDC Offset value not in range 
[    0.609214] libphy: MACB_mii_bus: probed
[    1.677698] Freeing initrd memory: 13708K
[    1.693007] macb e000b000.ethernet eth0: Cadence GEM rev 0x00020118 at 0xe000b000 irq 39 (00:0a:35:00:1e:53)
[    1.703335] e1000e: Intel(R) PRO/1000 Network Driver
[    1.708293] e1000e: Copyright(c) 1999 - 2015 Intel Corporation.
[    1.714889] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    1.721472] ehci-pci: EHCI PCI platform driver
[    1.726026] usbcore: registered new interface driver usb-storage
[    1.741031] ULPI transceiver vendor/product ID 0x0424/0x0007
[    1.746694] Found SMSC USB3320 ULPI transceiver.
[    1.751352] ULPI integrity check: passed.
[    1.757624] i2c_dev: i2c /dev entries driver
[    1.762572] cdns-i2c e0004000.i2c: 400 kHz mmio e0004000 irq 32
[    1.771440] cdns-wdt f8005000.watchdog: Xilinx Watchdog Timer with timeout 10s
[    1.779034] EDAC MC: ECC not enabled
[    1.782830] Xilinx Zynq CpuIdle Driver started
[    1.787771] sdhci: Secure Digital Host Controller Interface driver
[    1.793970] sdhci: Copyright(c) Pierre Ossman
[    1.798322] sdhci-pltfm: SDHCI platform and OF driver helper
[    1.804713] ledtrig-cpu: registered to indicate activity on CPUs
[    1.810966] usbcore: registered new interface driver usbhid
[    1.816541] usbhid: USB HID core driver
[    1.830153] mmc0: SDHCI controller on e0100000.mmc [e0100000.mmc] using ADMA
[    1.838450] ad9517 spi1.1: AD9517 successfully initialized
[    1.846977] fpga_manager fpga0: Xilinx Zynq FPGA Manager registered
[    1.855063] NET: Registered PF_INET6 protocol family
[    1.861466] Segment Routing with IPv6
[    1.865166] In-situ OAM (IOAM) with IPv6
[    1.869187] sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver
[    1.875931] NET: Registered PF_PACKET protocol family
[    1.881023] can: controller area network core
[    1.885431] NET: Registered PF_CAN protocol family
[    1.890240] can: raw protocol
[    1.893208] can: broadcast manager protocol
[    1.897397] can: netlink gateway - max_hops=1
[    1.902113] zynq_pm_remap_ocm: no compatible node found for 'mmio-sram'
[    1.908731] zynq_pm_suspend_init: Unable to map OCM.
[    1.913731] Registering SWP/SWPB emulation handler
[    1.919097] of-fpga-region fpga-full: FPGA Region probed
[    2.010454] |
[    2.010464] -
[    2.012032] -
[    2.013602] -
[    2.015174] -
[    2.016773] -
[    2.018373] -
[    2.019965] -
[    2.021563] -
[    2.023133] -
[    2.024704] -
[    2.026275] -
[    2.027846] -
[    2.029417] -
[    2.031029] -
[    2.032634] -
[    2.034235] -
[    2.035806] -
[    2.037377] -
[    2.038948] -
[    2.040536] -
[    2.042108] -
[    2.043679] -
[    2.045250] -
[    2.046848] -
[    2.048449] -
[    2.050041] -
[    2.051629] -
[    2.053201] -
[    2.054772] -
[    2.056343] -
[    2.057914] -
[    2.059485] 
[    2.062577] -
[    2.062583] -
[    2.064185] -
[    2.065778] -
[    2.067349] -
[    2.068920] -
[    2.070509] -
[    2.072080] -
[    2.073651] -
[    2.075222] -
[    2.076793] -
[    2.078392] -
[    2.079992] -
[    2.081609] -
[    2.083182] -
[    2.084752] -
[    2.086323] -
[    2.087895] -
[    2.089466] -
[    2.091053] -
[    2.092625] -
[    2.094224] -
[    2.095824] -
[    2.097416] -
[    2.098988] -
[    2.100661] -
[    2.102234] -
[    2.103805] -
[    2.105376] -
[    2.106947] -
[    2.108518] -
[    2.110129] -
[    2.111736]   IDELAY 0x0
[    2.116619] cf_axi_adc 44a00000.axi-ad9434-core-lpc: ADI AIM (0.00.) at 0x44A00000 mapped to 0x(ptrval) probed ADC AD9434 as MASTER
[    2.128898] of_cfs_init
[    2.131397] of_cfs_init: OK
[    2.134526] ALSA device list:
[    2.137495]   No soundcards found.
[    2.144173] Freeing unused kernel image (initmem) memory: 1024K
[    2.150594] Run /init as init process
INIT: version 2.99 booting
[    2.255672] mmc0: new high speed SD card at address 3ff0
[    2.261818] mmcblk0: mmc0:3ff0 SD02G 1.92 GiB 
[    2.269086]  mmcblk0: p1
Starting udev
Starting version 249.7+
[    2.861120] random: fast init done
[    4.162447] FAT-fs (mmcblk0p1): Volume was not properly unmounted. Some data may be corrupt. Please run fsck.
bootlogd: /dev/ttyPS0hwclock: can't open '/dev/misc/rtc': No such file or directory
Fri Mar  9 12:34:56 UTC 2018
hwclock: can't open '/dev/misc/rtc': No such file or directory
[    5.134056] random: dd: uninitialized urandom read (512 bytes read)
Configuring packages on first boot....
 (This may take several minutes. Please do not power off the machine.)
Running postinst /etc/rpm-postinsts/100-sysvinit-inittab...
update-rc.d: /etc/init.d/run-postinsts exists during rc.d purge (continuing)
 Removing any system startup links for run-postinsts ...
  /etc/rcS.d/S99run-postinsts
INIT: Entering runlevel: 5
Configuring network interfaces... [    6.240311] macb e000b000.ethernet eth0: PHY [e000b000.ethernet-ffffffff:07] driver [Marvell 88E1116R] (irq=POLL)
[    6.250615] macb e000b000.ethernet eth0: configuring for phy/rgmii-id link mode
done.
[    6.327876] random: dbus-uuidgen: uninitialized urandom read (12 bytes read)
[    6.335048] random: dbus-uuidgen: uninitialized urandom read (8 bytes read)
Starting system message bus: [    6.359274] random: dbus-daemon: uninitialized urandom read (12 bytes read)
dbus.
Starting haveged: haveged: command socket is listening at fd 3
haveged: haveged starting up
[  OK  ]
Starting Dropbear SSH server: Waiting for kernel randomness to be initialised...
haveged: haveged: ver: 1.9.14; arch: generic; vend: ; build: (gcc 11.2.0 CTV); collect: 128K

haveged: haveged: cpu: (VC); data: 16K (D); inst: 16K (D); idx: 12/40; sz: 15126/57786

haveged: haveged: tot tests(BA8): A:1/1 B:1/1 continuous tests(B):  last entropy estimate 8.00244

haveged: haveged: fills: 0, generated: 0 

[    8.759553] random: crng init done
[    8.763066] random: 1 urandom warning(s) missed due to ratelimiting
Generating 2048 bit rsa key, this may take a while...
Public key portion is:
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCG5UAaJ6sHXPSv2W0zdc5DhgEd2Xk7J9QkJo1c8Yqle2AG4hYwdCv1cU64WDlB9cKBXHybDhp3gOKmtlXxjpHv3PcExDhNYQ2NO9IK9tH7aidAOD7wSllHxEY/xJ9pUG/IpaL+Be8AGUCJ5bd5BE1QENpMKTJaFflo1qUcde0+hEWQjvlU4g4qkMt0eg5KGU4Aw7H+BxLoflm23h+ZL+H4yc+tNPN4j0MvOzDP3rsOZWXGLQXRXI4+ttPNRhLpJ837jdRsNbAerXc2iMyVishG09jVWdFAz373sy5pU4u8KFVl2GsurR0tnpOCB57p3/L+G7UjiOuZ++9/DvY7+oo9 root@gen4
Fingerprint: sha1!! 52:be:95:94:2f:f8:97:5b:43:22:1a:0f:7d:c9:cc:d2:50:db:b0:14
dropbear.
Starting rpcbind daemon...done.
starting statd: done
hwclock: can't open '/dev/misc/rtc': No such file or directory
Starting internet superserver: inetd.
NFS daemon support not enabled in kernel
Starting syslogd/klogd: done
Starting tcf-agent: OK

PetaLinux 2022.1_release_S04190222 gen4 /dev/ttyPS0

gen4 login: root
Password: 

Login incorrect
gen4 login: root
Password: 

Login incorrect
gen4 login: root
Password: 

Login incorrect
gen4 login: petalinux
You are required to change your password immediately (administrator enforced).
New password: 
Retype new password: 
gen4:~$ sudo fiber

We trust you have received the usual lecture from the local System
Administrator. It usually boils down to these three things:

    #1) Respect the privacy of others.
    #2) Think before you type.
    #3) With great power comes great responsibility.

Password: 

 root_value Func : get_shot_config :: Oh no its NULL ad9517 & ad9434 initialization
 iio_create_local_passed
  Dev count : 4
 sucessfully ad9517 dev structure
 ad9517 configuration error 
 sucessfully ad9434 dev structure
 ad9434 configuration error 
Num of channels : 1
 Channel is input 
 Channel is enable 
 Buffer is created successfully 
 Ethernet initialization
Socket creation success 
 Bind success 
 Client Connected :192.168.1.100 : 5001
HSSD System Initialization Complete.
Firmware Version:  0. 2
FPGA Technology : 1000000
FPGA Family     : 40000
Speed Grade     : a00
Dev Package     : e
Disabled auto tuning node-wall positions.
Default node-wall positions are used.
/include/ "system-conf.dtsi"
/delete-node/ &axi_ad9434;
/delete-node/ &axi_ad9434_dma;
/delete-node/ &misc_clk_0;

/ {
        interrupt-parent = <0x4>;
        model = "Xilinx Zynq Zc702";

	clocks {
			ad9517_ref_clk: clock@0 {
					compatible = "fixed-clock";

					clock-frequency = <500000000>;
					clock-output-names = "ad9517_refclk";
					#clock-cells = <0>;
			};
		};
};

&amba_pl {
                rx_dma: rx-dmac@44a30000 {
                compatible = "adi,axi-dmac-1.00.a";
                reg = <0x44a30000 0x10000>;
                #dma-cells = <1>;
                interrupts = <0 57 4>; /* 57 */
                clocks = <&clkc 16>;

                adi,channels {
                        #size-cells = <0>;
                        #address-cells = <1>;

                        dma-channel@0 {
                                reg = <0>;
                                adi,source-bus-width = <64>;
                                adi,source-bus-type = <2>;
                                adi,destination-bus-width = <64>;
                                adi,destination-bus-type = <0>;
                        };
                };
        };

        axi_ad9434_core_0: axi-ad9434-core-lpc@44a00000 {
                compatible = "xlnx,axi-ad9434-1.00.a";
                reg = <0x44a00000 0x10000>;
                dmas = <&rx_dma 0>;
                dma-names = "rx";
                spibus-connected = <&adc_ad9434>;
        };
   };

&spi0 {
        status = "okay";
        
        adc_ad9434: ad9434@0 {
		compatible = "adi,ad9434";
		reg = <0>;

		spi-max-frequency = <10000000>;
		adi,spi-3wire-enable;

		clocks = <&clk_ad9517 3>;
		clock-names = "adc_clk";
	};

	clk_ad9517: ad9517@1 {
		compatible = "adi,ad9517-4";
		reg = <1>;

		spi-max-frequency = <10000000>;
		adi,spi-3wire-enable;

		clocks = <&ad9517_ref_clk>, <&ad9517_ref_clk>;
		clock-names = "refclk", "clkin";

		clock-output-names = "out0", "out1", "out2", "out3", "out4", "out5", "out6", "out7";
		#clock-cells = <1>;

		firmware = "ad9467_intbypass_ad9517.stp";
	};
  

};

&gem0 {
              status = "okay";
              phy-handle = <&ethernet_phy>;
              phy-mode = "rgmii-id";
              ethernet_phy: ethernet-phy@7{
                             reg =<7>;
              };
};