dts: bindings: Rename compatible infineon,xmc4-i2c->infineon,xmc4xxx-i2c
To be consistent with other xmc4xxx drivers. A few other device tree changes: - Rename clock signal option as it's handled by DX1. - Remove clock-frequency option as it's already added in i2c-controller.yaml, and interrupts is already defined as array in base.yaml. Signed-off-by: Andriy Gelman <andriy.gelman@gmail.com>
This commit is contained in:
parent
16c40b16f3
commit
d330d97997
4 changed files with 15 additions and 25 deletions
|
@ -8,12 +8,10 @@
|
|||
menuconfig I2C_INFINEON_XMC4
|
||||
bool "Infineon XMC4 I2C driver"
|
||||
default y
|
||||
depends on DT_HAS_INFINEON_XMC4_I2C_ENABLED
|
||||
depends on DT_HAS_INFINEON_XMC4XXX_I2C_ENABLED
|
||||
help
|
||||
This option enables the I2C driver for Infineon XMC4 family.
|
||||
|
||||
if I2C_INFINEON_XMC4
|
||||
|
||||
config I2C_INFINEON_XMC4_TARGET_BUF
|
||||
int "I2C Target data buffer length"
|
||||
depends on I2C_INFINEON_XMC4
|
||||
|
@ -21,5 +19,3 @@ config I2C_INFINEON_XMC4_TARGET_BUF
|
|||
default 64
|
||||
help
|
||||
Buffer to receive data as an I2C Target.
|
||||
|
||||
endif # I2C_INFINEON_XMC4
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
* @brief I2C driver for Infineon XMC MCU family.
|
||||
*/
|
||||
|
||||
#define DT_DRV_COMPAT infineon_xmc4_i2c
|
||||
#define DT_DRV_COMPAT infineon_xmc4xxx_i2c
|
||||
|
||||
#include <zephyr/logging/log.h>
|
||||
LOG_MODULE_REGISTER(i2c_infineon_xmc4, CONFIG_I2C_LOG_LEVEL);
|
||||
|
|
|
@ -3,9 +3,9 @@
|
|||
#
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
description: Infineon XMC4 I2C
|
||||
description: Infineon XMC4XXX I2C
|
||||
|
||||
compatible: "infineon,xmc4-i2c"
|
||||
compatible: "infineon,xmc4xxx-i2c"
|
||||
|
||||
include: [i2c-controller.yaml, pinctrl-device.yaml]
|
||||
|
||||
|
@ -16,19 +16,19 @@ properties:
|
|||
|
||||
scl-src:
|
||||
description: |
|
||||
Connects the I2C clock line (USIC DX0 input) to a specific GPIO pin.
|
||||
The USIC DX0 input is a multiplexer which connects to different GPIO pins.
|
||||
Connects the I2C clock line (USIC DX1 input) to a specific GPIO pin.
|
||||
The USIC DX1 input is a multiplexer which connects to different GPIO pins.
|
||||
Refer to the XMC4XXX reference manual for the GPIO pin/mux mappings.
|
||||
type: string
|
||||
required: true
|
||||
enum:
|
||||
- "DX0A"
|
||||
- "DX0B"
|
||||
- "DX0C"
|
||||
- "DX0D"
|
||||
- "DX0E"
|
||||
- "DX0F"
|
||||
- "DX0G"
|
||||
- "DX1A"
|
||||
- "DX1B"
|
||||
- "DX1C"
|
||||
- "DX1D"
|
||||
- "DX1E"
|
||||
- "DX1F"
|
||||
- "DX1G"
|
||||
|
||||
sda-src:
|
||||
description: |
|
||||
|
@ -47,7 +47,6 @@ properties:
|
|||
- "DX0G"
|
||||
|
||||
interrupts:
|
||||
type: array
|
||||
required: true
|
||||
description: |
|
||||
IRQ number and priority to use for interrupt driven by I2C.
|
||||
|
@ -70,8 +69,3 @@ properties:
|
|||
|
||||
pinctrl-names:
|
||||
required: true
|
||||
|
||||
clock-frequency:
|
||||
type: int
|
||||
description: |
|
||||
Frequency that the I2C bus runs
|
|
@ -22,10 +22,10 @@
|
|||
};
|
||||
|
||||
&usic0ch1 {
|
||||
compatible = "infineon,xmc4-i2c";
|
||||
compatible = "infineon,xmc4xxx-i2c";
|
||||
pinctrl-0 = <&i2c_controller_scl_p6_2_u0c1 &i2c_controller_sda_p3_13_u0c1>;
|
||||
pinctrl-names = "default";
|
||||
scl-src = "DX0C";
|
||||
scl-src = "DX1C";
|
||||
sda-src = "DX0D";
|
||||
interrupts = <86 1>;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue