From: Jian Hu Date: Mon, 18 Jun 2018 03:42:16 +0000 (+0800) Subject: i2c: meson: add support for txl X-Git-Tag: khadas-vims-v0.9.6-release~1688 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d049ab634b196fad5b3ed357a1d5fbb2b4c8fc8a;p=platform%2Fkernel%2Flinux-amlogic.git i2c: meson: add support for txl PD#168480: i2c: meson: add support for txl Change-Id: I0c4fe9d2e6caec0cfa812af28476774db69a4e89 Signed-off-by: Jian Hu Signed-off-by: Bo Yang --- diff --git a/Documentation/devicetree/bindings/amlogic/i2c-meson.txt b/Documentation/devicetree/bindings/amlogic/i2c-meson.txt index 0221c91c1fb9..3fdb11b397b7 100644 --- a/Documentation/devicetree/bindings/amlogic/i2c-meson.txt +++ b/Documentation/devicetree/bindings/amlogic/i2c-meson.txt @@ -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" diff --git a/drivers/amlogic/i2c/i2c-meson-master.c b/drivers/amlogic/i2c/i2c-meson-master.c index bd31133f1785..85a6b3d2c8be 100644 --- a/drivers/amlogic/i2c/i2c-meson-master.c +++ b/drivers/amlogic/i2c/i2c-meson-master.c @@ -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 },