From: bichao.zheng Date: Wed, 19 Sep 2018 08:39:47 +0000 (+0800) Subject: pwm: meson: add support for tl1 X-Git-Tag: khadas-vims-v0.9.6-release~1329 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=1920f103403876fddf775a1a1c1ce01f941abaa3;p=platform%2Fkernel%2Flinux-amlogic.git pwm: meson: add support for tl1 PD#172587: pwm: meson: add support for tl1 Add support for tl1. Change-Id: I5db1be16765a8e2f2a07815e6d7d139eec4dcf16 Signed-off-by: bichao.zheng --- diff --git a/Documentation/devicetree/bindings/amlogic/pwm-meson.txt b/Documentation/devicetree/bindings/amlogic/pwm-meson.txt index 43a06aa..767118e 100644 --- a/Documentation/devicetree/bindings/amlogic/pwm-meson.txt +++ b/Documentation/devicetree/bindings/amlogic/pwm-meson.txt @@ -18,6 +18,11 @@ Required properties: amlogic,g12b-ee-pwm ao amlogic,g12b-ao-pwm + -for tl1 + ee + amlogic,tl1-ee-pwm + ao + amlogic,tl1-ao-pwm -for axg ee amlogic,axg-ee-pwm diff --git a/drivers/amlogic/pwm/pwm_meson.c b/drivers/amlogic/pwm/pwm_meson.c index 8edca59..19747d8 100644 --- a/drivers/amlogic/pwm/pwm_meson.c +++ b/drivers/amlogic/pwm/pwm_meson.c @@ -439,6 +439,14 @@ static const char * const pwm_g12a_ao_parent_names[] = { "xtal", "clk81", "fclk_div4", "fclk_div5" }; +static const char * const pwm_tl1_ee_parent_names[] = { + "xtal", "vid_pll", "fclk_div4", "fclk_div3" +}; + +static const char * const pwm_tl1_ao_parent_names[] = { + "xtal", "clk81", "fclk_div4", "fclk_div5" +}; + static const char * const pwm_txlx_ee_parent_names[] = { "xtal", "vid_pll", "fclk_div4", "fclk_div3" }; @@ -481,6 +489,16 @@ static const struct meson_pwm_data pwm_g12a_ao_data = { .parent_names = pwm_g12a_ao_parent_names, }; +static const struct meson_pwm_data pwm_tl1_ee_data = { + .double_channel = true, + .parent_names = pwm_tl1_ee_parent_names, +}; + +static const struct meson_pwm_data pwm_tl1_ao_data = { + .double_channel = true, + .parent_names = pwm_tl1_ao_parent_names, +}; + static const struct meson_pwm_data pwm_txlx_ee_data = { .double_channel = true, .parent_names = pwm_txlx_ee_parent_names, @@ -526,6 +544,8 @@ static const struct of_device_id meson_pwm_matches[] = { { .compatible = "amlogic,g12a-ao-pwm", .data = &pwm_g12a_ao_data }, { .compatible = "amlogic,g12b-ee-pwm", .data = &pwm_g12a_ee_data }, { .compatible = "amlogic,g12b-ao-pwm", .data = &pwm_g12a_ao_data }, + { .compatible = "amlogic,tl1-ee-pwm", .data = &pwm_tl1_ee_data }, + { .compatible = "amlogic,tl1-ao-pwm", .data = &pwm_tl1_ao_data }, { .compatible = "amlogic,txlx-ee-pwm", .data = &pwm_txlx_ee_data }, { .compatible = "amlogic,txlx-ao-pwm", .data = &pwm_txlx_ao_data }, { .compatible = "amlogic,txl-ee-pwm", .data = &pwm_txlx_ee_data },