-
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 branch 'spear-for-3.8' of git://git.linaro.org/people/vireshk/l…
…inux into next/dt2 From Viresh Kumar <viresh.kumar@linaro.org>: These are DT updates for SPEAr SoCs. There aren't any fixes that we want to get into 3.7-rc* and we are happy with 3.8. Some of the dtbs which use gpiopinctrl have dependency on Linus's pinctrl tree, where an earlier update for adding gpiopinctrl node is present. * 'spear-for-3.8' of git://git.linaro.org/people/vireshk/linux: ARM: SPEAr3xx: Shirq: Move shirq controller out of plat/ ARM: SPEAr320: DT: Add SPEAr 320 HMI board support ARM: SPEAr3xx: DT: add shirq node for interrupt multiplexor ARM: SPEAr3xx: shirq: simplify and move the shared irq multiplexor to DT ARM: SPEAr1310: Fix AUXDATA for compact flash controller ARM: SPEAr13xx: Remove fields not required for ssp controller ARM: SPEAr1310: Move 1310 specific misc register into machine specific files ARM: SPEAr: DT: Update device nodes ARM: SPEAr: DT: add uart state to fix warning ARM: SPEAr: DT: Modify DT bindings for STMMAC ARM: SPEAr: DT: Fix existing DT support ARM: SPEAr: DT: Update partition info for MTD devices ARM: SPEAr: DT: Update pinctrl list ARM: SPEAr13xx: DT: Add spics gpio controller nodes Signed-off-by: Arnd Bergmann <arnd@arndb.de>
- Loading branch information
Showing
89 changed files
with
4,179 additions
and
1,225 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,48 @@ | ||
* SPEAr Shared IRQ layer (shirq) | ||
|
||
SPEAr3xx architecture includes shared/multiplexed irqs for certain set | ||
of devices. The multiplexor provides a single interrupt to parent | ||
interrupt controller (VIC) on behalf of a group of devices. | ||
|
||
There can be multiple groups available on SPEAr3xx variants but not | ||
exceeding 4. The number of devices in a group can differ, further they | ||
may share same set of status/mask registers spanning across different | ||
bit masks. Also in some cases the group may not have enable or other | ||
registers. This makes software little complex. | ||
|
||
A single node in the device tree is used to describe the shared | ||
interrupt multiplexor (one node for all groups). A group in the | ||
interrupt controller shares config/control registers with other groups. | ||
For example, a 32-bit interrupt enable/disable config register can | ||
accommodate upto 4 interrupt groups. | ||
|
||
Required properties: | ||
- compatible: should be, either of | ||
- "st,spear300-shirq" | ||
- "st,spear310-shirq" | ||
- "st,spear320-shirq" | ||
- interrupt-controller: Identifies the node as an interrupt controller. | ||
- #interrupt-cells: should be <1> which basically contains the offset | ||
(starting from 0) of interrupts for all the groups. | ||
- reg: Base address and size of shirq registers. | ||
- interrupts: The list of interrupts generated by the groups which are | ||
then connected to a parent interrupt controller. Each group is | ||
associated with one of the interrupts, hence number of interrupts (to | ||
parent) is equal to number of groups. The format of the interrupt | ||
specifier depends in the interrupt parent controller. | ||
|
||
Optional properties: | ||
- interrupt-parent: pHandle of the parent interrupt controller, if not | ||
inherited from the parent node. | ||
|
||
Example: | ||
|
||
The following is an example from the SPEAr320 SoC dtsi file. | ||
|
||
shirq: interrupt-controller@0xb3000000 { | ||
compatible = "st,spear320-shirq"; | ||
reg = <0xb3000000 0x1000>; | ||
interrupts = <28 29 30 1>; | ||
#interrupt-cells = <1>; | ||
interrupt-controller; | ||
}; |
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,50 @@ | ||
=== ST Microelectronics SPEAr SPI CS Driver === | ||
|
||
SPEAr platform provides a provision to control chipselects of ARM PL022 Prime | ||
Cell spi controller through its system registers, which otherwise remains under | ||
PL022 control. If chipselect remain under PL022 control then they would be | ||
released as soon as transfer is over and TxFIFO becomes empty. This is not | ||
desired by some of the device protocols above spi which expect (multiple) | ||
transfers without releasing their chipselects. | ||
|
||
Chipselects can be controlled by software by turning them as GPIOs. SPEAr | ||
provides another interface through system registers through which software can | ||
directly control each PL022 chipselect. Hence, it is natural for SPEAr to export | ||
the control of this interface as gpio. | ||
|
||
Required properties: | ||
|
||
* compatible: should be defined as "st,spear-spics-gpio" | ||
* reg: mentioning address range of spics controller | ||
* st-spics,peripcfg-reg: peripheral configuration register offset | ||
* st-spics,sw-enable-bit: bit offset to enable sw control | ||
* st-spics,cs-value-bit: bit offset to drive chipselect low or high | ||
* st-spics,cs-enable-mask: chip select number bit mask | ||
* st-spics,cs-enable-shift: chip select number program offset | ||
* gpio-controller: Marks the device node as gpio controller | ||
* #gpio-cells: should be 1 and will mention chip select number | ||
|
||
All the above bit offsets are within peripcfg register. | ||
|
||
Example: | ||
------- | ||
spics: spics@e0700000{ | ||
compatible = "st,spear-spics-gpio"; | ||
reg = <0xe0700000 0x1000>; | ||
st-spics,peripcfg-reg = <0x3b0>; | ||
st-spics,sw-enable-bit = <12>; | ||
st-spics,cs-value-bit = <11>; | ||
st-spics,cs-enable-mask = <3>; | ||
st-spics,cs-enable-shift = <8>; | ||
gpio-controller; | ||
#gpio-cells = <2>; | ||
}; | ||
|
||
|
||
spi0: spi@e0100000 { | ||
status = "okay"; | ||
num-cs = <3>; | ||
cs-gpios = <&gpio1 7 0>, <&spics 0>, | ||
<&spics 1>; | ||
... | ||
} |
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.