-
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 tag 'staging-3.15-rc1' of git://git.kernel.org/pub/scm/linux/ke…
…rnel/git/gregkh/staging Pull staging driver updates from Greg KH: "Here's the huge drivers/staging/ update for 3.15-rc1. Loads of cleanup fixes, a few drivers removed, and some new ones added. All have been in linux-next for a while" * tag 'staging-3.15-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging: (1375 commits) staging: xillybus: XILLYBUS_PCIE depends on PCI_MSI staging: xillybus: Added "select CRC32" for XILLYBUS in Kconfig staging: comedi: poc: remove obsolete driver staging: unisys: replace kzalloc/kfree with UISMALLOC/UISFREE staging: octeon-usb: prevent memory corruption staging: usbip: fix line over 80 characters staging: usbip: fix quoted string split across lines Staging: unisys: Remove RETINT macro Staging: unisys: Remove FAIL macro Staging: unisys: Remove RETVOID macro Staging: unisys: Remove RETPTR macro Staging: unisys: Remove RETBOOL macro Staging: unisys: Remove FAIL_WPOSTCODE_1 macro Staging: unisys: Cleanup macros to get rid of goto statements Staging: unisys: include: Remove unused macros from timskmod.h staging: dgap: fix the rest of the checkpatch warnings in dgap.c Staging: bcm: Remove unnecessary parentheses staging: wlags49_h2: Delete unnecessary braces staging: wlags49_h2: Do not use assignment in if condition staging: wlags49_h2: Enclose macro in a do-while loop ...
- Loading branch information
Showing
943 changed files
with
61,729 additions
and
47,873 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
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,129 @@ | ||
Common bindings for device graphs | ||
|
||
General concept | ||
--------------- | ||
|
||
The hierarchical organisation of the device tree is well suited to describe | ||
control flow to devices, but there can be more complex connections between | ||
devices that work together to form a logical compound device, following an | ||
arbitrarily complex graph. | ||
There already is a simple directed graph between devices tree nodes using | ||
phandle properties pointing to other nodes to describe connections that | ||
can not be inferred from device tree parent-child relationships. The device | ||
tree graph bindings described herein abstract more complex devices that can | ||
have multiple specifiable ports, each of which can be linked to one or more | ||
ports of other devices. | ||
|
||
These common bindings do not contain any information about the direction or | ||
type of the connections, they just map their existence. Specific properties | ||
may be described by specialized bindings depending on the type of connection. | ||
|
||
To see how this binding applies to video pipelines, for example, see | ||
Documentation/device-tree/bindings/media/video-interfaces.txt. | ||
Here the ports describe data interfaces, and the links between them are | ||
the connecting data buses. A single port with multiple connections can | ||
correspond to multiple devices being connected to the same physical bus. | ||
|
||
Organisation of ports and endpoints | ||
----------------------------------- | ||
|
||
Ports are described by child 'port' nodes contained in the device node. | ||
Each port node contains an 'endpoint' subnode for each remote device port | ||
connected to this port. If a single port is connected to more than one | ||
remote device, an 'endpoint' child node must be provided for each link. | ||
If more than one port is present in a device node or there is more than one | ||
endpoint at a port, or a port node needs to be associated with a selected | ||
hardware interface, a common scheme using '#address-cells', '#size-cells' | ||
and 'reg' properties is used number the nodes. | ||
|
||
device { | ||
... | ||
#address-cells = <1>; | ||
#size-cells = <0>; | ||
|
||
port@0 { | ||
#address-cells = <1>; | ||
#size-cells = <0>; | ||
reg = <0>; | ||
|
||
endpoint@0 { | ||
reg = <0>; | ||
... | ||
}; | ||
endpoint@1 { | ||
reg = <1>; | ||
... | ||
}; | ||
}; | ||
|
||
port@1 { | ||
reg = <1>; | ||
|
||
endpoint { ... }; | ||
}; | ||
}; | ||
|
||
All 'port' nodes can be grouped under an optional 'ports' node, which | ||
allows to specify #address-cells, #size-cells properties for the 'port' | ||
nodes independently from any other child device nodes a device might | ||
have. | ||
|
||
device { | ||
... | ||
ports { | ||
#address-cells = <1>; | ||
#size-cells = <0>; | ||
|
||
port@0 { | ||
... | ||
endpoint@0 { ... }; | ||
endpoint@1 { ... }; | ||
}; | ||
|
||
port@1 { ... }; | ||
}; | ||
}; | ||
|
||
Links between endpoints | ||
----------------------- | ||
|
||
Each endpoint should contain a 'remote-endpoint' phandle property that points | ||
to the corresponding endpoint in the port of the remote device. In turn, the | ||
remote endpoint should contain a 'remote-endpoint' property. If it has one, | ||
it must not point to another than the local endpoint. Two endpoints with their | ||
'remote-endpoint' phandles pointing at each other form a link between the | ||
containing ports. | ||
|
||
device-1 { | ||
port { | ||
device_1_output: endpoint { | ||
remote-endpoint = <&device_2_input>; | ||
}; | ||
}; | ||
}; | ||
|
||
device-2 { | ||
port { | ||
device_2_input: endpoint { | ||
remote-endpoint = <&device_1_output>; | ||
}; | ||
}; | ||
}; | ||
|
||
|
||
Required properties | ||
------------------- | ||
|
||
If there is more than one 'port' or more than one 'endpoint' node or 'reg' | ||
property is present in port and/or endpoint nodes the following properties | ||
are required in a relevant parent node: | ||
|
||
- #address-cells : number of cells required to define port/endpoint | ||
identifier, should be 1. | ||
- #size-cells : should be zero. | ||
|
||
Optional endpoint properties | ||
---------------------------- | ||
|
||
- remote-endpoint: phandle to an 'endpoint' subnode of a remote device node. | ||
|
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,22 @@ | ||
Freescale vf610 Analog to Digital Converter bindings | ||
|
||
The devicetree bindings are for the new ADC driver written for | ||
vf610/i.MX6slx and upward SoCs from Freescale. | ||
|
||
Required properties: | ||
- compatible: Should contain "fsl,vf610-adc" | ||
- reg: Offset and length of the register set for the device | ||
- interrupts: Should contain the interrupt for the device | ||
- clocks: The clock is needed by the ADC controller, ADC clock source is ipg clock. | ||
- clock-names: Must contain "adc", matching entry in the clocks property. | ||
- vref-supply: The regulator supply ADC refrence voltage. | ||
|
||
Example: | ||
adc0: adc@4003b000 { | ||
compatible = "fsl,vf610-adc"; | ||
reg = <0x4003b000 0x1000>; | ||
interrupts = <0 53 0x04>; | ||
clocks = <&clks VF610_CLK_ADC0>; | ||
clock-names = "adc"; | ||
vref-supply = <®_vcc_3v3_mcu>; | ||
}; |
113 changes: 113 additions & 0 deletions
113
Documentation/devicetree/bindings/iio/adc/xilinx-xadc.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,113 @@ | ||
Xilinx XADC device driver | ||
|
||
This binding document describes the bindings for both of them since the | ||
bindings are very similar. The Xilinx XADC is a ADC that can be found in the | ||
series 7 FPGAs from Xilinx. The XADC has a DRP interface for communication. | ||
Currently two different frontends for the DRP interface exist. One that is only | ||
available on the ZYNQ family as a hardmacro in the SoC portion of the ZYNQ. The | ||
other one is available on all series 7 platforms and is a softmacro with a AXI | ||
interface. This binding document describes the bindings for both of them since | ||
the bindings are very similar. | ||
|
||
Required properties: | ||
- compatible: Should be one of | ||
* "xlnx,zynq-xadc-1.00.a": When using the ZYNQ device | ||
configuration interface to interface to the XADC hardmacro. | ||
* "xlnx,axi-xadc-1.00.a": When using the axi-xadc pcore to | ||
interface to the XADC hardmacro. | ||
- reg: Address and length of the register set for the device | ||
- interrupts: Interrupt for the XADC control interface. | ||
- clocks: When using the ZYNQ this must be the ZYNQ PCAP clock, | ||
when using the AXI-XADC pcore this must be the clock that provides the | ||
clock to the AXI bus interface of the core. | ||
|
||
Optional properties: | ||
- interrupt-parent: phandle to the parent interrupt controller | ||
- xlnx,external-mux: | ||
* "none": No external multiplexer is used, this is the default | ||
if the property is omitted. | ||
* "single": External multiplexer mode is used with one | ||
multiplexer. | ||
* "dual": External multiplexer mode is used with two | ||
multiplexers for simultaneous sampling. | ||
- xlnx,external-mux-channel: Configures which pair of pins is used to | ||
sample data in external mux mode. | ||
Valid values for single external multiplexer mode are: | ||
0: VP/VN | ||
1: VAUXP[0]/VAUXN[0] | ||
2: VAUXP[1]/VAUXN[1] | ||
... | ||
16: VAUXP[15]/VAUXN[15] | ||
Valid values for dual external multiplexer mode are: | ||
1: VAUXP[0]/VAUXN[0] - VAUXP[8]/VAUXN[8] | ||
2: VAUXP[1]/VAUXN[1] - VAUXP[9]/VAUXN[9] | ||
... | ||
8: VAUXP[7]/VAUXN[7] - VAUXP[15]/VAUXN[15] | ||
|
||
This property needs to be present if the device is configured for | ||
external multiplexer mode (either single or dual). If the device is | ||
not using external multiplexer mode the property is ignored. | ||
- xnlx,channels: List of external channels that are connected to the ADC | ||
Required properties: | ||
* #address-cells: Should be 1. | ||
* #size-cells: Should be 0. | ||
|
||
The child nodes of this node represent the external channels which are | ||
connected to the ADC. If the property is no present no external | ||
channels will be assumed to be connected. | ||
|
||
Each child node represents one channel and has the following | ||
properties: | ||
Required properties: | ||
* reg: Pair of pins the the channel is connected to. | ||
0: VP/VN | ||
1: VAUXP[0]/VAUXN[0] | ||
2: VAUXP[1]/VAUXN[1] | ||
... | ||
16: VAUXP[15]/VAUXN[15] | ||
Note each channel number should only be used at most | ||
once. | ||
Optional properties: | ||
* xlnx,bipolar: If set the channel is used in bipolar | ||
mode. | ||
|
||
|
||
Examples: | ||
xadc@f8007100 { | ||
compatible = "xlnx,zynq-xadc-1.00.a"; | ||
reg = <0xf8007100 0x20>; | ||
interrupts = <0 7 4>; | ||
interrupt-parent = <&gic>; | ||
clocks = <&pcap_clk>; | ||
|
||
xlnx,channels { | ||
#address-cells = <1>; | ||
#size-cells = <0>; | ||
channel@0 { | ||
reg = <0>; | ||
}; | ||
channel@1 { | ||
reg = <1>; | ||
}; | ||
channel@8 { | ||
reg = <8>; | ||
}; | ||
}; | ||
}; | ||
|
||
xadc@43200000 { | ||
compatible = "xlnx,axi-xadc-1.00.a"; | ||
reg = <0x43200000 0x1000>; | ||
interrupts = <0 53 4>; | ||
interrupt-parent = <&gic>; | ||
clocks = <&fpga1_clk>; | ||
|
||
xlnx,channels { | ||
#address-cells = <1>; | ||
#size-cells = <0>; | ||
channel@0 { | ||
reg = <0>; | ||
xlnx,bipolar; | ||
}; | ||
}; | ||
}; |
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.