diff options
| author | Arnd Bergmann <arnd@arndb.de> | 2013-06-19 19:51:18 -0400 |
|---|---|---|
| committer | Arnd Bergmann <arnd@arndb.de> | 2013-06-19 19:51:18 -0400 |
| commit | c3b693d1d63444afe4fbf809d8a311b63741e503 (patch) | |
| tree | 5c0c264203967f1524ac28645f0b5cea57b624bc | |
| parent | 596fd95ea606548adaa8310a7c05a6dcfec46f16 (diff) | |
| parent | 7fca1f20c0f3e9d7a3b23ee1fc9e832f520f3f1a (diff) | |
Merge tag 'u300-multiplatform' of git://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-stericsson into next/soc
From Linus Walleij:
Device Tree and Multiplatform support for U300:
- Add devicetree support to timer, pinctrl (probe), I2C block,
watchdog, DMA controller and clocks.
- Piecewise add a device tree containing all peripherals.
- Delete the ATAG boot path.
- Delete redundant platform data and board files.
- Convert to multiplatform.
* tag 'u300-multiplatform' of git://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-stericsson: (40 commits)
ARM: u300: switch to using syscon regmap for board
ARM: u300: Update MMC configs for u300 defconfig
spi: pl022: use DMA by default when probing from DT
pinctrl: get rid of all platform data for coh901
ARM: u300: convert MMC/SD clock to device tree
ARM: u300: move the gated system controller clocks to DT
i2c: stu300: do not request a specific clock name
clk: move the U300 fixed and fixed-factor to DT
ARM: u300: remove register definition file
ARM: u300: add syscon node
ARM: u300 use module_spi_driver to register driver
ARM: u300: delete remnant machine headers
ARM: u300: convert to multiplatform
ARM: u300: localize <mach/u300-regs.h>
ARM: u300: delete <mach/irqs.h>
ARM: u300: delete <mach/hardware.h>
ARM: u300: push down syscon registers
ARM: u300: remove deps from debug macro
ARM: u300: move debugmacro to debug includes
ARM: u300: delete all static board data
...
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
40 files changed, 1786 insertions, 2219 deletions
diff --git a/Documentation/devicetree/bindings/arm/ste-u300.txt b/Documentation/devicetree/bindings/arm/ste-u300.txt new file mode 100644 index 000000000000..69b5ab0b5f4b --- /dev/null +++ b/Documentation/devicetree/bindings/arm/ste-u300.txt | |||
| @@ -0,0 +1,46 @@ | |||
| 1 | ST-Ericsson U300 Device Tree Bindings | ||
| 2 | |||
| 3 | For various board the "board" node may contain specific properties | ||
| 4 | that pertain to this particular board, such as board-specific GPIOs | ||
| 5 | or board power regulator supplies. | ||
| 6 | |||
| 7 | Required root node property: | ||
| 8 | |||
| 9 | compatible="stericsson,u300"; | ||
| 10 | |||
| 11 | Required node: syscon | ||
| 12 | This contains the system controller. | ||
| 13 | - compatible: must be "stericsson,u300-syscon". | ||
| 14 | - reg: the base address and size of the system controller. | ||
| 15 | |||
| 16 | Boards with the U300 SoC include: | ||
| 17 | |||
| 18 | S365 "Small Board U365": | ||
| 19 | |||
| 20 | Required node: s365 | ||
| 21 | This contains the board-specific information. | ||
| 22 | - compatible: must be "stericsson,s365". | ||
| 23 | - vana15-supply: the regulator supplying the 1.5V to drive the | ||
| 24 | board. | ||
| 25 | - syscon: a pointer to the syscon node so we can acccess the | ||
| 26 | syscon registers to set the board as self-powered. | ||
| 27 | |||
| 28 | Example: | ||
| 29 | |||
| 30 | / { | ||
| 31 | model = "ST-Ericsson U300"; | ||
| 32 | compatible = "stericsson,u300"; | ||
| 33 | #address-cells = <1>; | ||
| 34 | #size-cells = <1>; | ||
| 35 | |||
| 36 | s365 { | ||
| 37 | compatible = "stericsson,s365"; | ||
| 38 | vana15-supply = <&ab3100_ldo_d_reg>; | ||
| 39 | syscon = <&syscon>; | ||
| 40 | }; | ||
| 41 | |||
| 42 | syscon: syscon@c0011000 { | ||
| 43 | compatible = "stericsson,u300-syscon"; | ||
| 44 | reg = <0xc0011000 0x1000>; | ||
| 45 | }; | ||
| 46 | }; | ||
diff --git a/Documentation/devicetree/bindings/clock/ste-u300-syscon-clock.txt b/Documentation/devicetree/bindings/clock/ste-u300-syscon-clock.txt new file mode 100644 index 000000000000..7cafcb98ead7 --- /dev/null +++ b/Documentation/devicetree/bindings/clock/ste-u300-syscon-clock.txt | |||
| @@ -0,0 +1,80 @@ | |||
| 1 | Clock bindings for ST-Ericsson U300 System Controller Clocks | ||
| 2 | |||
| 3 | Bindings for the gated system controller clocks: | ||
| 4 | |||
| 5 | Required properties: | ||
| 6 | - compatible: must be "stericsson,u300-syscon-clk" | ||
| 7 | - #clock-cells: must be <0> | ||
| 8 | - clock-type: specifies the type of clock: | ||
| 9 | 0 = slow clock | ||
| 10 | 1 = fast clock | ||
| 11 | 2 = rest/remaining clock | ||
| 12 | - clock-id: specifies the clock in the type range | ||
| 13 | |||
| 14 | Optional properties: | ||
| 15 | - clocks: parent clock(s) | ||
| 16 | |||
| 17 | The available clocks per type are as follows: | ||
| 18 | |||
| 19 | Type: ID: Clock: | ||
| 20 | ------------------- | ||
| 21 | 0 0 Slow peripheral bridge clock | ||
| 22 | 0 1 UART0 clock | ||
| 23 | 0 4 GPIO clock | ||
| 24 | 0 6 RTC clock | ||
| 25 | 0 7 Application timer clock | ||
| 26 | 0 8 Access timer clock | ||
| 27 | |||
| 28 | 1 0 Fast peripheral bridge clock | ||
| 29 | 1 1 I2C bus 0 clock | ||
| 30 | 1 2 I2C bus 1 clock | ||
| 31 | 1 5 MMC interface peripheral (silicon) clock | ||
| 32 | 1 6 SPI clock | ||
| 33 | |||
| 34 | 2 3 CPU clock | ||
| 35 | 2 4 DMA controller clock | ||
| 36 | 2 5 External Memory Interface (EMIF) clock | ||
| 37 | 2 6 NAND flask interface clock | ||
| 38 | 2 8 XGAM graphics engine clock | ||
| 39 | 2 9 Shared External Memory Interface (SEMI) clock | ||
| 40 | 2 10 AHB Subsystem Bridge clock | ||
| 41 | 2 12 Interrupt controller clock | ||
| 42 | |||
| 43 | Example: | ||
| 44 | |||
| 45 | gpio_clk: gpio_clk@13M { | ||
| 46 | #clock-cells = <0>; | ||
| 47 | compatible = "stericsson,u300-syscon-clk"; | ||
| 48 | clock-type = <0>; /* Slow */ | ||
| 49 | clock-id = <4>; | ||
| 50 | clocks = <&slow_clk>; | ||
| 51 | }; | ||
| 52 | |||
| 53 | gpio: gpio@c0016000 { | ||
| 54 | compatible = "stericsson,gpio-coh901"; | ||
| 55 | (...) | ||
| 56 | clocks = <&gpio_clk>; | ||
| 57 | }; | ||
| 58 | |||
| 59 | |||
| 60 | Bindings for the MMC/SD card clock: | ||
| 61 | |||
| 62 | Required properties: | ||
| 63 | - compatible: must be "stericsson,u300-syscon-mclk" | ||
| 64 | - #clock-cells: must be <0> | ||
| 65 | |||
| 66 | Optional properties: | ||
