From: Sean Wang <sean.wang@mediatek.com>
To: Rob Herring <robh@kernel.org>
Cc: mark.rutland@arm.com, sre@kernel.org, lee.jones@linaro.org,
a.zummo@towertech.it, alexandre.belloni@free-electrons.com,
matthias.bgg@gmail.com, eddie.huang@mediatek.com,
devicetree@vger.kernel.org, linux-rtc@vger.kernel.org,
linux-arm-kernel@lists.infradead.org, linux-pm@vger.kernel.org,
linux-mediatek@lists.infradead.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH v2 01/17] dt-bindings: power: reset: mt6323: add bindings for MT6323 power controller
Date: Mon, 30 Apr 2018 15:34:23 +0800 [thread overview]
Message-ID: <1525073663.12322.219.camel@mtkswgap22> (raw)
In-Reply-To: <20180427200225.lq63ex7eiukc6egl@rob-hp-laptop>
On Fri, 2018-04-27 at 15:02 -0500, Rob Herring wrote:
> On Wed, Apr 25, 2018 at 05:32:27PM +0800, sean.wang@mediatek.com wrote:
> > From: Sean Wang <sean.wang@mediatek.com>
> >
> > Adding device-tree binding for the power controller which is a tiny
> > circuit block present as a part of MT6323 PMIC and is responsible for
> > externally powering off or on a remote SoC the PMIC is connected to.
> >
> > Cc: devicetree@vger.kernel.org
> > Signed-off-by: Sean Wang <sean.wang@mediatek.com>
> > ---
> > .../bindings/power/reset/mt6323-poweroff.txt | 20 ++++++++++++++++++++
> > 1 file changed, 20 insertions(+)
> > create mode 100644 Documentation/devicetree/bindings/power/reset/mt6323-poweroff.txt
> >
> > diff --git a/Documentation/devicetree/bindings/power/reset/mt6323-poweroff.txt b/Documentation/devicetree/bindings/power/reset/mt6323-poweroff.txt
> > new file mode 100644
> > index 0000000..6f7c590
> > --- /dev/null
> > +++ b/Documentation/devicetree/bindings/power/reset/mt6323-poweroff.txt
> > @@ -0,0 +1,20 @@
> > +Device Tree Bindings for Power Controller on MediaTek PMIC
> > +
> > +The power controller which could be found on PMIC is responsible for externally
> > +powering off or on the remote MediaTek SoC through the circuit BBPU.
> > +
> > +Required properties:
> > +- compatible: Should be one of follows
> > + "mediatek,mt6323-pwrc": for MT6323 PMIC
> > +
> > +Example:
> > +
> > + pmic {
> > + compatible = "mediatek,mt6323";
> > +
> > + ...
> > +
> > + power-controller {
> > + compatible = "mediatek,mt6323-pwrc";
>
> Why do you need this in DT? It doesn't define any resources. The parent
> can just as well register a reset or poweroff handler.
>
> Rob
>
Yes, those binding can be removed.
I tend to use platform_device_register_data embedded in mfd driver
to probe the existent poweroff driver in the next version.
> > + };
> > + }
> > --
> > 2.7.4
> >
WARNING: multiple messages have this Message-ID (diff)
From: Sean Wang <sean.wang@mediatek.com>
To: Rob Herring <robh@kernel.org>
Cc: <mark.rutland@arm.com>, <sre@kernel.org>, <lee.jones@linaro.org>,
<a.zummo@towertech.it>, <alexandre.belloni@free-electrons.com>,
<matthias.bgg@gmail.com>, <eddie.huang@mediatek.com>,
<devicetree@vger.kernel.org>, <linux-rtc@vger.kernel.org>,
<linux-arm-kernel@lists.infradead.org>,
<linux-pm@vger.kernel.org>, <linux-mediatek@lists.infradead.org>,
<linux-kernel@vger.kernel.org>
Subject: Re: [PATCH v2 01/17] dt-bindings: power: reset: mt6323: add bindings for MT6323 power controller
Date: Mon, 30 Apr 2018 15:34:23 +0800 [thread overview]
Message-ID: <1525073663.12322.219.camel@mtkswgap22> (raw)
In-Reply-To: <20180427200225.lq63ex7eiukc6egl@rob-hp-laptop>
On Fri, 2018-04-27 at 15:02 -0500, Rob Herring wrote:
> On Wed, Apr 25, 2018 at 05:32:27PM +0800, sean.wang@mediatek.com wrote:
> > From: Sean Wang <sean.wang@mediatek.com>
> >
> > Adding device-tree binding for the power controller which is a tiny
> > circuit block present as a part of MT6323 PMIC and is responsible for
> > externally powering off or on a remote SoC the PMIC is connected to.
> >
> > Cc: devicetree@vger.kernel.org
> > Signed-off-by: Sean Wang <sean.wang@mediatek.com>
> > ---
> > .../bindings/power/reset/mt6323-poweroff.txt | 20 ++++++++++++++++++++
> > 1 file changed, 20 insertions(+)
> > create mode 100644 Documentation/devicetree/bindings/power/reset/mt6323-poweroff.txt
> >
> > diff --git a/Documentation/devicetree/bindings/power/reset/mt6323-poweroff.txt b/Documentation/devicetree/bindings/power/reset/mt6323-poweroff.txt
> > new file mode 100644
> > index 0000000..6f7c590
> > --- /dev/null
> > +++ b/Documentation/devicetree/bindings/power/reset/mt6323-poweroff.txt
> > @@ -0,0 +1,20 @@
> > +Device Tree Bindings for Power Controller on MediaTek PMIC
> > +
> > +The power controller which could be found on PMIC is responsible for externally
> > +powering off or on the remote MediaTek SoC through the circuit BBPU.
> > +
> > +Required properties:
> > +- compatible: Should be one of follows
> > + "mediatek,mt6323-pwrc": for MT6323 PMIC
> > +
> > +Example:
> > +
> > + pmic {
> > + compatible = "mediatek,mt6323";
> > +
> > + ...
> > +
> > + power-controller {
> > + compatible = "mediatek,mt6323-pwrc";
>
> Why do you need this in DT? It doesn't define any resources. The parent
> can just as well register a reset or poweroff handler.
>
> Rob
>
Yes, those binding can be removed.
I tend to use platform_device_register_data embedded in mfd driver
to probe the existent poweroff driver in the next version.
> > + };
> > + }
> > --
> > 2.7.4
> >
WARNING: multiple messages have this Message-ID (diff)
From: sean.wang@mediatek.com (Sean Wang)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH v2 01/17] dt-bindings: power: reset: mt6323: add bindings for MT6323 power controller
Date: Mon, 30 Apr 2018 15:34:23 +0800 [thread overview]
Message-ID: <1525073663.12322.219.camel@mtkswgap22> (raw)
In-Reply-To: <20180427200225.lq63ex7eiukc6egl@rob-hp-laptop>
On Fri, 2018-04-27 at 15:02 -0500, Rob Herring wrote:
> On Wed, Apr 25, 2018 at 05:32:27PM +0800, sean.wang at mediatek.com wrote:
> > From: Sean Wang <sean.wang@mediatek.com>
> >
> > Adding device-tree binding for the power controller which is a tiny
> > circuit block present as a part of MT6323 PMIC and is responsible for
> > externally powering off or on a remote SoC the PMIC is connected to.
> >
> > Cc: devicetree at vger.kernel.org
> > Signed-off-by: Sean Wang <sean.wang@mediatek.com>
> > ---
> > .../bindings/power/reset/mt6323-poweroff.txt | 20 ++++++++++++++++++++
> > 1 file changed, 20 insertions(+)
> > create mode 100644 Documentation/devicetree/bindings/power/reset/mt6323-poweroff.txt
> >
> > diff --git a/Documentation/devicetree/bindings/power/reset/mt6323-poweroff.txt b/Documentation/devicetree/bindings/power/reset/mt6323-poweroff.txt
> > new file mode 100644
> > index 0000000..6f7c590
> > --- /dev/null
> > +++ b/Documentation/devicetree/bindings/power/reset/mt6323-poweroff.txt
> > @@ -0,0 +1,20 @@
> > +Device Tree Bindings for Power Controller on MediaTek PMIC
> > +
> > +The power controller which could be found on PMIC is responsible for externally
> > +powering off or on the remote MediaTek SoC through the circuit BBPU.
> > +
> > +Required properties:
> > +- compatible: Should be one of follows
> > + "mediatek,mt6323-pwrc": for MT6323 PMIC
> > +
> > +Example:
> > +
> > + pmic {
> > + compatible = "mediatek,mt6323";
> > +
> > + ...
> > +
> > + power-controller {
> > + compatible = "mediatek,mt6323-pwrc";
>
> Why do you need this in DT? It doesn't define any resources. The parent
> can just as well register a reset or poweroff handler.
>
> Rob
>
Yes, those binding can be removed.
I tend to use platform_device_register_data embedded in mfd driver
to probe the existent poweroff driver in the next version.
> > + };
> > + }
> > --
> > 2.7.4
> >
next prev parent reply other threads:[~2018-04-30 7:34 UTC|newest]
Thread overview: 66+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-04-25 9:32 [PATCH v2 00/17] Add support to MT6323 RTC and its power device sean.wang
2018-04-25 9:32 ` sean.wang at mediatek.com
2018-04-25 9:32 ` sean.wang
2018-04-25 9:32 ` [PATCH v2 01/17] dt-bindings: power: reset: mt6323: add bindings for MT6323 power controller sean.wang
2018-04-25 9:32 ` sean.wang at mediatek.com
2018-04-25 9:32 ` sean.wang
2018-04-27 20:02 ` Rob Herring
2018-04-27 20:02 ` Rob Herring
2018-04-30 7:34 ` Sean Wang [this message]
2018-04-30 7:34 ` Sean Wang
2018-04-30 7:34 ` Sean Wang
2018-04-25 9:32 ` [PATCH v2 02/17] dt-bindings: rtc: mt6397: add bindings for MediaTek PMIC based RTC sean.wang
2018-04-25 9:32 ` sean.wang at mediatek.com
2018-04-25 9:32 ` sean.wang
2018-05-08 15:39 ` Rob Herring
2018-05-08 15:39 ` Rob Herring
2018-04-25 9:32 ` [PATCH v2 03/17] dt-bindings: mfd: mt6397: add a description for MT6323 RTC sean.wang
2018-04-25 9:32 ` sean.wang at mediatek.com
2018-04-25 9:32 ` sean.wang
2018-04-25 9:32 ` [PATCH v2 04/17] dt-bindings: mfd: mt6397: add a description for MT6323 power controller sean.wang
2018-04-25 9:32 ` sean.wang at mediatek.com
2018-04-25 9:32 ` sean.wang
2018-04-25 9:32 ` [PATCH v2 05/17] mfd: mt6397: add MT6323 RTC support into MT6397 driver sean.wang
2018-04-25 9:32 ` sean.wang at mediatek.com
2018-04-25 9:32 ` sean.wang
2018-04-25 9:32 ` [PATCH v2 06/17] mfd: mt6397: add support for MT6323 power controller " sean.wang
2018-04-25 9:32 ` sean.wang at mediatek.com
2018-04-25 9:32 ` sean.wang
2018-04-25 9:32 ` [PATCH v2 07/17] mfd: mt6397: reuse DEFINE_RES_* helpers sean.wang
2018-04-25 9:32 ` sean.wang at mediatek.com
2018-04-25 9:32 ` sean.wang
2018-04-25 9:32 ` [PATCH v2 08/17] rtc: mt6397: add MT6323 support to RTC driver sean.wang
2018-04-25 9:32 ` sean.wang at mediatek.com
2018-04-25 9:32 ` sean.wang
2018-04-25 9:32 ` [PATCH v2 09/17] rtc: mt6397: replace a poll with regmap_read_poll_timeout sean.wang
2018-04-25 9:32 ` sean.wang at mediatek.com
2018-04-25 9:32 ` sean.wang
2018-04-25 9:32 ` [PATCH v2 10/17] rtc: mt6397: remove unnecessary irq_dispose_mapping sean.wang
2018-04-25 9:32 ` sean.wang at mediatek.com
2018-04-25 9:32 ` sean.wang
2018-04-25 9:32 ` [PATCH v2 11/17] rtc: mt6397: convert to use device managed functions sean.wang
2018-04-25 9:32 ` sean.wang at mediatek.com
2018-04-25 9:32 ` sean.wang
2018-04-25 9:32 ` [PATCH v2 12/17] rtc: mt6397: move the declaration into a globally visible header file sean.wang
2018-04-25 9:32 ` sean.wang at mediatek.com
2018-04-25 9:32 ` sean.wang
2018-04-25 9:32 ` [PATCH v2 13/17] rtc: mt6397: cleanup header files to include sean.wang
2018-04-25 9:32 ` sean.wang at mediatek.com
2018-04-25 9:32 ` sean.wang
2018-04-25 9:32 ` [PATCH v2 14/17] rtc: mt6397: update license converting to using SPDX identifiers sean.wang
2018-04-25 9:32 ` sean.wang at mediatek.com
2018-04-25 9:32 ` sean.wang
2018-04-25 9:32 ` [PATCH v2 15/17] power: reset: mt6323: add a driver for MT6323 power controller sean.wang
2018-04-25 9:32 ` sean.wang at mediatek.com
2018-04-25 9:32 ` sean.wang
2018-05-01 12:56 ` Sebastian Reichel
2018-05-01 12:56 ` Sebastian Reichel
2018-05-02 2:31 ` Sean Wang
2018-05-02 2:31 ` Sean Wang
2018-05-02 2:31 ` Sean Wang
2018-04-25 9:32 ` [PATCH v2 16/17] MAINTAINERS: update entry for ARM/Mediatek RTC DRIVER sean.wang
2018-04-25 9:32 ` sean.wang at mediatek.com
2018-04-25 9:32 ` sean.wang
2018-04-25 9:32 ` [PATCH v2 17/17] MAINTAINERS: add an entry for MediaTek board level shutdown driver sean.wang
2018-04-25 9:32 ` sean.wang at mediatek.com
2018-04-25 9:32 ` sean.wang
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=1525073663.12322.219.camel@mtkswgap22 \
--to=sean.wang@mediatek.com \
--cc=a.zummo@towertech.it \
--cc=alexandre.belloni@free-electrons.com \
--cc=devicetree@vger.kernel.org \
--cc=eddie.huang@mediatek.com \
--cc=lee.jones@linaro.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mediatek@lists.infradead.org \
--cc=linux-pm@vger.kernel.org \
--cc=linux-rtc@vger.kernel.org \
--cc=mark.rutland@arm.com \
--cc=matthias.bgg@gmail.com \
--cc=robh@kernel.org \
--cc=sre@kernel.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.