pwm: pwm driver compatible with g12b

PD#165090: pwm: pwm driver compatible with g12b

pwm driver compatible with g12b,enable pwm controller pwm_AO_cd
pwm_ab pwm_ef for dvfs and wifi.

Change-Id: If65c4b5239ee0a4f4409aa85d9481645b44521e9
Signed-off-by: bichao.zheng <bichao.zheng@amlogic.com>
This commit is contained in:
bichao.zheng
2018-05-26 11:49:17 +08:00
committed by Yixun Lan
parent 18a70d31da
commit 9bca4ec549
4 changed files with 20 additions and 6 deletions

View File

@@ -13,7 +13,11 @@ Required properties:
amlogic,g12a-ee-pwm
ao
amlogic,g12a-ao-pwm
-for g12b
ee
amlogic,g12b-ee-pwm
ao
amlogic,g12b-ao-pwm
-for axg
ee
amlogic,axg-ee-pwm

View File

@@ -497,6 +497,14 @@
pxp_mode = <0>; /** 0:normal mode 1:pxp mode */
};
&pwm_ab {
status = "okay";
};
&pwm_ef {
status = "okay";
};
&pwm_AO_cd {
status = "okay";
};

View File

@@ -556,7 +556,7 @@
};
pwm_ab: pwm@1b000 {
compatible = "amlogic,g12a-ee-pwm";
compatible = "amlogic,g12b-ee-pwm";
reg = <0x0 0x1b000 0x0 0x20>;
#pwm-cells = <3>;
clocks = <&xtal>,
@@ -574,7 +574,7 @@
};
pwm_cd: pwm@1a000 {
compatible = "amlogic,g12a-ee-pwm";
compatible = "amlogic,g12b-ee-pwm";
reg = <0x0 0x1a000 0x0 0x20>;
#pwm-cells = <3>;
clocks = <&xtal>,
@@ -589,7 +589,7 @@
};
pwm_ef: pwm@19000 {
compatible = "amlogic,g12a-ee-pwm";
compatible = "amlogic,g12b-ee-pwm";
reg = <0x0 0x19000 0x0 0x20>;
#pwm-cells = <3>;
clocks = <&xtal>,
@@ -708,7 +708,7 @@
};
pwm_AO_ab: pwm@7000 {
compatible = "amlogic,g12a-ao-pwm";
compatible = "amlogic,g12b-ao-pwm";
reg = <0x0 0x7000 0x0 0x20>;
#pwm-cells = <3>;
clocks = <&xtal>,
@@ -723,7 +723,7 @@
};
pwm_AO_cd: pwm@2000 {
compatible = "amlogic,g12a-ao-pwm";
compatible = "amlogic,g12b-ao-pwm";
reg = <0x0 0x2000 0x0 0x20>;
#pwm-cells = <3>;
clocks = <&xtal>,

View File

@@ -521,6 +521,8 @@ static const struct meson_pwm_data pwm_m8b_data = {
static const struct of_device_id meson_pwm_matches[] = {
{ .compatible = "amlogic,g12a-ee-pwm", .data = &pwm_g12a_ee_data },
{ .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,txlx-ee-pwm", .data = &pwm_txlx_ee_data },
{ .compatible = "amlogic,txlx-ao-pwm", .data = &pwm_txlx_ao_data },
{ .compatible = "amlogic,axg-ee-pwm", .data = &pwm_axg_ee_data },