xref: /freebsd/sys/contrib/device-tree/include/dt-bindings/pinctrl/pinctrl-cv1812h.h (revision b2d2a78ad80ec68d4a17f5aef97d21686cb1e29b)
1*b2d2a78aSEmmanuel Vadot /* SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause */
2*b2d2a78aSEmmanuel Vadot /*
3*b2d2a78aSEmmanuel Vadot  * Copyright (C) 2024 Inochi Amaoto <inochiama@outlook.com>
4*b2d2a78aSEmmanuel Vadot  *
5*b2d2a78aSEmmanuel Vadot  * This file is generated from vendor pinout definition.
6*b2d2a78aSEmmanuel Vadot  */
7*b2d2a78aSEmmanuel Vadot 
8*b2d2a78aSEmmanuel Vadot #ifndef _DT_BINDINGS_PINCTRL_CV1812H_H
9*b2d2a78aSEmmanuel Vadot #define _DT_BINDINGS_PINCTRL_CV1812H_H
10*b2d2a78aSEmmanuel Vadot 
11*b2d2a78aSEmmanuel Vadot #include <dt-bindings/pinctrl/pinctrl-cv18xx.h>
12*b2d2a78aSEmmanuel Vadot 
13*b2d2a78aSEmmanuel Vadot #define PINPOS(row, col)			\
14*b2d2a78aSEmmanuel Vadot 	((((row) - 'A' + 1) << 8) + ((col) - 1))
15*b2d2a78aSEmmanuel Vadot 
16*b2d2a78aSEmmanuel Vadot #define PIN_MIPI_TXM4			PINPOS('A', 2)
17*b2d2a78aSEmmanuel Vadot #define PIN_MIPIRX0N			PINPOS('A', 4)
18*b2d2a78aSEmmanuel Vadot #define PIN_MIPIRX3P			PINPOS('A', 6)
19*b2d2a78aSEmmanuel Vadot #define PIN_MIPIRX4P			PINPOS('A', 7)
20*b2d2a78aSEmmanuel Vadot #define PIN_VIVO_D2			PINPOS('A', 9)
21*b2d2a78aSEmmanuel Vadot #define PIN_VIVO_D3			PINPOS('A', 10)
22*b2d2a78aSEmmanuel Vadot #define PIN_VIVO_D10			PINPOS('A', 12)
23*b2d2a78aSEmmanuel Vadot #define PIN_USB_VBUS_DET		PINPOS('A', 13)
24*b2d2a78aSEmmanuel Vadot #define PIN_MIPI_TXP3			PINPOS('B', 1)
25*b2d2a78aSEmmanuel Vadot #define PIN_MIPI_TXM3			PINPOS('B', 2)
26*b2d2a78aSEmmanuel Vadot #define PIN_MIPI_TXP4			PINPOS('B', 3)
27*b2d2a78aSEmmanuel Vadot #define PIN_MIPIRX0P			PINPOS('B', 4)
28*b2d2a78aSEmmanuel Vadot #define PIN_MIPIRX1N			PINPOS('B', 5)
29*b2d2a78aSEmmanuel Vadot #define PIN_MIPIRX2N			PINPOS('B', 6)
30*b2d2a78aSEmmanuel Vadot #define PIN_MIPIRX4N			PINPOS('B', 7)
31*b2d2a78aSEmmanuel Vadot #define PIN_MIPIRX5N			PINPOS('B', 8)
32*b2d2a78aSEmmanuel Vadot #define PIN_VIVO_D1			PINPOS('B', 9)
33*b2d2a78aSEmmanuel Vadot #define PIN_VIVO_D5			PINPOS('B', 10)
34*b2d2a78aSEmmanuel Vadot #define PIN_VIVO_D7			PINPOS('B', 11)
35*b2d2a78aSEmmanuel Vadot #define PIN_VIVO_D9			PINPOS('B', 12)
36*b2d2a78aSEmmanuel Vadot #define PIN_USB_ID			PINPOS('B', 13)
37*b2d2a78aSEmmanuel Vadot #define PIN_ETH_RXM			PINPOS('B', 15)
38*b2d2a78aSEmmanuel Vadot #define PIN_MIPI_TXP2			PINPOS('C', 1)
39*b2d2a78aSEmmanuel Vadot #define PIN_MIPI_TXM2			PINPOS('C', 2)
40*b2d2a78aSEmmanuel Vadot #define PIN_CAM_PD0			PINPOS('C', 3)
41*b2d2a78aSEmmanuel Vadot #define PIN_CAM_MCLK0			PINPOS('C', 4)
42*b2d2a78aSEmmanuel Vadot #define PIN_MIPIRX1P			PINPOS('C', 5)
43*b2d2a78aSEmmanuel Vadot #define PIN_MIPIRX2P			PINPOS('C', 6)
44*b2d2a78aSEmmanuel Vadot #define PIN_MIPIRX3N			PINPOS('C', 7)
45*b2d2a78aSEmmanuel Vadot #define PIN_MIPIRX5P			PINPOS('C', 8)
46*b2d2a78aSEmmanuel Vadot #define PIN_VIVO_CLK			PINPOS('C', 9)
47*b2d2a78aSEmmanuel Vadot #define PIN_VIVO_D6			PINPOS('C', 10)
48*b2d2a78aSEmmanuel Vadot #define PIN_VIVO_D8			PINPOS('C', 11)
49*b2d2a78aSEmmanuel Vadot #define PIN_USB_VBUS_EN			PINPOS('C', 12)
50*b2d2a78aSEmmanuel Vadot #define PIN_ETH_RXP			PINPOS('C', 14)
51*b2d2a78aSEmmanuel Vadot #define PIN_GPIO_RTX			PINPOS('C', 15)
52*b2d2a78aSEmmanuel Vadot #define PIN_MIPI_TXP1			PINPOS('D', 1)
53*b2d2a78aSEmmanuel Vadot #define PIN_MIPI_TXM1			PINPOS('D', 2)
54*b2d2a78aSEmmanuel Vadot #define PIN_CAM_MCLK1			PINPOS('D', 3)
55*b2d2a78aSEmmanuel Vadot #define PIN_IIC3_SCL			PINPOS('D', 4)
56*b2d2a78aSEmmanuel Vadot #define PIN_VIVO_D4			PINPOS('D', 10)
57*b2d2a78aSEmmanuel Vadot #define PIN_ETH_TXM			PINPOS('D', 14)
58*b2d2a78aSEmmanuel Vadot #define PIN_ETH_TXP			PINPOS('D', 15)
59*b2d2a78aSEmmanuel Vadot #define PIN_MIPI_TXP0			PINPOS('E', 1)
60*b2d2a78aSEmmanuel Vadot #define PIN_MIPI_TXM0			PINPOS('E', 2)
61*b2d2a78aSEmmanuel Vadot #define PIN_CAM_PD1			PINPOS('E', 4)
62*b2d2a78aSEmmanuel Vadot #define PIN_CAM_RST0			PINPOS('E', 5)
63*b2d2a78aSEmmanuel Vadot #define PIN_VIVO_D0			PINPOS('E', 10)
64*b2d2a78aSEmmanuel Vadot #define PIN_ADC1			PINPOS('E', 13)
65*b2d2a78aSEmmanuel Vadot #define PIN_ADC2			PINPOS('E', 14)
66*b2d2a78aSEmmanuel Vadot #define PIN_ADC3			PINPOS('E', 15)
67*b2d2a78aSEmmanuel Vadot #define PIN_AUD_AOUTL			PINPOS('F', 2)
68*b2d2a78aSEmmanuel Vadot #define PIN_IIC3_SDA			PINPOS('F', 4)
69*b2d2a78aSEmmanuel Vadot #define PIN_SD1_D2			PINPOS('F', 14)
70*b2d2a78aSEmmanuel Vadot #define PIN_AUD_AOUTR			PINPOS('G', 2)
71*b2d2a78aSEmmanuel Vadot #define PIN_SD1_D3			PINPOS('G', 13)
72*b2d2a78aSEmmanuel Vadot #define PIN_SD1_CLK			PINPOS('G', 14)
73*b2d2a78aSEmmanuel Vadot #define PIN_SD1_CMD			PINPOS('G', 15)
74*b2d2a78aSEmmanuel Vadot #define PIN_AUD_AINL_MIC		PINPOS('H', 1)
75*b2d2a78aSEmmanuel Vadot #define PIN_RSTN			PINPOS('H', 12)
76*b2d2a78aSEmmanuel Vadot #define PIN_PWM0_BUCK			PINPOS('H', 13)
77*b2d2a78aSEmmanuel Vadot #define PIN_SD1_D1			PINPOS('H', 14)
78*b2d2a78aSEmmanuel Vadot #define PIN_SD1_D0			PINPOS('H', 15)
79*b2d2a78aSEmmanuel Vadot #define PIN_AUD_AINR_MIC		PINPOS('J', 1)
80*b2d2a78aSEmmanuel Vadot #define PIN_IIC2_SCL			PINPOS('J', 13)
81*b2d2a78aSEmmanuel Vadot #define PIN_IIC2_SDA			PINPOS('J', 14)
82*b2d2a78aSEmmanuel Vadot #define PIN_SD0_CD			PINPOS('K', 2)
83*b2d2a78aSEmmanuel Vadot #define PIN_SD0_D1			PINPOS('K', 3)
84*b2d2a78aSEmmanuel Vadot #define PIN_UART2_RX			PINPOS('K', 13)
85*b2d2a78aSEmmanuel Vadot #define PIN_UART2_CTS			PINPOS('K', 14)
86*b2d2a78aSEmmanuel Vadot #define PIN_UART2_TX			PINPOS('K', 15)
87*b2d2a78aSEmmanuel Vadot #define PIN_SD0_CLK			PINPOS('L', 1)
88*b2d2a78aSEmmanuel Vadot #define PIN_SD0_D0			PINPOS('L', 2)
89*b2d2a78aSEmmanuel Vadot #define PIN_SD0_CMD			PINPOS('L', 3)
90*b2d2a78aSEmmanuel Vadot #define PIN_CLK32K			PINPOS('L', 14)
91*b2d2a78aSEmmanuel Vadot #define PIN_UART2_RTS			PINPOS('L', 15)
92*b2d2a78aSEmmanuel Vadot #define PIN_SD0_D3			PINPOS('M', 1)
93*b2d2a78aSEmmanuel Vadot #define PIN_SD0_D2			PINPOS('M', 2)
94*b2d2a78aSEmmanuel Vadot #define PIN_UART0_RX			PINPOS('M', 4)
95*b2d2a78aSEmmanuel Vadot #define PIN_UART0_TX			PINPOS('M', 5)
96*b2d2a78aSEmmanuel Vadot #define PIN_JTAG_CPU_TRST		PINPOS('M', 6)
97*b2d2a78aSEmmanuel Vadot #define PIN_PWR_ON			PINPOS('M', 11)
98*b2d2a78aSEmmanuel Vadot #define PIN_PWR_GPIO2			PINPOS('M', 12)
99*b2d2a78aSEmmanuel Vadot #define PIN_PWR_GPIO0			PINPOS('M', 13)
100*b2d2a78aSEmmanuel Vadot #define PIN_CLK25M			PINPOS('M', 14)
101*b2d2a78aSEmmanuel Vadot #define PIN_SD0_PWR_EN			PINPOS('N', 1)
102*b2d2a78aSEmmanuel Vadot #define PIN_SPK_EN			PINPOS('N', 3)
103*b2d2a78aSEmmanuel Vadot #define PIN_JTAG_CPU_TCK		PINPOS('N', 4)
104*b2d2a78aSEmmanuel Vadot #define PIN_JTAG_CPU_TMS		PINPOS('N', 6)
105*b2d2a78aSEmmanuel Vadot #define PIN_PWR_WAKEUP1			PINPOS('N', 11)
106*b2d2a78aSEmmanuel Vadot #define PIN_PWR_WAKEUP0			PINPOS('N', 12)
107*b2d2a78aSEmmanuel Vadot #define PIN_PWR_GPIO1			PINPOS('N', 13)
108*b2d2a78aSEmmanuel Vadot #define PIN_EMMC_DAT3			PINPOS('P', 1)
109*b2d2a78aSEmmanuel Vadot #define PIN_EMMC_DAT0			PINPOS('P', 2)
110*b2d2a78aSEmmanuel Vadot #define PIN_EMMC_DAT2			PINPOS('P', 3)
111*b2d2a78aSEmmanuel Vadot #define PIN_EMMC_RSTN			PINPOS('P', 4)
112*b2d2a78aSEmmanuel Vadot #define PIN_AUX0			PINPOS('P', 5)
113*b2d2a78aSEmmanuel Vadot #define PIN_IIC0_SDA			PINPOS('P', 6)
114*b2d2a78aSEmmanuel Vadot #define PIN_PWR_SEQ3			PINPOS('P', 10)
115*b2d2a78aSEmmanuel Vadot #define PIN_PWR_VBAT_DET		PINPOS('P', 11)
116*b2d2a78aSEmmanuel Vadot #define PIN_PWR_SEQ1			PINPOS('P', 12)
117*b2d2a78aSEmmanuel Vadot #define PIN_PWR_BUTTON1			PINPOS('P', 13)
118*b2d2a78aSEmmanuel Vadot #define PIN_EMMC_DAT1			PINPOS('R', 2)
119*b2d2a78aSEmmanuel Vadot #define PIN_EMMC_CMD			PINPOS('R', 3)
120*b2d2a78aSEmmanuel Vadot #define PIN_EMMC_CLK			PINPOS('R', 4)
121*b2d2a78aSEmmanuel Vadot #define PIN_IIC0_SCL			PINPOS('R', 6)
122*b2d2a78aSEmmanuel Vadot #define PIN_GPIO_ZQ			PINPOS('R', 10)
123*b2d2a78aSEmmanuel Vadot #define PIN_PWR_RSTN			PINPOS('R', 11)
124*b2d2a78aSEmmanuel Vadot #define PIN_PWR_SEQ2			PINPOS('R', 12)
125*b2d2a78aSEmmanuel Vadot #define PIN_XTAL_XIN			PINPOS('R', 13)
126*b2d2a78aSEmmanuel Vadot 
127*b2d2a78aSEmmanuel Vadot #endif /* _DT_BINDINGS_PINCTRL_CV1812H_H */
128