public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Andrew Lunn <andrew@lunn.ch>
To: "Marek Behún" <kabel@kernel.org>
Cc: "Pali Rohár" <pali@kernel.org>,
	"Gregory Clement" <gregory.clement@bootlin.com>,
	"Sebastian Hesselbarth" <sebastian.hesselbarth@gmail.com>,
	"Rob Herring" <robh+dt@kernel.org>,
	"Krzysztof Kozlowski" <krzysztof.kozlowski+dt@linaro.org>,
	linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org,
	linux-kernel@vger.kernel.org
Subject: Re: [PATCH] ARM: dts: turris-omnia: Add mcu node
Date: Sat, 3 Sep 2022 17:12:54 +0200	[thread overview]
Message-ID: <YxNu9sXY5UhVCZ+w@lunn.ch> (raw)
In-Reply-To: <20220903043828.6afd3ab4@thinkpad>

> > > > diff --git a/arch/arm/boot/dts/armada-385-turris-omnia.dts b/arch/arm/boot/dts/armada-385-turris-omnia.dts
> > > > index f4878df39753..f655e9229d68 100644
> > > > --- a/arch/arm/boot/dts/armada-385-turris-omnia.dts
> > > > +++ b/arch/arm/boot/dts/armada-385-turris-omnia.dts
> > > > @@ -184,7 +184,13 @@
> > > >  			#size-cells = <0>;
> > > >  			reg = <0>;
> > > >  
> > > > -			/* STM32F0 command interface at address 0x2a */
> > > > +			/* MCU command i2c API */
> > > > +			mcu: mcu@2a {
> > > > +				compatible = "cznic,turris-omnia-mcu";
> > > > +				reg = <0x2a>;
> > > > +				gpio-controller;
> > > > +				#gpio-cells = <3>;
> > > > +			};  
> > 
> > Please document the binding, preferably in yaml.
> > 
> > I'm also not sure what the DT people will say about the node name mcu.
> > I don't see any examples of that in the binding documentation. They
> > might request you rename it to gpio-controller, unless it does more
> > than GPIO? And if it does do more than GPIO we are then into mfd
> > territory, and the binding then becomes much more interesting. Then we
> > start the questions, are you defining a ABI now, before there is even
> > a driver for it?
> 
> Most probably mfd territory. It is at least a gpio-controller,
> reset-controller and watchdog.

O.K.

Then i suggest we wait for the actual drivers before committing any
DT. The binding will need revier, and could change.

    Andrew

  reply	other threads:[~2022-09-03 15:13 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-08-19 13:11 [PATCH] ARM: dts: turris-omnia: Add mcu node Pali Rohár
2022-08-31 14:28 ` Pali Rohár
2022-09-01 22:45   ` Andrew Lunn
2022-09-03  2:39     ` Marek Behún
2022-09-03 15:12       ` Andrew Lunn [this message]
2022-09-03 15:27     ` Pali Rohár
2022-09-04  1:02       ` Andrew Lunn
2022-09-05 16:19       ` Florian Fainelli
2022-09-05 16:34         ` Krzysztof Kozlowski
2022-09-05 17:12           ` Pali Rohár
2022-09-06  6:34             ` Krzysztof Kozlowski
2022-09-06  7:24               ` Pali Rohár

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=YxNu9sXY5UhVCZ+w@lunn.ch \
    --to=andrew@lunn.ch \
    --cc=devicetree@vger.kernel.org \
    --cc=gregory.clement@bootlin.com \
    --cc=kabel@kernel.org \
    --cc=krzysztof.kozlowski+dt@linaro.org \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=pali@kernel.org \
    --cc=robh+dt@kernel.org \
    --cc=sebastian.hesselbarth@gmail.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