drivers: i2c: Add support for Apollo3 SoCs I2C

This commit adds support for the I2C which
can be found in Apollo3 SoCs, it can work in
both DMA and non-DMA modes

Signed-off-by: Hao Luo <hluo@ambiq.com>
This commit is contained in:
Hao Luo 2024-01-10 15:15:29 +08:00 committed by Anas Nashif
commit c8ae26549d
8 changed files with 170 additions and 29 deletions

View file

@ -95,6 +95,14 @@
status = "okay";
};
&i2c3 {
compatible = "ambiq,i2c";
pinctrl-0 = <&i2c3_default>;
pinctrl-names = "default";
clock-frequency = <I2C_BITRATE_STANDARD>;
status = "okay";
};
&gpio0_31 {
status = "okay";
};

View file

@ -11,6 +11,7 @@ supported:
- uart
- watchdog
- gpio
- i2c
testing:
ignore_tags:
- net

View file

@ -95,6 +95,14 @@
status = "okay";
};
&i2c3 {
compatible = "ambiq,i2c";
pinctrl-0 = <&i2c3_default>;
pinctrl-names = "default";
clock-frequency = <I2C_BITRATE_STANDARD>;
status = "okay";
};
&gpio0_31 {
status = "okay";
};

View file

@ -11,6 +11,7 @@ supported:
- uart
- watchdog
- gpio
- i2c
testing:
ignore_tags:
- net