Microchip: MEC172x: I2C driver

Microchip MEC172x series I2C driver implementing controller
and target modes. The driver implemenents its own I2C port
pin control functions and does not depended upon pinmux. Future
updates will make use of PINCTRL when that subystem is finalized.

Signed-off-by: Scott Worley <scott.worley@microchip.com>
This commit is contained in:
Scott Worley 2021-08-06 13:36:41 -04:00 committed by Anas Nashif
commit 145673d57a
9 changed files with 1280 additions and 1 deletions

View file

@ -21,6 +21,9 @@
aliases {
led0 = &led4;
led1 = &led3;
i2c0 = &i2c_smb_0;
i2c1 = &i2c_smb_1;
i2c7 = &i2c_smb_2;
};
leds {
@ -67,3 +70,38 @@
&adc0 {
status = "okay";
};
&i2c_smb_0 {
status = "okay";
label = "I2C0";
port_sel = <0>;
pca9555@26 {
compatible = "nxp,pca95xx";
label = "GPIO_P0";
/* Depends on JP53 for device address.
* Pin 1-2 = A0, pin 3-4 = A1, pin 5-6 = A2.
* Address is: 0100<A2><A1><A0>b.
*
* Default has pin 1-2 on JP53 connected,
* resulting in device address 0x26.
*/
reg = <0x26>;
gpio-controller;
#gpio-cells = <2>;
};
};
&i2c_smb_1 {
status = "okay";
label = "I2C1";
port_sel = <1>;
};
&i2c_smb_2 {
status = "okay";
label = "I2C7";
port_sel = <7>;
};

View file

@ -16,3 +16,4 @@ flash: 352
supported:
- gpio
- pinmux
- i2c

View file

@ -16,3 +16,4 @@ CONFIG_SERIAL=y
CONFIG_CONSOLE=y
CONFIG_UART_CONSOLE=y
CONFIG_ADC=y
CONFIG_I2C=y