diff options
| author | Sebastian Hesselbarth <sebastian.hesselbarth@gmail.com> | 2012-08-15 13:07:34 -0400 |
|---|---|---|
| committer | Jason Cooper <jason@lakedaemon.net> | 2012-09-21 13:07:24 -0400 |
| commit | 80a8b54b9a0ba418f25d2014b1375f9f4876eb15 (patch) | |
| tree | b146eafb037fbd407149e12ae60aa21eafd39e3b | |
| parent | 81d2ef7c40eceb7189872ecea5964f2041118d4a (diff) | |
ARM: dove: add device tree descriptors
This patch adds device tree decriptors for dove SoC and currently
supported boards.
Signed-off-by: Sebastian Hesselbarth <sebastian.hesselbarth@gmail.com>
Signed-off-by: Jason Cooper <jason@lakedaemon.net>
| -rw-r--r-- | arch/arm/boot/dts/dove-cm-a510.dts | 38 | ||||
| -rw-r--r-- | arch/arm/boot/dts/dove-dove-db.dts | 38 | ||||
| -rw-r--r-- | arch/arm/boot/dts/dove.dtsi | 143 | ||||
| -rw-r--r-- | arch/arm/mach-dove/Makefile.boot | 3 |
4 files changed, 222 insertions, 0 deletions
diff --git a/arch/arm/boot/dts/dove-cm-a510.dts b/arch/arm/boot/dts/dove-cm-a510.dts new file mode 100644 index 000000000000..61a8062e56de --- /dev/null +++ b/arch/arm/boot/dts/dove-cm-a510.dts | |||
| @@ -0,0 +1,38 @@ | |||
| 1 | /dts-v1/; | ||
| 2 | |||
| 3 | /include/ "dove.dtsi" | ||
| 4 | |||
| 5 | / { | ||
| 6 | model = "Compulab CM-A510"; | ||
| 7 | compatible = "compulab,cm-a510", "marvell,dove"; | ||
| 8 | |||
| 9 | memory { | ||
| 10 | device_type = "memory"; | ||
| 11 | reg = <0x00000000 0x40000000>; | ||
| 12 | }; | ||
| 13 | |||
| 14 | chosen { | ||
| 15 | bootargs = "console=ttyS0,115200n8 earlyprintk"; | ||
| 16 | }; | ||
| 17 | }; | ||
| 18 | |||
| 19 | &uart0 { status = "okay"; }; | ||
| 20 | &uart1 { status = "okay"; }; | ||
| 21 | &sdio0 { status = "okay"; }; | ||
| 22 | &sdio1 { status = "okay"; }; | ||
| 23 | &sata0 { status = "okay"; }; | ||
| 24 | |||
| 25 | &spi0 { | ||
| 26 | status = "okay"; | ||
| 27 | |||
| 28 | /* spi0.0: 4M Flash Winbond W25Q32BV */ | ||
| 29 | spi-flash@0 { | ||
| 30 | compatible = "st,w25q32"; | ||
| 31 | spi-max-frequency = <20000000>; | ||
| 32 | reg = <0>; | ||
| 33 | }; | ||
| 34 | }; | ||
| 35 | |||
| 36 | &i2c0 { | ||
| 37 | status = "okay"; | ||
| 38 | }; | ||
diff --git a/arch/arm/boot/dts/dove-dove-db.dts b/arch/arm/boot/dts/dove-dove-db.dts new file mode 100644 index 000000000000..e5a920beab45 --- /dev/null +++ b/arch/arm/boot/dts/dove-dove-db.dts | |||
| @@ -0,0 +1,38 @@ | |||
| 1 | /dts-v1/; | ||
| 2 | |||
| 3 | /include/ "dove.dtsi" | ||
| 4 | |||
| 5 | / { | ||
| 6 | model = "Marvell DB-MV88AP510-BP Development Board"; | ||
| 7 | compatible = "marvell,dove-db", "marvell,dove"; | ||
| 8 | |||
| 9 | memory { | ||
| 10 | device_type = "memory"; | ||
| 11 | reg = <0x00000000 0x40000000>; | ||
| 12 | }; | ||
| 13 | |||
| 14 | chosen { | ||
| 15 | bootargs = "console=ttyS0,115200n8 earlyprintk"; | ||
| 16 | }; | ||
| 17 | }; | ||
| 18 | |||
| 19 | &uart0 { status = "okay"; }; | ||
| 20 | &uart1 { status = "okay"; }; | ||
| 21 | &sdio0 { status = "okay"; }; | ||
| 22 | &sdio1 { status = "okay"; }; | ||
| 23 | &sata0 { status = "okay"; }; | ||
| 24 | |||
| 25 | &spi0 { | ||
| 26 | status = "okay"; | ||
| 27 | |||
| 28 | /* spi0.0: 4M Flash ST-M25P32-VMF6P */ | ||
| 29 | spi-flash@0 { | ||
| 30 | compatible = "st,m25p32"; | ||
| 31 | spi-max-frequency = <20000000>; | ||
| 32 | reg = <0>; | ||
| 33 | }; | ||
| 34 | }; | ||
| 35 | |||
| 36 | &i2c0 { | ||
| 37 | status = "okay"; | ||
| 38 | }; | ||
diff --git a/arch/arm/boot/dts/dove.dtsi b/arch/arm/boot/dts/dove.dtsi new file mode 100644 index 000000000000..96fb824b5e6e --- /dev/null +++ b/arch/arm/boot/dts/dove.dtsi | |||
| @@ -0,0 +1,143 @@ | |||
| 1 | /include/ "skeleton.dtsi" | ||
| 2 | |||
| 3 | / { | ||
| 4 | compatible = "marvell,dove"; | ||
| 5 | model = "Marvell Armada 88AP510 SoC"; | ||
| 6 | |||
| 7 | interrupt-parent = <&intc>; | ||
| 8 | |||
| 9 | intc: interrupt-controller { | ||
| 10 | compatible = "marvell,orion-intc"; | ||
| 11 | interrupt-controller; | ||
| 12 | #interrupt-cells = <1>; | ||
| 13 | reg = <0xf1020204 0x04>, | ||
| 14 | <0xf1020214 0x04>; | ||
| 15 | }; | ||
| 16 | |||
| 17 | mbus@f1000000 { | ||
| 18 | compatible = "simple-bus"; | ||
| 19 | ranges = <0 0xf1000000 0x4000000>; | ||
| 20 | #address-cells = <1>; | ||
| 21 | #size-cells = <1>; | ||
| 22 | |||
| 23 | uart0: serial@12000 { | ||
| 24 | compatible = "ns16550a"; | ||
| 25 | reg = <0x12000 0x100>; | ||
| 26 | reg-shift = <2>; | ||
| 27 | interrupts = <7>; | ||
| 28 | clock-frequency = <166666667>; | ||
| 29 | status = "disabled"; | ||
| 30 | }; | ||
| 31 | |||
| 32 | uart1: serial@12100 { | ||
| 33 | compatible = "ns16550a"; | ||
| 34 | reg = <0x12100 0x100>; | ||
| 35 | reg-shift = <2>; | ||
| 36 | interrupts = <8>; | ||
| 37 | clock-frequency = <166666667>; | ||
| 38 | status = "disabled"; | ||
| 39 | }; | ||
| 40 | |||
| 41 | uart2: serial@12200 { | ||
| 42 | compatible = "ns16550a"; | ||
| 43 | reg = <0x12000 0x100>; | ||
| 44 | reg-shift = <2>; | ||
| 45 | interrupts = <9>; | ||
| 46 | clock-frequency = <166666667>; | ||
| 47 | status = "disabled"; | ||
| 48 | }; | ||
| 49 | |||
| 50 | uart3: serial@12300 { | ||
| 51 | compatible = "ns16550a"; | ||
| 52 | reg = <0x12100 0x100>; | ||
| 53 | reg-shift = <2>; | ||
| 54 | interrupts = <10>; | ||
| 55 | clock-frequency = <166666667>; | ||
| 56 | status = "disabled"; | ||
| 57 | }; | ||
| 58 | |||
| 59 | wdt: wdt@20300 { | ||
| 60 | compatible = "marvell,orion-wdt"; | ||
| 61 | reg = <0x20300 0x28>; | ||
| 62 | }; | ||
| 63 | |||
| 64 | gpio0: gpio@d0400 { | ||
| 65 | compatible = "marvell,orion-gpio"; | ||
| 66 | #gpio-cells = <2>; | ||
| 67 | gpio-controller; | ||
| 68 | reg = <0xd0400 0x20>; | ||
| 69 | ngpio = <32>; | ||
| 70 | interrupts = <12>, <13>, <14>, <60>; | ||
| 71 | }; | ||
| 72 | |||
| 73 | gpio1: gpio@d0420 { | ||
| 74 | compatible = "marvell,orion-gpio"; | ||
| 75 | #gpio-cells = <2>; | ||
| 76 | gpio-controller; | ||
| 77 | reg = <0xd0420 0x20>; | ||
| 78 | ngpio = <32>; | ||
| 79 | interrupts = <61>; | ||
| 80 | }; | ||
| 81 | |||
| 82 | gpio2: gpio@e8400 { | ||
| 83 | compatible = "marvell,orion-gpio"; | ||
| 84 | #gpio-cells = <2>; | ||
| 85 | gpio-controller; | ||
| 86 | reg = <0xe8400 0x0c>; | ||
| 87 | ngpio = <8>; | ||
| 88 | }; | ||
| 89 | |||
| 90 | spi0: spi@10600 { | ||
| 91 | compatible = "marvell,orion-spi"; | ||
| 92 | #address-cells = <1>; | ||
| 93 | #size-cells = <0>; | ||
| 94 | cell-index = <0>; | ||
| 95 | interrupts = <6>; | ||
| 96 | reg = <0x10600 0x28>; | ||
| 97 | status = "disabled"; | ||
| 98 | }; | ||
| 99 | |||
| 100 | spi1: spi@14600 { | ||
| 101 | compatible = "marvell,orion-spi"; | ||
| 102 | #address-cells = <1>; | ||
| 103 | #size-cells = <0>; | ||
| 104 | cell-index = <1>; | ||
| 105 | interrupts = <5>; | ||
| 106 | reg = <0x14600 0x28>; | ||
| 107 | status = "disabled"; | ||
| 108 | }; | ||
| 109 | |||
| 110 | i2c0: i2c@11000 { | ||
| 111 | compatible = "marvell,mv64xxx-i2c"; | ||
| 112 | reg = <0x11000 0x20>; | ||
| 113 | #address-cells = <1>; | ||
| 114 | #size-cells = <0>; | ||
| 115 | interrupts = <11>; | ||
| 116 | clock-frequency = <400000>; | ||
| 117 | timeout-ms = <1000>; | ||
| 118 | status = "disabled"; | ||
| 119 | }; | ||
| 120 | |||
| 121 | sdio0: sdio@92000 { | ||
| 122 | compatible = "marvell,dove-sdhci"; | ||
| 123 | reg = <0x92000 0x100>; | ||
| 124 | interrupts = <35>, <37>; | ||
| 125 | status = "disabled"; | ||
| 126 | }; | ||
| 127 | |||
| 128 | sdio1: sdio@90000 { | ||
| 129 | compatible = "marvell,dove-sdhci"; | ||
| 130 | reg = <0x90000 0x100>; | ||
| 131 | interrupts = <36>, <38>; | ||
| 132 | status = "disabled"; | ||
| 133 | }; | ||
| 134 | |||
| 135 | sata0: sata@a0000 { | ||
| 136 | compatible = "marvell,orion-sata"; | ||
| 137 | reg = <0xa0000 0x2400>; | ||
| 138 | interrupts = <62>; | ||
| 139 | nr-ports = <1>; | ||
| 140 | status = "disabled"; | ||
| 141 | }; | ||
| 142 | }; | ||
| 143 | }; | ||
diff --git a/arch/arm/mach-dove/Makefile.boot b/arch/arm/mach-dove/Makefile.boot index 760a0efe7580..94ab6b3586a1 100644 --- a/arch/arm/mach-dove/Makefile.boot +++ b/arch/arm/mach-dove/Makefile.boot | |||
| @@ -1,3 +1,6 @@ | |||
| 1 | zreladdr-y += 0x00008000 | 1 | zreladdr-y += 0x00008000 |
| 2 | params_phys-y := 0x00000100 | 2 | params_phys-y := 0x00000100 |
| 3 | initrd_phys-y := 0x00800000 | 3 | initrd_phys-y := 0x00800000 |
| 4 | |||
| 5 | dtb-$(CONFIG_MACH_DOVE_DT) += dove-dove-db.dtb | ||
| 6 | dtb-$(CONFIG_MACH_DOVE_DT) += dove-cm-a510.dtb | ||
