From d39e0ad771f43845ee37ba6757233c1ce296efa1 Mon Sep 17 00:00:00 2001 From: David Wu Date: Tue, 15 Mar 2016 21:02:55 +0800 Subject: [PATCH] pwm: rockchip: add pwm support for rk3399 Change-Id: I0658d1b69b5799c2ef6604563c41b5a0d87ddce2 Signed-off-by: David Wu --- Documentation/devicetree/bindings/pwm/pwm-rockchip.txt | 1 + drivers/pwm/pwm-rockchip.c | 1 + 2 files changed, 2 insertions(+) diff --git a/Documentation/devicetree/bindings/pwm/pwm-rockchip.txt b/Documentation/devicetree/bindings/pwm/pwm-rockchip.txt index b8be3d09ee26..e248859825ec 100644 --- a/Documentation/devicetree/bindings/pwm/pwm-rockchip.txt +++ b/Documentation/devicetree/bindings/pwm/pwm-rockchip.txt @@ -5,6 +5,7 @@ Required properties: "rockchip,rk2928-pwm": found on RK29XX,RK3066 and RK3188 SoCs "rockchip,rk3288-pwm": found on RK3288 SoC "rockchip,vop-pwm": found integrated in VOP on RK3288 SoC + "rockchip,rk3399-pwm", "rockchip,rk3288-pwm": found on RK3399 SoC - reg: physical base address and length of the controller's registers - clocks: phandle and clock specifier of the PWM reference clock - #pwm-cells: must be 2 (rk2928) or 3 (rk3288). See pwm.txt in this directory diff --git a/drivers/pwm/pwm-rockchip.c b/drivers/pwm/pwm-rockchip.c index 7d9cc9049522..a085b0466659 100644 --- a/drivers/pwm/pwm-rockchip.c +++ b/drivers/pwm/pwm-rockchip.c @@ -225,6 +225,7 @@ static const struct of_device_id rockchip_pwm_dt_ids[] = { { .compatible = "rockchip,rk2928-pwm", .data = &pwm_data_v1}, { .compatible = "rockchip,rk3288-pwm", .data = &pwm_data_v2}, { .compatible = "rockchip,vop-pwm", .data = &pwm_data_vop}, + { .compatible = "rockchip,rk3399-pwm", .data = &pwm_data_v2}, { /* sentinel */ } }; MODULE_DEVICE_TABLE(of, rockchip_pwm_dt_ids); -- 2.34.1