From: Rex-BC Chen <rex-bc.chen@mediatek.com>
To: <mturquette@baylibre.com>, <sboyd@kernel.org>,
<matthias.bgg@gmail.com>, <robh+dt@kernel.org>,
<krzysztof.kozlowski+dt@linaro.org>
Cc: <p.zabel@pengutronix.de>,
<angelogioacchino.delregno@collabora.com>,
<chun-jie.chen@mediatek.com>, <wenst@chromium.org>,
<runyang.chen@mediatek.com>, <linux-kernel@vger.kernel.org>,
<devicetree@vger.kernel.org>, <linux-clk@vger.kernel.org>,
<linux-arm-kernel@lists.infradead.org>,
<linux-mediatek@lists.infradead.org>,
<Project_Global_Chrome_Upstream_Group@mediatek.com>,
Rex-BC Chen <rex-bc.chen@mediatek.com>
Subject: [PATCH V5 13/16] dt-bindings: reset: mediatek: Add infra_ao reset bit for MT8192
Date: Thu, 28 Apr 2022 19:56:16 +0800 [thread overview]
Message-ID: <20220428115620.13512-14-rex-bc.chen@mediatek.com> (raw)
In-Reply-To: <20220428115620.13512-1-rex-bc.chen@mediatek.com>
To support reset of infra_ao, add the bit definitions for MT8192.
There are 5 banks for infra reset and 32 bits for each bank.
Signed-off-by: Rex-BC Chen <rex-bc.chen@mediatek.com>
---
include/dt-bindings/reset/mt8192-resets.h | 163 ++++++++++++++++++++++
1 file changed, 163 insertions(+)
diff --git a/include/dt-bindings/reset/mt8192-resets.h b/include/dt-bindings/reset/mt8192-resets.h
index be9a7ca245b9..5863d138568a 100644
--- a/include/dt-bindings/reset/mt8192-resets.h
+++ b/include/dt-bindings/reset/mt8192-resets.h
@@ -7,6 +7,7 @@
#ifndef _DT_BINDINGS_RESET_CONTROLLER_MT8192
#define _DT_BINDINGS_RESET_CONTROLLER_MT8192
+/* TOPRGU resets */
#define MT8192_TOPRGU_MM_SW_RST 1
#define MT8192_TOPRGU_MFG_SW_RST 2
#define MT8192_TOPRGU_VENC_SW_RST 3
@@ -27,4 +28,166 @@
#define MT8192_TOPRGU_SW_RST_NUM 23
+/* INFRA RST0 */
+#define MT8192_INFRA_RST0_THERM_CTRL_SWRST 0
+#define MT8192_INFRA_RST0_USB_TOP_SWRST 1
+#define MT8192_INFRA_RST0_AP_MD_CCIF_4_SWRST 2
+#define MT8192_INFRA_RST0_MM_IOMMU_SWRST 3
+#define MT8192_INFRA_RST0_MSDC3_SWRST 4
+#define MT8192_INFRA_RST0_MSDC2_SWRST 5
+#define MT8192_INFRA_RST0_MSDC1_SWRST 6
+#define MT8192_INFRA_RST0_MSDC0_SWRST 7
+#define MT8192_INFRA_RST0_AP_DMA_SWRST 8
+#define MT8192_INFRA_RST0_MIPI_D_SWRST 9
+#define MT8192_INFRA_RST0_MIPI_C_SWRST 10
+#define MT8192_INFRA_RST0_BTIF_SWRST 11
+#define MT8192_INFRA_RST0_SSUSB_TOP_SWRST 12
+#define MT8192_INFRA_RST0_DISP_PWM_SWRST 13
+#define MT8192_INFRA_RST0_AUXADC_SWRST 14
+#define MT8192_INFRA_RST0_RSV0 15
+#define MT8192_INFRA_RST0_RSV1 16
+#define MT8192_INFRA_RST0_RSV2 17
+#define MT8192_INFRA_RST0_RSV3 18
+#define MT8192_INFRA_RST0_RSV4 19
+#define MT8192_INFRA_RST0_RSV5 20
+#define MT8192_INFRA_RST0_RSV6 21
+#define MT8192_INFRA_RST0_RSV7 22
+#define MT8192_INFRA_RST0_RSV8 23
+#define MT8192_INFRA_RST0_RSV9 24
+#define MT8192_INFRA_RST0_RSV10 25
+#define MT8192_INFRA_RST0_RSV11 26
+#define MT8192_INFRA_RST0_RSV12 27
+#define MT8192_INFRA_RST0_RSV13 28
+#define MT8192_INFRA_RST0_RSV14 29
+#define MT8192_INFRA_RST0_RSV15 30
+#define MT8192_INFRA_RST0_RSV16 31
+
+/* INFRA RST1 */
+#define MT8192_INFRA_RST1_IRTX_SWRST 32
+#define MT8192_INFRA_RST1_SPI0_SWRST 33
+#define MT8192_INFRA_RST1_I2C0_SWRST 34
+#define MT8192_INFRA_RST1_I2C1_SWRST 35
+#define MT8192_INFRA_RST1_I2C2_SWRST 36
+#define MT8192_INFRA_RST1_I2C3_SWRST 37
+#define MT8192_INFRA_RST1_UART0_SWRST 38
+#define MT8192_INFRA_RST1_UART1_SWRST 39
+#define MT8192_INFRA_RST1_UART2_SWRST 40
+#define MT8192_INFRA_RST1_PWM_SWRST 41
+#define MT8192_INFRA_RST1_SPI1_SWRST 42
+#define MT8192_INFRA_RST1_I2C4_SWRST 43
+#define MT8192_INFRA_RST1_DVFSP_SWRST 44
+#define MT8192_INFRA_RST1_SPI2_SWRST 45
+#define MT8192_INFRA_RST1_SPI3_SWRST 46
+#define MT8192_INFRA_RST1_UFSHCI_SWRST 47
+#define MT8192_INFRA_RST1_RSV0 48
+#define MT8192_INFRA_RST1_RSV1 49
+#define MT8192_INFRA_RST1_RSV2 50
+#define MT8192_INFRA_RST1_RSV3 51
+#define MT8192_INFRA_RST1_RSV4 52
+#define MT8192_INFRA_RST1_RSV5 53
+#define MT8192_INFRA_RST1_RSV6 54
+#define MT8192_INFRA_RST1_RSV7 55
+#define MT8192_INFRA_RST1_RSV8 56
+#define MT8192_INFRA_RST1_RSV9 57
+#define MT8192_INFRA_RST1_RSV10 58
+#define MT8192_INFRA_RST1_RSV11 59
+#define MT8192_INFRA_RST1_RSV12 60
+#define MT8192_INFRA_RST1_RSV13 61
+#define MT8192_INFRA_RST1_RSV14 62
+#define MT8192_INFRA_RST1_RSV15 63
+
+/* INFRA RST2 */
+#define MT8192_INFRA_RST2_PMIC_WRAP_SWRST 64
+#define MT8192_INFRA_RST2_SPM_SWRST 65
+#define MT8192_INFRA_RST2_USBSIF_SWRST 66
+#define MT8192_INFRA_RST2_RSV0 67
+#define MT8192_INFRA_RST2_KP_SWRST 68
+#define MT8192_INFRA_RST2_APXGPT_SWRST 69
+#define MT8192_INFRA_RST2_CLDMA_AO_SWRST 70
+#define MT8192_INFRA_RST2_UNIPRO_UFS_AO_SWRST 71
+#define MT8192_INFRA_RST2_DX_CC_AO_SWRST 72
+#define MT8192_INFRA_RST2_UFSPHY_AO_SWRST 73
+#define MT8192_INFRA_RST2_RSV1 74
+#define MT8192_INFRA_RST2_INFRACFG_AO_MEM_SWRST 75
+#define MT8192_INFRA_RST2_PWM_AO_SWRST 76
+#define MT8192_INFRA_RST2_TIA_AO_SWRST 77
+#define MT8192_INFRA_RST2_PMIFSPMI_SWRST 78
+#define MT8192_INFRA_RST2_PEXTP_PHY_SWRST 79
+#define MT8192_INFRA_RST2_RSV2 80
+#define MT8192_INFRA_RST2_RSV3 81
+#define MT8192_INFRA_RST2_RSV4 82
+#define MT8192_INFRA_RST2_RSV5 83
+#define MT8192_INFRA_RST2_RSV6 84
+#define MT8192_INFRA_RST2_RSV7 85
+#define MT8192_INFRA_RST2_RSV8 86
+#define MT8192_INFRA_RST2_RSV9 87
+#define MT8192_INFRA_RST2_RSV10 88
+#define MT8192_INFRA_RST2_RSV11 89
+#define MT8192_INFRA_RST2_RSV12 90
+#define MT8192_INFRA_RST2_RSV13 91
+#define MT8192_INFRA_RST2_RSV14 92
+#define MT8192_INFRA_RST2_RSV15 93
+#define MT8192_INFRA_RST2_RSV16 94
+#define MT8192_INFRA_RST2_RSV17 95
+
+/* INFRA RST3 */
+#define MT8192_INFRA_RST3_DX_CC_SEC_SWRST 96
+#define MT8192_INFRA_RST3_GCE_SWRST 97
+#define MT8192_INFRA_RST3_CLDMA_SWRST 98
+#define MT8192_INFRA_RST3_TRNG_SWRST 99
+#define MT8192_INFRA_RST3_MFG_CBIP_P2P_TX_SWRST 100
+#define MT8192_INFRA_RST3_THERM_CTRL_PTP_SWRST 101
+#define MT8192_INFRA_RST3_RSV0 102
+#define MT8192_INFRA_RST3_AP_MD_CCIF_1_SWRST 103
+#define MT8192_INFRA_RST3_AP_MD_CCIF_SWRST 104
+#define MT8192_INFRA_RST3_I2C1_IMM_SWRST 105
+#define MT8192_INFRA_RST3_I2C1_ARB_SWRST 106
+#define MT8192_INFRA_RST3_I2C2_IMM_SWRST 107
+#define MT8192_INFRA_RST3_I2C2_ARB_SWRST 108
+#define MT8192_INFRA_RST3_I2C5_SWRST 109
+#define MT8192_INFRA_RST3_I2C5_IMM_SWRST 110
+#define MT8192_INFRA_RST3_I2C5_ARB_SWRST 111
+#define MT8192_INFRA_RST3_SPI4_SWRST 112
+#define MT8192_INFRA_RST3_SPI5_SWRST 113
+#define MT8192_INFRA_RST3_INFRA2MFGAXI_CBIP_GLAS_IN_SWRST_B 114
+#define MT8192_INFRA_RST3_MFGAXI2INFRA_M0_CBIP_GLAS_OUT_SWRST_B 115
+#define MT8192_INFRA_RST3_MFGAXI2INFRA_M1_CBIP_GLAS_OUT_SWRST_B 116
+#define MT8192_INFRA_RST3_UFS_AES_SWRST 117
+#define MT8192_INFRA_RST3_CCU_I2C_IRQ_SWRST 118
+#define MT8192_INFRA_RST3_CCU_I2C_DMA_SWRST 119
+#define MT8192_INFRA_RST3_I2C6_SWRST 120
+#define MT8192_INFRA_RST3_CCU_GALS_SWRST 121
+#define MT8192_INFRA_RST3_IPU_GALS_SWRST 122
+#define MT8192_INFRA_RST3_CONN2AP_GALS_SWRST 123
+#define MT8192_INFRA_RST3_AP_MD_CCIF2_SWRST 124
+#define MT8192_INFRA_RST3_AP_MD_CCIF3_SWRST 125
+#define MT8192_INFRA_RST3_I2C7_SWRST 126
+#define MT8192_INFRA_RST3_I2C8_SWRST 127
+
+/* INFRA RST4 */
+#define MT8192_INFRA_RST4_FLASHIF_TOP_SWRST 128
+#define MT8192_INFRA_RST4_PCIE_TOP_SWRST 129
+#define MT8192_INFRA_RST4_AXI2ACP_SWRST 130
+#define MT8192_INFRA_RST4_VPU_IOMMU_SWRST 131
+#define MT8192_INFRA_RST4_SPI6_SWRST 132
+#define MT8192_INFRA_RST4_SPI7_SWRST 133
+#define MT8192_INFRA_RST4_APU0_GALS_SWRST 134
+#define MT8192_INFRA_RST4_APU1_GALS_SWRST 135
+#define MT8192_INFRA_RST4_XPU2APU_SWRST 136
+#define MT8192_INFRA_RST4_MCUPM_SWRST 137
+#define MT8192_INFRA_RST4_TIA_SWRST 138
+#define MT8192_INFRA_RST4_THERM_CTRL_PTP_MCU_SWRST 139
+#define MT8192_INFRA_RST4_THERM_CTRL_MCU_SWRST 140
+#define MT8192_INFRA_RST4_MD2AP_GALS_OUT_SWRST 141
+#define MT8192_INFRA_RST4_AP2MP_GALS_IN_SWRST 142
+#define MT8192_INFRA_RST4_MDHW2EMI_GALS_OUT_SWRST 143
+#define MT8192_INFRA_RST4_MDMCU2EMI_GALS_OUT_SWRST 144
+#define MT8192_INFRA_RST4_CCIF_MD2CONN_BGF_SWRST 145
+#define MT8192_INFRA_RST4_INFRA2APU_APB_TX_SWRST 146
+#define MT8192_INFRA_RST4_APU2INFRA_APB_RX_SWRST 147
+#define MT8192_INFRA_RST4_DFD_ISO1_INFRA2DRAMC_APB_TX_SWRST 148
+#define MT8192_INFRA_RST4_INFRA2SUBINFRA_APB_TX_SWRST 149
+#define MT8192_INFRA_RST4_MDP_GCE_SWRST 150
+#define MT8192_INFRA_RST4_MSDC2INFRA_CBIP_GALS_OUT_SWRST 151
+
#endif /* _DT_BINDINGS_RESET_CONTROLLER_MT8192 */
--
2.18.0
next prev parent reply other threads:[~2022-04-28 11:57 UTC|newest]
Thread overview: 27+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-04-28 11:56 [PATCH V5 00/16] Cleanup MediaTek clk reset drivers and support MT8192/MT8195 Rex-BC Chen
2022-04-28 11:56 ` [PATCH V5 01/16] clk: mediatek: reset: Add reset.h Rex-BC Chen
2022-04-28 11:56 ` [PATCH V5 02/16] clk: mediatek: reset: Fix written reset bit offset Rex-BC Chen
2022-04-28 11:56 ` [PATCH V5 03/16] clk: mediatek: reset: Refine and reorder functions in reset.c Rex-BC Chen
2022-04-28 11:56 ` [PATCH V5 04/16] clk: mediatek: reset: Extract common drivers to update function Rex-BC Chen
2022-04-28 11:56 ` [PATCH V5 05/16] clk: mediatek: reset: Merge and revise reset register function Rex-BC Chen
2022-04-28 11:56 ` [PATCH V5 06/16] clk: mediatek: reset: Revise structure to control reset register Rex-BC Chen
2022-04-28 11:56 ` [PATCH V5 07/16] clk: mediatek: reset: Support nonsequence base offsets of reset registers Rex-BC Chen
2022-04-28 13:38 ` AngeloGioacchino Del Regno
2022-04-28 11:56 ` [PATCH V5 08/16] clk: mediatek: reset: Change return type for clock reset register function Rex-BC Chen
2022-04-28 11:56 ` [PATCH V5 09/16] clk: mediatek: reset: Add new register reset function with device Rex-BC Chen
2022-04-28 11:56 ` [PATCH V5 10/16] clk: mediatek: reset: Add reset support for simple probe Rex-BC Chen
2022-04-28 11:56 ` [PATCH V5 11/16] dt-bindings: arm: mediatek: Add #reset-cells property for MT8192/MT8195 Rex-BC Chen
2022-04-28 11:56 ` [PATCH V5 12/16] dt-bindings: reset: mediatek: Add infra_ao reset bit for MT8195 Rex-BC Chen
2022-04-28 13:42 ` AngeloGioacchino Del Regno
2022-04-29 21:13 ` Krzysztof Kozlowski
2022-05-02 8:54 ` AngeloGioacchino Del Regno
2022-05-03 2:54 ` Rex-BC Chen
2022-04-28 11:56 ` Rex-BC Chen [this message]
2022-04-28 13:42 ` [PATCH V5 13/16] dt-bindings: reset: mediatek: Add infra_ao reset bit for MT8192 AngeloGioacchino Del Regno
2022-04-29 21:14 ` Krzysztof Kozlowski
2022-04-28 11:56 ` [PATCH V5 14/16] clk: mediatek: reset: Add infra_ao reset support for MT8192/MT8195 Rex-BC Chen
2022-04-28 11:56 ` [PATCH V5 15/16] arm64: dts: mediatek: Add infra #reset-cells property for MT8192 Rex-BC Chen
2022-04-28 13:43 ` AngeloGioacchino Del Regno
2022-04-28 11:56 ` [PATCH V5 16/16] arm64: dts: mediatek: Add infra #reset-cells property for MT8195 Rex-BC Chen
2022-04-28 13:44 ` AngeloGioacchino Del Regno
2022-05-06 10:25 ` [PATCH V5 00/16] Cleanup MediaTek clk reset drivers and support MT8192/MT8195 Rex-BC Chen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20220428115620.13512-14-rex-bc.chen@mediatek.com \
--to=rex-bc.chen@mediatek.com \
--cc=Project_Global_Chrome_Upstream_Group@mediatek.com \
--cc=angelogioacchino.delregno@collabora.com \
--cc=chun-jie.chen@mediatek.com \
--cc=devicetree@vger.kernel.org \
--cc=krzysztof.kozlowski+dt@linaro.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-clk@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mediatek@lists.infradead.org \
--cc=matthias.bgg@gmail.com \
--cc=mturquette@baylibre.com \
--cc=p.zabel@pengutronix.de \
--cc=robh+dt@kernel.org \
--cc=runyang.chen@mediatek.com \
--cc=sboyd@kernel.org \
--cc=wenst@chromium.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox