forked from torvalds/linux
-
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.
Merge pull request #39 from torvalds/master
Sync up with Linus
- Loading branch information
Showing
250 changed files
with
14,799 additions
and
4,459 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 |
---|---|---|
@@ -0,0 +1,57 @@ | ||
* IMG Multi-threaded DMA Controller (MDC) | ||
|
||
Required properties: | ||
- compatible: Must be "img,pistachio-mdc-dma". | ||
- reg: Must contain the base address and length of the MDC registers. | ||
- interrupts: Must contain all the per-channel DMA interrupts. | ||
- clocks: Must contain an entry for each entry in clock-names. | ||
See ../clock/clock-bindings.txt for details. | ||
- clock-names: Must include the following entries: | ||
- sys: MDC system interface clock. | ||
- img,cr-periph: Must contain a phandle to the peripheral control syscon | ||
node which contains the DMA request to channel mapping registers. | ||
- img,max-burst-multiplier: Must be the maximum supported burst size multiplier. | ||
The maximum burst size is this value multiplied by the hardware-reported bus | ||
width. | ||
- #dma-cells: Must be 3: | ||
- The first cell is the peripheral's DMA request line. | ||
- The second cell is a bitmap specifying to which channels the DMA request | ||
line may be mapped (i.e. bit N set indicates channel N is usable). | ||
- The third cell is the thread ID to be used by the channel. | ||
|
||
Optional properties: | ||
- dma-channels: Number of supported DMA channels, up to 32. If not specified | ||
the number reported by the hardware is used. | ||
|
||
Example: | ||
|
||
mdc: dma-controller@18143000 { | ||
compatible = "img,pistachio-mdc-dma"; | ||
reg = <0x18143000 0x1000>; | ||
interrupts = <GIC_SHARED 27 IRQ_TYPE_LEVEL_HIGH>, | ||
<GIC_SHARED 28 IRQ_TYPE_LEVEL_HIGH>, | ||
<GIC_SHARED 29 IRQ_TYPE_LEVEL_HIGH>, | ||
<GIC_SHARED 30 IRQ_TYPE_LEVEL_HIGH>, | ||
<GIC_SHARED 31 IRQ_TYPE_LEVEL_HIGH>, | ||
<GIC_SHARED 32 IRQ_TYPE_LEVEL_HIGH>, | ||
<GIC_SHARED 33 IRQ_TYPE_LEVEL_HIGH>, | ||
<GIC_SHARED 34 IRQ_TYPE_LEVEL_HIGH>, | ||
<GIC_SHARED 35 IRQ_TYPE_LEVEL_HIGH>, | ||
<GIC_SHARED 36 IRQ_TYPE_LEVEL_HIGH>, | ||
<GIC_SHARED 37 IRQ_TYPE_LEVEL_HIGH>, | ||
<GIC_SHARED 38 IRQ_TYPE_LEVEL_HIGH>; | ||
clocks = <&system_clk>; | ||
clock-names = "sys"; | ||
|
||
img,max-burst-multiplier = <16>; | ||
img,cr-periph = <&cr_periph>; | ||
|
||
#dma-cells = <3>; | ||
}; | ||
|
||
spi@18100f00 { | ||
... | ||
dmas = <&mdc 9 0xffffffff 0>, <&mdc 10 0xffffffff 0>; | ||
dma-names = "tx", "rx"; | ||
... | ||
}; |
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,93 @@ | ||
* Dialog DA9063 Power Management Integrated Circuit (PMIC) | ||
|
||
DA9093 consists of a large and varied group of sub-devices (I2C Only): | ||
|
||
Device Supply Names Description | ||
------ ------------ ----------- | ||
da9063-regulator : : LDOs & BUCKs | ||
da9063-rtc : : Real-Time Clock | ||
da9063-watchdog : : Watchdog | ||
|
||
====== | ||
|
||
Required properties: | ||
|
||
- compatible : Should be "dlg,da9063" | ||
- reg : Specifies the I2C slave address (this defaults to 0x58 but it can be | ||
modified to match the chip's OTP settings). | ||
- interrupt-parent : Specifies the reference to the interrupt controller for | ||
the DA9063. | ||
- interrupts : IRQ line information. | ||
- interrupt-controller | ||
|
||
Sub-nodes: | ||
|
||
- regulators : This node defines the settings for the LDOs and BUCKs. The | ||
DA9063 regulators are bound using their names listed below: | ||
|
||
bcore1 : BUCK CORE1 | ||
bcore2 : BUCK CORE2 | ||
bpro : BUCK PRO | ||
bmem : BUCK MEM | ||
bio : BUCK IO | ||
bperi : BUCK PERI | ||
ldo1 : LDO_1 | ||
ldo2 : LDO_2 | ||
ldo3 : LDO_3 | ||
ldo4 : LDO_4 | ||
ldo5 : LDO_5 | ||
ldo6 : LDO_6 | ||
ldo7 : LDO_7 | ||
ldo8 : LDO_8 | ||
ldo9 : LDO_9 | ||
ldo10 : LDO_10 | ||
ldo11 : LDO_11 | ||
|
||
The component follows the standard regulator framework and the bindings | ||
details of individual regulator device can be found in: | ||
Documentation/devicetree/bindings/regulator/regulator.txt | ||
|
||
- rtc : This node defines settings for the Real-Time Clock associated with | ||
the DA9063. There are currently no entries in this binding, however | ||
compatible = "dlg,da9063-rtc" should be added if a node is created. | ||
|
||
- watchdog : This node defines settings for the Watchdog timer associated | ||
with the DA9063. There are currently no entries in this binding, however | ||
compatible = "dlg,da9063-watchdog" should be added if a node is created. | ||
|
||
|
||
Example: | ||
|
||
pmic0: da9063@58 { | ||
compatible = "dlg,da9063" | ||
reg = <0x58>; | ||
interrupt-parent = <&gpio6>; | ||
interrupts = <11 IRQ_TYPE_LEVEL_LOW>; | ||
interrupt-controller; | ||
|
||
rtc { | ||
compatible = "dlg,da9063-rtc"; | ||
}; | ||
|
||
wdt { | ||
compatible = "dlg,da9063-watchdog"; | ||
}; | ||
|
||
regulators { | ||
DA9063_BCORE1: bcore1 { | ||
regulator-name = "BCORE1"; | ||
regulator-min-microvolt = <300000>; | ||
regulator-max-microvolt = <1570000>; | ||
regulator-min-microamp = <500000>; | ||
regulator-max-microamp = <2000000>; | ||
regulator-boot-on; | ||
}; | ||
DA9063_LDO11: ldo11 { | ||
regulator-name = "LDO_11"; | ||
regulator-min-microvolt = <900000>; | ||
regulator-max-microvolt = <3600000>; | ||
regulator-boot-on; | ||
}; | ||
}; | ||
}; | ||
|
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,70 @@ | ||
Qualcomm Resource Power Manager (RPM) | ||
|
||
This driver is used to interface with the Resource Power Manager (RPM) found in | ||
various Qualcomm platforms. The RPM allows each component in the system to vote | ||
for state of the system resources, such as clocks, regulators and bus | ||
frequencies. | ||
|
||
- compatible: | ||
Usage: required | ||
Value type: <string> | ||
Definition: must be one of: | ||
"qcom,rpm-apq8064" | ||
"qcom,rpm-msm8660" | ||
"qcom,rpm-msm8960" | ||
|
||
- reg: | ||
Usage: required | ||
Value type: <prop-encoded-array> | ||
Definition: base address and size of the RPM's message ram | ||
|
||
- interrupts: | ||
Usage: required | ||
Value type: <prop-encoded-array> | ||
Definition: three entries specifying the RPM's: | ||
1. acknowledgement interrupt | ||
2. error interrupt | ||
3. wakeup interrupt | ||
|
||
- interrupt-names: | ||
Usage: required | ||
Value type: <string-array> | ||
Definition: must be the three strings "ack", "err" and "wakeup", in order | ||
|
||
- #address-cells: | ||
Usage: required | ||
Value type: <u32> | ||
Definition: must be 1 | ||
|
||
- #size-cells: | ||
Usage: required | ||
Value type: <u32> | ||
Definition: must be 0 | ||
|
||
- qcom,ipc: | ||
Usage: required | ||
Value type: <prop-encoded-array> | ||
|
||
Definition: three entries specifying the outgoing ipc bit used for | ||
signaling the RPM: | ||
- phandle to a syscon node representing the apcs registers | ||
- u32 representing offset to the register within the syscon | ||
- u32 representing the ipc bit within the register | ||
|
||
|
||
= EXAMPLE | ||
|
||
#include <dt-bindings/mfd/qcom-rpm.h> | ||
|
||
rpm@108000 { | ||
compatible = "qcom,rpm-msm8960"; | ||
reg = <0x108000 0x1000>; | ||
qcom,ipc = <&apcs 0x8 2>; | ||
|
||
interrupts = <0 19 0>, <0 21 0>, <0 22 0>; | ||
interrupt-names = "ack", "err", "wakeup"; | ||
|
||
#address-cells = <1>; | ||
#size-cells = <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,47 @@ | ||
Hisilicon Hip04 Soc NAND controller DT binding | ||
|
||
Required properties: | ||
|
||
- compatible: Should be "hisilicon,504-nfc". | ||
- reg: The first contains base physical address and size of | ||
NAND controller's registers. The second contains base | ||
physical address and size of NAND controller's buffer. | ||
- interrupts: Interrupt number for nfc. | ||
- nand-bus-width: See nand.txt. | ||
- nand-ecc-mode: Support none and hw ecc mode. | ||
- #address-cells: Partition address, should be set 1. | ||
- #size-cells: Partition size, should be set 1. | ||
|
||
Optional properties: | ||
|
||
- nand-ecc-strength: Number of bits to correct per ECC step. | ||
- nand-ecc-step-size: Number of data bytes covered by a single ECC step. | ||
|
||
The following ECC strength and step size are currently supported: | ||
|
||
- nand-ecc-strength = <16>, nand-ecc-step-size = <1024> | ||
|
||
Flash chip may optionally contain additional sub-nodes describing partitions of | ||
the address space. See partition.txt for more detail. | ||
|
||
Example: | ||
|
||
nand: nand@4020000 { | ||
compatible = "hisilicon,504-nfc"; | ||
reg = <0x4020000 0x10000>, <0x5000000 0x1000>; | ||
interrupts = <0 379 4>; | ||
nand-bus-width = <8>; | ||
nand-ecc-mode = "hw"; | ||
nand-ecc-strength = <16>; | ||
nand-ecc-step-size = <1024>; | ||
#address-cells = <1>; | ||
#size-cells = <1>; | ||
|
||
partition@0 { | ||
label = "nand_text"; | ||
reg = <0x00000000 0x00400000>; | ||
}; | ||
|
||
... | ||
|
||
}; |
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,24 @@ | ||
*Imagination Technologies PWM DAC driver | ||
|
||
Required properties: | ||
- compatible: Should be "img,pistachio-pwm" | ||
- reg: Should contain physical base address and length of pwm registers. | ||
- clocks: Must contain an entry for each entry in clock-names. | ||
See ../clock/clock-bindings.txt for details. | ||
- clock-names: Must include the following entries. | ||
- pwm: PWM operating clock. | ||
- sys: PWM system interface clock. | ||
- #pwm-cells: Should be 2. See pwm.txt in this directory for the | ||
description of the cells format. | ||
- img,cr-periph: Must contain a phandle to the peripheral control | ||
syscon node which contains PWM control registers. | ||
|
||
Example: | ||
pwm: pwm@18101300 { | ||
compatible = "img,pistachio-pwm"; | ||
reg = <0x18101300 0x100>; | ||
clocks = <&pwm_clk>, <&system_clk>; | ||
clock-names = "pwm", "sys"; | ||
#pwm-cells = <2>; | ||
img,cr-periph = <&cr_periph>; | ||
}; |
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,20 @@ | ||
Allwinner sun4i and sun7i SoC PWM controller | ||
|
||
Required properties: | ||
- compatible: should be one of: | ||
- "allwinner,sun4i-a10-pwm" | ||
- "allwinner,sun7i-a20-pwm" | ||
- reg: physical base address and length of the controller's registers | ||
- #pwm-cells: should be 3. See pwm.txt in this directory for a description of | ||
the cells format. | ||
- clocks: From common clock binding, handle to the parent clock. | ||
|
||
Example: | ||
|
||
pwm: pwm@01c20e00 { | ||
compatible = "allwinner,sun7i-a20-pwm"; | ||
reg = <0x01c20e00 0xc>; | ||
clocks = <&osc24M>; | ||
#pwm-cells = <3>; | ||
status = "disabled"; | ||
}; |
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.