Skip to content

Commit 30021e3

Browse files
bengalWolfram Sang
authored andcommitted
i2c: add support for Amlogic Meson I2C controller
This is a driver for the I2C controller found in Amlogic Meson SoCs. Signed-off-by: Beniamino Galvani <[email protected]> Signed-off-by: Wolfram Sang <[email protected]>
1 parent c9449af commit 30021e3

File tree

4 files changed

+524
-0
lines changed

4 files changed

+524
-0
lines changed
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
Amlogic Meson I2C controller
2+
3+
Required properties:
4+
- compatible: must be "amlogic,meson6-i2c"
5+
- reg: physical address and length of the device registers
6+
- interrupts: a single interrupt specifier
7+
- clocks: clock for the device
8+
- #address-cells: should be <1>
9+
- #size-cells: should be <0>
10+
11+
Optional properties:
12+
- clock-frequency: the desired I2C bus clock frequency in Hz; in
13+
absence of this property the default value is used (100 kHz).
14+
15+
Examples:
16+
17+
i2c@c8100500 {
18+
compatible = "amlogic,meson6-i2c";
19+
reg = <0xc8100500 0x20>;
20+
interrupts = <0 92 1>;
21+
clocks = <&clk81>;
22+
#address-cells = <1>;
23+
#size-cells = <0>;
24+
};

drivers/i2c/busses/Kconfig

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -564,6 +564,13 @@ config I2C_KEMPLD
564564
This driver can also be built as a module. If so, the module
565565
will be called i2c-kempld.
566566

567+
config I2C_MESON
568+
tristate "Amlogic Meson I2C controller"
569+
depends on ARCH_MESON
570+
help
571+
If you say yes to this option, support will be included for the
572+
I2C interface on the Amlogic Meson family of SoCs.
573+
567574
config I2C_MPC
568575
tristate "MPC107/824x/85xx/512x/52xx/83xx/86xx"
569576
depends on PPC

drivers/i2c/busses/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ obj-$(CONFIG_I2C_IMG) += i2c-img-scb.o
5454
obj-$(CONFIG_I2C_IMX) += i2c-imx.o
5555
obj-$(CONFIG_I2C_IOP3XX) += i2c-iop3xx.o
5656
obj-$(CONFIG_I2C_KEMPLD) += i2c-kempld.o
57+
obj-$(CONFIG_I2C_MESON) += i2c-meson.o
5758
obj-$(CONFIG_I2C_MPC) += i2c-mpc.o
5859
obj-$(CONFIG_I2C_MV64XXX) += i2c-mv64xxx.o
5960
obj-$(CONFIG_I2C_MXS) += i2c-mxs.o

0 commit comments

Comments
 (0)