162306a36Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0 */
262306a36Sopenharmony_ci// Copyright (c) 2019 Nuvoton Technology corporation.
362306a36Sopenharmony_ci
462306a36Sopenharmony_ci#ifndef _DT_BINDINGS_NPCM7XX_RESET_H
562306a36Sopenharmony_ci#define _DT_BINDINGS_NPCM7XX_RESET_H
662306a36Sopenharmony_ci
762306a36Sopenharmony_ci#define NPCM7XX_RESET_IPSRST1		0x20
862306a36Sopenharmony_ci#define NPCM7XX_RESET_IPSRST2		0x24
962306a36Sopenharmony_ci#define NPCM7XX_RESET_IPSRST3		0x34
1062306a36Sopenharmony_ci
1162306a36Sopenharmony_ci/* Reset lines on IP1 reset module (NPCM7XX_RESET_IPSRST1) */
1262306a36Sopenharmony_ci#define NPCM7XX_RESET_FIU3		1
1362306a36Sopenharmony_ci#define NPCM7XX_RESET_UDC1		5
1462306a36Sopenharmony_ci#define NPCM7XX_RESET_EMC1		6
1562306a36Sopenharmony_ci#define NPCM7XX_RESET_UART_2_3		7
1662306a36Sopenharmony_ci#define NPCM7XX_RESET_UDC2		8
1762306a36Sopenharmony_ci#define NPCM7XX_RESET_PECI		9
1862306a36Sopenharmony_ci#define NPCM7XX_RESET_AES		10
1962306a36Sopenharmony_ci#define NPCM7XX_RESET_UART_0_1		11
2062306a36Sopenharmony_ci#define NPCM7XX_RESET_MC		12
2162306a36Sopenharmony_ci#define NPCM7XX_RESET_SMB2		13
2262306a36Sopenharmony_ci#define NPCM7XX_RESET_SMB3		14
2362306a36Sopenharmony_ci#define NPCM7XX_RESET_SMB4		15
2462306a36Sopenharmony_ci#define NPCM7XX_RESET_SMB5		16
2562306a36Sopenharmony_ci#define NPCM7XX_RESET_PWM_M0		18
2662306a36Sopenharmony_ci#define NPCM7XX_RESET_TIMER_0_4		19
2762306a36Sopenharmony_ci#define NPCM7XX_RESET_TIMER_5_9		20
2862306a36Sopenharmony_ci#define NPCM7XX_RESET_EMC2		21
2962306a36Sopenharmony_ci#define NPCM7XX_RESET_UDC4		22
3062306a36Sopenharmony_ci#define NPCM7XX_RESET_UDC5		23
3162306a36Sopenharmony_ci#define NPCM7XX_RESET_UDC6		24
3262306a36Sopenharmony_ci#define NPCM7XX_RESET_UDC3		25
3362306a36Sopenharmony_ci#define NPCM7XX_RESET_ADC		27
3462306a36Sopenharmony_ci#define NPCM7XX_RESET_SMB6		28
3562306a36Sopenharmony_ci#define NPCM7XX_RESET_SMB7		29
3662306a36Sopenharmony_ci#define NPCM7XX_RESET_SMB0		30
3762306a36Sopenharmony_ci#define NPCM7XX_RESET_SMB1		31
3862306a36Sopenharmony_ci
3962306a36Sopenharmony_ci/* Reset lines on IP2 reset module (NPCM7XX_RESET_IPSRST2) */
4062306a36Sopenharmony_ci#define NPCM7XX_RESET_MFT0		0
4162306a36Sopenharmony_ci#define NPCM7XX_RESET_MFT1		1
4262306a36Sopenharmony_ci#define NPCM7XX_RESET_MFT2		2
4362306a36Sopenharmony_ci#define NPCM7XX_RESET_MFT3		3
4462306a36Sopenharmony_ci#define NPCM7XX_RESET_MFT4		4
4562306a36Sopenharmony_ci#define NPCM7XX_RESET_MFT5		5
4662306a36Sopenharmony_ci#define NPCM7XX_RESET_MFT6		6
4762306a36Sopenharmony_ci#define NPCM7XX_RESET_MFT7		7
4862306a36Sopenharmony_ci#define NPCM7XX_RESET_MMC		8
4962306a36Sopenharmony_ci#define NPCM7XX_RESET_SDHC		9
5062306a36Sopenharmony_ci#define NPCM7XX_RESET_GFX_SYS		10
5162306a36Sopenharmony_ci#define NPCM7XX_RESET_AHB_PCIBRG	11
5262306a36Sopenharmony_ci#define NPCM7XX_RESET_VDMA		12
5362306a36Sopenharmony_ci#define NPCM7XX_RESET_ECE		13
5462306a36Sopenharmony_ci#define NPCM7XX_RESET_VCD		14
5562306a36Sopenharmony_ci#define NPCM7XX_RESET_OTP		16
5662306a36Sopenharmony_ci#define NPCM7XX_RESET_SIOX1		18
5762306a36Sopenharmony_ci#define NPCM7XX_RESET_SIOX2		19
5862306a36Sopenharmony_ci#define NPCM7XX_RESET_3DES		21
5962306a36Sopenharmony_ci#define NPCM7XX_RESET_PSPI1		22
6062306a36Sopenharmony_ci#define NPCM7XX_RESET_PSPI2		23
6162306a36Sopenharmony_ci#define NPCM7XX_RESET_GMAC2		25
6262306a36Sopenharmony_ci#define NPCM7XX_RESET_USB_HOST		26
6362306a36Sopenharmony_ci#define NPCM7XX_RESET_GMAC1		28
6462306a36Sopenharmony_ci#define NPCM7XX_RESET_CP		31
6562306a36Sopenharmony_ci
6662306a36Sopenharmony_ci/* Reset lines on IP3 reset module (NPCM7XX_RESET_IPSRST3) */
6762306a36Sopenharmony_ci#define NPCM7XX_RESET_PWM_M1		0
6862306a36Sopenharmony_ci#define NPCM7XX_RESET_SMB12		1
6962306a36Sopenharmony_ci#define NPCM7XX_RESET_SPIX		2
7062306a36Sopenharmony_ci#define NPCM7XX_RESET_SMB13		3
7162306a36Sopenharmony_ci#define NPCM7XX_RESET_UDC0		4
7262306a36Sopenharmony_ci#define NPCM7XX_RESET_UDC7		5
7362306a36Sopenharmony_ci#define NPCM7XX_RESET_UDC8		6
7462306a36Sopenharmony_ci#define NPCM7XX_RESET_UDC9		7
7562306a36Sopenharmony_ci#define NPCM7XX_RESET_PCI_MAILBOX	9
7662306a36Sopenharmony_ci#define NPCM7XX_RESET_SMB14		12
7762306a36Sopenharmony_ci#define NPCM7XX_RESET_SHA		13
7862306a36Sopenharmony_ci#define NPCM7XX_RESET_SEC_ECC		14
7962306a36Sopenharmony_ci#define NPCM7XX_RESET_PCIE_RC		15
8062306a36Sopenharmony_ci#define NPCM7XX_RESET_TIMER_10_14	16
8162306a36Sopenharmony_ci#define NPCM7XX_RESET_RNG		17
8262306a36Sopenharmony_ci#define NPCM7XX_RESET_SMB15		18
8362306a36Sopenharmony_ci#define NPCM7XX_RESET_SMB8		19
8462306a36Sopenharmony_ci#define NPCM7XX_RESET_SMB9		20
8562306a36Sopenharmony_ci#define NPCM7XX_RESET_SMB10		21
8662306a36Sopenharmony_ci#define NPCM7XX_RESET_SMB11		22
8762306a36Sopenharmony_ci#define NPCM7XX_RESET_ESPI		23
8862306a36Sopenharmony_ci#define NPCM7XX_RESET_USB_PHY_1		24
8962306a36Sopenharmony_ci#define NPCM7XX_RESET_USB_PHY_2		25
9062306a36Sopenharmony_ci
9162306a36Sopenharmony_ci#endif
92