From: Guenter Roeck <linux@roeck-us.net>
To: Sam Shih <sam.shih@mediatek.com>
Cc: Wim Van Sebroeck <wim@linux-watchdog.org>,
Matthias Brugger <matthias.bgg@gmail.com>,
Philipp Zabel <p.zabel@pengutronix.de>,
Rob Herring <robh+dt@kernel.org>,
Ryder Lee <ryder.lee@kernel.org>,
linux-kernel@vger.kernel.org, linux-watchdog@vger.kernel.org,
linux-arm-kernel@lists.infradead.org,
linux-mediatek@lists.infradead.org, devicetree@vger.kernel.org,
John Crispin <john@phrozen.org>
Subject: Re: [PATCH 1/2] dt-bindings: reset: mt7986: Add reset-controller header file
Date: Wed, 9 Mar 2022 15:25:23 -0800 [thread overview]
Message-ID: <20220309232523.GA3804043@roeck-us.net> (raw)
In-Reply-To: <20220105100456.7126-2-sam.shih@mediatek.com>
On Wed, Jan 05, 2022 at 06:04:55PM +0800, Sam Shih wrote:
> Add infracfg, toprgu, and ethsys reset-controller header file
> for MT7986 platform.
>
> Signed-off-by: Sam Shih <sam.shih@mediatek.com>
> Acked-by: Rob Herring <robh@kernel.org>
Acked-by: Guenter Roeck <linux@roeck-us.net>
> ---
> include/dt-bindings/reset/mt7986-resets.h | 55 +++++++++++++++++++++++
> 1 file changed, 55 insertions(+)
> create mode 100644 include/dt-bindings/reset/mt7986-resets.h
>
> diff --git a/include/dt-bindings/reset/mt7986-resets.h b/include/dt-bindings/reset/mt7986-resets.h
> new file mode 100644
> index 000000000000..af3d16c81192
> --- /dev/null
> +++ b/include/dt-bindings/reset/mt7986-resets.h
> @@ -0,0 +1,55 @@
> +/* SPDX-License-Identifier: (GPL-2.0+ OR BSD-3-Clause) */
> +/*
> + * Copyright (c) 2022 MediaTek Inc.
> + * Author: Sam Shih <sam.shih@mediatek.com>
> + */
> +
> +#ifndef _DT_BINDINGS_RESET_CONTROLLER_MT7986
> +#define _DT_BINDINGS_RESET_CONTROLLER_MT7986
> +
> +/* INFRACFG resets */
> +#define MT7986_INFRACFG_PEXTP_MAC_SW_RST 6
> +#define MT7986_INFRACFG_SSUSB_SW_RST 7
> +#define MT7986_INFRACFG_EIP97_SW_RST 8
> +#define MT7986_INFRACFG_AUDIO_SW_RST 13
> +#define MT7986_INFRACFG_CQ_DMA_SW_RST 14
> +
> +#define MT7986_INFRACFG_TRNG_SW_RST 17
> +#define MT7986_INFRACFG_AP_DMA_SW_RST 32
> +#define MT7986_INFRACFG_I2C_SW_RST 33
> +#define MT7986_INFRACFG_NFI_SW_RST 34
> +#define MT7986_INFRACFG_SPI0_SW_RST 35
> +#define MT7986_INFRACFG_SPI1_SW_RST 36
> +#define MT7986_INFRACFG_UART0_SW_RST 37
> +#define MT7986_INFRACFG_UART1_SW_RST 38
> +#define MT7986_INFRACFG_UART2_SW_RST 39
> +#define MT7986_INFRACFG_AUXADC_SW_RST 43
> +
> +#define MT7986_INFRACFG_APXGPT_SW_RST 66
> +#define MT7986_INFRACFG_PWM_SW_RST 68
> +
> +#define MT7986_INFRACFG_SW_RST_NUM 69
> +
> +/* TOPRGU resets */
> +#define MT7986_TOPRGU_APMIXEDSYS_SW_RST 0
> +#define MT7986_TOPRGU_SGMII0_SW_RST 1
> +#define MT7986_TOPRGU_SGMII1_SW_RST 2
> +#define MT7986_TOPRGU_INFRA_SW_RST 3
> +#define MT7986_TOPRGU_U2PHY_SW_RST 5
> +#define MT7986_TOPRGU_PCIE_SW_RST 6
> +#define MT7986_TOPRGU_SSUSB_SW_RST 7
> +#define MT7986_TOPRGU_ETHDMA_SW_RST 20
> +#define MT7986_TOPRGU_CONSYS_SW_RST 23
> +
> +#define MT7986_TOPRGU_SW_RST_NUM 24
> +
> +/* ETHSYS Subsystem resets */
> +#define MT7986_ETHSYS_FE_SW_RST 6
> +#define MT7986_ETHSYS_PMTR_SW_RST 8
> +#define MT7986_ETHSYS_GMAC_SW_RST 23
> +#define MT7986_ETHSYS_PPE0_SW_RST 30
> +#define MT7986_ETHSYS_PPE1_SW_RST 31
> +
> +#define MT7986_ETHSYS_SW_RST_NUM 32
> +
> +#endif /* _DT_BINDINGS_RESET_CONTROLLER_MT7986 */
next prev parent reply other threads:[~2022-03-09 23:50 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-01-05 10:04 [PATCH 0/2] Add toprgu reset-controller support for MT7986 Sam Shih
2022-01-05 10:04 ` [PATCH 1/2] dt-bindings: reset: mt7986: Add reset-controller header file Sam Shih
2022-01-12 1:28 ` Rob Herring
2022-03-09 23:25 ` Guenter Roeck [this message]
2022-01-05 10:04 ` [PATCH 2/2] watchdog: mtk_wdt: mt7986: Add toprgu reset controller support Sam Shih
2022-01-14 12:56 ` Matthias Brugger
2022-01-14 14:35 ` Guenter Roeck
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=20220309232523.GA3804043@roeck-us.net \
--to=linux@roeck-us.net \
--cc=devicetree@vger.kernel.org \
--cc=john@phrozen.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mediatek@lists.infradead.org \
--cc=linux-watchdog@vger.kernel.org \
--cc=matthias.bgg@gmail.com \
--cc=p.zabel@pengutronix.de \
--cc=robh+dt@kernel.org \
--cc=ryder.lee@kernel.org \
--cc=sam.shih@mediatek.com \
--cc=wim@linux-watchdog.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;
as well as URLs for NNTP newsgroup(s).