arm64: sun60iw2: add missing display/spi dt-binding headers
This commit is contained in:
parent
28203fb0af
commit
4f8358fb9d
33
include/dt-bindings/display/sunxi-lcd.h
Normal file
33
include/dt-bindings/display/sunxi-lcd.h
Normal file
@ -0,0 +1,33 @@
|
||||
/* SPDX-License-Identifier: GPL-2.0-or-later */
|
||||
/* Copyright(c) 2020 - 2023 Allwinner Technology Co.,Ltd. All rights reserved. */
|
||||
#ifndef __SUNXI_LCD_H__
|
||||
#define __SUNXI_LCD_H__
|
||||
|
||||
/* displl */
|
||||
#define CLK_PLL_DISPLL 0
|
||||
#define CLK_DSI_LS 1
|
||||
#define CLK_DSI_HS 2
|
||||
#define CLK_LVDS_OR_RGB 3
|
||||
|
||||
/* dsi */
|
||||
#define MIPI_DSI_MODE_VIDEO 1
|
||||
#define MIPI_DSI_MODE_VIDEO_BURST (1<<1)
|
||||
#define MIPI_DSI_MODE_NO_EOT_PACKET (1<<9)
|
||||
#define MIPI_DSI_CLOCK_NON_CONTINUOUS (1<<10)
|
||||
#define MIPI_DSI_EN_3DFIFO (1<<21)
|
||||
#define MIPI_DSI_SLAVE_MODE (1<<22)
|
||||
#define MIPI_DSI_MODE_VRR (1<<24)
|
||||
#define MIPI_DSI_SYNC_INCELL (1<<25)
|
||||
#define MIPI_DSI_ASYNC_INCELL (1<<26)
|
||||
|
||||
/* lvds */
|
||||
#define MEDIA_BUS_FMT_RGB666_1X7X3_SPWG 0x1010
|
||||
#define MEDIA_BUS_FMT_RGB888_1X7X4_SPWG 0x1011
|
||||
#define MEDIA_BUS_FMT_RGB888_1X7X4_JEIDA 0x1012
|
||||
|
||||
/* rgb */
|
||||
#define MEDIA_BUS_FMT_RGB565_1X16 0x1017
|
||||
#define MEDIA_BUS_FMT_RGB666_1X18 0x1009
|
||||
#define MEDIA_BUS_FMT_RGB888_1X24 0x100a
|
||||
|
||||
#endif
|
||||
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