Skip to content

Commit cda6ccf

Browse files
committed
boards: add i2c nodes for boards
Adds I2C peripheral for launchpad use. Signed-off-by: Dylan Philpot <[email protected]>
1 parent 6c06aae commit cda6ccf

File tree

6 files changed

+27
-0
lines changed

6 files changed

+27
-0
lines changed

boards/ti/lp_mspm0g3507/lp_mspm0g3507.dts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,3 +125,9 @@
125125
ti,pwm-mode = "EDGE_ALIGN";
126126
ti,period = <1000>;
127127
};
128+
129+
&i2c1 {
130+
pinctrl-0 = <&i2c1_scl_pa17 &i2c1_sda_pa16>;
131+
pinctrl-names = "default";
132+
status = "okay";
133+
};

boards/ti/lp_mspm0g3507/lp_mspm0g3507_defconfig

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,6 @@ CONFIG_CONSOLE=y
88
CONFIG_UART_CONSOLE=y
99

1010
CONFIG_CLOCK_CONTROL=y
11+
12+
# Enable I2C driver
13+
CONFIG_I2C=y

boards/ti/lp_mspm0g3519/lp_mspm0g3519.dts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,3 +105,9 @@
105105
pinctrl-0 = <&uart0_tx_pa10 &uart0_rx_pa11>;
106106
pinctrl-names = "default";
107107
};
108+
109+
&i2c2 {
110+
pinctrl-0 = <&i2c1_scl_pc2 &i2c1_sda_pc3>;
111+
pinctrl-names = "default";
112+
status = "okay";
113+
};

boards/ti/lp_mspm0g3519/lp_mspm0g3519_defconfig

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,6 @@ CONFIG_CONSOLE=y
88
CONFIG_UART_CONSOLE=y
99

1010
CONFIG_CLOCK_CONTROL=y
11+
12+
# Enable I2C driver
13+
CONFIG_I2C=y

boards/ti/lp_mspm0l2228/lp_mspm0l2228.dts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,3 +83,9 @@
8383
pinctrl-0 = <&uart0_tx_pa10 &uart0_rx_pa11>;
8484
pinctrl-names = "default";
8585
};
86+
87+
&i2c0 {
88+
pinctrl-0 = <&i2c1_scl_pa1 &i2c1_sda_pa0>;
89+
pinctrl-names = "default";
90+
status = "okay";
91+
};

boards/ti/lp_mspm0l2228/lp_mspm0l2228_defconfig

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,6 @@ CONFIG_CONSOLE=y
88
CONFIG_UART_CONSOLE=y
99

1010
CONFIG_CLOCK_CONTROL=y
11+
12+
# Enable I2C driver
13+
CONFIG_I2C=y

0 commit comments

Comments
 (0)