From patchwork Fri Feb 15 22:48:57 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chris Packham X-Patchwork-Id: 1043360 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=lists.denx.de (client-ip=81.169.180.215; helo=lists.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="jnE0nHP5"; dkim-atps=neutral Received: from lists.denx.de (dione.denx.de [81.169.180.215]) by ozlabs.org (Postfix) with ESMTP id 441Z4j2wWlz9s4Z for ; Sat, 16 Feb 2019 13:36:00 +1100 (AEDT) Received: by lists.denx.de (Postfix, from userid 105) id 15CA4C21FB8; Sat, 16 Feb 2019 02:35:54 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on lists.denx.de X-Spam-Level: X-Spam-Status: No, score=-0.0 required=5.0 tests=FREEMAIL_FROM, KHOP_BIG_TO_CC, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, T_DKIM_INVALID autolearn=unavailable autolearn_force=no version=3.4.0 Received: from lists.denx.de (localhost [IPv6:::1]) by lists.denx.de (Postfix) with ESMTP id 231B6C21DC1; Sat, 16 Feb 2019 02:35:50 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id 6DD42C21F02; Fri, 15 Feb 2019 22:49:20 +0000 (UTC) Received: from mail-pg1-f196.google.com (mail-pg1-f196.google.com [209.85.215.196]) by lists.denx.de (Postfix) with ESMTPS id C2DCAC21EB9 for ; Fri, 15 Feb 2019 22:49:19 +0000 (UTC) Received: by mail-pg1-f196.google.com with SMTP id u9so1937743pgo.7 for ; Fri, 15 Feb 2019 14:49:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=8CXA5D9dXC1DLP93/ImwuzCMFeFkamF1wMjq5RGQOMk=; b=jnE0nHP5UsrAXx3Hzv07FoGvGmlmxmux97aQRRTK0H8+erfViBFvb8rh+B2M+JpBxX Wzx6TER4I5baxpV8Sml8gtCLMVRVXykUlMS4r6xisqaMz+4qEZNepi8dP+mETVpBu9uX kIIdvqXMtOZCCSmB5sq5lTfGrw7zQtzhQVVJVNKUIwgOoH+5/n+Z76eRxibF4nIWJgOP uJgSERlyYo6hPBRQmAcdcEJT+7FWBkTagh3ax5UwrkxZkdOfHK4HUD6ye5klbV1+iPQr QPlk32ysWOaQcv2jU5A8YjmCV/V+OA9A9oRYWMm9xxXZT0PiEbR7OzJRQSPEmMQ6EGFY I8jA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=8CXA5D9dXC1DLP93/ImwuzCMFeFkamF1wMjq5RGQOMk=; b=bYQ8x65hPosZ2TFjyKHxh3r3VFhE9tWX3V204sGt0g7HcqA/SFHUPCKGuUqyHnulUn 2TMD/mKf/63BuaBUq2ACuDfgWiLolXCGdQJ9BWiqCSftlIF1FEQoSfKURlEF87xLktfl 17as7NWUqI/5cELyE0LRSAI1eQahxcEqIdtUgBdOIO3fzbH2SFoy2ibOd2s957OOqYsa m8Yx5sg88Rt7JdQWrxq1BUs+nzbz2zCndZ9xZyBTfD7yHt5rIVDMsdx/1Y7XbslsZO0y psztKNnZmGowC0hQTy/m+270lR4eRg9QRLHpVlv67+LVIXjPVtQv94rmrxo1rxQA9tzG ZRJw== X-Gm-Message-State: AHQUAuYmZABq9v3pCypj+cx4TQTW6FGjX5fVO6pczv7HoKMFzedoo8am B+UZk7EWpeSt5ypcBXboo46Yy876hlEbOg== X-Google-Smtp-Source: AHgI3Ia0mSzcXHDQAOD+A6ViZujHymYxdrwOEdFo+e3ITXSA8xk96FtI9jsk7hGAZVXlwlGEN+kxjw== X-Received: by 2002:aa7:81d3:: with SMTP id c19mr12138370pfn.230.1550270957961; Fri, 15 Feb 2019 14:49:17 -0800 (PST) Received: from chrisp-dl.ws.atlnz.lc ([2001:df5:b000:22:3a2c:4aff:fe70:2b02]) by smtp.gmail.com with ESMTPSA id o85sm15523468pfi.105.2019.02.15.14.49.08 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 15 Feb 2019 14:49:17 -0800 (PST) From: Chris Packham To: u-boot@lists.denx.de Date: Sat, 16 Feb 2019 11:48:57 +1300 Message-Id: <20190215224902.28351-1-judge.packham@gmail.com> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 X-Mailman-Approved-At: Sat, 16 Feb 2019 02:35:48 +0000 Cc: Prafulla Wadaskar , Maxime Ripard , Michal Simek , Joe Hershberger , Stefan Roese , Chris Packham , Marek Vasut , Stuart Henderson , Tom Rini , Luka Perkov , Alexander Graf , Theo Buehler , Baruch Siach , Otavio Salvador , Chris Packham , Jonathan Gray Subject: [U-Boot] [PATCH v2 0/5] Marvell DB-XC3-24G4XG board support X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.18 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" This series adds support for Marvell's Switches with integrated CPUs and the DB-XC3-24G4XG board. The CPU side is similar to the Armada range. For now the DDR training code needs to come from the Marvell bin_hdr. It's one area where the integrated SoCs differ from the Armada range so neither the Armada-XP nor Armada-38x training code will work as-is. I'm asking Marvell about the possibility of re-licensing the code under a Proprietary/BSD/GPL as they did with Armada-38x. I also have access to a DB-DXBC2-MM board with a different chip. I'll look at adding support for that as well at some point. It's harder to work with because it has no USB, but other than that it's similar to the DB-XC3. Changes in v2: - use CONFIG_ARMADA_MSYS instead of just CONFIG_MSYS - Disable MBUS Error proagation - new, split out from Add DB-XC3-24G4XG board with a better explanation - u-boot specific changes in u-boot.dtsi - remove unnecessary entries from board config.h - move some changes to earlier patches Chris Packham (5): arm: sync armada-xp dts files from Linux 5.0 arm: mvebu: Add Marvell's integrated CPUs arm: mvebu: NAND clock support for MSYS devices tools: kwbimage: don't adjust for image_header for Armada MSYS arm: mvebu: Add DB-XC3-24G4XG board arch/arm/dts/Makefile | 3 +- arch/arm/dts/armada-370-xp.dtsi | 133 +++---- arch/arm/dts/armada-xp-98dx3236.dtsi | 343 ++++++++++++++++++ arch/arm/dts/armada-xp-98dx3336.dtsi | 39 ++ arch/arm/dts/armada-xp-98dx4251.dtsi | 54 +++ .../dts/armada-xp-db-xc3-24g4xg-u-boot.dtsi | 24 ++ arch/arm/dts/armada-xp-db-xc3-24g4xg.dts | 110 ++++++ arch/arm/dts/armada-xp-gp.dts | 167 ++++----- arch/arm/dts/armada-xp-maxbcm.dts | 24 +- arch/arm/dts/armada-xp-mv78230.dtsi | 55 +-- arch/arm/dts/armada-xp-mv78260.dtsi | 58 +-- arch/arm/dts/armada-xp-mv78460.dtsi | 58 +-- arch/arm/dts/armada-xp-synology-ds414.dts | 199 +++++----- arch/arm/dts/armada-xp-theadorable.dts | 69 ++-- arch/arm/dts/armada-xp.dtsi | 214 ++++++----- arch/arm/mach-mvebu/Kconfig | 26 +- arch/arm/mach-mvebu/Makefile | 1 + arch/arm/mach-mvebu/cpu.c | 33 +- arch/arm/mach-mvebu/include/mach/config.h | 2 +- arch/arm/mach-mvebu/include/mach/cpu.h | 3 + arch/arm/mach-mvebu/include/mach/soc.h | 31 ++ arch/arm/mach-mvebu/mbus.c | 5 + board/Marvell/db-xc3-24g4xg/MAINTAINERS | 7 + board/Marvell/db-xc3-24g4xg/Makefile | 5 + board/Marvell/db-xc3-24g4xg/README | 4 + board/Marvell/db-xc3-24g4xg/binary.0 | 11 + board/Marvell/db-xc3-24g4xg/db-xc3-24g4xg.c | 68 ++++ board/Marvell/db-xc3-24g4xg/kwbimage.cfg | 12 + configs/db-xc3-24g4xg_defconfig | 55 +++ drivers/ddr/marvell/axp/xor_regs.h | 4 + include/configs/db-xc3-24g4xg.h | 41 +++ tools/Makefile | 4 + tools/kwbimage.c | 4 + 33 files changed, 1319 insertions(+), 547 deletions(-) create mode 100644 arch/arm/dts/armada-xp-98dx3236.dtsi create mode 100644 arch/arm/dts/armada-xp-98dx3336.dtsi create mode 100644 arch/arm/dts/armada-xp-98dx4251.dtsi create mode 100644 arch/arm/dts/armada-xp-db-xc3-24g4xg-u-boot.dtsi create mode 100644 arch/arm/dts/armada-xp-db-xc3-24g4xg.dts create mode 100644 board/Marvell/db-xc3-24g4xg/MAINTAINERS create mode 100644 board/Marvell/db-xc3-24g4xg/Makefile create mode 100644 board/Marvell/db-xc3-24g4xg/README create mode 100644 board/Marvell/db-xc3-24g4xg/binary.0 create mode 100644 board/Marvell/db-xc3-24g4xg/db-xc3-24g4xg.c create mode 100644 board/Marvell/db-xc3-24g4xg/kwbimage.cfg create mode 100644 configs/db-xc3-24g4xg_defconfig create mode 100644 include/configs/db-xc3-24g4xg.h