/*
 * SPDX-License-Identifier: Apache-2.0
 * Copyright (c) 2024 sensry.io
 */

#ifndef _ZEPHYR_DT_BINDINGS_PINCTRL_SY1XX_PINCTRL_
#define _ZEPHYR_DT_BINDINGS_PINCTRL_SY1XX_PINCTRL_

#define SY1XX_PAD(pad) (pad * 8)

#define SY1XX_UART0_PAD_CFG0 0x0020
#define SY1XX_UART1_PAD_CFG0 0x0024
#define SY1XX_UART2_PAD_CFG0 0x0028

#define SY1XX_SPI0_PAD_CFG0 0x002c
#define SY1XX_SPI0_PAD_CFG1 0x0030

#define SY1XX_SPI1_PAD_CFG0 0x0034
#define SY1XX_SPI1_PAD_CFG1 0x0038

#define SY1XX_SPI2_PAD_CFG0 0x003c
#define SY1XX_SPI2_PAD_CFG1 0x0040

#define SY1XX_SPI3_PAD_CFG0 0x0044
#define SY1XX_SPI3_PAD_CFG1 0x0048

#define SY1XX_SPI4_PAD_CFG0 0x004c
#define SY1XX_SPI4_PAD_CFG1 0x0050

#define SY1XX_SPI5_PAD_CFG0 0x0054
#define SY1XX_SPI5_PAD_CFG1 0x0058

#define SY1XX_SPI6_PAD_CFG0 0x005c
#define SY1XX_SPI6_PAD_CFG1 0x0060

#define SY1XX_I2C0_PAD_CFG0 0x0100
#define SY1XX_I2C1_PAD_CFG0 0x0104
#define SY1XX_I2C2_PAD_CFG0 0x0108
#define SY1XX_I2C3_PAD_CFG0 0x010c

#define SY1XX_GPIO0_PAD_CFG0 0x0110
#define SY1XX_GPIO0_PAD_CFG1 0x0114
#define SY1XX_GPIO0_PAD_CFG2 0x0118
#define SY1XX_GPIO0_PAD_CFG3 0x011c
#define SY1XX_GPIO0_PAD_CFG4 0x0120
#define SY1XX_GPIO0_PAD_CFG5 0x0124
#define SY1XX_GPIO0_PAD_CFG6 0x0128
#define SY1XX_GPIO0_PAD_CFG7 0x012c

#define SY1XX_RGMII0_PAD_CFG0 0x0130
#define SY1XX_RGMII0_PAD_CFG1 0x0134
#define SY1XX_RGMII0_PAD_CFG2 0x0138
#define SY1XX_RGMII0_PAD_CFG3 0x013c

#define SY1XX_CAN0_PAD_CFG0 0x0140

#define SY1XX_I2S0_PAD_CFG0 0x0144
#define SY1XX_I2S1_PAD_CFG0 0x0148
#define SY1XX_I2S2_PAD_CFG0 0x014c
#define SY1XX_I2S3_PAD_CFG0 0x0150

#define SY1XX_HBUS0_PAD_CFG0 0x0154
#define SY1XX_HBUS0_PAD_CFG1 0x0158
#define SY1XX_HBUS0_PAD_CFG2 0x015c
#define SY1XX_HBUS0_PAD_CFG3 0x0160

#define SY1XX_QSPI0_PAD_CFG0 0x0164
#define SY1XX_QSPI0_PAD_CFG1 0x0168

#endif /* _ZEPHYR_DT_BINDINGS_PINCTRL_SY1XX_PINCTRL_ */
