blob: 388f0a275fbacb4602b830889afb3643212231f4 [file] [log] [blame]
Ludovic Desroches70d46a22012-09-12 08:42:14 +02001I2C for Atmel platforms
2
3Required properties :
4- compatible : Must be "atmel,at91rm9200-i2c", "atmel,at91sam9261-i2c",
5 "atmel,at91sam9260-i2c", "atmel,at91sam9g20-i2c", "atmel,at91sam9g10-i2c"
6 or "atmel,at91sam9x5-i2c"
7- reg: physical base address of the controller and length of memory mapped
8 region.
9- interrupts: interrupt number to the cpu.
10- #address-cells = <1>;
11- #size-cells = <0>;
Boris BREZILLONc21e5c72013-12-17 16:54:04 +010012- clocks: phandles to input clocks.
Ludovic Desroches70d46a22012-09-12 08:42:14 +020013
14Optional properties:
Marek Roszko75b6c4b2014-03-11 00:25:38 -040015- clock-frequency: Desired I2C bus frequency in Hz, otherwise defaults to 100000
Ludovic Desroches70d46a22012-09-12 08:42:14 +020016- Child nodes conforming to i2c bus binding
17
18Examples :
19
20i2c0: i2c@fff84000 {
21 compatible = "atmel,at91sam9g20-i2c";
22 reg = <0xfff84000 0x100>;
23 interrupts = <12 4 6>;
24 #address-cells = <1>;
25 #size-cells = <0>;
Boris BREZILLONc21e5c72013-12-17 16:54:04 +010026 clocks = <&twi0_clk>;
Marek Roszko75b6c4b2014-03-11 00:25:38 -040027 clock-frequency = <400000>;
Ludovic Desroches70d46a22012-09-12 08:42:14 +020028
29 24c512@50 {
30 compatible = "24c512";
31 reg = <0x50>;
32 pagesize = <128>;
33 }
34}