-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Olof Johansson
committed
Nov 21, 2012
1 parent
009c96e
commit 6bc9100
Showing
984 changed files
with
17,234 additions
and
10,990 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
--- | ||
refs/heads/master: 343db4bda61feb3ac177d73f006e3527dcb431da | ||
refs/heads/master: 4aa7cf79b1f760b5751d1686329351c2e060791b |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,122 @@ | ||
GPMC (General Purpose Memory Controller): | ||
========================================= | ||
|
||
GPMC is an unified memory controller dedicated to interfacing external | ||
memory devices like | ||
* Asynchronous SRAM like memories and application specific integrated | ||
circuit devices. | ||
* Asynchronous, synchronous, and page mode burst NOR flash devices | ||
NAND flash | ||
* Pseudo-SRAM devices | ||
|
||
GPMC is found on Texas Instruments SoC's (OMAP based) | ||
IP details: http://www.ti.com/lit/pdf/spruh73 section 7.1 | ||
|
||
|
||
GPMC generic timing calculation: | ||
================================ | ||
|
||
GPMC has certain timings that has to be programmed for proper | ||
functioning of the peripheral, while peripheral has another set of | ||
timings. To have peripheral work with gpmc, peripheral timings has to | ||
be translated to the form gpmc can understand. The way it has to be | ||
translated depends on the connected peripheral. Also there is a | ||
dependency for certain gpmc timings on gpmc clock frequency. Hence a | ||
generic timing routine was developed to achieve above requirements. | ||
|
||
Generic routine provides a generic method to calculate gpmc timings | ||
from gpmc peripheral timings. struct gpmc_device_timings fields has to | ||
be updated with timings from the datasheet of the peripheral that is | ||
connected to gpmc. A few of the peripheral timings can be fed either | ||
in time or in cycles, provision to handle this scenario has been | ||
provided (refer struct gpmc_device_timings definition). It may so | ||
happen that timing as specified by peripheral datasheet is not present | ||
in timing structure, in this scenario, try to correlate peripheral | ||
timing to the one available. If that doesn't work, try to add a new | ||
field as required by peripheral, educate generic timing routine to | ||
handle it, make sure that it does not break any of the existing. | ||
Then there may be cases where peripheral datasheet doesn't mention | ||
certain fields of struct gpmc_device_timings, zero those entries. | ||
|
||
Generic timing routine has been verified to work properly on | ||
multiple onenand's and tusb6010 peripherals. | ||
|
||
A word of caution: generic timing routine has been developed based | ||
on understanding of gpmc timings, peripheral timings, available | ||
custom timing routines, a kind of reverse engineering without | ||
most of the datasheets & hardware (to be exact none of those supported | ||
in mainline having custom timing routine) and by simulation. | ||
|
||
gpmc timing dependency on peripheral timings: | ||
[<gpmc_timing>: <peripheral timing1>, <peripheral timing2> ...] | ||
|
||
1. common | ||
cs_on: t_ceasu | ||
adv_on: t_avdasu, t_ceavd | ||
|
||
2. sync common | ||
sync_clk: clk | ||
page_burst_access: t_bacc | ||
clk_activation: t_ces, t_avds | ||
|
||
3. read async muxed | ||
adv_rd_off: t_avdp_r | ||
oe_on: t_oeasu, t_aavdh | ||
access: t_iaa, t_oe, t_ce, t_aa | ||
rd_cycle: t_rd_cycle, t_cez_r, t_oez | ||
|
||
4. read async non-muxed | ||
adv_rd_off: t_avdp_r | ||
oe_on: t_oeasu | ||
access: t_iaa, t_oe, t_ce, t_aa | ||
rd_cycle: t_rd_cycle, t_cez_r, t_oez | ||
|
||
5. read sync muxed | ||
adv_rd_off: t_avdp_r, t_avdh | ||
oe_on: t_oeasu, t_ach, cyc_aavdh_oe | ||
access: t_iaa, cyc_iaa, cyc_oe | ||
rd_cycle: t_cez_r, t_oez, t_ce_rdyz | ||
|
||
6. read sync non-muxed | ||
adv_rd_off: t_avdp_r | ||
oe_on: t_oeasu | ||
access: t_iaa, cyc_iaa, cyc_oe | ||
rd_cycle: t_cez_r, t_oez, t_ce_rdyz | ||
|
||
7. write async muxed | ||
adv_wr_off: t_avdp_w | ||
we_on, wr_data_mux_bus: t_weasu, t_aavdh, cyc_aavhd_we | ||
we_off: t_wpl | ||
cs_wr_off: t_wph | ||
wr_cycle: t_cez_w, t_wr_cycle | ||
|
||
8. write async non-muxed | ||
adv_wr_off: t_avdp_w | ||
we_on, wr_data_mux_bus: t_weasu | ||
we_off: t_wpl | ||
cs_wr_off: t_wph | ||
wr_cycle: t_cez_w, t_wr_cycle | ||
|
||
9. write sync muxed | ||
adv_wr_off: t_avdp_w, t_avdh | ||
we_on, wr_data_mux_bus: t_weasu, t_rdyo, t_aavdh, cyc_aavhd_we | ||
we_off: t_wpl, cyc_wpl | ||
cs_wr_off: t_wph | ||
wr_cycle: t_cez_w, t_ce_rdyz | ||
|
||
10. write sync non-muxed | ||
adv_wr_off: t_avdp_w | ||
we_on, wr_data_mux_bus: t_weasu, t_rdyo | ||
we_off: t_wpl, cyc_wpl | ||
cs_wr_off: t_wph | ||
wr_cycle: t_cez_w, t_ce_rdyz | ||
|
||
|
||
Note: Many of gpmc timings are dependent on other gpmc timings (a few | ||
gpmc timings purely dependent on other gpmc timings, a reason that | ||
some of the gpmc timings are missing above), and it will result in | ||
indirect dependency of peripheral timings to gpmc timings other than | ||
mentioned above, refer timing routine for more details. To know what | ||
these peripheral timings correspond to, please see explanations in | ||
struct gpmc_device_timings definition. And for gpmc timings refer | ||
IP details (link above). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
15 changes: 15 additions & 0 deletions
15
trunk/Documentation/devicetree/bindings/arm/omap/counter.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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"; | ||
}; |
31 changes: 31 additions & 0 deletions
31
trunk/Documentation/devicetree/bindings/arm/omap/timer.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
OMAP Timer bindings | ||
|
||
Required properties: | ||
- compatible: Must be "ti,omap2-timer" for OMAP2+ controllers. | ||
- reg: Contains timer register address range (base address and | ||
length). | ||
- interrupts: Contains the interrupt information for the timer. The | ||
format is being dependent on which interrupt controller | ||
the OMAP device uses. | ||
- ti,hwmods: Name of the hwmod associated to the timer, "timer<X>", | ||
where <X> is the instance number of the timer from the | ||
HW spec. | ||
|
||
Optional properties: | ||
- ti,timer-alwon: Indicates the timer is in an alway-on power domain. | ||
- ti,timer-dsp: Indicates the timer can interrupt the on-chip DSP in | ||
addition to the ARM CPU. | ||
- ti,timer-pwm: Indicates the timer can generate a PWM output. | ||
- ti,timer-secure: Indicates the timer is reserved on a secure OMAP device | ||
and therefore cannot be used by the kernel. | ||
|
||
Example: | ||
|
||
timer12: timer@48304000 { | ||
compatible = "ti,omap2-timer"; | ||
reg = <0x48304000 0x400>; | ||
interrupts = <95>; | ||
ti,hwmods = "timer12" | ||
ti,timer-alwon; | ||
ti,timer-secure; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
23 changes: 23 additions & 0 deletions
23
trunk/Documentation/devicetree/bindings/hwmon/vexpress.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
Versatile Express hwmon sensors | ||
------------------------------- | ||
|
||
Requires node properties: | ||
- "compatible" value : one of | ||
"arm,vexpress-volt" | ||
"arm,vexpress-amp" | ||
"arm,vexpress-temp" | ||
"arm,vexpress-power" | ||
"arm,vexpress-energy" | ||
- "arm,vexpress-sysreg,func" when controlled via vexpress-sysreg | ||
(see Documentation/devicetree/bindings/arm/vexpress-sysreg.txt | ||
for more details) | ||
|
||
Optional node properties: | ||
- label : string describing the monitored value | ||
|
||
Example: | ||
energy@0 { | ||
compatible = "arm,vexpress-energy"; | ||
arm,vexpress-sysreg,func = <13 0>; | ||
label = "A15 Jcore"; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
19 changes: 19 additions & 0 deletions
19
trunk/Documentation/devicetree/bindings/input/touchscreen/egalax-ts.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
* EETI eGalax Multiple Touch Controller | ||
|
||
Required properties: | ||
- compatible: must be "eeti,egalax_ts" | ||
- reg: i2c slave address | ||
- interrupt-parent: the phandle for the interrupt controller | ||
- interrupts: touch controller interrupt | ||
- wakeup-gpios: the gpio pin to be used for waking up the controller | ||
as well as uased as irq pin | ||
|
||
Example: | ||
|
||
egalax_ts@04 { | ||
compatible = "eeti,egalax_ts"; | ||
reg = <0x04>; | ||
interrupt-parent = <&gpio1>; | ||
interrupts = <9 2>; | ||
wakeup-gpios = <&gpio1 9 0>; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.