Browse Source

dts: binding: i2c: Update description for Infineon CAT1 i2c driver

- added example of usage Infineon CAT1 i2c driver
- added note that pinctrl nodes need to be configured
  as open-drain and input-enable.

Signed-off-by: Nazar Palamar <nazar.palamar@infineon.com>
pull/65312/head
Nazar Palamar 2 years ago committed by Carles Cufí
parent
commit
47ad8f047c
  1. 37
      dts/bindings/i2c/infineon,cat1-i2c.yaml

37
dts/bindings/i2c/infineon,cat1-i2c.yaml

@ -3,7 +3,42 @@ @@ -3,7 +3,42 @@
#
# SPDX-License-Identifier: Apache-2.0
description: Infineon CAT1 I2C
description: |
Infineon CAT1 I2C driver
This driver configures the SCB as an I2C device.
Example devicetree configuration with vl53l0x Time-of-Flight (ToF)
ranging sensor connected on the bus:
i2c3: &scb3 {
compatible = "infineon,cat1-i2c";
status = "okay";
#address-cells = <1>;
#size-cells = <0>;
pinctrl-0 = <&p6_0_scb3_i2c_scl &p6_1_scb3_i2c_sda>;
pinctrl-names = "default";
vl53l0x@29 {
compatible = "st,vl53l0x";
reg = <0x29>;
};
};
The pinctrl nodes need to be configured as open-drain and
input-enable:
&p6_0_scb3_i2c_scl {
drive-open-drain;
input-enable;
};
&p6_1_scb3_i2c_sda {
drive-open-drain;
input-enable;
};
compatible: "infineon,cat1-i2c"

Loading…
Cancel
Save