i2c: meson: add support for txl
authorJian Hu <jian.hu@amlogic.com>
Mon, 18 Jun 2018 03:42:16 +0000 (11:42 +0800)
committerYixun Lan <yixun.lan@amlogic.com>
Wed, 18 Jul 2018 09:44:34 +0000 (02:44 -0700)
PD#168480: i2c: meson: add support for txl

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

index 0221c91c1fb99b77c174f70aa03cb897a229e5ad..3fdb11b397b74be79a859f94652d47704a8f7632 100644 (file)
@@ -4,6 +4,7 @@ Required properties:
  - compatible: must be "amlogic,meson6-i2c"
                                        or "amlogic,meson-gx-i2c"
                                        or "amlogic,meson-axg-i2c"
+                                       or "amlogic,meson-txl-i2c"
                                        or "amlogic,meson-txlx-i2c"
                                        or "amlogic,meson8b-i2c"
                                        or "amlogic,meson-g12a-i2c"
index bd31133f1785ef7a307032c86b17fd722697f347..85a6b3d2c8bead1e15311dc3602b0ed29f850dcf 100644 (file)
@@ -652,6 +652,11 @@ static const struct meson_i2c_data i2c_gx_data = {
        .delay_ajust = 15,
 };
 
+static const struct meson_i2c_data i2c_txl_data = {
+       .div_factor = 4,
+       .delay_ajust = 15,
+};
+
 static const struct meson_i2c_data i2c_axg_data = {
        .div_factor = 3,
        .delay_ajust = 15,
@@ -671,6 +676,7 @@ static const struct of_device_id meson_i2c_match[] = {
        { .compatible = "amlogic,meson8b-i2c", .data = &i2c_meson8b_data },
        { .compatible = "amlogic,meson-gx-i2c", .data = &i2c_gx_data },
        { .compatible = "amlogic,meson-axg-i2c", .data = &i2c_axg_data },
+       { .compatible = "amlogic,meson-txl-i2c", .data = &i2c_txl_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 },