diff options
| author | Olof Johansson <olof@lixom.net> | 2012-11-30 01:30:11 -0500 |
|---|---|---|
| committer | Olof Johansson <olof@lixom.net> | 2012-11-30 01:30:11 -0500 |
| commit | c8a1ceccf394b2f99feed2b702732140e9f0f92d (patch) | |
| tree | 6632d05aae22e99d7f128104b536bfdfc225a696 | |
| parent | 4c929c8a8837f4e5acdec5883a1b64a240751e2f (diff) | |
| parent | 26f01998b0657a61167a819f1c37cb9f9e9d674b (diff) | |
Merge tag 'omap-for-v3.8/cleanup-timer-signed' of git://git.kernel.org/pub/scm/linux/kernel/git/tmlind/linux-omap into next/cleanup
Timer clean-up to get us closer to moving timer code to drivers,
and to get rid of CONFIG_OMAP_32K_TIMER and rely on the board
or devicetree provided timer configuration.
Note that these changes are on top of the recent timer fixes.
By Jon Hunter (32) and others
via Tony Lindgren
* tag 'omap-for-v3.8/cleanup-timer-signed' of git://git.kernel.org/pub/scm/linux/kernel/git/tmlind/linux-omap: (71 commits)
ARM: OMAP3: cm-t3517: use GPTIMER for system clock
ARM: OMAP2+: timer: remove CONFIG_OMAP_32K_TIMER
ARM: OMAP2+: Fix compiler warning for 32k timer
ARM: OMAP: Remove unnecessary inclusion of dmtimer.h
ARM: OMAP: Add platform data header for DMTIMERs
ARM: OMAP: Remove unnecessary omap_dm_timer structure declaration
ARM: OMAP2+: Remove unnecessary local variable in timer code
ARM: OMAP: Don't store timers physical address
ARM: OMAP: Define omap_dm_timer_prepare function as static
ARM: OMAP: Clean-up dmtimer reset code
ARM: OMAP: Remove __omap_dm_timer_set_source function
ARM: OMAP: Remove unnecessary call to clk_get()
ARM: OMAP: Add dmtimer interrupt disable function
ARM: OMAP: Fix spurious interrupts when using timer match feature
ARM: OMAP: Don't restore DMTIMER interrupt status register
ARM: OMAP: Don't restore of DMTIMER TISTAT register
ARM: OMAP: Fix dmtimer reset for timer1
ARM: OMAP2+: Don't use __omap_dm_timer_reset()
ARM: OMAP2/3: Define HWMOD software reset status for DMTIMERs
ARM: OMAP3: Correct HWMOD DMTIMER SYSC register declarations
...
Change/change conflict in arch/arm/mach-omap2/board-cm-t3517.c.
Signed-off-by: Olof Johansson <olof@lixom.net>
45 files changed, 1993 insertions, 323 deletions
diff --git a/Documentation/devicetree/bindings/arm/omap/counter.txt b/Documentation/devicetree/bindings/arm/omap/counter.txt new file mode 100644 index 000000000000..5bd8aa091315 --- /dev/null +++ b/Documentation/devicetree/bindings/arm/omap/counter.txt | |||
| @@ -0,0 +1,15 @@ | |||
| 1 | OMAP Counter-32K bindings | ||
| 2 | |||
| 3 | Required properties: | ||
| 4 | - compatible: Must be "ti,omap-counter32k" for OMAP controllers | ||
| 5 | - reg: Contains timer register address range (base address and length) | ||
| 6 | - ti,hwmods: Name of the hwmod associated to the counter, which is typically | ||
| 7 | "counter_32k" | ||
| 8 | |||
| 9 | Example: | ||
| 10 | |||
| 11 | counter32k: counter@4a304000 { | ||
| 12 | compatible = "ti,omap-counter32k"; | ||
| 13 | reg = <0x4a304000 0x20>; | ||
| 14 | ti,hwmods = "counter_32k"; | ||
| 15 | }; | ||
diff --git a/Documentation/devicetree/bindings/arm/omap/timer.txt b/Documentation/devicetree/bindings/arm/omap/timer.txt new file mode 100644 index 000000000000..8732d4d41f8b --- /dev/null +++ b/Documentation/devicetree/bindings/arm/omap/timer.txt | |||
| @@ -0,0 +1,31 @@ | |||
| 1 | OMAP Timer bindings | ||
| 2 | |||
| 3 | Required properties: | ||
| 4 | - compatible: Must be "ti,omap2-timer" for OMAP2+ controllers. | ||
| 5 | - reg: Contains timer register address range (base address and | ||
| 6 | length). | ||
| 7 | - interrupts: Contains the interrupt information for the timer. The | ||
| 8 | format is being dependent on which interrupt controller | ||
| 9 | the OMAP device uses. | ||
| 10 | - ti,hwmods: Name of the hwmod associated to the timer, "timer<X>", | ||
| 11 | where <X> is the instance number of the timer from the | ||
| 12 | HW spec. | ||
| 13 | |||
| 14 | Optional properties: | ||
| 15 | - ti,timer-alwon: Indicates the timer is in an alway-on power domain. | ||
| 16 | - ti,timer-dsp: Indicates the timer can interrupt the on-chip DSP in | ||
| 17 | addition to the ARM CPU. | ||
| 18 | - ti,timer-pwm: Indicates the timer can generate a PWM output. | ||
| 19 | - ti,timer-secure: Indicates the timer is reserved on a secure OMAP device | ||
| 20 | and therefore cannot be used by the kernel. | ||
| 21 | |||
| 22 | Example: | ||
| 23 | |||
| 24 | timer12: timer@48304000 { | ||
| 25 | compatible = "ti,omap2-timer"; | ||
| 26 | reg = <0x48304000 0x400>; | ||
| 27 | interrupts = <95>; | ||
| 28 | ti,hwmods = "timer12" | ||
| 29 | ti,timer-alwon; | ||
| 30 | ti,timer-secure; | ||
| 31 | }; | ||
diff --git a/Documentation/devicetree/bindings/bus/omap-ocp2scp.txt b/Documentation/devicetree/bindings/bus/omap-ocp2scp.txt index d2fe064a828b..63dd8051521c 100644 --- a/Documentation/devicetree/bindings/bus/omap-ocp2scp.txt +++ b/Documentation/devicetree/bindings/bus/omap-ocp2scp.txt | |||
| @@ -2,9 +2,27 @@ | |||
| 2 | 2 | ||
| 3 | properties: | 3 | properties: |
| 4 | - compatible : Should be "ti,omap-ocp2scp" | 4 | - compatible : Should be "ti,omap-ocp2scp" |
| 5 | - reg : Address and length of the register set for the device | ||
| 5 | - #address-cells, #size-cells : Must be present if the device has sub-nodes | 6 | - #address-cells, #size-cells : Must be present if the device has sub-nodes |
| 6 | - ranges : the child address space are mapped 1:1 onto the parent address space | 7 | - ranges : the child address space are mapped 1:1 onto the parent address space |
| 7 | - ti,hwmods : must be "ocp2scp_usb_phy" | 8 | - ti,hwmods : must be "ocp2scp_usb_phy" |
| 8 | 9 | ||
| 9 | Sub-nodes: | 10 | Sub-nodes: |
| 10 | All the devices connected to ocp2scp are described using sub-node to ocp2scp | 11 | All the devices connected to ocp2scp are described using sub-node to ocp2scp |
| 12 | |||
| 13 | ocp2scp@4a0ad000 { | ||
| 14 | compatible = "ti,omap-ocp2scp"; | ||
| 15 | reg = <0x4a0ad000 0x1f>; | ||
| 16 | #address-cells = <1>; | ||
| 17 | #size-cells = <1>; | ||
| 18 | ranges; | ||
| 19 | ti,hwmods = "ocp2scp_usb_phy"; | ||
| 20 | |||
| 21 | subnode1 { | ||
| 22 | ... | ||
| 23 | }; | ||
| 24 | |||
| 25 | subnode2 { | ||
| 26 | ... | ||
| 27 | }; | ||
| 28 | }; | ||
diff --git a/Documentation/devicetree/bindings/i2c/trivial-devices.txt b/Documentation/devicetree/bindings/i2c/trivial-devices.txt index 2f5322b119eb..446859fcdca4 100644 --- a/Documentation/devicetree/bindings/i2c/trivial-devices.txt +++ b/Documentation/devicetree/bindings/i2c/trivial-devices.txt | |||
| @@ -55,5 +55,7 @@ st-micro,24c256 i2c serial eeprom (24cxx) | |||
| 55 | stm,m41t00 Serial Access TIMEKEEPER | 55 | stm,m41t00 Serial Access TIMEKEEPER |
| 56 | stm,m41t62 Serial real-time clock (RTC) with alarm | 56 | stm,m41t62 Serial real-time clock (RTC) with alarm |
| 57 | stm,m41t80 M41T80 - SERIAL ACCESS RTC WITH ALARMS | 57 | stm,m41t80 M41T80 - SERIAL ACCESS RTC WITH ALARMS |
| 58 | taos,tsl2550 Ambient Light Sensor with SMBUS/Two Wire Serial Interface | ||
| 58 | ti,tsc2003 I2C Touch-Screen Controller | 59 | ti,tsc2003 I2C Touch-Screen Controller |
| 59 | ti,tmp102 Low Power Digital Temperature Sensor with SMBUS/Two Wire Serial Interface | 60 | ti,tmp102 Low Power Digital Temperature Sensor with SMBUS/Two Wire Serial Interface |
| 61 | ti,tmp275 Digital Temperature Sensor | ||
diff --git a/Documentation/devicetree/bindings/usb/am33xx-usb.txt b/Documentation/devicetree/bindings/usb/am33xx-usb.txt index ca8fa56e9f03..707c1a2dae06 100644 --- a/Documentation/devicetree/bindings/usb/am33xx-usb.txt +++ b/Documentation/devicetree/bindings/usb/am33xx-usb.txt | |||
| @@ -1,5 +1,7 @@ | |||
| 1 | AM33XX MUSB GLUE | 1 | AM33XX MUSB GLUE |
| 2 | - compatible : Should be "ti,musb-am33xx" | 2 | - compatible : Should be "ti,musb-am33xx" |
| 3 | - reg : offset and length of register sets, first usbss, then for musb instances | ||
| 4 | - interrupts : usbss, musb instance interrupts in order | ||
| 3 | - ti,hwmods : must be "usb_otg_hs" | 5 | - ti,hwmods : must be "usb_otg_hs" |
| 4 | - multipoint : Should be "1" indicating the musb controller supports | 6 | - multipoint : Should be "1" indicating the musb controller supports |
| 5 | multipoint. This is a MUSB configuration-specific setting. | 7 | multipoint. This is a MUSB configuration-specific setting. |
| @@ -12,3 +14,22 @@ AM33XX MUSB GLUE | |||
| 12 | represents PERIPHERAL. | 14 | represents PERIPHERAL. |
| 13 | - power : Should be "250". This signifies the controller can supply upto | 15 | - power : Should be "250". This signifies the controller can supply upto |
| 14 | 500mA when operating in host mode. | 16 | 500mA when operating in host mode. |
| 17 | |||
| 18 | Example: | ||
| 19 | |||
