public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Weijie Gao <weijie.gao@mediatek.com>
To: u-boot@lists.denx.de
Subject: [PATCH v3 12/23] reset: mtmips: add reset controller support for MediaTek MT7620 SoC
Date: Mon, 9 Nov 2020 16:57:08 +0800	[thread overview]
Message-ID: <1604912228.18736.46.camel@mcddlt001> (raw)
In-Reply-To: <8291aca1-8c04-34da-7926-94d0094499c8@denx.de>

On Mon, 2020-11-09 at 09:51 +0100, Stefan Roese wrote:
> On 09.11.20 09:25, Weijie Gao wrote:
> > This patch adds reset controller bits definition header file for MediaTek
> > MT7620 SoC
> > 
> > Signed-off-by: Weijie Gao <weijie.gao@mediatek.com>
> 
> Just curious: Where are you including this file? I couldn't find it
> in a quick search through the following patches. Perhaps its also
> a good idea to add some MTMIPS_ or MT7620_ before the defines, to
> not "pollute" the namespace with too generic macros.

This header files is only included in arch/mips/dts/mt7620.dtsi, and
used in the resets properties, e.g. resets = <&rstctrl PIO_RST>;

> 
> Other than that:
> 
> Reviewed-by: Stefan Roese <sr@denx.de>
> 
> Thanks,
> Stefan
> 
> > ---
> > v3 changes: none
> > v2 changes: none
> > ---
> >   include/dt-bindings/reset/mt7620-reset.h | 35 ++++++++++++++++++++++++
> >   1 file changed, 35 insertions(+)
> >   create mode 100644 include/dt-bindings/reset/mt7620-reset.h
> > 
> > diff --git a/include/dt-bindings/reset/mt7620-reset.h b/include/dt-bindings/reset/mt7620-reset.h
> > new file mode 100644
> > index 0000000000..3096b29cdb
> > --- /dev/null
> > +++ b/include/dt-bindings/reset/mt7620-reset.h
> > @@ -0,0 +1,35 @@
> > +/* SPDX-License-Identifier: GPL-2.0 */
> > +/*
> > + * Copyright (C) 2020 MediaTek Inc.
> > + *
> > + * Author:  Weijie Gao <weijie.gao@mediatek.com>
> > + */
> > +
> > +#ifndef _DT_BINDINGS_MT7620_RESET_H_
> > +#define _DT_BINDINGS_MT7620_RESET_H_
> > +
> > +#define PPE_RST			31
> > +#define SDHC_RST		30
> > +#define MIPS_CNT_RST		28
> > +#define PCIE_RST		26
> > +#define UHST_RST		25
> > +#define EPHY_RST		24
> > +#define ESW_RST			23
> > +#define UDEV_RST		22
> > +#define FE_RST			21
> > +#define WLAN_RST		20
> > +#define UARTL_RST		19
> > +#define SPI_RST			18
> > +#define I2S_RST			17
> > +#define I2C_RST			16
> > +#define NAND_RST		15
> > +#define DMA_RST			14
> > +#define PIO_RST			13
> > +#define UARTF_RST		12
> > +#define PCM_RST			11
> > +#define MC_RST			10
> > +#define INTC_RST		9
> > +#define TIMER_RST		8
> > +#define SYS_RST			0
> > +
> > +#endif /* _DT_BINDINGS_MT7620_RESET_H_ */
> > 
> 
> 
> Viele Gr??e,
> Stefan
> 

  reply	other threads:[~2020-11-09  8:57 UTC|newest]

