Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1308019

Re: [PATCH v2 2/6] dt-bindings: ARM: Mediatek: Document bindings for MT2701

From James Liao <jamesjj.liao@mediatek.com>
Newsgroups linux.kernel
Subject Re: [PATCH v2 2/6] dt-bindings: ARM: Mediatek: Document bindings for MT2701
Date 2016-01-13 04:50 +0100
Message-ID <qQkBA-2i0-21@gated-at.bofh.it> (permalink)
References <qNtrI-6yZ-3@gated-at.bofh.it> <qNtrI-6yZ-5@gated-at.bofh.it> <qNXSO-2Of-15@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


Hi Rob,

On Wed, 2016-01-06 at 09:08 -0600, Rob Herring wrote:
> On Tue, Jan 05, 2016 at 02:30:18PM +0800, James Liao wrote:
> > This patch adds the binding documentation for apmixedsys, bdpsys,
> > ethsys, hifsys, imgsys, infracfg, mmsys, pericfg, topckgen and
> > vdecsys for Mediatek MT2701.
> > 
> > Signed-off-by: James Liao <jamesjj.liao@mediatek.com>
> 
> [...]
> 
> > diff --git a/Documentation/devicetree/bindings/arm/mediatek/mediatek,bdpsys.txt b/Documentation/devicetree/bindings/arm/mediatek/mediatek,bdpsys.txt
> > new file mode 100644
> > index 0000000..4137196
> > --- /dev/null
> > +++ b/Documentation/devicetree/bindings/arm/mediatek/mediatek,bdpsys.txt
> > @@ -0,0 +1,22 @@
> > +Mediatek bdpsys controller
> > +============================
> > +
> > +The Mediatek bdpsys controller provides various clocks to the system.
> > +
> > +Required Properties:
> > +
> > +- compatible: Should be:
> > +	- "mediatek,mt2701-bdpsys", "syscon"
> 
> If this block and others only provide clocks, then why do you need 
> syscon here? If it is more that clocks, then the description is wrong.

Sorry for late reply.

In bdpsys and other similar subsystems, clock controlling and other
feature controlling share the same register space. That means we may
have multiple DT nodes with the same reg (register address) property.
But it's not a good idea because we may have racing issue when multiple
drivers share the same register space. With syscon, drivers that need
share the same register base with bdpsys can safely control registers
through regmap APIs.

These subsystem nodes described in arm/mediatek/ are clock controllers,
some of them may be the reset controller at the same time. Other
subsystem features will have their own DT nodes and share the same
register space by referring to these clock controllers.


Best regards,

James

Back to linux.kernel | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

[PATCH v2 2/6] dt-bindings: ARM: Mediatek: Document bindings for MT2701 James Liao <jamesjj.liao@mediatek.com> - 2016-01-05 07:40 +0100
  Re: [PATCH v2 2/6] dt-bindings: ARM: Mediatek: Document bindings for  MT2701 Rob Herring <robh@kernel.org> - 2016-01-06 16:10 +0100
    Re: [PATCH v2 2/6] dt-bindings: ARM: Mediatek: Document bindings  for MT2701 James Liao <jamesjj.liao@mediatek.com> - 2016-01-13 04:50 +0100

csiph-web