File tree Expand file tree Collapse file tree 4 files changed +15
-25
lines changed
tests/drivers/i2c/i2c_api/boards Expand file tree Collapse file tree 4 files changed +15
-25
lines changed Original file line number Diff line number Diff line change 8
8
menuconfig I2C_INFINEON_XMC4
9
9
bool "Infineon XMC4 I2C driver"
10
10
default y
11
- depends on DT_HAS_INFINEON_XMC4_I2C_ENABLED
11
+ depends on DT_HAS_INFINEON_XMC4XXX_I2C_ENABLED
12
12
help
13
13
This option enables the I2C driver for Infineon XMC4 family.
14
14
15
- if I2C_INFINEON_XMC4
16
-
17
15
config I2C_INFINEON_XMC4_TARGET_BUF
18
16
int "I2C Target data buffer length"
19
17
depends on I2C_INFINEON_XMC4
20
18
range 1 1024
21
19
default 64
22
20
help
23
21
Buffer to receive data as an I2C Target.
24
-
25
- endif # I2C_INFINEON_XMC4
Original file line number Diff line number Diff line change 9
9
* @brief I2C driver for Infineon XMC MCU family.
10
10
*/
11
11
12
- #define DT_DRV_COMPAT infineon_xmc4_i2c
12
+ #define DT_DRV_COMPAT infineon_xmc4xxx_i2c
13
13
14
14
#include <zephyr/logging/log.h>
15
15
LOG_MODULE_REGISTER (i2c_infineon_xmc4 , CONFIG_I2C_LOG_LEVEL );
Original file line number Diff line number Diff line change 3
3
#
4
4
# SPDX-License-Identifier: Apache-2.0
5
5
6
- description : Infineon XMC4 I2C
6
+ description : Infineon XMC4XXX I2C
7
7
8
- compatible : " infineon,xmc4 -i2c"
8
+ compatible : " infineon,xmc4xxx -i2c"
9
9
10
10
include : [i2c-controller.yaml, pinctrl-device.yaml]
11
11
@@ -16,19 +16,19 @@ properties:
16
16
17
17
scl-src :
18
18
description : |
19
- Connects the I2C clock line (USIC DX0 input) to a specific GPIO pin.
20
- The USIC DX0 input is a multiplexer which connects to different GPIO pins.
19
+ Connects the I2C clock line (USIC DX1 input) to a specific GPIO pin.
20
+ The USIC DX1 input is a multiplexer which connects to different GPIO pins.
21
21
Refer to the XMC4XXX reference manual for the GPIO pin/mux mappings.
22
22
type : string
23
23
required : true
24
24
enum :
25
- - " DX0A "
26
- - " DX0B "
27
- - " DX0C "
28
- - " DX0D "
29
- - " DX0E "
30
- - " DX0F "
31
- - " DX0G "
25
+ - " DX1A "
26
+ - " DX1B "
27
+ - " DX1C "
28
+ - " DX1D "
29
+ - " DX1E "
30
+ - " DX1F "
31
+ - " DX1G "
32
32
33
33
sda-src :
34
34
description : |
@@ -47,7 +47,6 @@ properties:
47
47
- " DX0G"
48
48
49
49
interrupts :
50
- type : array
51
50
required : true
52
51
description : |
53
52
IRQ number and priority to use for interrupt driven by I2C.
@@ -70,8 +69,3 @@ properties:
70
69
71
70
pinctrl-names :
72
71
required : true
73
-
74
- clock-frequency :
75
- type : int
76
- description : |
77
- Frequency that the I2C bus runs
Original file line number Diff line number Diff line change 22
22
};
23
23
24
24
&usic0ch1 {
25
- compatible = "infineon,xmc4 -i2c";
25
+ compatible = "infineon,xmc4xxx -i2c";
26
26
pinctrl-0 = <&i2c_controller_scl_p6_2_u0c1 &i2c_controller_sda_p3_13_u0c1>;
27
27
pinctrl-names = "default";
28
- scl-src = "DX0C ";
28
+ scl-src = "DX1C ";
29
29
sda-src = "DX0D";
30
30
interrupts = <86 1>;
31
31
You can’t perform that action at this time.
0 commit comments