All of lore.kernel.org
 help / color / mirror / Atom feed
From: mark.rutland@arm.com (Mark Rutland)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH 2/8] soc: Add MediaTek pericfg controller support
Date: Tue, 20 Jan 2015 16:15:55 +0000	[thread overview]
Message-ID: <20150120161555.GH15924@leverpostej> (raw)
In-Reply-To: <1421747231-554-3-git-send-email-s.hauer@pengutronix.de>

On Tue, Jan 20, 2015 at 09:47:05AM +0000, Sascha Hauer wrote:
> This adds support for the MediaTek pericfg controller found
> on the MT8135/MT8173 SoCs. The pericfg controller contains
> miscellaneous registers for controlling peripheral resets and
> clocks.
> 
> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
> ---
>  .../devicetree/bindings/soc/mediatek/pericfg.txt      | 19 +++++++++++++++++++
>  drivers/soc/mediatek/Kconfig                          | 10 ++++++++++
>  drivers/soc/mediatek/Makefile                         |  1 +
>  drivers/soc/mediatek/mtk-pericfg.c                    |  1 -
>  4 files changed, 30 insertions(+), 1 deletion(-)
>  create mode 100644 Documentation/devicetree/bindings/soc/mediatek/pericfg.txt
> 
> diff --git a/Documentation/devicetree/bindings/soc/mediatek/pericfg.txt b/Documentation/devicetree/bindings/soc/mediatek/pericfg.txt
> new file mode 100644
> index 0000000..81d1aee
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/soc/mediatek/pericfg.txt
> @@ -0,0 +1,19 @@
> +MediaTek pericfg Controller
> +
> +The pericfg controller contains miscellaneous registers for controlling
> +clocks, resets and bus settings.
> +
> +Required properties:
> +- compatible: must be one of:
> +	mediatek,mt8135-pericfg
> +	mediatek,mt8173-pericfg
> +- reg: Address range for the pericfg controller
> +
> +Example:
> +
> +	pericfg: pericfg at 10003000 {
> +		#reset-cells = <1>;
> +		#clock-cells = <1>;
> +		compatible = "mediatek,mt8135-pericfg";
> +		reg = <0 0x10003000 0 0x1000>;
> +	};

This looks identical to the infracfg (same address too). Is that
deliberate?

Mark.

