diff --git a/include/dt-bindings/gpio/sun4i-gpio.h b/include/dt-bindings/gpio/sun4i-gpio.h new file mode 100644 index 000000000..44344c1ff --- /dev/null +++ b/include/dt-bindings/gpio/sun4i-gpio.h @@ -0,0 +1,28 @@ +/* SPDX-License-Identifier: GPL-2.0-only */ +/* Copyright(c) 2020 - 2023 Allwinner Technology Co.,Ltd. All rights reserved. */ +/* + * Author: frank@allwinner.com + */ + +#ifndef __DT_SUN4I_GPIO_H +#define __DT_SUN4I_GPIO_H + +/* pio */ +#define PA 0 +#define PB 1 +#define PC 2 +#define PD 3 +#define PE 4 +#define PF 5 +#define PG 6 +#define PH 7 +#define PI 8 +#define PJ 9 +#define PK 10 + +/* r pio */ +#define PL 0 +#define PM 1 +#define PN 2 + +#endif /* __DT_SUN4I_GPIO_H */ diff --git a/include/dt-bindings/spi/sunxi-spi.h b/include/dt-bindings/spi/sunxi-spi.h new file mode 100644 index 000000000..179bc59a1 --- /dev/null +++ b/include/dt-bindings/spi/sunxi-spi.h @@ -0,0 +1,18 @@ +/* SPDX-License-Identifier: GPL-2.0-or-later */ +/* Copyright(c) 2020 - 2023 Allwinner Technology Co.,Ltd. All rights reserved. */ + +#ifndef __DT_SUNXI_SPI_H +#define __DT_SUNXI_SPI_H + +#define SUNXI_SPI_BUS_MASTER (1 << 0) +#define SUNXI_SPI_BUS_SLAVE (1 << 1) +#define SUNXI_SPI_BUS_DBI (1 << 2) +#define SUNXI_SPI_BUS_BIT (1 << 3) +#define SUNXI_SPI_BUS_NOR (1 << 4) +#define SUNXI_SPI_BUS_NAND (1 << 5) +#define SUNXI_SPI_BUS_CAMERA (1 << 6) + +#define SUNXI_SPI_CS_AUTO 0 +#define SUNXI_SPI_CS_SOFT 1 + +#endif /* __DT_SUNXI_SPI_H */