Back to home page

OSCL-LXR

 
 

    


0001 # SPDX-License-Identifier: GPL-2.0
0002 %YAML 1.2
0003 ---
0004 $id: http://devicetree.org/schemas/i2c/i2c-gpio.yaml#
0005 $schema: http://devicetree.org/meta-schemas/core.yaml#
0006 
0007 title: Bindings for GPIO bitbanged I2C
0008 
0009 maintainers:
0010   - Wolfram Sang <wsa@kernel.org>
0011 
0012 allOf:
0013   - $ref: /schemas/i2c/i2c-controller.yaml#
0014 
0015 properties:
0016   compatible:
0017     items:
0018       - const: i2c-gpio
0019 
0020   sda-gpios:
0021     description:
0022       gpio used for the sda signal, this should be flagged as
0023       active high using open drain with (GPIO_ACTIVE_HIGH|GPIO_OPEN_DRAIN)
0024       from <dt-bindings/gpio/gpio.h> since the signal is by definition
0025       open drain.
0026     maxItems: 1
0027 
0028   scl-gpios:
0029     description:
0030       gpio used for the scl signal, this should be flagged as
0031       active high using open drain with (GPIO_ACTIVE_HIGH|GPIO_OPEN_DRAIN)
0032       from <dt-bindings/gpio/gpio.h> since the signal is by definition
0033       open drain.
0034     maxItems: 1
0035 
0036   i2c-gpio,scl-output-only:
0037     description: scl as output only
0038     type: boolean
0039 
0040   i2c-gpio,delay-us:
0041     description: delay between GPIO operations (may depend on each platform)
0042 
0043   i2c-gpio,timeout-ms:
0044     description: timeout to get data
0045 
0046   # Deprecated properties, do not use in new device tree sources:
0047   gpios:
0048     minItems: 2
0049     maxItems: 2
0050     description: sda and scl gpio, alternative for {sda,scl}-gpios
0051 
0052   i2c-gpio,sda-open-drain:
0053     type: boolean
0054     deprecated: true
0055     description: this means that something outside of our control has put
0056       the GPIO line used for SDA into open drain mode, and that something is
0057       not the GPIO chip. It is essentially an inconsistency flag.
0058 
0059   i2c-gpio,scl-open-drain:
0060     type: boolean
0061     deprecated: true
0062     description: this means that something outside of our control has put the
0063       GPIO line used for SCL into open drain mode, and that something is not
0064       the GPIO chip. It is essentially an inconsistency flag.
0065 
0066 required:
0067   - compatible
0068   - sda-gpios
0069   - scl-gpios
0070 
0071 unevaluatedProperties: false
0072 
0073 ...