linux-media.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Benjamin GAIGNARD <benjamin.gaignard@st.com>
To: Rob Herring <robh@kernel.org>
Cc: Hugues FRUCHET <hugues.fruchet@st.com>,
	"mchehab@kernel.org" <mchehab@kernel.org>,
	"mcoquelin.stm32@gmail.com" <mcoquelin.stm32@gmail.com>,
	Alexandre TORGUE <alexandre.torgue@st.com>,
	"linux-media@vger.kernel.org" <linux-media@vger.kernel.org>,
	"linux-stm32@st-md-mailman.stormreply.com" 
	<linux-stm32@st-md-mailman.stormreply.com>,
	"linux-arm-kernel@lists.infradead.org" 
	<linux-arm-kernel@lists.infradead.org>,
	"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
	"vincent.guittot@linaro.org" <vincent.guittot@linaro.org>,
	"valentin.schneider@arm.com" <valentin.schneider@arm.com>,
	"rjw@rjwysocki.net" <rjw@rjwysocki.net>,
	"devicetree@vger.kernel.org" <devicetree@vger.kernel.org>
Subject: Re: [PATCH v7 1/3] dt-bindings: media: stm32-dcmi: Add DCMI min frequency property
Date: Mon, 20 Jul 2020 09:38:30 +0000	[thread overview]
Message-ID: <fee98476-c92c-579a-ac33-323a5f5feb76@st.com> (raw)
In-Reply-To: <CAL_Jsq+VgXTJy1SQr6B63kLZ3wcRMe4YfYiRNCT6s=gUO_tmTw@mail.gmail.com>



On 7/10/20 10:01 PM, Rob Herring wrote:
> On Fri, Jul 10, 2020 at 1:33 AM Benjamin GAIGNARD
> <benjamin.gaignard@st.com> wrote:
>>
>>
>> On 7/9/20 10:37 PM, Rob Herring wrote:
>>> On Wed, Jul 01, 2020 at 03:01:27PM +0200, Benjamin Gaignard wrote:
>>>> Document st,stm32-dcmi-min-frequency property which is used to
>>>> request CPUs minimum frequency when streaming frames.
>>>>
>>>> Signed-off-by: Benjamin Gaignard <benjamin.gaignard@st.com>
>>>> ---
>>>>    Documentation/devicetree/bindings/media/st,stm32-dcmi.yaml | 8 ++++++++
>>>>    1 file changed, 8 insertions(+)
>>>>
>>>> diff --git a/Documentation/devicetree/bindings/media/st,stm32-dcmi.yaml b/Documentation/devicetree/bindings/media/st,stm32-dcmi.yaml
>>>> index 3fe778cb5cc3..05ca85a2411a 100644
>>>> --- a/Documentation/devicetree/bindings/media/st,stm32-dcmi.yaml
>>>> +++ b/Documentation/devicetree/bindings/media/st,stm32-dcmi.yaml
>>>> @@ -44,6 +44,13 @@ properties:
>>>>          bindings defined in
>>>>          Documentation/devicetree/bindings/media/video-interfaces.txt.
>>>>
>>>> +  st,stm32-dcmi-min-frequency:
>>>> +    description: DCMI minimum CPUs frequency requirement (in KHz).
>>>> +    allOf:
>>>> +      - $ref: /schemas/types.yaml#/definitions/uint32
>>>> +      - minimum: 0
>>>> +      - default: 0
>>> I think this is questionable to be in DT and if it is, it's something
>>> that's hardly specific to ST or this block. IIRC, we already have a way
>>> to specify minimum OPPs.
>> This binding is only needed on some STM32 SoC when DVFS is activated
>> with low frequency setting in opp. The value also depends of the targeted
>> video format and framerate.
> As those 2 things are not in the DT, then neither should this value be.
>
>> It is not an opp because it doesn't define a voltage-current-frequency
>> combination
>> but only set a minimum target for the CPUs frequency to guaranty a good
>> reaction
>> time when handling IRQs for the sensor.
> OPPs can be frequency only. This is pretty clearly defining the CPU
> must Operate at a certain minimum Performance Point.
Hi Rob,

My goal here wasn't to define an OPP for the CPU since it is the camera 
interface node
but to avoid let the CPU go to down.
I haven't found how to use OPP bindings, can you provide me hints or 
examples of how
I should do it?

Thanks,
Benjamin

>
> Rob

  reply	other threads:[~2020-07-20  9:38 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-07-01 13:01 [PATCH v7 0/3] DCMI set minimum cpufreq requirement Benjamin Gaignard
2020-07-01 13:01 ` [PATCH v7 1/3] dt-bindings: media: stm32-dcmi: Add DCMI min frequency property Benjamin Gaignard
2020-07-09 20:37   ` Rob Herring
2020-07-10  7:33     ` Benjamin GAIGNARD
2020-07-10 20:01       ` Rob Herring
2020-07-20  9:38         ` Benjamin GAIGNARD [this message]
2020-07-01 13:01 ` [PATCH v7 2/3] media: stm32-dcmi: Set minimum cpufreq requirement Benjamin Gaignard
2020-07-01 13:01 ` [PATCH v7 3/3] ARM: dts: stm32: Set DCMI frequency requirement for stm32mp15x Benjamin Gaignard

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=fee98476-c92c-579a-ac33-323a5f5feb76@st.com \
    --to=benjamin.gaignard@st.com \
    --cc=alexandre.torgue@st.com \
    --cc=devicetree@vger.kernel.org \
    --cc=hugues.fruchet@st.com \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-media@vger.kernel.org \
    --cc=linux-stm32@st-md-mailman.stormreply.com \
    --cc=mchehab@kernel.org \
    --cc=mcoquelin.stm32@gmail.com \
    --cc=rjw@rjwysocki.net \
    --cc=robh@kernel.org \
    --cc=valentin.schneider@arm.com \
    --cc=vincent.guittot@linaro.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 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).