GPIO bitbanged I2C

Schema identifier ($id): "http://devicetree.org/schemas/i2c/i2c-gpio.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Wolfram Sang <wsa@kernel.org>"

All of these rules must match (allOf) #

Rule 1 #

Shared schema rule ($ref): /schemas/i2c/i2c-controller.yaml#

Properties and child nodes (properties) #

compatible — required here #

Array item rules (items) #

Item 1

Exact value (const): "i2c-gpio"

sda-gpios — required here #

gpio used for the sda signal, this should be flagged as active high using open drain with (GPIO_ACTIVE_HIGH|GPIO_OPEN_DRAIN) from <dt-bindings/gpio/gpio.h> since the signal is by definition open drain.

Maximum number of items (maxItems): 1

scl-gpios — required here #

gpio used for the scl signal, this should be flagged as active high using open drain with (GPIO_ACTIVE_HIGH|GPIO_OPEN_DRAIN) from <dt-bindings/gpio/gpio.h> since the signal is by definition open drain.

Maximum number of items (maxItems): 1

i2c-gpio,sda-output-only — not listed as required here #

sda as output only

Value type (type): "boolean"

i2c-gpio,scl-output-only — not listed as required here #

scl as output only

Value type (type): "boolean"

i2c-gpio,delay-us — not listed as required here #

delay between GPIO operations (may depend on each platform)

i2c-gpio,timeout-ms — not listed as required here #

timeout to get data

gpios — not listed as required here #

Minimum number of items (minItems): 2

Maximum number of items (maxItems): 2

sda and scl gpio, alternative for {sda,scl}-gpios

i2c-gpio,sda-open-drain — not listed as required here #

Value type (type): "boolean"

Deprecated (deprecated): true

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 — not listed as required here #

Value type (type): "boolean"

Deprecated (deprecated): true

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.

i2c-gpio,sda-has-no-pullup — not listed as required here #

Value type (type): "boolean"

sda is used in a non-compliant way and has no pull-up. Therefore disable open-drain. This property is mutually-exclusive with i2c-gpio,sda-open-drain.

i2c-gpio,scl-has-no-pullup — not listed as required here #

Value type (type): "boolean"

scl is used in a non-compliant way and has no pull-up. Therefore disable open-drain. This property is mutually-exclusive with i2c-gpio,scl-open-drain.

Property dependencies (dependencies) #

i2c-gpio,sda-has-no-pullup — applies when this property is present #

This rule must not match (not) #

Required in this object (required): "i2c-gpio,sda-open-drain"

i2c-gpio,scl-has-no-pullup — applies when this property is present #

This rule must not match (not) #

Required in this object (required): "i2c-gpio,scl-open-drain"

Required in this object (required): "compatible", "sda-gpios", "scl-gpios"

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: GPL-2.0

Line 50: Deprecated properties, do not use in new device tree sources:

Edit this page