drivers: Add Atmel SAM family I2C (TWI) driver
Added I2C bus (TWI) driver for Atmel SAM MCU family. Only I2C Master Mode with 7 bit addressing is currently supported. Tested on Arduino Due board. Origin: Original Signed-off-by: Piotr Mienkowski <piotr.mienkowski@gmail.com>
This commit is contained in:
parent
39e1497f1d
commit
26ba99e972
14 changed files with 557 additions and 8 deletions
|
@ -5,6 +5,7 @@
|
|||
*/
|
||||
|
||||
#include <arm/armv7-m.dtsi>
|
||||
#include <dt-bindings/i2c/i2c.h>
|
||||
|
||||
/ {
|
||||
cpus {
|
||||
|
@ -29,6 +30,26 @@
|
|||
};
|
||||
|
||||
soc {
|
||||
i2c0: i2c@4008C000 {
|
||||
compatible = "atmel,sam-i2c-twi";
|
||||
clock-frequency = <I2C_BITRATE_STANDARD>;
|
||||
reg = <0x4008C000 0x128>;
|
||||
interrupts = <22 0>;
|
||||
peripheral-id = <22>;
|
||||
label = "I2C_0";
|
||||
status = "disabled";
|
||||
};
|
||||
|
||||
i2c1: i2c@40090000 {
|
||||
compatible = "atmel,sam-i2c-twi";
|
||||
clock-frequency = <I2C_BITRATE_STANDARD>;
|
||||
reg = <0x40090000 0x128>;
|
||||
interrupts = <23 0>;
|
||||
peripheral-id = <23>;
|
||||
label = "I2C_1";
|
||||
status = "disabled";
|
||||
};
|
||||
|
||||
uart0: uart@400E0800 {
|
||||
compatible = "atmel,sam-uart";
|
||||
reg = <0x400E0800 0x124>;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue