Skip to content

Commit 524fe76

Browse files
talih0carlescufi
authored andcommitted
boards: arm: xmc47_relax_kit: Configure usic1ch1 as i2c node
It is the arduino_i2c node on the board. Also remove comment from arduino_r3_connector as the arduino_i2c node can be used. Signed-off-by: Andriy Gelman <[email protected]>
1 parent d330d97 commit 524fe76

File tree

4 files changed

+29
-3
lines changed

4 files changed

+29
-3
lines changed

boards/arm/xmc47_relax_kit/arduino_r3_connector.dtsi

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,4 @@
5656

5757
arduino_spi: &usic2ch0 {};
5858
arduino_serial: &usic1ch0 {};
59-
/* The drivers for i2c not yet implemented. Add placeholder in the */
60-
/* correct usic channel. */
6159
arduino_i2c: &usic1ch1 {};

boards/arm/xmc47_relax_kit/xmc47_relax_kit-pinctrl.dtsi

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,3 +55,13 @@
5555
drive-push-pull;
5656
hwctrl = "disabled";
5757
};
58+
59+
&i2c_controller_scl_p0_13_u1c1 {
60+
drive-strength = "strong-sharp-edge";
61+
hwctrl = "disabled";
62+
};
63+
64+
&i2c_controller_sda_p3_15_u1c1 {
65+
drive-strength = "strong-soft-edge";
66+
hwctrl = "disabled";
67+
};

boards/arm/xmc47_relax_kit/xmc47_relax_kit.dts

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,20 @@
130130
#size-cells = <0>;
131131
};
132132

133+
&usic1ch1 {
134+
compatible = "infineon,xmc4xxx-i2c";
135+
status = "okay";
136+
137+
pinctrl-0 = <&i2c_controller_scl_p0_13_u1c1 &i2c_controller_sda_p3_15_u1c1>;
138+
pinctrl-names = "default";
139+
scl-src = "DX1B";
140+
sda-src = "DX0A";
141+
interrupts = <94 1>;
142+
143+
#address-cells = <1>;
144+
#size-cells = <0>;
145+
};
146+
133147
&adc0 {
134148
vref-internal-mv = <3300>;
135149
};

tests/drivers/uart/uart_async_api/boards/xmc47_relax_kit.overlay

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,11 @@
44

55
dut: &usic1ch1 {
66
compatible = "infineon,xmc4xxx-uart";
7+
status = "okay";
8+
9+
/delete-property/ scl-src;
10+
/delete-property/ sda-src;
11+
712
current-speed = <921600>;
813
interrupts = <90 1 91 1>;
914
interrupt-names = "tx", "rx";
@@ -15,7 +20,6 @@ dut: &usic1ch1 {
1520
fifo-start-offset = <0>;
1621
fifo-tx-size = <0>;
1722
fifo-rx-size = <0>;
18-
status = "okay";
1923
};
2024

2125
&uart_tx_p3_15_u1c1 {

0 commit comments

Comments
 (0)