]> git.karo-electronics.de Git - linux-beck.git/commitdiff
ARM: dts: OMAP: Add counter-32k nodes
authorJon Hunter <jon-hunter@ti.com>
Thu, 25 Oct 2012 19:24:14 +0000 (14:24 -0500)
committerBenoit Cousson <b-cousson@ti.com>
Mon, 29 Oct 2012 15:56:33 +0000 (16:56 +0100)
Adds the counter-32k timers nodes present in OMAP2/3/4 devices and
device-tree binding documentation for OMAP counter-32k.

Signed-off-by: Jon Hunter <jon-hunter@ti.com>
Signed-off-by: Benoit Cousson <b-cousson@ti.com>
Documentation/devicetree/bindings/arm/omap/counter.txt [new file with mode: 0644]
arch/arm/boot/dts/omap2420.dtsi
arch/arm/boot/dts/omap2430.dtsi
arch/arm/boot/dts/omap3.dtsi
arch/arm/boot/dts/omap4.dtsi

diff --git a/Documentation/devicetree/bindings/arm/omap/counter.txt b/Documentation/devicetree/bindings/arm/omap/counter.txt
new file mode 100644 (file)
index 0000000..5bd8aa0
--- /dev/null
@@ -0,0 +1,15 @@
+OMAP Counter-32K bindings
+
+Required properties:
+- compatible:  Must be "ti,omap-counter32k" for OMAP controllers
+- reg:         Contains timer register address range (base address and length)
+- ti,hwmods:   Name of the hwmod associated to the counter, which is typically
+               "counter_32k"
+
+Example:
+
+counter32k: counter@4a304000 {
+       compatible = "ti,omap-counter32k";
+       reg = <0x4a304000 0x20>;
+       ti,hwmods = "counter_32k";
+};
index af5ee262d0cf32a040506d115021f9a07c2173c0..af6560908905595dbd2a535c013948afa7ef7637 100644 (file)
        compatible = "ti,omap2420", "ti,omap2";
 
        ocp {
+               counter32k: counter@48004000 {
+                       compatible = "ti,omap-counter32k";
+                       reg = <0x48004000 0x20>;
+                       ti,hwmods = "counter_32k";
+               };
+
                omap2420_pmx: pinmux@48000030 {
                        compatible = "ti,omap2420-padconf", "pinctrl-single";
                        reg = <0x48000030 0x0113>;
index 688729840f149b79180e81ca48bec7402579c8f0..c3924457c9b62de16b2709434c98e99f280b3c47 100644 (file)
        compatible = "ti,omap2430", "ti,omap2";
 
        ocp {
+               counter32k: counter@49020000 {
+                       compatible = "ti,omap-counter32k";
+                       reg = <0x49020000 0x20>;
+                       ti,hwmods = "counter_32k";
+               };
+
                omap2430_pmx: pinmux@49002030 {
                        compatible = "ti,omap2430-padconf", "pinctrl-single";
                        reg = <0x49002030 0x0154>;
index af9b1822ff84fea58290788753dac0bc363456cc..1acc26148ffcf94c1ee605d1db58c531f9b01e26 100644 (file)
                ranges;
                ti,hwmods = "l3_main";
 
+               counter32k: counter@48320000 {
+                       compatible = "ti,omap-counter32k";
+                       reg = <0x48320000 0x20>;
+                       ti,hwmods = "counter_32k";
+               };
+
                intc: interrupt-controller@48200000 {
                        compatible = "ti,omap2-intc";
                        interrupt-controller;
index d3a82e0c38043a4871c5d0acb86d605c8ec30288..23ee1498c98c1016572e5e0f466bb87ce52ecd95 100644 (file)
                ranges;
                ti,hwmods = "l3_main_1", "l3_main_2", "l3_main_3";
 
+               counter32k: counter@4a304000 {
+                       compatible = "ti,omap-counter32k";
+                       reg = <0x4a304000 0x20>;
+                       ti,hwmods = "counter_32k";
+               };
+
                omap4_pmx_core: pinmux@4a100040 {
                        compatible = "ti,omap4-padconf", "pinctrl-single";
                        reg = <0x4a100040 0x0196>;