i2c: add support for g12b
authorJian Hu <jian.hu@amlogic.com>
Fri, 25 May 2018 09:09:08 +0000 (17:09 +0800)
committerYixun Lan <yixun.lan@amlogic.com>
Fri, 29 Jun 2018 06:48:50 +0000 (23:48 -0700)
PD#165090: i2c: add support for g12b

Change-Id: I2240e361dff3e3d56898ffb4f43c1ad4cadd3912
Signed-off-by: Jian Hu <jian.hu@amlogic.com>
Documentation/devicetree/bindings/amlogic/i2c-meson.txt
drivers/amlogic/i2c/i2c-meson-master.c

index a5fca5d..0221c91 100644 (file)
@@ -7,6 +7,7 @@ Required properties:
                                        or "amlogic,meson-txlx-i2c"
                                        or "amlogic,meson8b-i2c"
                                        or "amlogic,meson-g12a-i2c"
+                                       or "amlogic,meson-g12b-i2c"
 
  - reg: physical address and length of the device registers
  - interrupts: a single interrupt specifier
index 9210272..bd31133 100644 (file)
@@ -673,6 +673,7 @@ static const struct of_device_id meson_i2c_match[] = {
        { .compatible = "amlogic,meson-axg-i2c", .data = &i2c_axg_data },
        { .compatible = "amlogic,meson-txlx-i2c", .data = &i2c_txlx_data },
        { .compatible = "amlogic,meson-g12a-i2c", .data = &i2c_g12a_data },
+       { .compatible = "amlogic,meson-g12b-i2c", .data = &i2c_g12a_data },
        {},
 };
 MODULE_DEVICE_TABLE(of, meson_i2c_match);