Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

ARM: socfpga: Add support for DENX MCV SoM and MCVEVK baseboard

Add support for the DENX MCV SoM and MCVEVK baseboard. The SoM contains
eMMC, DRAM, Altera Cyclone V SoC. The baseboard contains CAN ports, UART
ports, STMPE811 touchscreen controller, USB OTG port, ethernet port and
a lot of IO pins.

Signed-off-by: Marek Vasut <marex@denx.de>
Reviewed-by: Steffen Trumtrar <s.trumtrar@pengutronix.de>
Cc: Vince Bridgers <vbridgers2013@gmail.com>
Cc: Alan Tull <atull@altera.com>
Cc: Thor Thayer <tthayer@altera.com>
Cc: Olof Johansson <olof@lixom.net>
Signed-off-by: Dinh Nguyen <dinguyen@opensource.altera.com>

authored by

Marek Vasut and committed by
Dinh Nguyen
34a31588 8005c49d

+128
+1
arch/arm/boot/dts/Makefile
··· 557 557 dtb-$(CONFIG_ARCH_SOCFPGA) += \ 558 558 socfpga_arria5_socdk.dtb \ 559 559 socfpga_arria10_socdk_sdmmc.dtb \ 560 + socfpga_cyclone5_mcvevk.dtb \ 560 561 socfpga_cyclone5_socdk.dtb \ 561 562 socfpga_cyclone5_de0_sockit.dtb \ 562 563 socfpga_cyclone5_sockit.dtb \
+33
arch/arm/boot/dts/socfpga_cyclone5_mcv.dtsi
··· 1 + /* 2 + * Copyright (C) 2015 Marek Vasut <marex@denx.de> 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 = "DENX MCV"; 22 + compatible = "altr,socfpga-cyclone5", "altr,socfpga"; 23 + 24 + memory { 25 + name = "memory"; 26 + device_type = "memory"; 27 + reg = <0x0 0x40000000>; /* 1 GiB */ 28 + }; 29 + }; 30 + 31 + &mmc0 { /* On-SoM eMMC */ 32 + bus-width = <8>; 33 + };
+94
arch/arm/boot/dts/socfpga_cyclone5_mcvevk.dts
··· 1 + /* 2 + * Copyright (C) 2015 Marek Vasut <marex@denx.de> 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_mcv.dtsi" 19 + 20 + / { 21 + model = "DENX MCV EVK"; 22 + compatible = "altr,socfpga-cyclone5", "altr,socfpga"; 23 + 24 + aliases { 25 + ethernet0 = &gmac0; 26 + stmpe-i2c0 = &stmpe1; 27 + }; 28 + 29 + chosen { 30 + stdout-path = "serial0:115200n8"; 31 + }; 32 + }; 33 + 34 + &can0 { 35 + status = "okay"; 36 + }; 37 + 38 + &can1 { 39 + status = "okay"; 40 + }; 41 + 42 + &gmac0 { 43 + phy-mode = "rgmii"; 44 + status = "okay"; 45 + }; 46 + 47 + &gpio0 { /* GPIO 0 ... 28 */ 48 + status = "okay"; 49 + }; 50 + 51 + &gpio1 { /* GPIO 29 ... 57 */ 52 + status = "okay"; 53 + }; 54 + 55 + &gpio2 { /* GPIO 58..66 (HLGPI 0..13 at offset 13) */ 56 + status = "okay"; 57 + }; 58 + 59 + &i2c0 { 60 + status = "okay"; 61 + speed-mode = <0>; 62 + 63 + stmpe1: stmpe811@41 { 64 + compatible = "st,stmpe811"; 65 + #address-cells = <1>; 66 + #size-cells = <0>; 67 + reg = <0x41>; 68 + id = <0>; 69 + blocks = <0x5>; 70 + irq-gpio = <&portb 28 0x4>; /* GPIO 57, trig. level HI */ 71 + 72 + stmpe_touchscreen { 73 + compatible = "st,stmpe-ts"; 74 + reg = <0>; 75 + ts,sample-time = <4>; 76 + ts,mod-12b = <1>; 77 + ts,ref-sel = <0>; 78 + ts,adc-freq = <1>; 79 + ts,ave-ctrl = <1>; 80 + ts,touch-det-delay = <3>; 81 + ts,settling = <4>; 82 + ts,fraction-z = <7>; 83 + ts,i-drive = <1>; 84 + }; 85 + }; 86 + }; 87 + 88 + &uart0 { 89 + status = "okay"; 90 + }; 91 + 92 + &usb1 { 93 + status = "okay"; 94 + };