devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Mathis Foerst <mathis.foerst@mt.com>
To: Conor Dooley <conor@kernel.org>
Cc: Sakari Ailus <sakari.ailus@linux.intel.com>,
	linux-kernel@vger.kernel.org,
	Laurent Pinchart <laurent.pinchart@ideasonboard.com>,
	MauroCarvalhoChehab@mt.com, mchehab@kernel.org,
	Rob Herring <robh@kernel.org>,
	Krzysztof Kozlowski <krzk+dt@kernel.org>,
	Conor Dooley <conor+dt@kernel.org>,
	linux-media@vger.kernel.org, devicetree@vger.kernel.org,
	manuel.traut@mt.com
Subject: Re: [PATCH v1 2/8] MT9M114: Add pad-slew-rate DT-binding
Date: Tue, 4 Mar 2025 12:48:58 +0100	[thread overview]
Message-ID: <Z8boqvxEAhx7rG9Q@mt.com> (raw)
In-Reply-To: <20250228-helpless-delivery-42162772caa3@spud>

Hi Conor, Hi Sakari,

On Fri, Feb 28, 2025 at 07:11:31PM +0000, Conor Dooley wrote:
> On Thu, Feb 27, 2025 at 10:14:02AM +0000, Sakari Ailus wrote:
> > Hi Mathis,
> > 
> > On Wed, Feb 26, 2025 at 04:39:23PM +0100, Mathis Foerst wrote:
> > > The MT9M114 supports the different slew rates (0 to 7) on the output pads.
> > 
> > "the output pads" probably means pixel data interface (DVP or CSI-2)
> > signals in this cases? I suppose this is about clock modulation?
> > It'd be good to say that.

The slew rate defines the slope of the voltage flanks on the output pads (how fast
the pads go from LOW to HIGH or vice versa). I tried to clarify the description.

> > 
> > > At the moment, this is hardcoded to 7 (the fastest rate).
> > > The user might want to change this values due to EMC requirements.
> > > 
> > > Add the 'pad-slew-rate' property to the MT9M114 DT-bindings for selecting
> > > the desired slew rate.
> > > 
> > > Signed-off-by: Mathis Foerst <mathis.foerst@mt.com>
> > > ---
> > >  .../devicetree/bindings/media/i2c/onnn,mt9m114.yaml         | 6 ++++++
> > >  1 file changed, 6 insertions(+)
> > > 
> > > diff --git a/Documentation/devicetree/bindings/media/i2c/onnn,mt9m114.yaml b/Documentation/devicetree/bindings/media/i2c/onnn,mt9m114.yaml
> > > index 72e258d57186..666afe10c538 100644
> > > --- a/Documentation/devicetree/bindings/media/i2c/onnn,mt9m114.yaml
> > > +++ b/Documentation/devicetree/bindings/media/i2c/onnn,mt9m114.yaml
> > > @@ -74,6 +74,12 @@ properties:
> > >      description: Bypass the internal PLL of the sensor to use EXTCLK directly as SYSCLK.
> > >      type: boolean
> > >  
> > > +  onnn,slew-rate:
> > > +    $ref: /schemas/types.yaml#/definitions/uint8
> > 
> > No need to make this 8-bit (i.e. just use 32 bits).

Okay, I thought 8-bit would fit the small value range [0,7]. Changed it to 32 bits.

> > 
> > > +    description: Slew rate ot the output pads DOUT[7:0], LINE_VALID, FRAME_VALID and PIXCLK
> > 
> > Please wrap at 80 characters.
> > 
> > Is there more information on the effect than 7 is the fastest?

There is no more information about the exact meaning of the values.
As described above, the higher the value, the steeper the voltage flanks.

> > 
> > > +    minimum: 0
> > > +    maximum: 7
> > 
> > Please also add a default.

Sure, I added the default value 7 that matches the currently hardcoded 
value in the driver.

> 
> It'd also be great (IMO) if it were given in terms of actual units, not
> nebulous values that I assume to be the register values.

I agree, but the documentation does not provide further details about the
unit of the value. So using the register value is my best-effort approach.

> 
> > 
> > > +
> > >  required:
> > >    - compatible
> > >    - reg
> > 
> > -- 
> > Regards,
> > 
> > Sakari Ailus

Best regards,
Mathis Foerst

  reply	other threads:[~2025-03-04 11:49 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-02-26 15:39 [PATCH v1 0/8] MT9M114 driver bugfix and improvements Mathis Foerst
2025-02-26 15:39 ` [PATCH v1 1/8] MT9M114: Add bypass-pll DT-binding Mathis Foerst
2025-02-26 16:08   ` Sakari Ailus
2025-03-04 11:53     ` Mathis Foerst
2025-02-26 15:39 ` [PATCH v1 2/8] MT9M114: Add pad-slew-rate DT-binding Mathis Foerst
2025-02-27 10:14   ` Sakari Ailus
2025-02-28 19:11     ` Conor Dooley
2025-03-04 11:48       ` Mathis Foerst [this message]
2025-03-04 16:39         ` Conor Dooley
2025-03-05  9:59           ` Mathis Foerst
2025-03-05 16:29             ` Conor Dooley
2025-03-05 16:30               ` Conor Dooley
2025-02-26 15:39 ` [PATCH v1 3/8] MT9M114: Add get_mbus_config Mathis Foerst
2025-02-26 17:13   ` Dave Stevenson
2025-02-27  8:53   ` Sakari Ailus
2025-03-05 11:44     ` Mathis Foerst
2025-02-26 15:39 ` [PATCH v1 4/8] MT9M114: Add option to bypass PLL Mathis Foerst
2025-02-26 15:39 ` [PATCH v1 5/8] MT9M114: Factor out mt9m114_configure_pa Mathis Foerst
2025-02-26 15:39 ` [PATCH v1 6/8] MT9M114: Allow set_selection while streaming Mathis Foerst
2025-02-26 15:39 ` [PATCH v1 7/8] MT9M114: Fix deadlock in get_frame_interval/set_frame_interval Mathis Foerst
2025-02-27  9:42   ` Sakari Ailus
2025-02-26 15:39 ` [PATCH v1 8/8] MT9M114: Set pad-slew-rate Mathis Foerst
2025-02-28 19:09 ` [PATCH v1 0/8] MT9M114 driver bugfix and improvements Conor Dooley

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=Z8boqvxEAhx7rG9Q@mt.com \
    --to=mathis.foerst@mt.com \
    --cc=MauroCarvalhoChehab@mt.com \
    --cc=conor+dt@kernel.org \
    --cc=conor@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=krzk+dt@kernel.org \
    --cc=laurent.pinchart@ideasonboard.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-media@vger.kernel.org \
    --cc=manuel.traut@mt.com \
    --cc=mchehab@kernel.org \
    --cc=robh@kernel.org \
    --cc=sakari.ailus@linux.intel.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).