From: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
To: Rob Herring <robh@kernel.org>,
"B. Niedermayr" <benedikt.niedermayr@siemens.com>
Cc: devicetree@vger.kernel.org, linux-omap@vger.kernel.org,
rogerq@kernel.org, tony@atomide.com
Subject: Re: [PATCH v6 2/2] dt-bindings: memory-controllers: gpmc-child: add wait-pin polarity
Date: Fri, 30 Sep 2022 22:01:46 +0200 [thread overview]
Message-ID: <1c14b73b-46fb-29e8-0fd6-1fd4d8706cbd@linaro.org> (raw)
In-Reply-To: <20220930194257.GA756240-robh@kernel.org>
On 30/09/2022 21:42, Rob Herring wrote:
> On Thu, Sep 29, 2022 at 02:56:39PM +0200, B. Niedermayr wrote:
>> From: Benedikt Niedermayr <benedikt.niedermayr@siemens.com>
>>
>> The GPMC controller has the ability to configure the polarity for the
>> wait pin. The current properties do not allow this configuration.
>> This binding directly configures the WAITPIN<X>POLARITY bit
>> in the GPMC_CONFIG register by setting the gpmc,wait-pin-polarity
>> dt-property.
>>
>> Signed-off-by: Benedikt Niedermayr <benedikt.niedermayr@siemens.com>
>> ---
>> .../bindings/memory-controllers/ti,gpmc-child.yaml | 7 +++++++
>> 1 file changed, 7 insertions(+)
>>
>> diff --git a/Documentation/devicetree/bindings/memory-controllers/ti,gpmc-child.yaml b/Documentation/devicetree/bindings/memory-controllers/ti,gpmc-child.yaml
>> index 6e3995bb1630..477189973334 100644
>> --- a/Documentation/devicetree/bindings/memory-controllers/ti,gpmc-child.yaml
>> +++ b/Documentation/devicetree/bindings/memory-controllers/ti,gpmc-child.yaml
>> @@ -230,6 +230,13 @@ properties:
>> Wait-pin used by client. Must be less than "gpmc,num-waitpins".
>> $ref: /schemas/types.yaml#/definitions/uint32
>>
>> + gpmc,wait-pin-polarity:
>
> 'gpmc' is not a vendor. Don't continue this bad pattern, use 'ti'.
>
>> + description: |
>> + Set the desired polarity for the selected wait pin.
>> + 1 for active low, 0 for active high.
>
> Well that looks backwards. I assume from the commit msg above, it's the
> register value, but that's not what the description says. Please go with
> the logical state here and do the inversion in the driver.
This was actually my suggestion to keep the same value as
ACTIVE_HIGH/LOW in standard GPIO flags. The DTS could reuse the defines.
Best regards,
Krzysztof
next prev parent reply other threads:[~2022-09-30 20:01 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-09-29 12:56 [PATCH v6 0/2] gpmc wait pin additions B. Niedermayr
2022-09-29 12:56 ` [PATCH v6 1/2] memory: omap-gpmc: " B. Niedermayr
2022-10-01 9:18 ` Roger Quadros
2022-09-29 12:56 ` [PATCH v6 2/2] dt-bindings: memory-controllers: gpmc-child: add wait-pin polarity B. Niedermayr
2022-09-30 19:42 ` Rob Herring
2022-09-30 20:01 ` Krzysztof Kozlowski [this message]
2022-10-05 10:05 ` Niedermayr, BENEDIKT
2022-10-05 11:01 ` Krzysztof Kozlowski
2022-10-05 10:13 ` Niedermayr, BENEDIKT
2022-10-05 11:00 ` Krzysztof Kozlowski
2022-10-05 11:15 ` Niedermayr, BENEDIKT
2022-10-05 11:48 ` Krzysztof Kozlowski
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=1c14b73b-46fb-29e8-0fd6-1fd4d8706cbd@linaro.org \
--to=krzysztof.kozlowski@linaro.org \
--cc=benedikt.niedermayr@siemens.com \
--cc=devicetree@vger.kernel.org \
--cc=linux-omap@vger.kernel.org \
--cc=robh@kernel.org \
--cc=rogerq@kernel.org \
--cc=tony@atomide.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).