no-OS
Loading...
Searching...
No Matches
ad9088_dt.c File Reference

Device profile parsing and topology setup for AD9088. More...

#include "ad9088.h"
#include "no_os_alloc.h"
#include "no_os_crc32.h"
Include dependency graph for ad9088_dt.c:

Functions

int ad9088_parse_struct (struct ad9088_phy **device, const struct ad9088_init_param *init_param)
 Allocate the device structure and apply the initialisation parameters.
 

Detailed Description

Device profile parsing and topology setup for AD9088.

Author
CHegbeli (cipri.nosp@m.an.h.nosp@m.egbel.nosp@m.i@an.nosp@m.alog..nosp@m.com)

Copyright 2025-2026(c) Analog Devices, Inc.

SPDX-License-Identifier: BSD-3-Clause

Function Documentation

◆ ad9088_parse_struct()

int ad9088_parse_struct ( struct ad9088_phy ** device,
const struct ad9088_init_param * init_param )

Allocate the device structure and apply the initialisation parameters.

Acquires the SPI and GPIO descriptors, loads and version-checks the device profile, then applies the caller's overrides to it: lane mapping, JESD204 subclass, Nyquist zone and multi-chip synchronisation settings. The profile checksum is recomputed last so the on-chip firmware still accepts the modified profile.

On failure everything acquired so far is released.

Parameters
device- The device structure to allocate.
init_param- The structure that contains the device initialisation parameters.
Returns
- 0 in case of success, negative error code otherwise.