xref: /freebsd/sys/contrib/device-tree/include/dt-bindings/reset/realtek,rtd1295.h (revision c66ec88fed842fbaad62c30d510644ceb7bd2d71)
1*c66ec88fSEmmanuel Vadot /* SPDX-License-Identifier: (GPL-2.0-or-later OR BSD-2-Clause) */
2*c66ec88fSEmmanuel Vadot /*
3*c66ec88fSEmmanuel Vadot  * Realtek RTD1295 reset controllers
4*c66ec88fSEmmanuel Vadot  *
5*c66ec88fSEmmanuel Vadot  * Copyright (c) 2017 Andreas Färber
6*c66ec88fSEmmanuel Vadot  */
7*c66ec88fSEmmanuel Vadot #ifndef DT_BINDINGS_RESET_RTD1295_H
8*c66ec88fSEmmanuel Vadot #define DT_BINDINGS_RESET_RTD1295_H
9*c66ec88fSEmmanuel Vadot 
10*c66ec88fSEmmanuel Vadot /* soft reset 1 */
11*c66ec88fSEmmanuel Vadot #define RTD1295_RSTN_MISC		0
12*c66ec88fSEmmanuel Vadot #define RTD1295_RSTN_NAT		1
13*c66ec88fSEmmanuel Vadot #define RTD1295_RSTN_USB3_PHY0_POW	2
14*c66ec88fSEmmanuel Vadot #define RTD1295_RSTN_GSPI		3
15*c66ec88fSEmmanuel Vadot #define RTD1295_RSTN_USB3_P0_MDIO	4
16*c66ec88fSEmmanuel Vadot #define RTD1295_RSTN_SATA_0		5
17*c66ec88fSEmmanuel Vadot #define RTD1295_RSTN_USB		6
18*c66ec88fSEmmanuel Vadot #define RTD1295_RSTN_SATA_PHY_0		7
19*c66ec88fSEmmanuel Vadot #define RTD1295_RSTN_USB_PHY0		8
20*c66ec88fSEmmanuel Vadot #define RTD1295_RSTN_USB_PHY1		9
21*c66ec88fSEmmanuel Vadot #define RTD1295_RSTN_SATA_PHY_POW_0	10
22*c66ec88fSEmmanuel Vadot #define RTD1295_RSTN_SATA_FUNC_EXIST_0	11
23*c66ec88fSEmmanuel Vadot #define RTD1295_RSTN_HDMI		12
24*c66ec88fSEmmanuel Vadot #define RTD1295_RSTN_VE1		13
25*c66ec88fSEmmanuel Vadot #define RTD1295_RSTN_VE2		14
26*c66ec88fSEmmanuel Vadot #define RTD1295_RSTN_VE3		15
27*c66ec88fSEmmanuel Vadot #define RTD1295_RSTN_ETN		16
28*c66ec88fSEmmanuel Vadot #define RTD1295_RSTN_AIO		17
29*c66ec88fSEmmanuel Vadot #define RTD1295_RSTN_GPU		18
30*c66ec88fSEmmanuel Vadot #define RTD1295_RSTN_TVE		19
31*c66ec88fSEmmanuel Vadot #define RTD1295_RSTN_VO			20
32*c66ec88fSEmmanuel Vadot #define RTD1295_RSTN_LVDS		21
33*c66ec88fSEmmanuel Vadot #define RTD1295_RSTN_SE			22
34*c66ec88fSEmmanuel Vadot #define RTD1295_RSTN_DCU		23
35*c66ec88fSEmmanuel Vadot #define RTD1295_RSTN_DC_PHY		24
36*c66ec88fSEmmanuel Vadot #define RTD1295_RSTN_CP			25
37*c66ec88fSEmmanuel Vadot #define RTD1295_RSTN_MD			26
38*c66ec88fSEmmanuel Vadot #define RTD1295_RSTN_TP			27
39*c66ec88fSEmmanuel Vadot #define RTD1295_RSTN_AE			28
40*c66ec88fSEmmanuel Vadot #define RTD1295_RSTN_NF			29
41*c66ec88fSEmmanuel Vadot #define RTD1295_RSTN_MIPI		30
42*c66ec88fSEmmanuel Vadot #define RTD1295_RSTN_RSA		31
43*c66ec88fSEmmanuel Vadot 
44*c66ec88fSEmmanuel Vadot /* soft reset 2 */
45*c66ec88fSEmmanuel Vadot #define RTD1295_RSTN_ACPU		0
46*c66ec88fSEmmanuel Vadot #define RTD1295_RSTN_JPEG		1
47*c66ec88fSEmmanuel Vadot #define RTD1295_RSTN_USB_PHY3		2
48*c66ec88fSEmmanuel Vadot #define RTD1295_RSTN_USB_PHY2		3
49*c66ec88fSEmmanuel Vadot #define RTD1295_RSTN_USB3_PHY1_POW	4
50*c66ec88fSEmmanuel Vadot #define RTD1295_RSTN_USB3_P1_MDIO	5
51*c66ec88fSEmmanuel Vadot #define RTD1295_RSTN_PCIE0_STITCH	6
52*c66ec88fSEmmanuel Vadot #define RTD1295_RSTN_PCIE0_PHY		7
53*c66ec88fSEmmanuel Vadot #define RTD1295_RSTN_PCIE0		8
54*c66ec88fSEmmanuel Vadot #define RTD1295_RSTN_PCR_CNT		9
55*c66ec88fSEmmanuel Vadot #define RTD1295_RSTN_CR			10
56*c66ec88fSEmmanuel Vadot #define RTD1295_RSTN_EMMC		11
57*c66ec88fSEmmanuel Vadot #define RTD1295_RSTN_SDIO		12
58*c66ec88fSEmmanuel Vadot #define RTD1295_RSTN_PCIE0_CORE		13
59*c66ec88fSEmmanuel Vadot #define RTD1295_RSTN_PCIE0_POWER	14
60*c66ec88fSEmmanuel Vadot #define RTD1295_RSTN_PCIE0_NONSTICH	15
61*c66ec88fSEmmanuel Vadot #define RTD1295_RSTN_PCIE1_PHY		16
62*c66ec88fSEmmanuel Vadot #define RTD1295_RSTN_PCIE1		17
63*c66ec88fSEmmanuel Vadot #define RTD1295_RSTN_I2C_5		18
64*c66ec88fSEmmanuel Vadot #define RTD1295_RSTN_PCIE1_STITCH	19
65*c66ec88fSEmmanuel Vadot #define RTD1295_RSTN_PCIE1_CORE		20
66*c66ec88fSEmmanuel Vadot #define RTD1295_RSTN_PCIE1_POWER	21
67*c66ec88fSEmmanuel Vadot #define RTD1295_RSTN_PCIE1_NONSTICH	22
68*c66ec88fSEmmanuel Vadot #define RTD1295_RSTN_I2C_4		23
69*c66ec88fSEmmanuel Vadot #define RTD1295_RSTN_I2C_3		24
70*c66ec88fSEmmanuel Vadot #define RTD1295_RSTN_I2C_2		25
71*c66ec88fSEmmanuel Vadot #define RTD1295_RSTN_I2C_1		26
72*c66ec88fSEmmanuel Vadot #define RTD1295_RSTN_UR2		27
73*c66ec88fSEmmanuel Vadot #define RTD1295_RSTN_UR1		28
74*c66ec88fSEmmanuel Vadot #define RTD1295_RSTN_MISC_SC		29
75*c66ec88fSEmmanuel Vadot #define RTD1295_RSTN_CBUS_TX		30
76*c66ec88fSEmmanuel Vadot #define RTD1295_RSTN_SDS_PHY		31
77*c66ec88fSEmmanuel Vadot 
78*c66ec88fSEmmanuel Vadot /* soft reset 3 */
79*c66ec88fSEmmanuel Vadot #define RTD1295_RSTN_SB2		0
80*c66ec88fSEmmanuel Vadot 
81*c66ec88fSEmmanuel Vadot /* soft reset 4 */
82*c66ec88fSEmmanuel Vadot #define RTD1295_RSTN_DCPHY_CRT		0
83*c66ec88fSEmmanuel Vadot #define RTD1295_RSTN_DCPHY_ALERT_RX	1
84*c66ec88fSEmmanuel Vadot #define RTD1295_RSTN_DCPHY_PTR		2
85*c66ec88fSEmmanuel Vadot #define RTD1295_RSTN_DCPHY_LDO		3
86*c66ec88fSEmmanuel Vadot #define RTD1295_RSTN_DCPHY_SSC_DIG	4
87*c66ec88fSEmmanuel Vadot #define RTD1295_RSTN_HDMIRX		5
88*c66ec88fSEmmanuel Vadot #define RTD1295_RSTN_CBUSRX		6
89*c66ec88fSEmmanuel Vadot #define RTD1295_RSTN_SATA_PHY_POW_1	7
90*c66ec88fSEmmanuel Vadot #define RTD1295_RSTN_SATA_FUNC_EXIST_1	8
91*c66ec88fSEmmanuel Vadot #define RTD1295_RSTN_SATA_PHY_1		9
92*c66ec88fSEmmanuel Vadot #define RTD1295_RSTN_SATA_1		10
93*c66ec88fSEmmanuel Vadot #define RTD1295_RSTN_FAN		11
94*c66ec88fSEmmanuel Vadot #define RTD1295_RSTN_HDMIRX_WRAP	12
95*c66ec88fSEmmanuel Vadot #define RTD1295_RSTN_PCIE0_PHY_MDIO	13
96*c66ec88fSEmmanuel Vadot #define RTD1295_RSTN_PCIE1_PHY_MDIO	14
97*c66ec88fSEmmanuel Vadot #define RTD1295_RSTN_DISP		15
98*c66ec88fSEmmanuel Vadot 
99*c66ec88fSEmmanuel Vadot /* iso reset */
100*c66ec88fSEmmanuel Vadot #define RTD1295_ISO_RSTN_IR		1
101*c66ec88fSEmmanuel Vadot #define RTD1295_ISO_RSTN_CEC0		2
102*c66ec88fSEmmanuel Vadot #define RTD1295_ISO_RSTN_CEC1		3
103*c66ec88fSEmmanuel Vadot #define RTD1295_ISO_RSTN_DP		4
104*c66ec88fSEmmanuel Vadot #define RTD1295_ISO_RSTN_CBUSTX		5
105*c66ec88fSEmmanuel Vadot #define RTD1295_ISO_RSTN_CBUSRX		6
106*c66ec88fSEmmanuel Vadot #define RTD1295_ISO_RSTN_EFUSE		7
107*c66ec88fSEmmanuel Vadot #define RTD1295_ISO_RSTN_UR0		8
108*c66ec88fSEmmanuel Vadot #define RTD1295_ISO_RSTN_GMAC		9
109*c66ec88fSEmmanuel Vadot #define RTD1295_ISO_RSTN_GPHY		10
110*c66ec88fSEmmanuel Vadot #define RTD1295_ISO_RSTN_I2C_0		11
111*c66ec88fSEmmanuel Vadot #define RTD1295_ISO_RSTN_I2C_1		12
112*c66ec88fSEmmanuel Vadot #define RTD1295_ISO_RSTN_CBUS		13
113*c66ec88fSEmmanuel Vadot 
114*c66ec88fSEmmanuel Vadot #endif
115