diff options
| author | Steffen Trumtrar <s.trumtrar@pengutronix.de> | 2013-10-07 11:38:41 -0400 |
|---|---|---|
| committer | Dinh Nguyen <dinguyen@altera.com> | 2013-10-09 17:56:24 -0400 |
| commit | 071fb4cbe01cb418264143cf49612a8d23cfaf4e (patch) | |
| tree | f7d6b0af63dcee5061bfe4de52fe45b93b91fa65 | |
| parent | 159c7f89494fb64ccd435b7ef5861ecdb64bc379 (diff) | |
ARM: socfpga: dts: Move common nodes to cyclone5 dtsi
The current socfpga_cyclone5.dts describes the Altera Cyclone5 SoC Development
Kit. The Cyclone5 includes a SoCFPGA, which itself can be included in other
SoC+FPGA combinations.
Instead of having to describe all Cyclone5 common nodes in every board specific
dts, move socfpga_cyclone5.dts to a dtsi and include this in a new dts for the
Development Kit.
[Dinh Nguyen] - Changed to 115200 for baudrate in dts bootargs
Signed-off-by: Steffen Trumtrar <s.trumtrar@pengutronix.de>
Signed-off-by: Dinh Nguyen <dinguyen@altera.com>
| -rw-r--r-- | arch/arm/boot/dts/Makefile | 2 | ||||
| -rw-r--r-- | arch/arm/boot/dts/socfpga_cyclone5.dtsi (renamed from arch/arm/boot/dts/socfpga_cyclone5.dts) | 20 | ||||
| -rw-r--r-- | arch/arm/boot/dts/socfpga_cyclone5_socdk.dts | 40 |
3 files changed, 41 insertions, 21 deletions
diff --git a/arch/arm/boot/dts/Makefile b/arch/arm/boot/dts/Makefile index e95af3f5433b..430ba19b2f87 100644 --- a/arch/arm/boot/dts/Makefile +++ b/arch/arm/boot/dts/Makefile | |||
| @@ -211,7 +211,7 @@ dtb-$(CONFIG_ARCH_SHMOBILE) += emev2-kzm9d.dtb \ | |||
| 211 | r8a73a4-ape6evm-reference.dtb \ | 211 | r8a73a4-ape6evm-reference.dtb \ |
| 212 | sh7372-mackerel.dtb | 212 | sh7372-mackerel.dtb |
| 213 | dtb-$(CONFIG_ARCH_SHMOBILE_MULTI) += emev2-kzm9d-reference.dtb | 213 | dtb-$(CONFIG_ARCH_SHMOBILE_MULTI) += emev2-kzm9d-reference.dtb |
| 214 | dtb-$(CONFIG_ARCH_SOCFPGA) += socfpga_cyclone5.dtb \ | 214 | dtb-$(CONFIG_ARCH_SOCFPGA) += socfpga_cyclone5_socdk.dtb \ |
| 215 | socfpga_vt.dtb | 215 | socfpga_vt.dtb |
| 216 | dtb-$(CONFIG_ARCH_SPEAR13XX) += spear1310-evb.dtb \ | 216 | dtb-$(CONFIG_ARCH_SPEAR13XX) += spear1310-evb.dtb \ |
| 217 | spear1340-evb.dtb | 217 | spear1340-evb.dtb |
diff --git a/arch/arm/boot/dts/socfpga_cyclone5.dts b/arch/arm/boot/dts/socfpga_cyclone5.dtsi index 973999d2c697..a8716f6dbe2e 100644 --- a/arch/arm/boot/dts/socfpga_cyclone5.dts +++ b/arch/arm/boot/dts/socfpga_cyclone5.dtsi | |||
| @@ -19,26 +19,6 @@ | |||
| 19 | /include/ "socfpga.dtsi" | 19 | /include/ "socfpga.dtsi" |
| 20 | 20 | ||
| 21 | / { | 21 | / { |
| 22 | model = "Altera SOCFPGA Cyclone V"; | ||
| 23 | compatible = "altr,socfpga-cyclone5", "altr,socfpga"; | ||
| 24 | |||
| 25 | chosen { | ||
| 26 | bootargs = "console=ttyS0,57600"; | ||
| 27 | }; | ||
| 28 | |||
| 29 | memory { | ||
| 30 | name = "memory"; | ||
| 31 | device_type = "memory"; | ||
| 32 | reg = <0x0 0x40000000>; /* 1GB */ | ||
| 33 | }; | ||
| 34 | |||
| 35 | aliases { | ||
| 36 | /* this allow the ethaddr uboot environmnet variable contents | ||
| 37 | * to be added to the gmac1 device tree blob. | ||
| 38 | */ | ||
| 39 | ethernet0 = &gmac1; | ||
| 40 | }; | ||
| 41 | |||
| 42 | soc { | 22 | soc { |
| 43 | clkmgr@ffd04000 { | 23 | clkmgr@ffd04000 { |
| 44 | clocks { | 24 | clocks { |
diff --git a/arch/arm/boot/dts/socfpga_cyclone5_socdk.dts b/arch/arm/boot/dts/socfpga_cyclone5_socdk.dts new file mode 100644 index 000000000000..2ee52ab8cabb --- /dev/null +++ b/arch/arm/boot/dts/socfpga_cyclone5_socdk.dts | |||
| @@ -0,0 +1,40 @@ | |||
| 1 | /* | ||
| 2 | * Copyright (C) 2012 Altera Corporation <www.altera.com> | ||
| 3 | * | ||
| 4 | * This program is free software; you can redistribute it and/or modify | ||
| 5 | * it under the terms of the GNU General Public License as published by | ||
| 6 | * the Free Software Foundation; either version 2 of the License, or | ||
| 7 | * (at your option) any later version. | ||
| 8 | * | ||
| 9 | * This program is distributed in the hope that it will be useful, | ||
| 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 12 | * GNU General Public License for more details. | ||
| 13 | * | ||
| 14 | * You should have received a copy of the GNU General Public License | ||
| 15 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
| 16 | */ | ||
| 17 | |||
| 18 | /include/ "socfpga_cyclone5.dtsi" | ||
| 19 | |||
| 20 | / { | ||
| 21 | model = "Altera SOCFPGA Cyclone V SoC Development Kit"; | ||
| 22 | compatible = "altr,socfpga-cyclone5", "altr,socfpga"; | ||
| 23 | |||
| 24 | chosen { | ||
| 25 | bootargs = "console=ttyS0,115200"; | ||
| 26 | }; | ||
| 27 | |||
| 28 | memory { | ||
| 29 | name = "memory"; | ||
| 30 | device_type = "memory"; | ||
| 31 | reg = <0x0 0x40000000>; /* 1GB */ | ||
| 32 | }; | ||
| 33 | |||
| 34 | aliases { | ||
| 35 | /* this allow the ethaddr uboot environmnet variable contents | ||
| 36 | * to be added to the gmac1 device tree blob. | ||
| 37 | */ | ||
| 38 | ethernet0 = &gmac1; | ||
| 39 | }; | ||
| 40 | }; | ||
