Skip to content

Commit

Permalink
dts: binding: i2c: Update description for Infineon CAT1 i2c driver
Browse files Browse the repository at this point in the history
- 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 <[email protected]>
  • Loading branch information
npal-cy authored and carlescufi committed Nov 16, 2023
1 parent de4fc8b commit 47ad8f0
Showing 1 changed file with 36 additions and 1 deletion.
37 changes: 36 additions & 1 deletion dts/bindings/i2c/infineon,cat1-i2c.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down

0 comments on commit 47ad8f0

Please sign in to comment.