i2c: add support for Amlogic Meson I2C controller
authorBeniamino Galvani <b.galvani@gmail.com>
Thu, 13 Nov 2014 19:32:01 +0000 (20:32 +0100)
committerWolfram Sang <wsa@the-dreams.de>
Tue, 18 Nov 2014 15:16:44 +0000 (16:16 +0100)
This is a driver for the I2C controller found in Amlogic Meson SoCs.

Signed-off-by: Beniamino Galvani <b.galvani@gmail.com>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
Documentation/devicetree/bindings/i2c/i2c-meson.txt [new file with mode: 0644]
drivers/i2c/busses/Kconfig
drivers/i2c/busses/Makefile
drivers/i2c/busses/i2c-meson.c [new file with mode: 0644]

diff --git a/Documentation/devicetree/bindings/i2c/i2c-meson.txt b/Documentation/devicetree/bindings/i2c/i2c-meson.txt
new file mode 100644 (file)
index 0000000..682f9a6
--- /dev/null
@@ -0,0 +1,24 @@
+Amlogic Meson I2C controller
+
+Required properties:
+ - compatible: must be "amlogic,meson6-i2c"
+ - reg: physical address and length of the device registers
+ - interrupts: a single interrupt specifier
+ - clocks: clock for the device
+ - #address-cells: should be <1>
+ - #size-cells: should be <0>
+
+Optional properties:
+- clock-frequency: the desired I2C bus clock frequency in Hz; in
+  absence of this property the default value is used (100 kHz).
+
+Examples:
+
+       i2c@c8100500 {
+               compatible = "amlogic,meson6-i2c";
+               reg = <0xc8100500 0x20>;
+               interrupts = <0 92 1>;
+               clocks = <&clk81>;
+               #address-cells = <1>;
+               #size-cells = <0>;
+       };
Simple merge
Simple merge
Simple merge