From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from mail-lb0-x22e.google.com ([2a00:1450:4010:c04::22e]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1aQDVW-0004TD-VZ for barebox@lists.infradead.org; Mon, 01 Feb 2016 12:23:04 +0000 Received: by mail-lb0-x22e.google.com with SMTP id bc4so73746780lbc.2 for ; Mon, 01 Feb 2016 04:22:40 -0800 (PST) Date: Mon, 1 Feb 2016 15:48:03 +0300 From: Antony Pavlov Message-Id: <20160201154803.5bab65e81ba58c4764b3c2c1@gmail.com> In-Reply-To: <73bn80zlc1.fsf@unicorn.hi.pengutronix.de> References: <3762339.hZBQLlnv2u@dabox> <73bn80zlc1.fsf@unicorn.hi.pengutronix.de> Mime-Version: 1.0 List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Sender: "barebox" Errors-To: barebox-bounces+u.kleine-koenig=pengutronix.de@lists.infradead.org Subject: Re: [PATCH] Terasic DE0 NANO-SoC: add support To: Tim Sander Cc: barebox@lists.infradead.org, Steffen Trumtrar On Mon, 01 Feb 2016 13:06:22 +0100 Steffen Trumtrar wrote: > = > Tim Sander writes: > = > > Below is a Patch for supporting the Terasic DE0 NANO-SoC with barebox. > > The pretty similar Socrates Board was taken as a starting point with pu= lling > > in the memory timings/pinmux from = > > http://rocketboards.org/foswiki/view/Documentation/AtlasSoCCompileHardw= areDesign > > Its only tested at room temperatures and i am not 100% sure about the d= evice tree: > > One known problem is the fact that the board identifier is pretty gene= ric but its the = > > same in the linux kernel so i resorted to that. > > > > Signed-off-by: Tim Sander > > --- > > arch/arm/boards/Makefile | 1 + > > arch/arm/boards/terasic-de0-nano-soc/Makefile | 2 + > > arch/arm/boards/terasic-de0-nano-soc/board.c | 37 ++ > > arch/arm/boards/terasic-de0-nano-soc/config.h | 1 + > > .../terasic-de0-nano-soc/iocsr_config_cyclone5.c | 675 +++++++++++++= ++++++++ > > arch/arm/boards/terasic-de0-nano-soc/lowlevel.c | 102 ++++ > > .../boards/terasic-de0-nano-soc/pinmux_config.c | 240 ++++++++ > > arch/arm/boards/terasic-de0-nano-soc/pll_config.h | 107 ++++ > > .../arm/boards/terasic-de0-nano-soc/sdram_config.h | 108 ++++ > > .../boards/terasic-de0-nano-soc/sequencer_auto.h | 228 +++++++ > > .../terasic-de0-nano-soc/sequencer_auto_ac_init.c | 69 +++ > > .../sequencer_auto_inst_init.c | 161 +++++ > > .../terasic-de0-nano-soc/sequencer_defines.h | 160 +++++ > > arch/arm/configs/socfpga-xload_defconfig | 1 + > > arch/arm/configs/socfpga_defconfig | 1 + > > arch/arm/dts/Makefile | 1 + > > arch/arm/dts/socfpga_cyclone5_de0_nano_soc.dts | 136 +++++ > > arch/arm/mach-socfpga/Kconfig | 4 + > > images/Makefile.socfpga | 8 + > > 19 files changed, 2042 insertions(+) > > create mode 100644 arch/arm/boards/terasic-de0-nano-soc/Makefile > > create mode 100644 arch/arm/boards/terasic-de0-nano-soc/board.c > > create mode 100644 arch/arm/boards/terasic-de0-nano-soc/config.h > > create mode 100644 arch/arm/boards/terasic-de0-nano-soc/iocsr_config_c= yclone5.c > > create mode 100644 arch/arm/boards/terasic-de0-nano-soc/lowlevel.c > > create mode 100644 arch/arm/boards/terasic-de0-nano-soc/pinmux_config.c > > create mode 100644 arch/arm/boards/terasic-de0-nano-soc/pll_config.h > > create mode 100644 arch/arm/boards/terasic-de0-nano-soc/sdram_config.h > > create mode 100644 arch/arm/boards/terasic-de0-nano-soc/sequencer_auto= .h > > create mode 100644 arch/arm/boards/terasic-de0-nano-soc/sequencer_auto= _ac_init.c > > create mode 100644 arch/arm/boards/terasic-de0-nano-soc/sequencer_auto= _inst_init.c > > create mode 100644 arch/arm/boards/terasic-de0-nano-soc/sequencer_defi= nes.h > > create mode 100644 arch/arm/dts/socfpga_cyclone5_de0_nano_soc.dts > > > = > (...) > = > > diff --git a/arch/arm/dts/socfpga_cyclone5_de0_nano_soc.dts b/arch/arm/= dts/socfpga_cyclone5_de0_nano_soc.dts > > new file mode 100644 > > index 000000000000..5d1840451382 > > --- /dev/null > > +++ b/arch/arm/dts/socfpga_cyclone5_de0_nano_soc.dts > > @@ -0,0 +1,136 @@ > > +/* > > + * Copyright (C) 2013 Steffen Trumtrar > > + * > > + * This program is free software; you can redistribute it and/or modify > > + * it under the terms of the GNU General Public License as published by > > + * the Free Software Foundation; either version 2 of the License, or > > + * (at your option) any later version. > > + * > > + * This program is distributed in the hope that it will be useful, > > + * but WITHOUT ANY WARRANTY; without even the implied warranty of > > + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the > > + * GNU General Public License for more details. > > + * > > + * You should have received a copy of the GNU General Public License > > + * along with this program. If not, see . > > + */ > > + > > +#include > = > This is the wrong DT. > What you AFAIK want is the socfgpa_cyclone5_de0_sockit.dts > = > The "Terasic DE0-Nano" is the same as the "Terasic DE-0" or isn't it? > From the website it at least seems like it. > = > With the other dts you then should be able to remove = > = > > +#include "socfpga.dtsi" > > + > > +/ { > > + model =3D "Terasic DE0-Nano(Atlas)"; It looks like Steffen is right. The board model name is wrong. Here is the DE0-Nano-SoC (Atlas-SoC) board: http://www.terasic.com.tw/cgi-bin/page/archive.pl?Language=3DEnglish&No=3D9= 41 it is based on Cyclone V SE 5CSEMA4U23C6N. And this is DE0-Nano http://www.terasic.com.tw/cgi-bin/page/archive.pl?Language=3DEnglish&Catego= ryNo=3D139&No=3D593 it is based on Cyclone IV EP4CE22F17C6N. --=A0 Best regards, =A0 Antony Pavlov _______________________________________________ barebox mailing list barebox@lists.infradead.org http://lists.infradead.org/mailman/listinfo/barebox