Skip to content

Commit a451c3b

Browse files
committed
dt-bindings: i2c-gpio: Use 'deprecated' keyword on deprecated properties
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 <[email protected]> Cc: [email protected] Signed-off-by: Rob Herring <[email protected]>
1 parent f7dcfea commit a451c3b

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Documentation/devicetree/bindings/i2c/i2c-gpio.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -52,15 +52,15 @@ properties:
5252
description: sda and scl gpio, alternative for {sda,scl}-gpios
5353

5454
i2c-gpio,sda-open-drain:
55-
# Generate a warning if present
56-
not: true
55+
type: boolean
56+
deprecated: true
5757
description: this means that something outside of our control has put
5858
the GPIO line used for SDA into open drain mode, and that something is
5959
not the GPIO chip. It is essentially an inconsistency flag.
6060

6161
i2c-gpio,scl-open-drain:
62-
# Generate a warning if present
63-
not: true
62+
type: boolean
63+
deprecated: true
6464
description: this means that something outside of our control has put the
6565
GPIO line used for SCL into open drain mode, and that something is not
6666
the GPIO chip. It is essentially an inconsistency flag.

0 commit comments

Comments
 (0)