devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Yingjoe Chen <yingjoe.chen@mediatek.com>
To: James Liao <jamesjj.liao@mediatek.com>
Cc: Matthias Brugger <matthias.bgg@gmail.com>,
	Sascha Hauer <kernel@pengutronix.de>,
	Rob Herring <robh@kernel.org>,
	srv_heupstream@mediatek.com, devicetree@vger.kernel.org,
	Kevin Hilman <khilman@kernel.org>,
	linux-kernel@vger.kernel.org, linux-mediatek@lists.infradead.org,
	Shunli Wang <shunli.wang@mediatek.com>,
	linux-arm-kernel@lists.infradead.org
Subject: Re: [PATCH v6 3/4] soc: mediatek: Add MT2701 power dt-bindings
Date: Fri, 15 Apr 2016 22:42:09 +0800	[thread overview]
Message-ID: <1460731329.19786.4.camel@mtksdaap41> (raw)
In-Reply-To: <1460685753.7028.5.camel@mtksdaap41>

On Fri, 2016-04-15 at 10:02 +0800, James Liao wrote:
> Hi Yingjoe,
> 
> On Thu, 2016-04-14 at 18:56 +0800, Yingjoe Chen wrote:
> > On Thu, 2016-04-14 at 16:16 +0800, James Liao wrote:
> > > From: Shunli Wang <shunli.wang@mediatek.com>
> > > 
> > > Add power dt-bindings for MT2701.
> > > 
> > > Signed-off-by: Shunli Wang <shunli.wang@mediatek.com>
> > > Signed-off-by: James Liao <jamesjj.liao@mediatek.com>
> > > Acked-by: Rob Herring <robh@kernel.org>
> > > Reviewed-by: Kevin Hilman <khilman@baylibre.com>
> > > ---
> > >  .../devicetree/bindings/soc/mediatek/scpsys.txt    | 12 ++++++----
> > >  include/dt-bindings/power/mt2701-power.h           | 27 ++++++++++++++++++++++
> > >  2 files changed, 34 insertions(+), 5 deletions(-)
> > >  create mode 100644 include/dt-bindings/power/mt2701-power.h
> > > 
> > > diff --git a/Documentation/devicetree/bindings/soc/mediatek/scpsys.txt b/Documentation/devicetree/bindings/soc/mediatek/scpsys.txt
> > > index e8f15e3..ebb3144 100644
> > > --- a/Documentation/devicetree/bindings/soc/mediatek/scpsys.txt
> > > +++ b/Documentation/devicetree/bindings/soc/mediatek/scpsys.txt
> > > @@ -9,17 +9,19 @@ domain control.
> > >  
> > >  The driver implements the Generic PM domain bindings described in
> > >  power/power_domain.txt. It provides the power domains defined in
> > > -include/dt-bindings/power/mt8173-power.h.
> > > +include/dt-bindings/power/mt8173-power.h and mt2701-power.h.
> > >  
> > >  Required properties:
> > > -- compatible: Must be "mediatek,mt8173-scpsys"
> > > +- compatible: Should be one of:
> > > +	- "mediatek,mt2701-scpsys"
> > > +	- "mediatek,mt8173-scpsys"
> > >  - #power-domain-cells: Must be 1
> > >  - reg: Address range of the SCPSYS unit
> > >  - infracfg: must contain a phandle to the infracfg controller
> > >  - clock, clock-names: clocks according to the common clock binding.
> > > -                      The clocks needed "mm", "mfg", "venc" and "venc_lt".
> > > -		      These are the clocks which hardware needs to be enabled
> > > -		      before enabling certain power domains.
> > > +                      The clocks needed "mm", "mfg", "venc", "venc_lt" and
> > > +                      "ethif". These are the clocks which hardware needs to be
> > > +                      enabled before enabling certain power domains.
> > 
> > 
> > Clock ethif only exist on mt2701 so it is not required on mt8173.
> 
> You are right. Each SoC needs different clock for each power domain.
> Here list all subsystems of available SoCs.

Binding should list required clocks for each specific platform. How
about this:

- clock, clock-names: clocks according to the common clock binding.
		      These are the clocks which hardware needs to be
                      enabled before enabling certain power domains.
  	Required clocks for mt2701: "mm", "mfg", "ethif"
	Required clocks for mt8173: "mm", "mfg", "venc", "venc_lt"

Joe.C

  reply	other threads:[~2016-04-15 14:42 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-04-14  8:16 [PATCH v6 0/4] Mediatek MT2701 SCPSYS power domain support James Liao
     [not found] ` <1460621819-695-1-git-send-email-jamesjj.liao-NuS5LvNUpcJWk0Htik3J/w@public.gmane.org>
2016-04-14  8:16   ` [PATCH v6 1/4] soc: mediatek: Refine scpsys to support multiple platform James Liao
2016-04-14  8:16   ` [PATCH v6 3/4] soc: mediatek: Add MT2701 power dt-bindings James Liao
     [not found]     ` <1460621819-695-4-git-send-email-jamesjj.liao-NuS5LvNUpcJWk0Htik3J/w@public.gmane.org>
2016-04-14 10:56       ` Yingjoe Chen
2016-04-15  2:02         ` James Liao
2016-04-15 14:42           ` Yingjoe Chen [this message]
2016-04-18  1:56             ` James Liao
2016-04-14  8:16 ` [PATCH v6 2/4] soc: mediatek: Init MT8173 scpsys driver earlier James Liao
2016-04-14  8:16 ` [PATCH v6 4/4] soc: mediatek: Add MT2701 scpsys driver James Liao

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=1460731329.19786.4.camel@mtksdaap41 \
    --to=yingjoe.chen@mediatek.com \
    --cc=devicetree@vger.kernel.org \
    --cc=jamesjj.liao@mediatek.com \
    --cc=kernel@pengutronix.de \
    --cc=khilman@kernel.org \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-mediatek@lists.infradead.org \
    --cc=matthias.bgg@gmail.com \
    --cc=robh@kernel.org \
    --cc=shunli.wang@mediatek.com \
    --cc=srv_heupstream@mediatek.com \
    /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).