18c2ecf20Sopenharmony_ci/* SPDX-License-Identifier: (GPL-2.0-or-later OR BSD-2-Clause) */ 28c2ecf20Sopenharmony_ci/* 38c2ecf20Sopenharmony_ci * Realtek RTD1295 reset controllers 48c2ecf20Sopenharmony_ci * 58c2ecf20Sopenharmony_ci * Copyright (c) 2017 Andreas Färber 68c2ecf20Sopenharmony_ci */ 78c2ecf20Sopenharmony_ci#ifndef DT_BINDINGS_RESET_RTD1295_H 88c2ecf20Sopenharmony_ci#define DT_BINDINGS_RESET_RTD1295_H 98c2ecf20Sopenharmony_ci 108c2ecf20Sopenharmony_ci/* soft reset 1 */ 118c2ecf20Sopenharmony_ci#define RTD1295_RSTN_MISC 0 128c2ecf20Sopenharmony_ci#define RTD1295_RSTN_NAT 1 138c2ecf20Sopenharmony_ci#define RTD1295_RSTN_USB3_PHY0_POW 2 148c2ecf20Sopenharmony_ci#define RTD1295_RSTN_GSPI 3 158c2ecf20Sopenharmony_ci#define RTD1295_RSTN_USB3_P0_MDIO 4 168c2ecf20Sopenharmony_ci#define RTD1295_RSTN_SATA_0 5 178c2ecf20Sopenharmony_ci#define RTD1295_RSTN_USB 6 188c2ecf20Sopenharmony_ci#define RTD1295_RSTN_SATA_PHY_0 7 198c2ecf20Sopenharmony_ci#define RTD1295_RSTN_USB_PHY0 8 208c2ecf20Sopenharmony_ci#define RTD1295_RSTN_USB_PHY1 9 218c2ecf20Sopenharmony_ci#define RTD1295_RSTN_SATA_PHY_POW_0 10 228c2ecf20Sopenharmony_ci#define RTD1295_RSTN_SATA_FUNC_EXIST_0 11 238c2ecf20Sopenharmony_ci#define RTD1295_RSTN_HDMI 12 248c2ecf20Sopenharmony_ci#define RTD1295_RSTN_VE1 13 258c2ecf20Sopenharmony_ci#define RTD1295_RSTN_VE2 14 268c2ecf20Sopenharmony_ci#define RTD1295_RSTN_VE3 15 278c2ecf20Sopenharmony_ci#define RTD1295_RSTN_ETN 16 288c2ecf20Sopenharmony_ci#define RTD1295_RSTN_AIO 17 298c2ecf20Sopenharmony_ci#define RTD1295_RSTN_GPU 18 308c2ecf20Sopenharmony_ci#define RTD1295_RSTN_TVE 19 318c2ecf20Sopenharmony_ci#define RTD1295_RSTN_VO 20 328c2ecf20Sopenharmony_ci#define RTD1295_RSTN_LVDS 21 338c2ecf20Sopenharmony_ci#define RTD1295_RSTN_SE 22 348c2ecf20Sopenharmony_ci#define RTD1295_RSTN_DCU 23 358c2ecf20Sopenharmony_ci#define RTD1295_RSTN_DC_PHY 24 368c2ecf20Sopenharmony_ci#define RTD1295_RSTN_CP 25 378c2ecf20Sopenharmony_ci#define RTD1295_RSTN_MD 26 388c2ecf20Sopenharmony_ci#define RTD1295_RSTN_TP 27 398c2ecf20Sopenharmony_ci#define RTD1295_RSTN_AE 28 408c2ecf20Sopenharmony_ci#define RTD1295_RSTN_NF 29 418c2ecf20Sopenharmony_ci#define RTD1295_RSTN_MIPI 30 428c2ecf20Sopenharmony_ci#define RTD1295_RSTN_RSA 31 438c2ecf20Sopenharmony_ci 448c2ecf20Sopenharmony_ci/* soft reset 2 */ 458c2ecf20Sopenharmony_ci#define RTD1295_RSTN_ACPU 0 468c2ecf20Sopenharmony_ci#define RTD1295_RSTN_JPEG 1 478c2ecf20Sopenharmony_ci#define RTD1295_RSTN_USB_PHY3 2 488c2ecf20Sopenharmony_ci#define RTD1295_RSTN_USB_PHY2 3 498c2ecf20Sopenharmony_ci#define RTD1295_RSTN_USB3_PHY1_POW 4 508c2ecf20Sopenharmony_ci#define RTD1295_RSTN_USB3_P1_MDIO 5 518c2ecf20Sopenharmony_ci#define RTD1295_RSTN_PCIE0_STITCH 6 528c2ecf20Sopenharmony_ci#define RTD1295_RSTN_PCIE0_PHY 7 538c2ecf20Sopenharmony_ci#define RTD1295_RSTN_PCIE0 8 548c2ecf20Sopenharmony_ci#define RTD1295_RSTN_PCR_CNT 9 558c2ecf20Sopenharmony_ci#define RTD1295_RSTN_CR 10 568c2ecf20Sopenharmony_ci#define RTD1295_RSTN_EMMC 11 578c2ecf20Sopenharmony_ci#define RTD1295_RSTN_SDIO 12 588c2ecf20Sopenharmony_ci#define RTD1295_RSTN_PCIE0_CORE 13 598c2ecf20Sopenharmony_ci#define RTD1295_RSTN_PCIE0_POWER 14 608c2ecf20Sopenharmony_ci#define RTD1295_RSTN_PCIE0_NONSTICH 15 618c2ecf20Sopenharmony_ci#define RTD1295_RSTN_PCIE1_PHY 16 628c2ecf20Sopenharmony_ci#define RTD1295_RSTN_PCIE1 17 638c2ecf20Sopenharmony_ci#define RTD1295_RSTN_I2C_5 18 648c2ecf20Sopenharmony_ci#define RTD1295_RSTN_PCIE1_STITCH 19 658c2ecf20Sopenharmony_ci#define RTD1295_RSTN_PCIE1_CORE 20 668c2ecf20Sopenharmony_ci#define RTD1295_RSTN_PCIE1_POWER 21 678c2ecf20Sopenharmony_ci#define RTD1295_RSTN_PCIE1_NONSTICH 22 688c2ecf20Sopenharmony_ci#define RTD1295_RSTN_I2C_4 23 698c2ecf20Sopenharmony_ci#define RTD1295_RSTN_I2C_3 24 708c2ecf20Sopenharmony_ci#define RTD1295_RSTN_I2C_2 25 718c2ecf20Sopenharmony_ci#define RTD1295_RSTN_I2C_1 26 728c2ecf20Sopenharmony_ci#define RTD1295_RSTN_UR2 27 738c2ecf20Sopenharmony_ci#define RTD1295_RSTN_UR1 28 748c2ecf20Sopenharmony_ci#define RTD1295_RSTN_MISC_SC 29 758c2ecf20Sopenharmony_ci#define RTD1295_RSTN_CBUS_TX 30 768c2ecf20Sopenharmony_ci#define RTD1295_RSTN_SDS_PHY 31 778c2ecf20Sopenharmony_ci 788c2ecf20Sopenharmony_ci/* soft reset 3 */ 798c2ecf20Sopenharmony_ci#define RTD1295_RSTN_SB2 0 808c2ecf20Sopenharmony_ci 818c2ecf20Sopenharmony_ci/* soft reset 4 */ 828c2ecf20Sopenharmony_ci#define RTD1295_RSTN_DCPHY_CRT 0 838c2ecf20Sopenharmony_ci#define RTD1295_RSTN_DCPHY_ALERT_RX 1 848c2ecf20Sopenharmony_ci#define RTD1295_RSTN_DCPHY_PTR 2 858c2ecf20Sopenharmony_ci#define RTD1295_RSTN_DCPHY_LDO 3 868c2ecf20Sopenharmony_ci#define RTD1295_RSTN_DCPHY_SSC_DIG 4 878c2ecf20Sopenharmony_ci#define RTD1295_RSTN_HDMIRX 5 888c2ecf20Sopenharmony_ci#define RTD1295_RSTN_CBUSRX 6 898c2ecf20Sopenharmony_ci#define RTD1295_RSTN_SATA_PHY_POW_1 7 908c2ecf20Sopenharmony_ci#define RTD1295_RSTN_SATA_FUNC_EXIST_1 8 918c2ecf20Sopenharmony_ci#define RTD1295_RSTN_SATA_PHY_1 9 928c2ecf20Sopenharmony_ci#define RTD1295_RSTN_SATA_1 10 938c2ecf20Sopenharmony_ci#define RTD1295_RSTN_FAN 11 948c2ecf20Sopenharmony_ci#define RTD1295_RSTN_HDMIRX_WRAP 12 958c2ecf20Sopenharmony_ci#define RTD1295_RSTN_PCIE0_PHY_MDIO 13 968c2ecf20Sopenharmony_ci#define RTD1295_RSTN_PCIE1_PHY_MDIO 14 978c2ecf20Sopenharmony_ci#define RTD1295_RSTN_DISP 15 988c2ecf20Sopenharmony_ci 998c2ecf20Sopenharmony_ci/* iso reset */ 1008c2ecf20Sopenharmony_ci#define RTD1295_ISO_RSTN_IR 1 1018c2ecf20Sopenharmony_ci#define RTD1295_ISO_RSTN_CEC0 2 1028c2ecf20Sopenharmony_ci#define RTD1295_ISO_RSTN_CEC1 3 1038c2ecf20Sopenharmony_ci#define RTD1295_ISO_RSTN_DP 4 1048c2ecf20Sopenharmony_ci#define RTD1295_ISO_RSTN_CBUSTX 5 1058c2ecf20Sopenharmony_ci#define RTD1295_ISO_RSTN_CBUSRX 6 1068c2ecf20Sopenharmony_ci#define RTD1295_ISO_RSTN_EFUSE 7 1078c2ecf20Sopenharmony_ci#define RTD1295_ISO_RSTN_UR0 8 1088c2ecf20Sopenharmony_ci#define RTD1295_ISO_RSTN_GMAC 9 1098c2ecf20Sopenharmony_ci#define RTD1295_ISO_RSTN_GPHY 10 1108c2ecf20Sopenharmony_ci#define RTD1295_ISO_RSTN_I2C_0 11 1118c2ecf20Sopenharmony_ci#define RTD1295_ISO_RSTN_I2C_1 12 1128c2ecf20Sopenharmony_ci#define RTD1295_ISO_RSTN_CBUS 13 1138c2ecf20Sopenharmony_ci 1148c2ecf20Sopenharmony_ci#endif 115