Path: blob/master/Documentation/devicetree/bindings/i2c/i2c-gpio.yaml
26307 views
# SPDX-License-Identifier: GPL-2.01%YAML 1.22---3$id: http://devicetree.org/schemas/i2c/i2c-gpio.yaml#4$schema: http://devicetree.org/meta-schemas/core.yaml#56title: GPIO bitbanged I2C78maintainers:9- Wolfram Sang <wsa@kernel.org>1011allOf:12- $ref: /schemas/i2c/i2c-controller.yaml#1314properties:15compatible:16items:17- const: i2c-gpio1819sda-gpios:20description:21gpio used for the sda signal, this should be flagged as22active high using open drain with (GPIO_ACTIVE_HIGH|GPIO_OPEN_DRAIN)23from <dt-bindings/gpio/gpio.h> since the signal is by definition24open drain.25maxItems: 12627scl-gpios:28description:29gpio used for the scl signal, this should be flagged as30active high using open drain with (GPIO_ACTIVE_HIGH|GPIO_OPEN_DRAIN)31from <dt-bindings/gpio/gpio.h> since the signal is by definition32open drain.33maxItems: 13435i2c-gpio,sda-output-only:36description: sda as output only37type: boolean3839i2c-gpio,scl-output-only:40description: scl as output only41type: boolean4243i2c-gpio,delay-us:44description: delay between GPIO operations (may depend on each platform)4546i2c-gpio,timeout-ms:47description: timeout to get data4849# Deprecated properties, do not use in new device tree sources:50gpios:51minItems: 252maxItems: 253description: sda and scl gpio, alternative for {sda,scl}-gpios5455i2c-gpio,sda-open-drain:56type: boolean57deprecated: true58description: this means that something outside of our control has put59the GPIO line used for SDA into open drain mode, and that something is60not the GPIO chip. It is essentially an inconsistency flag.6162i2c-gpio,scl-open-drain:63type: boolean64deprecated: true65description: this means that something outside of our control has put the66GPIO line used for SCL into open drain mode, and that something is not67the GPIO chip. It is essentially an inconsistency flag.6869i2c-gpio,sda-has-no-pullup:70type: boolean71description: sda is used in a non-compliant way and has no pull-up.72Therefore disable open-drain. This property is mutually-exclusive73with i2c-gpio,sda-open-drain.7475i2c-gpio,scl-has-no-pullup:76type: boolean77description: scl is used in a non-compliant way and has no pull-up.78Therefore disable open-drain. This property is mutually-exclusive79with i2c-gpio,scl-open-drain.8081dependencies:82i2c-gpio,sda-has-no-pullup:83not:84required:85- i2c-gpio,sda-open-drain86i2c-gpio,scl-has-no-pullup:87not:88required:89- i2c-gpio,scl-open-drain9091required:92- compatible93- sda-gpios94- scl-gpios9596unevaluatedProperties: false9798...99100101