Skip to content

Commit

Permalink
boards: ti: lp_em_cc2340r5: Add I2C support
Browse files Browse the repository at this point in the history
Enable I2C for TI lp_em_cc2340r5.

Signed-off-by: Stoyan Bogdanov <[email protected]>
  • Loading branch information
bogdanovs committed Jan 24, 2025
1 parent dfc3415 commit c5f2267
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 0 deletions.
14 changes: 14 additions & 0 deletions boards/ti/lp_em_cc2340r5/lp_em_cc2340r5-pinctrl.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,18 @@
bias-disable;
input-enable;
};

/* I2C0 */
i2c0_scl_default: i2c0_scl_default {
pinmux = <24 DIO24_I2C0_SCL>;
bias-pull-up;
drive-open-drain;
input-enable;
};
i2c0_sda_default: i2c0_sda_default {
pinmux = <0 DIO0_I2C0_SDA>;
bias-pull-up;
drive-open-drain;
input-enable;
};
};
8 changes: 8 additions & 0 deletions boards/ti/lp_em_cc2340r5/lp_em_cc2340r5.dts
Original file line number Diff line number Diff line change
Expand Up @@ -73,3 +73,11 @@
pinctrl-0 = <&uart0_rx_default &uart0_tx_default>;
pinctrl-names = "default";
};

&i2c0 {
status = "okay";
pinctrl-0 = <&i2c0_scl_default
&i2c0_sda_default>;
clock-frequency = <100000>;
pinctrl-names = "default";
};

0 comments on commit c5f2267

Please sign in to comment.