Re: [PATCH V5 12/16] dt-bindings: reset: mediatek: Add infra_ao reset bit for MT8195

From: Krzysztof Kozlowski
Date: Fri Apr 29 2022 - 17:13:38 EST


On 28/04/2022 13:56, Rex-BC Chen wrote:
> To support reset of infra_ao, add the bit definitions for MT8195.
> The infra_ao reset includes 5 banks and 32 bits for each bank.
>
> Signed-off-by: Rex-BC Chen <rex-bc.chen@xxxxxxxxxxxx>
> ---
> include/dt-bindings/reset/mt8195-resets.h | 170 ++++++++++++++++++++++
> 1 file changed, 170 insertions(+)
>
> diff --git a/include/dt-bindings/reset/mt8195-resets.h b/include/dt-bindings/reset/mt8195-resets.h
> index a26bccc8b957..463114014483 100644
> --- a/include/dt-bindings/reset/mt8195-resets.h
> +++ b/include/dt-bindings/reset/mt8195-resets.h
> @@ -7,6 +7,7 @@
> #ifndef _DT_BINDINGS_RESET_CONTROLLER_MT8195
> #define _DT_BINDINGS_RESET_CONTROLLER_MT8195
>
> +/* TOPRGU resets */
> #define MT8195_TOPRGU_CONN_MCU_SW_RST 0
> #define MT8195_TOPRGU_INFRA_GRST_SW_RST 1
> #define MT8195_TOPRGU_APU_SW_RST 2
> @@ -26,4 +27,173 @@
>
> #define MT8195_TOPRGU_SW_RST_NUM 16
>
> +/* INFRA RST0 */
> +#define MT8195_INFRA_RST0_THERM_CTRL_SWRST 0
> +#define MT8195_INFRA_RST0_RSV0 1
> +#define MT8195_INFRA_RST0_DISP_PWM1_SWRST 2
> +#define MT8195_INFRA_RST0_RSV1 3
> +#define MT8195_INFRA_RST0_MSDC3_SWRST 4
> +#define MT8195_INFRA_RST0_MSDC2_SWRST 5
> +#define MT8195_INFRA_RST0_MSDC1_SWRST 6
> +#define MT8195_INFRA_RST0_MSDC0_SWRST 7
> +#define MT8195_INFRA_RST0_RSV2 8
> +#define MT8195_INFRA_RST0_AP_DMA_SWRST 9
> +#define MT8195_INFRA_RST0_MIPI_D_SWRST 10
> +#define MT8195_INFRA_RST0_RSV3 11
> +#define MT8195_INFRA_RST0_RSV4 12
> +#define MT8195_INFRA_RST0_SSUSB_TOP_SWRST 13
> +#define MT8195_INFRA_RST0_DISP_PWM_SWRST 14
> +#define MT8195_INFRA_RST0_AUXADC_SWRST 15
> +#define MT8195_INFRA_RST0_RSV5 16
> +#define MT8195_INFRA_RST0_RSV6 17
> +#define MT8195_INFRA_RST0_RSV7 18
> +#define MT8195_INFRA_RST0_RSV8 19
> +#define MT8195_INFRA_RST0_RSV9 20
> +#define MT8195_INFRA_RST0_RSV10 21
> +#define MT8195_INFRA_RST0_RSV11 22
> +#define MT8195_INFRA_RST0_RSV12 23
> +#define MT8195_INFRA_RST0_RSV13 24
> +#define MT8195_INFRA_RST0_RSV14 25
> +#define MT8195_INFRA_RST0_RSV15 26
> +#define MT8195_INFRA_RST0_RSV16 27
> +#define MT8195_INFRA_RST0_RSV17 28
> +#define MT8195_INFRA_RST0_RSV18 29
> +#define MT8195_INFRA_RST0_RSV19 30
> +#define MT8195_INFRA_RST0_RSV20 31

These are not proper IDs... don't work-around usage of bits with fake
reserved IDs...

Best regards,
Krzysztof