> diff --git a/drivers/soc/mediatek/Kconfig b/drivers/soc/mediatek/Kconfig
> index 3ad39fe..9bdb88f 100644
> --- a/drivers/soc/mediatek/Kconfig
> +++ b/drivers/soc/mediatek/Kconfig
> @@ -10,3 +10,13 @@ config MTK_INFRACFG
>  	  contains several miscellaneous registers for clock, reset and bus
>  	  settings. Say yes here if you want to run your kernel on one of these
>  	  SoCs.
> +
> +config MTK_PERICFG
> +	tristate "MediaTek pericfg controller support"
> +	depends on ARCH_MEDIATEK || COMPILE_TEST
> +	select REGMAP
> +	help
> +	  The MediaTek pericfg controller found on MT8135 and MT8173 SoCs
> +	  contains several miscellaneous registers for clock, reset and bus
> +	  settings. Say yes here if you want to run your kernel on one of these
> +	  SoCs.
> diff --git a/drivers/soc/mediatek/Makefile b/drivers/soc/mediatek/Makefile
> index dbeb627..e67be7c 100644
> --- a/drivers/soc/mediatek/Makefile
> +++ b/drivers/soc/mediatek/Makefile
> @@ -1 +1,2 @@
>  obj-$(CONFIG_MTK_INFRACFG) += mtk-infracfg.o
> +obj-$(CONFIG_MTK_PERICFG) += mtk-pericfg.o
> diff --git a/drivers/soc/mediatek/mtk-pericfg.c b/drivers/soc/mediatek/mtk-pericfg.c
> index b7ee902..aa9a7eb 100644
> --- a/drivers/soc/mediatek/mtk-pericfg.c
> +++ b/drivers/soc/mediatek/mtk-pericfg.c
> @@ -1,6 +1,5 @@
>  /*
>   * Copyright (c) 2014 MediaTek Inc.
> - * Author: Flora Fu <flora.fu@mediatek.com>
>   *
>   * This program is free software; you can redistribute it and/or modify
>   * it under the terms of the GNU General Public License version 2 as
> -- 
> 2.1.4
> 
> 
> _______________________________________________
> linux-arm-kernel mailing list
> linux-arm-kernel at lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
> 

WARNING: multiple messages have this Message-ID (diff)
From: Mark Rutland <mark.rutland@arm.com>
To: Sascha Hauer <s.hauer@pengutronix.de>
Cc: Olof Johansson <olof@lixom.net>, Arnd Bergmann <arnd@arndb.de>,
	Samuel Ortiz <sameo@linux.intel.com>,
	Mark Brown <broonie@kernel.org>,
	"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
	Rob Herring <robh+dt@kernel.org>,
	Matthias Brugger <matthias.bgg@gmail.com>,
	Eddie Huang <eddie.huang@mediatek.com>,
	Lee Jones <lee.jones@linaro.org>,
	"linux-arm-kernel@lists.infradead.org" 
	<linux-arm-kernel@lists.infradead.org>
Subject: Re: [PATCH 2/8] soc: Add MediaTek pericfg controller support
Date: Tue, 20 Jan 2015 16:15:55 +0000	[thread overview]
Message-ID: <20150120161555.GH15924@leverpostej> (raw)
In-Reply-To: <1421747231-554-3-git-send-email-s.hauer@pengutronix.de>

On Tue, Jan 20, 2015 at 09:47:05AM +0000, Sascha Hauer wrote:
> This adds support for the MediaTek pericfg controller found
> on the MT8135/MT8173 SoCs. The pericfg controller contains
> miscellaneous registers for controlling peripheral resets and
> clocks.
> 
> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
> ---
>  .../devicetree/bindings/soc/mediatek/pericfg.txt      | 19 +++++++++++++++++++
>  drivers/soc/mediatek/Kconfig                          | 10 ++++++++++
>  drivers/soc/mediatek/Makefile                         |  1 +
>  drivers/soc/mediatek/mtk-pericfg.c                    |  1 -
>  4 files changed, 30 insertions(+), 1 deletion(-)
>  create mode 100644 Documentation/devicetree/bindings/soc/mediatek/pericfg.txt
> 
> diff --git a/Documentation/devicetree/bindings/soc/mediatek/pericfg.txt b/Documentation/devicetree/bindings/soc/mediatek/pericfg.txt
> new file mode 100644
> index 0000000..81d1aee
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/soc/mediatek/pericfg.txt
> @@ -0,0 +1,19 @@
> +MediaTek pericfg Controller
> +
> +The pericfg controller contains miscellaneous registers for controlling
> +clocks, resets and bus settings.
> +
> +Required properties:
> +- compatible: must be one of:
> +	mediatek,mt8135-pericfg
> +	mediatek,mt8173-pericfg
> +- reg: Address range for the pericfg controller
> +
> +Example:
> +
> +	pericfg: pericfg@10003000 {
> +		#reset-cells = <1>;
> +		#clock-cells = <1>;
> +		compatible = "mediatek,mt8135-pericfg";
> +		reg = <0 0x10003000 0 0x1000>;
> +	};

This looks identical to the infracfg (same address too). Is that
deliberate?

Mark.

> diff --git a/drivers/soc/mediatek/Kconfig b/drivers/soc/mediatek/Kconfig
> index 3ad39fe..9bdb88f 100644
> --- a/drivers/soc/mediatek/Kconfig
> +++ b/drivers/soc/mediatek/Kconfig
> @@ -10,3 +10,13 @@ config MTK_INFRACFG
>  	  contains several miscellaneous registers for clock, reset and bus
>  	  settings. Say yes here if you want to run your kernel on one of these
>  	  SoCs.
> +
> +config MTK_PERICFG
> +	tristate "MediaTek pericfg controller support"
> +	depends on ARCH_MEDIATEK || COMPILE_TEST
> +	select REGMAP
> +	help
> +	  The MediaTek pericfg controller found on MT8135 and MT8173 SoCs
> +	  contains several miscellaneous registers for clock, reset and bus
> +	  settings. Say yes here if you want to run your kernel on one of these
> +	  SoCs.
> diff --git a/drivers/soc/mediatek/Makefile b/drivers/soc/mediatek/Makefile
> index dbeb627..e67be7c 100644
> --- a/drivers/soc/mediatek/Makefile
> +++ b/drivers/soc/mediatek/Makefile
> @@ -1 +1,2 @@
>  obj-$(CONFIG_MTK_INFRACFG) += mtk-infracfg.o
> +obj-$(CONFIG_MTK_PERICFG) += mtk-pericfg.o
> diff --git a/drivers/soc/mediatek/mtk-pericfg.c b/drivers/soc/mediatek/mtk-pericfg.c
> index b7ee902..aa9a7eb 100644
> --- a/drivers/soc/mediatek/mtk-pericfg.c
> +++ b/drivers/soc/mediatek/mtk-pericfg.c
> @@ -1,6 +1,5 @@
>  /*
>   * Copyright (c) 2014 MediaTek Inc.
> - * Author: Flora Fu <flora.fu@mediatek.com>
>   *
>   * This program is free software; you can redistribute it and/or modify
>   * it under the terms of the GNU General Public License version 2 as
> -- 
> 2.1.4
> 
> 
> _______________________________________________
> linux-arm-kernel mailing list
> linux-arm-kernel@lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
> 

  parent reply	other threads:[~2015-01-20 16:15 UTC|newest]

Thread overview: 38+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-01-20  9:47 MediaTek PMIC support Sascha Hauer
2015-01-20  9:47 ` Sascha Hauer
2015-01-20  9:47 ` [PATCH 1/8] soc: Add MediaTek infracfg controller support Sascha Hauer
2015-01-20  9:47   ` Sascha Hauer
2015-01-20 16:14   ` Mark Rutland
2015-01-20 16:14     ` Mark Rutland
2015-01-21  8:14     ` Sascha Hauer
2015-01-21  8:14       ` Sascha Hauer
2015-01-20  9:47 ` [PATCH 2/8] soc: Add MediaTek pericfg " Sascha Hauer
2015-01-20  9:47   ` Sascha Hauer
2015-01-20 13:18   ` Yingjoe Chen
2015-01-20 13:18     ` Yingjoe Chen
2015-01-20 13:27     ` Sascha Hauer
2015-01-20 13:27       ` Sascha Hauer
2015-01-20 16:15   ` Mark Rutland [this message]
2015-01-20 16:15     ` Mark Rutland
2015-01-21  8:17     ` Sascha Hauer
2015-01-21  8:17       ` Sascha Hauer
2015-01-20  9:47 ` [PATCH 3/8] dt: bindings: Add MediaTek MT8135/MT8173 reset controller defines Sascha Hauer
2015-01-20  9:47   ` Sascha Hauer
2015-01-20  9:47 ` [PATCH 4/8] soc: mediatek: Add PMIC wrapper for MT8135 and MT6397 SoC Sascha Hauer
2015-01-20  9:47   ` Sascha Hauer
2015-01-20  9:47 ` [PATCH 5/8] ARM: dts: mt8135: Add pericfg, infracfg and pmic wrapper nodes Sascha Hauer
2015-01-20  9:47   ` Sascha Hauer
2015-01-20  9:47 ` [PATCH 6/8] ARM: dts: mt8135-evbp1: Add PMIC support Sascha Hauer
2015-01-20  9:47   ` Sascha Hauer
2015-01-20  9:47 ` [PATCH 7/8] mfd: Add support for the MediaTek MT6397 PMIC Sascha Hauer
2015-01-20  9:47   ` Sascha Hauer
2015-01-20  9:47 ` [PATCH 8/8] regulator: MT6397: Add support for MT6397 regulator Sascha Hauer
2015-01-20  9:47   ` Sascha Hauer
2015-01-20 10:07   ` Paul Bolle
2015-01-20 10:07     ` Paul Bolle
2015-01-20 10:54     ` Sascha Hauer
2015-01-20 10:54       ` Sascha Hauer
2015-01-21  8:26   ` Sascha Hauer
2015-01-21  8:26     ` Sascha Hauer
  -- strict thread matches above, loose matches on Subject: below --
2015-02-05 15:25 [PATCH v3] MediaTek PMIC support Sascha Hauer
2015-02-05 15:25 ` [PATCH 2/8] soc: Add MediaTek pericfg controller support Sascha Hauer
2015-02-05 15:25   ` Sascha Hauer

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=20150120161555.GH15924@leverpostej \
    --to=mark.rutland@arm.com \
    --cc=linux-arm-kernel@lists.infradead.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.