-
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.
yaml --- r: 284671 b: refs/heads/master c: 0a80939 h: refs/heads/master i: 284669: 2f6837d 284667: eaf1757 284663: 24b20da 284655: bdd7d69 284639: 7b2b9a4 284607: ee516fc 284543: 8191fd3 284415: c7a42c4 284159: d8b34dc 283647: 0f6bd03 282623: 7b721a8 v: v3
- Loading branch information
Linus Torvalds
committed
Jan 14, 2012
1 parent
ab54650
commit f5eec5e
Showing
492 changed files
with
11,368 additions
and
4,325 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: 72db395ffadb1d33233fd123c2bf87ba0198c6c1 | ||
refs/heads/master: 0a80939b3e6af4b0dc93bf88ec02fd7e90a16f1b |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,78 @@ | ||
* Freescale MC13783/MC13892 Power Management Integrated Circuit (PMIC) | ||
|
||
Required properties: | ||
- compatible : Should be "fsl,mc13783" or "fsl,mc13892" | ||
|
||
Optional properties: | ||
- fsl,mc13xxx-uses-adc : Indicate the ADC is being used | ||
- fsl,mc13xxx-uses-codec : Indicate the Audio Codec is being used | ||
- fsl,mc13xxx-uses-rtc : Indicate the RTC is being used | ||
- fsl,mc13xxx-uses-touch : Indicate the touchscreen controller is being used | ||
|
||
Sub-nodes: | ||
- regulators : Contain the regulator nodes. The MC13892 regulators are | ||
bound using their names as listed below with their registers and bits | ||
for enabling. | ||
|
||
vcoincell : regulator VCOINCELL (register 13, bit 23) | ||
sw1 : regulator SW1 (register 24, bit 0) | ||
sw2 : regulator SW2 (register 25, bit 0) | ||
sw3 : regulator SW3 (register 26, bit 0) | ||
sw4 : regulator SW4 (register 27, bit 0) | ||
swbst : regulator SWBST (register 29, bit 20) | ||
vgen1 : regulator VGEN1 (register 32, bit 0) | ||
viohi : regulator VIOHI (register 32, bit 3) | ||
vdig : regulator VDIG (register 32, bit 9) | ||
vgen2 : regulator VGEN2 (register 32, bit 12) | ||
vpll : regulator VPLL (register 32, bit 15) | ||
vusb2 : regulator VUSB2 (register 32, bit 18) | ||
vgen3 : regulator VGEN3 (register 33, bit 0) | ||
vcam : regulator VCAM (register 33, bit 6) | ||
vvideo : regulator VVIDEO (register 33, bit 12) | ||
vaudio : regulator VAUDIO (register 33, bit 15) | ||
vsd : regulator VSD (register 33, bit 18) | ||
gpo1 : regulator GPO1 (register 34, bit 6) | ||
gpo2 : regulator GPO2 (register 34, bit 8) | ||
gpo3 : regulator GPO3 (register 34, bit 10) | ||
gpo4 : regulator GPO4 (register 34, bit 12) | ||
pwgt1spi : regulator PWGT1SPI (register 34, bit 15) | ||
pwgt2spi : regulator PWGT2SPI (register 34, bit 16) | ||
vusb : regulator VUSB (register 50, bit 3) | ||
|
||
The bindings details of individual regulator device can be found in: | ||
Documentation/devicetree/bindings/regulator/regulator.txt | ||
|
||
Examples: | ||
|
||
ecspi@70010000 { /* ECSPI1 */ | ||
fsl,spi-num-chipselects = <2>; | ||
cs-gpios = <&gpio3 24 0>, /* GPIO4_24 */ | ||
<&gpio3 25 0>; /* GPIO4_25 */ | ||
status = "okay"; | ||
|
||
pmic: mc13892@0 { | ||
#address-cells = <1>; | ||
#size-cells = <0>; | ||
compatible = "fsl,mc13892"; | ||
spi-max-frequency = <6000000>; | ||
reg = <0>; | ||
interrupt-parent = <&gpio0>; | ||
interrupts = <8>; | ||
|
||
regulators { | ||
sw1_reg: mc13892__sw1 { | ||
regulator-min-microvolt = <600000>; | ||
regulator-max-microvolt = <1375000>; | ||
regulator-boot-on; | ||
regulator-always-on; | ||
}; | ||
|
||
sw2_reg: mc13892__sw2 { | ||
regulator-min-microvolt = <900000>; | ||
regulator-max-microvolt = <1850000>; | ||
regulator-boot-on; | ||
regulator-always-on; | ||
}; | ||
}; | ||
}; | ||
}; |
47 changes: 47 additions & 0 deletions
47
trunk/Documentation/devicetree/bindings/mfd/twl-familly.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,47 @@ | ||
Texas Instruments TWL family | ||
|
||
The TWLs are Integrated Power Management Chips. | ||
Some version might contain much more analog function like | ||
USB transceiver or Audio amplifier. | ||
These chips are connected to an i2c bus. | ||
|
||
|
||
Required properties: | ||
- compatible : Must be "ti,twl4030"; | ||
For Integrated power-management/audio CODEC device used in OMAP3 | ||
based boards | ||
- compatible : Must be "ti,twl6030"; | ||
For Integrated power-management used in OMAP4 based boards | ||
- interrupts : This i2c device has an IRQ line connected to the main SoC | ||
- interrupt-controller : Since the twl support several interrupts internally, | ||
it is considered as an interrupt controller cascaded to the SoC one. | ||
- #interrupt-cells = <1>; | ||
- interrupt-parent : The parent interrupt controller. | ||
|
||
Optional node: | ||
- Child nodes contain in the twl. The twl family is made of several variants | ||
that support a different number of features. | ||
The children nodes will thus depend of the capability of the variant. | ||
|
||
|
||
Example: | ||
/* | ||
* Integrated Power Management Chip | ||
* http://www.ti.com/lit/ds/symlink/twl6030.pdf | ||
*/ | ||
twl@48 { | ||
compatible = "ti,twl6030"; | ||
reg = <0x48>; | ||
interrupts = <39>; /* IRQ_SYS_1N cascaded to gic */ | ||
interrupt-controller; | ||
#interrupt-cells = <1>; | ||
interrupt-parent = <&gic>; | ||
#address-cells = <1>; | ||
#size-cells = <0>; | ||
|
||
twl_rtc { | ||
compatible = "ti,twl_rtc"; | ||
interrupts = <11>; | ||
reg = <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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
|
||
Fault Injection | ||
=============== | ||
Fault injection is a method for forcing errors that may not normally occur, or | ||
may be difficult to reproduce. Forcing these errors in a controlled environment | ||
can help the developer find and fix bugs before their code is shipped in a | ||
production system. Injecting an error on the Linux NFS server will allow us to | ||
observe how the client reacts and if it manages to recover its state correctly. | ||
|
||
NFSD_FAULT_INJECTION must be selected when configuring the kernel to use this | ||
feature. | ||
|
||
|
||
Using Fault Injection | ||
===================== | ||
On the client, mount the fault injection server through NFS v4.0+ and do some | ||
work over NFS (open files, take locks, ...). | ||
|
||
On the server, mount the debugfs filesystem to <debug_dir> and ls | ||
<debug_dir>/nfsd. This will show a list of files that will be used for | ||
injecting faults on the NFS server. As root, write a number n to the file | ||
corresponding to the action you want the server to take. The server will then | ||
process the first n items it finds. So if you want to forget 5 locks, echo '5' | ||
to <debug_dir>/nfsd/forget_locks. A value of 0 will tell the server to forget | ||
all corresponding items. A log message will be created containing the number | ||
of items forgotten (check dmesg). | ||
|
||
Go back to work on the client and check if the client recovered from the error | ||
correctly. | ||
|
||
|
||
Available Faults | ||
================ | ||
forget_clients: | ||
The NFS server keeps a list of clients that have placed a mount call. If | ||
this list is cleared, the server will have no knowledge of who the client | ||
is, forcing the client to reauthenticate with the server. | ||
|
||
forget_openowners: | ||
The NFS server keeps a list of what files are currently opened and who | ||
they were opened by. Clearing this list will force the client to reopen | ||
its files. | ||
|
||
forget_locks: | ||
The NFS server keeps a list of what files are currently locked in the VFS. | ||
Clearing this list will force the client to reclaim its locks (files are | ||
unlocked through the VFS as they are cleared from this list). | ||
|
||
forget_delegations: | ||
A delegation is used to assure the client that a file, or part of a file, | ||
has not changed since the delegation was awarded. Clearing this list will | ||
force the client to reaquire its delegation before accessing the file | ||
again. | ||
|
||
recall_delegations: | ||
Delegations can be recalled by the server when another client attempts to | ||
access a file. This test will notify the client that its delegation has | ||
been revoked, forcing the client to reaquire the delegation before using | ||
the file again. | ||
|
||
|
||
tools/nfs/inject_faults.sh script | ||
================================= | ||
This script has been created to ease the fault injection process. This script | ||
will detect the mounted debugfs directory and write to the files located there | ||
based on the arguments passed by the user. For example, running | ||
`inject_faults.sh forget_locks 1` as root will instruct the server to forget | ||
one lock. Running `inject_faults forget_locks` will instruct the server to | ||
forgetall locks. |
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
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.