linux-gpio.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
To: Biju Das <biju.das.jz@bp.renesas.com>,
	Linus Walleij <linus.walleij@linaro.org>,
	Rob Herring <robh+dt@kernel.org>,
	Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>
Cc: "Geert Uytterhoeven" <geert+renesas@glider.be>,
	"Uwe Kleine-König" <u.kleine-koenig@pengutronix.de>,
	"linux-renesas-soc@vger.kernel.org"
	<linux-renesas-soc@vger.kernel.org>,
	"linux-gpio@vger.kernel.org" <linux-gpio@vger.kernel.org>,
	"devicetree@vger.kernel.org" <devicetree@vger.kernel.org>,
	"Chris Paterson" <Chris.Paterson2@renesas.com>,
	"Biju Das" <biju.das@bp.renesas.com>,
	"Prabhakar Mahadev Lad" <prabhakar.mahadev-lad.rj@bp.renesas.com>
Subject: Re: [PATCH 1/2] dt-bindings: pinctrl: renesas: Add RZ/G2L POEG binding
Date: Mon, 18 Jul 2022 15:03:33 +0200	[thread overview]
Message-ID: <1c96a873-81f7-02c4-56cc-f33a283329eb@linaro.org> (raw)
In-Reply-To: <OS0PR01MB5922CE20E15959AEF89C36D4868B9@OS0PR01MB5922.jpnprd01.prod.outlook.com>

On 15/07/2022 12:17, Biju Das wrote:
> Hi Krzysztof Kozlowski,
> 
> Thanks for the feedback.
> 
>> Subject: Re: [PATCH 1/2] dt-bindings: pinctrl: renesas: Add RZ/G2L POEG
>> binding
>>
>> On 13/07/2022 15:55, Biju Das wrote:
>>> Add device tree bindings for the RZ/G2L Port Output Enable for GPT
>> (POEG).
>>>
>>> Signed-off-by: Biju Das <biju.das.jz@bp.renesas.com>
>>> ---
>>> REF->v1:
>>>  * Modelled as pincontrol as most of its configuration is intended to
>> be
>>>    static.
>>>  * Updated reg size in example.
>>> ---
>>>  .../bindings/pinctrl/renesas,rzg2l-poeg.yaml  | 65
>>> +++++++++++++++++++
>>>  1 file changed, 65 insertions(+)
>>>  create mode 100644
>>> Documentation/devicetree/bindings/pinctrl/renesas,rzg2l-poeg.yaml
>>>
>>> diff --git
>>> a/Documentation/devicetree/bindings/pinctrl/renesas,rzg2l-poeg.yaml
>>> b/Documentation/devicetree/bindings/pinctrl/renesas,rzg2l-poeg.yaml
>>> new file mode 100644
>>> index 000000000000..7607dd87fa68
>>> --- /dev/null
>>> +++ b/Documentation/devicetree/bindings/pinctrl/renesas,rzg2l-poeg.yam
>>> +++ l
>>> @@ -0,0 +1,65 @@
>>> +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) %YAML 1.2
>>> +---
>>> +$id:
>>> +
>>> +title: Renesas RZ/G2L Port Output Enable for GPT (POEG)
>>> +
>>> +maintainers:
>>> +  - Biju Das <biju.das.jz@bp.renesas.com>
>>> +
>>> +description: |
>>> +  The output pins of the general PWM timer (GPT) can be disabled by
>>> +using
>>> +  the port output enabling function for the GPT (POEG). Specifically,
>>> +  either of the following ways can be used.
>>> +  * Input level detection of the GTETRGA to GTETRGD pins.
>>> +  * Output-disable request from the GPT.
>>
>> Shouldn't this all be part of GPT? Is this a real separate device in the
>> SoC?
> 
> No, It is separate IP block, having its own register block, interrupts and resets.
> 
> Please see RFC discussion here[1]
> 
> [1] https://lore.kernel.org/linux-renesas-soc/20220517210407.GA1635524-robh@kernel.org/
> 
>>
>>> +  * Register settings.
>>
>> This is confusing... so you can use POEG to mess up registers of GPT
>> independently, so GPT does not know it?
> 
> POEG does not mess up registers of GPT. It is basically for protection.
> 
> Using POEG register, it is possible to disable GPT output without the knowledge of GPT, after configuring the Output disable source select in the GTINTAD (General PWM Timer Interrupt Output Setting Register) register present in GPT.

Then what does it mean:
"...following ways can be used. Register settings."
I cannot parse it.


Best regards,
Krzysztof

  reply	other threads:[~2022-07-18 13:03 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-07-13 13:55 [PATCH 0/2] Add RZ/G2L POEG support Biju Das
2022-07-13 13:55 ` [PATCH 1/2] dt-bindings: pinctrl: renesas: Add RZ/G2L POEG binding Biju Das
2022-07-15  9:58   ` Krzysztof Kozlowski
2022-07-15 10:17     ` Biju Das
2022-07-18 13:03       ` Krzysztof Kozlowski [this message]
2022-07-18 13:13         ` Biju Das
2022-07-21  9:22           ` Krzysztof Kozlowski
2022-07-22  9:18             ` Biju Das
2022-07-13 13:55 ` [PATCH 2/2] drivers: pinctrl: renesas: Add POEG driver support Biju Das

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=1c96a873-81f7-02c4-56cc-f33a283329eb@linaro.org \
    --to=krzysztof.kozlowski@linaro.org \
    --cc=Chris.Paterson2@renesas.com \
    --cc=biju.das.jz@bp.renesas.com \
    --cc=biju.das@bp.renesas.com \
    --cc=devicetree@vger.kernel.org \
    --cc=geert+renesas@glider.be \
    --cc=krzysztof.kozlowski+dt@linaro.org \
    --cc=linus.walleij@linaro.org \
    --cc=linux-gpio@vger.kernel.org \
    --cc=linux-renesas-soc@vger.kernel.org \
    --cc=prabhakar.mahadev-lad.rj@bp.renesas.com \
    --cc=robh+dt@kernel.org \
    --cc=u.kleine-koenig@pengutronix.de \
    /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).