Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion api_support_tracking.md
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@
| `test_spi_connected2_masterpingpong` | SPI | 🟢 |
| `test_spi_connected2_slavepingpong` | SPI | 🟢 |
| **I2C (Wire)** | | |
| `test_wire_connected1_pingpong` | I2C/Wire | ❌ |
| `test_wire_connected1_pingpong` | I2C/Wire | ✅ |
| `test_wire_connected2_masterpingpong` | I2C/Wire | 🟢 |
| `test_wire_connected2_slavepingpong` | I2C/Wire | 🟢 |
| **CAN** | | |
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -126,12 +126,12 @@ i2c1: &scb5 {

&peri0_group1_16bit_1 {
status = "okay";
clock-div = <1>;
clock-div = <63>;
};

&peri0_group1_16bit_3 {
status = "okay";
clock-div = <1>;
clock-div = <63>;
};

&p8_0_scb0_i2c_scl {
Expand All @@ -154,6 +154,30 @@ i2c1: &scb5 {
input-enable;
};

/* Wire on header P17_2(SCL)/P17_3(SDA); on-board 4.7k pull-ups only on P17_0/P17_1 - jumper to them or add external */
&scb11 {
compatible = "infineon,i2c";
status = "okay";
#address-cells = <1>;
#size-cells = <0>;
clock-frequency = <100000>;

clocks = <&peri0_group1_16bit_1>;

pinctrl-0 = <&p17_2_scb11_i2c_scl &p17_3_scb11_i2c_sda>;

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Here you have updated but still variant.h points to the #define SDA 43 /< P8_1 */
#define SCL 42 /
< P8_0 */. So that should be changed right?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes. thanks to point out. This is missed, i will update it!

pinctrl-names = "default";
};

&p17_2_scb11_i2c_scl {
drive-open-drain;
input-enable;
};

&p17_3_scb11_i2c_sda {
drive-open-drain;
input-enable;
};

/* ------------------------------------------------------------------ */
/* UART1 bus - SCB1 on P9_2(TX) / P9_3(RX) */
/* Exposed as Arduino Serial1 via zephyr,user.serials */
Expand Down Expand Up @@ -322,7 +346,7 @@ spi1: &scb10 {
<&gpio_prt20 6 GPIO_ACTIVE_HIGH>; /* LED_RGB_RED */

serials = <&uart2 &uart1>;
i2cs = <&i2c0 &i2c1>;
i2cs = <&scb11 &i2c1>;
spis = <&spi1>;
};
};
Loading