dt-bindings: add missing sunxi gpio/spi headers for sun60 dts
This commit is contained in:
parent
c4a9fa2770
commit
9f71ae205e
28
include/dt-bindings/gpio/sun4i-gpio.h
Normal file
28
include/dt-bindings/gpio/sun4i-gpio.h
Normal file
@ -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 */
|
||||
18
include/dt-bindings/spi/sunxi-spi.h
Normal file
18
include/dt-bindings/spi/sunxi-spi.h
Normal file
@ -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 */
|
||||
Loading…
x
Reference in New Issue
Block a user