-
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: 268899 b: refs/heads/master c: 37d96c2 h: refs/heads/master i: 268897: 41e15d3 268895: aee2609 v: v3
- Loading branch information
Linus Torvalds
committed
Oct 26, 2011
1 parent
996ed88
commit dc0045e
Showing
882 changed files
with
109,604 additions
and
182,220 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: 08613e4626c06ca408fc55071f6aedee36986a87 | ||
refs/heads/master: 37d96c28ecf0af1215bb6bbf580dbb1fabb5a6ec |
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 @@ | ||
* RS485 serial communications | ||
|
||
The RTS signal is capable of automatically controlling line direction for | ||
the built-in half-duplex mode. | ||
The properties described hereafter shall be given to a half-duplex capable | ||
UART node. | ||
|
||
Required properties: | ||
- rs485-rts-delay: prop-encoded-array <a b> where: | ||
* a is the delay beteween rts signal and beginning of data sent in milliseconds. | ||
it corresponds to the delay before sending data. | ||
* b is the delay between end of data sent and rts signal in milliseconds | ||
it corresponds to the delay after sending data and actual release of the line. | ||
|
||
Optional properties: | ||
- linux,rs485-enabled-at-boot-time: empty property telling to enable the rs485 | ||
feature at boot time. It can be disabled later with proper ioctl. | ||
- rs485-rx-during-tx: empty property that enables the receiving of data even | ||
whilst sending data. | ||
|
||
RS485 example for Atmel USART: | ||
usart0: serial@fff8c000 { | ||
compatible = "atmel,at91sam9260-usart"; | ||
reg = <0xfff8c000 0x4000>; | ||
interrupts = <7>; | ||
atmel,use-dma-rx; | ||
atmel,use-dma-tx; | ||
linux,rs485-enabled-at-boot-time; | ||
rs485-rts-delay = <0 200>; // in milliseconds | ||
}; | ||
|
27 changes: 27 additions & 0 deletions
27
trunk/Documentation/devicetree/bindings/tty/serial/atmel-usart.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,27 @@ | ||
* Atmel Universal Synchronous Asynchronous Receiver/Transmitter (USART) | ||
|
||
Required properties: | ||
- compatible: Should be "atmel,<chip>-usart" | ||
The compatible <chip> indicated will be the first SoC to support an | ||
additional mode or an USART new feature. | ||
- reg: Should contain registers location and length | ||
- interrupts: Should contain interrupt | ||
|
||
Optional properties: | ||
- atmel,use-dma-rx: use of PDC or DMA for receiving data | ||
- atmel,use-dma-tx: use of PDC or DMA for transmitting data | ||
|
||
<chip> compatible description: | ||
- at91rm9200: legacy USART support | ||
- at91sam9260: generic USART implementation for SAM9 SoCs | ||
|
||
Example: | ||
|
||
usart0: serial@fff8c000 { | ||
compatible = "atmel,at91sam9260-usart"; | ||
reg = <0xfff8c000 0x4000>; | ||
interrupts = <7>; | ||
atmel,use-dma-rx; | ||
atmel,use-dma-tx; | ||
}; | ||
|
25 changes: 25 additions & 0 deletions
25
trunk/Documentation/devicetree/bindings/tty/serial/snps-dw-apb-uart.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,25 @@ | ||
* Synopsys DesignWare ABP UART | ||
|
||
Required properties: | ||
- compatible : "snps,dw-apb-uart" | ||
- reg : offset and length of the register set for the device. | ||
- interrupts : should contain uart interrupt. | ||
- clock-frequency : the input clock frequency for the UART. | ||
|
||
Optional properties: | ||
- reg-shift : quantity to shift the register offsets by. If this property is | ||
not present then the register offsets are not shifted. | ||
- reg-io-width : the size (in bytes) of the IO accesses that should be | ||
performed on the device. If this property is not present then single byte | ||
accesses are used. | ||
|
||
Example: | ||
|
||
uart@80230000 { | ||
compatible = "snps,dw-apb-uart"; | ||
reg = <0x80230000 0x100>; | ||
clock-frequency = <3686400>; | ||
interrupts = <10>; | ||
reg-shift = <2>; | ||
reg-io-width = <4>; | ||
}; |
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,25 @@ | ||
Kernel driver ad7314 | ||
==================== | ||
|
||
Supported chips: | ||
* Analog Devices AD7314 | ||
Prefix: 'ad7314' | ||
Datasheet: Publicly available at Analog Devices website. | ||
* Analog Devices ADT7301 | ||
Prefix: 'adt7301' | ||
Datasheet: Publicly available at Analog Devices website. | ||
* Analog Devices ADT7302 | ||
Prefix: 'adt7302' | ||
Datasheet: Publicly available at Analog Devices website. | ||
|
||
Description | ||
----------- | ||
|
||
Driver supports the above parts. The ad7314 has a 10 bit | ||
sensor with 1lsb = 0.25 degrees centigrade. The adt7301 and | ||
adt7302 have 14 bit sensors with 1lsb = 0.03125 degrees centigrade. | ||
|
||
Notes | ||
----- | ||
|
||
Currently power down mode is not supported. |
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,81 @@ | ||
Kernel driver exynos4_tmu | ||
================= | ||
|
||
Supported chips: | ||
* ARM SAMSUNG EXYNOS4 series of SoC | ||
Prefix: 'exynos4-tmu' | ||
Datasheet: Not publicly available | ||
|
||
Authors: Donggeun Kim <dg77.kim@samsung.com> | ||
|
||
Description | ||
----------- | ||
|
||
This driver allows to read temperature inside SAMSUNG EXYNOS4 series of SoC. | ||
|
||
The chip only exposes the measured 8-bit temperature code value | ||
through a register. | ||
Temperature can be taken from the temperature code. | ||
There are three equations converting from temperature to temperature code. | ||
|
||
The three equations are: | ||
1. Two point trimming | ||
Tc = (T - 25) * (TI2 - TI1) / (85 - 25) + TI1 | ||
|
||
2. One point trimming | ||
Tc = T + TI1 - 25 | ||
|
||
3. No trimming | ||
Tc = T + 50 | ||
|
||
Tc: Temperature code, T: Temperature, | ||
TI1: Trimming info for 25 degree Celsius (stored at TRIMINFO register) | ||
Temperature code measured at 25 degree Celsius which is unchanged | ||
TI2: Trimming info for 85 degree Celsius (stored at TRIMINFO register) | ||
Temperature code measured at 85 degree Celsius which is unchanged | ||
|
||
TMU(Thermal Management Unit) in EXYNOS4 generates interrupt | ||
when temperature exceeds pre-defined levels. | ||
The maximum number of configurable threshold is four. | ||
The threshold levels are defined as follows: | ||
Level_0: current temperature > trigger_level_0 + threshold | ||
Level_1: current temperature > trigger_level_1 + threshold | ||
Level_2: current temperature > trigger_level_2 + threshold | ||
Level_3: current temperature > trigger_level_3 + threshold | ||
|
||
The threshold and each trigger_level are set | ||
through the corresponding registers. | ||
|
||
When an interrupt occurs, this driver notify user space of | ||
one of four threshold levels for the interrupt | ||
through kobject_uevent_env and sysfs_notify functions. | ||
Although an interrupt condition for level_0 can be set, | ||
it is not notified to user space through sysfs_notify function. | ||
|
||
Sysfs Interface | ||
--------------- | ||
name name of the temperature sensor | ||
RO | ||
|
||
temp1_input temperature | ||
RO | ||
|
||
temp1_max temperature for level_1 interrupt | ||
RO | ||
|
||
temp1_crit temperature for level_2 interrupt | ||
RO | ||
|
||
temp1_emergency temperature for level_3 interrupt | ||
RO | ||
|
||
temp1_max_alarm alarm for level_1 interrupt | ||
RO | ||
|
||
temp1_crit_alarm | ||
alarm for level_2 interrupt | ||
RO | ||
|
||
temp1_emergency_alarm | ||
alarm for level_3 interrupt | ||
RO |
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.