u-boot/include/dt-bindings/pinctrl/adi-adsp.h
Greg Malysa a0ffd8d7cd doc: Add dt-bindings and descriptions for ADI SC5xx-family pinctrl
This adds the necessary dt-bindings and documentation to use the ADI
SC5xx pinctrl driver in a device tree. It is not yet available upstream
in the Linux kernel. Eventually, it will be moved there.

Signed-off-by: Vasileios Bimpikas <vasileios.bimpikas@analog.com>
Signed-off-by: Utsav Agarwal <utsav.agarwal@analog.com>
Signed-off-by: Arturs Artamonovs <arturs.artamonovs@analog.com>
Signed-off-by: Greg Malysa <malysagreg@gmail.com>
2025-03-12 10:24:58 -06:00

21 lines
551 B
C

/* SPDX-License-Identifier: GPL-2.0-or-later */
/*
* (C) Copyright 2022 - Analog Devices, Inc.
*
* Written and/or maintained by Timesys Corporation
*
* Contact: Nathan Barrett-Morrison <nathan.morrison@timesys.com>
* Contact: Greg Malysa <greg.malysa@timesys.com>
*
*/
#ifndef DT_BINDINGS_PINCTRL_ADI_ADSP
#define DT_BINDINGS_PINCTRL_ADI_ADSP
#define ADI_ADSP_PIN(port, pin) (16 * ((port) - 'A') + (pin))
#define ADI_ADSP_PINFUNC_ALT0 0
#define ADI_ADSP_PINFUNC_ALT1 1
#define ADI_ADSP_PINFUNC_ALT2 2
#define ADI_ADSP_PINFUNC_ALT3 3
#endif