fd06b0bf8986414941a7bc1d2767e5160ff48861
[openwrt/openwrt.git] / target / linux / sunxi / patches-3.14 / 252-1-dt-sun4i-add-pwm-support.patch
1 From 25a4e0f1ac49c9ecafeba0d034806e25c491f012 Mon Sep 17 00:00:00 2001
2 From: Alexandre Belloni <alexandre.belloni@free-electrons.com>
3 Date: Mon, 28 Apr 2014 18:17:11 +0200
4 Subject: [PATCH] ARM: sun4i: dt: add PWM support
5
6 Add the PWM bindings for the Allwinner A10.
7
8 Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
9 Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
10 ---
11 arch/arm/boot/dts/sun4i-a10.dtsi | 8 ++++++++
12 1 file changed, 8 insertions(+)
13
14 diff --git a/arch/arm/boot/dts/sun4i-a10.dtsi b/arch/arm/boot/dts/sun4i-a10.dtsi
15 index 8810ce4..4dc3761 100644
16 --- a/arch/arm/boot/dts/sun4i-a10.dtsi
17 +++ b/arch/arm/boot/dts/sun4i-a10.dtsi
18 @@ -563,6 +563,14 @@
19 interrupts = <24>;
20 };
21
22 + pwm: pwm@01c20e00 {
23 + compatible = "allwinner,sun4i-a10-pwm";
24 + reg = <0x01c20e00 0xc>;
25 + clocks = <&osc24M>;
26 + #pwm-cells = <3>;
27 + status = "disabled";
28 + };
29 +
30 sid: eeprom@01c23800 {
31 compatible = "allwinner,sun4i-a10-sid";
32 reg = <0x01c23800 0x10>;
33 --
34 2.0.3
35