[PATCH v3 5/8] dt-bindings: reset: Add reset controller constants for mt8167
Krzysztof Kozlowski
krzk at kernel.org
Tue Aug 11 01:55:54 PDT 2026
On Sun, Aug 09, 2026 at 06:03:29PM +0200, Luca Leonardo Scorcia wrote:
> Add the various bits that identify watchdog and mmsys resets. IDs for
> mmsys resets restart from zero as they are used in a different device.
>
> Signed-off-by: Luca Leonardo Scorcia <l.scorcia at gmail.com>
> ---
> .../reset/mediatek,mt8167-resets.h | 53 +++++++++++++++++++
> 1 file changed, 53 insertions(+)
> create mode 100644 include/dt-bindings/reset/mediatek,mt8167-resets.h
>
> diff --git a/include/dt-bindings/reset/mediatek,mt8167-resets.h b/include/dt-bindings/reset/mediatek,mt8167-resets.h
> new file mode 100644
> index 000000000000..af8a3e499f8b
> --- /dev/null
> +++ b/include/dt-bindings/reset/mediatek,mt8167-resets.h
> @@ -0,0 +1,53 @@
> +/* SPDX-License-Identifier: (GPL-2.0-only OR BSD-3-Clause) */
> +#ifndef _DT_BINDINGS_RESET_CONTROLLER_MT8167
> +#define _DT_BINDINGS_RESET_CONTROLLER_MT8167
> +
> +/* TOPRGU resets, these are actual bits in the register */
Not a binding, drop these.
> +#define MT8167_TOPRGU_DDRPHY_FLASH_RST 0
> +#define MT8167_TOPRGU_AUD_PAD_RST 1
> +#define MT8167_TOPRGU_MM_RST 2
> +#define MT8167_TOPRGU_MFG_RST 3
> +#define MT8167_TOPRGU_MDSYS_RST 4
> +#define MT8167_TOPRGU_CONN_RST 5
> +#define MT8167_TOPRGU_PAD2CAM_DIG_MIPI_RX_RST 6
> +#define MT8167_TOPRGU_DIG_MIPI_TX_RST 7
> +#define MT8167_TOPRGU_SPI_PAD_MACRO_RST 8
> +/* The data sheet describes bit 9 as "reserved, unused" */
ID cannot be unused. If it is unused, then just use next one here, so MT8167_TOPRGU_APMIXED_RST=9.
Best regards,
Krzysztof
More information about the linux-arm-kernel
mailing list