Thread overview: 45+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-11-09  8:24 [PATCH v3 00/23] Add support for MediaTek MT7620 SoC Weijie Gao
2020-11-09  8:24 ` [PATCH v3 01/23] mips: dts: switch to board defines for dtb for mtmips Weijie Gao
2020-11-09  8:24 ` [PATCH v3 02/23] mips: mtmips: move mt7628 related Kconfig into mt7628 subdirectory Weijie Gao
2020-11-09  8:24 ` [PATCH v3 03/23] mips: mtmips: select SYSRESET for mt7628 only Weijie Gao
2020-11-09  8:33   ` Stefan Roese
2020-11-09  8:24 ` [PATCH v3 04/23] mips: mtmips: fix dram size detection in dram_init Weijie Gao
2020-11-09  8:24 ` [PATCH v3 05/23] mips: enable _machine_restart for spl Weijie Gao
2020-11-09  8:34   ` Stefan Roese
2020-11-09  8:24 ` [PATCH v3 06/23] mips: mtmips: add support to initialize SDRAM Weijie Gao
2020-11-09  8:35   ` Stefan Roese
2020-11-09  8:24 ` [PATCH v3 07/23] mips: mtmips: add support for MediaTek MT7620 SoC Weijie Gao
2020-11-09  8:40   ` Stefan Roese
2020-11-09  8:24 ` [PATCH v3 08/23] mips: mtmips: add two reference boards for mt7620 Weijie Gao
2020-11-09  8:40   ` Stefan Roese
2020-11-09  8:24 ` [PATCH v3 09/23] configs: mtmips: refresh for mt7628 based boards Weijie Gao
2020-11-09  8:25 ` [PATCH v3 10/23] serial: add uart driver for MediaTek MT7620 SoC Weijie Gao
2020-11-09  8:41   ` Stefan Roese
2020-11-09  8:25 ` [PATCH v3 11/23] clk: add clock " Weijie Gao
2020-11-09  8:44   ` Stefan Roese
2020-11-09  8:25 ` [PATCH v3 12/23] reset: mtmips: add reset controller support " Weijie Gao
2020-11-09  8:51   ` Stefan Roese
2020-11-09  8:57     ` Weijie Gao [this message]
2020-11-09  9:03       ` Stefan Roese
2020-11-09  8:26 ` [PATCH v3 13/23] pinctrl: mtmips: add " Weijie Gao
2020-11-09  8:51   ` Stefan Roese
2020-11-09  8:26 ` [PATCH v3 14/23] watchdog: add watchdog driver " Weijie Gao
2020-11-09  8:52   ` Stefan Roese
2020-11-09  8:27 ` [PATCH v3 15/23] gpio: add GPIO controller " Weijie Gao
2020-11-09  8:53   ` Stefan Roese
2020-11-09  8:27 ` [PATCH v3 16/23] spi: add spi controller support " Weijie Gao
2020-11-09  8:54   ` Stefan Roese
2020-11-09  8:27 ` [PATCH v3 17/23] phy: add USB PHY driver " Weijie Gao
2020-11-09  8:55   ` Stefan Roese
2020-11-09  8:27 ` [PATCH v3 18/23] net: add ethernet " Weijie Gao
2020-11-09  8:57   ` Stefan Roese
2020-11-09  8:28 ` [PATCH v3 19/23] mmc: mtk-sd: fix sclk cycles shift value Weijie Gao
2020-11-09  8:58   ` Stefan Roese
2020-11-09  8:28 ` [PATCH v3 20/23] mmc: mtk-sd: add pad control settings for MediaTek MT7620/MT76x8 SoCs Weijie Gao
2020-11-09  9:00   ` Stefan Roese
2020-11-09  9:16     ` Weijie Gao
2020-11-09  8:28 ` [PATCH v3 21/23] mmc: mtk-sd: assign plat->cfg.f_max with a correct value Weijie Gao
2020-11-09  9:00   ` Stefan Roese
2020-11-09  8:28 ` [PATCH v3 22/23] reset: reset-mtmips: add DM_FLAG_PRE_RELOC flag Weijie Gao
2020-11-09  9:01   ` Stefan Roese
2020-11-09  8:28 ` [PATCH v3 23/23] MAINTAINERS: add maintainer for MediaTek MIPS platform Weijie Gao

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=1604912228.18736.46.camel@mcddlt001 \
    --to=weijie.gao@mediatek.com \
    --cc=u-boot@lists.denx.de \
    /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