linux-i2c.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] dt-bindings: i2c-gpio: Use 'deprecated' keyword on deprecated properties
@ 2020-07-17 16:04 Rob Herring
  2020-07-22 10:50 ` Wolfram Sang
  0 siblings, 1 reply; 3+ messages in thread
From: Rob Herring @ 2020-07-17 16:04 UTC (permalink / raw)
  To: devicetree; +Cc: Wolfram Sang, linux-i2c

The i2c-gpio binding is the only case of 'not: true' being used for a
deprecated property. Update it to use the json-schema 2019.09
'deprecated' keyword instead. Define the type too in order to keep the
meta-schema happy.

This will disable warnings for these properties until the dtschema tools
are updated to handle 'deprecated', but they are only used in a few at91
dts files.

Cc: Wolfram Sang <wolfram@the-dreams.de>
Cc: linux-i2c@vger.kernel.org
Signed-off-by: Rob Herring <robh@kernel.org>
---
 Documentation/devicetree/bindings/i2c/i2c-gpio.yaml | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/Documentation/devicetree/bindings/i2c/i2c-gpio.yaml b/Documentation/devicetree/bindings/i2c/i2c-gpio.yaml
index da6129090a8e..78ffcab2428c 100644
--- a/Documentation/devicetree/bindings/i2c/i2c-gpio.yaml
+++ b/Documentation/devicetree/bindings/i2c/i2c-gpio.yaml
@@ -52,15 +52,15 @@ properties:
     description: sda and scl gpio, alternative for {sda,scl}-gpios
 
   i2c-gpio,sda-open-drain:
-    # Generate a warning if present
-    not: true
+    type: boolean
+    deprecated: true
     description: this means that something outside of our control has put
       the GPIO line used for SDA into open drain mode, and that something is
       not the GPIO chip. It is essentially an inconsistency flag.
 
   i2c-gpio,scl-open-drain:
-    # Generate a warning if present
-    not: true
+    type: boolean
+    deprecated: true
     description: this means that something outside of our control has put the
       GPIO line used for SCL into open drain mode, and that something is not
       the GPIO chip. It is essentially an inconsistency flag.
-- 
2.25.1


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH] dt-bindings: i2c-gpio: Use 'deprecated' keyword on deprecated properties
  2020-07-17 16:04 [PATCH] dt-bindings: i2c-gpio: Use 'deprecated' keyword on deprecated properties Rob Herring
@ 2020-07-22 10:50 ` Wolfram Sang
  2020-07-22 14:50   ` Rob Herring
  0 siblings, 1 reply; 3+ messages in thread
From: Wolfram Sang @ 2020-07-22 10:50 UTC (permalink / raw)
  To: Rob Herring; +Cc: devicetree, Wolfram Sang, linux-i2c

[-- Attachment #1: Type: text/plain, Size: 683 bytes --]

On Fri, Jul 17, 2020 at 10:04:07AM -0600, Rob Herring wrote:
> The i2c-gpio binding is the only case of 'not: true' being used for a
> deprecated property. Update it to use the json-schema 2019.09
> 'deprecated' keyword instead. Define the type too in order to keep the
> meta-schema happy.
> 
> This will disable warnings for these properties until the dtschema tools
> are updated to handle 'deprecated', but they are only used in a few at91
> dts files.
> 
> Cc: Wolfram Sang <wolfram@the-dreams.de>
> Cc: linux-i2c@vger.kernel.org
> Signed-off-by: Rob Herring <robh@kernel.org>

Your tree or mine? for the latter case:

Acked-by: Wolfram Sang <wsa@kernel.org>


[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] dt-bindings: i2c-gpio: Use 'deprecated' keyword on deprecated properties
  2020-07-22 10:50 ` Wolfram Sang
@ 2020-07-22 14:50   ` Rob Herring
  0 siblings, 0 replies; 3+ messages in thread
From: Rob Herring @ 2020-07-22 14:50 UTC (permalink / raw)
  To: Wolfram Sang; +Cc: devicetree, Wolfram Sang, Linux I2C

On Wed, Jul 22, 2020 at 4:50 AM Wolfram Sang <wsa@kernel.org> wrote:
>
> On Fri, Jul 17, 2020 at 10:04:07AM -0600, Rob Herring wrote:
> > The i2c-gpio binding is the only case of 'not: true' being used for a
> > deprecated property. Update it to use the json-schema 2019.09
> > 'deprecated' keyword instead. Define the type too in order to keep the
> > meta-schema happy.
> >
> > This will disable warnings for these properties until the dtschema tools
> > are updated to handle 'deprecated', but they are only used in a few at91
> > dts files.
> >
> > Cc: Wolfram Sang <wolfram@the-dreams.de>
> > Cc: linux-i2c@vger.kernel.org
> > Signed-off-by: Rob Herring <robh@kernel.org>
>
> Your tree or mine? for the latter case:
>
> Acked-by: Wolfram Sang <wsa@kernel.org>

Thanks, I've applied it.

Rob

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2020-07-22 14:51 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-07-17 16:04 [PATCH] dt-bindings: i2c-gpio: Use 'deprecated' keyword on deprecated properties Rob Herring
2020-07-22 10:50 ` Wolfram Sang
2020-07-22 14:50   ` Rob Herring

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).