From patchwork Fri Apr 16 23:37:08 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Masami Hiramatsu X-Patchwork-Id: 422673 Delivered-To: patch@linaro.org Received: by 2002:a17:906:6d12:0:0:0:0 with SMTP id m18csp844763ejr; Fri, 16 Apr 2021 16:37:27 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw4gliDMZ/qEJq972t/zkla1dXWa+eSGfcq2jIDahOpUpkJC0piJ4RE7wKeb5JzrhlbB6ep X-Received: by 2002:a17:906:3e97:: with SMTP id a23mr10845204ejj.440.1618616247408; Fri, 16 Apr 2021 16:37:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1618616247; cv=none; d=google.com; s=arc-20160816; b=OQVgS0twwdCpyuKICByTDCsdvo1mhs7Ykfvajic/PCU6F9HmK8QKqNsAle4/QtwFRi /Wd6HAwh8Cl8QiDTBucNLzlhh6TyIHwX0oKF2+tFWNuca7fhoCPUho+MAh9mleCdQR3F WyqAKSgmWZ/FQvQwpQuthpzj7cw+1yb73vPDNxtZl8BnK5b3Kv5h2AzkU3hnnj9MpogB Nbj40aT82oFtujhwy7imPJuT2qkMOu0VJtG3vGdRKsBVs5PD4k/J4aV25mhOuV9ARj0K bfsryjOGBq6ic7Jkg5QsMrnJLbkCjreSsJ3nxT4z9V/3KU5qXpaWxoIzZ9xHC1pvlhj+ e24A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:user-agent:message-id:date:subject:cc:to:from :dkim-signature; bh=A0gOiaBsh2XJ3XtpQcao84rDO/08pllwZi1wefFWa8U=; b=GkrUuoX3H1r5xp3qOmoFelCO4JLM1W2quPjsubCjgrKB+M20ETPj533pn9HLqYlsUz w/6Tu6neasniohAISgAQJ+hUEe2H/0WABmnsww5OydmqJZ9Et+YG1DEeQGtB0yER2hFs RTL0KuN/6Kq2U46rLkJKFiDujDzV7v3tsT2V5YgP3bP7ZTmIAK40I2r/uY8wiRXFGjQi L3d+SSMni+eDTrCe+BLPA0RgyoixZkNe9KOLXMELSo6EIDNAlv7ALDN4EQuGhGqIROBl cGAIvbtWb2MyLFXEUuhpiOEo9ZR/7NQc6xBdSLmQq7uQvJtbYp78IgfHCL48jIbda1dg IfWg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="UdBPPi4/"; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from phobos.denx.de (phobos.denx.de. [85.214.62.61]) by mx.google.com with ESMTPS id jo3si6260822ejb.274.2021.04.16.16.37.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 16 Apr 2021 16:37:27 -0700 (PDT) Received-SPF: pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 as permitted sender) client-ip=85.214.62.61; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="UdBPPi4/"; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 54E0880EEF; Sat, 17 Apr 2021 01:37:23 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.b="UdBPPi4/"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id AD5C680EBB; Sat, 17 Apr 2021 01:37:21 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,SPF_HELO_NONE autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-pg1-x52b.google.com (mail-pg1-x52b.google.com [IPv6:2607:f8b0:4864:20::52b]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 1375F80EBB for ; Sat, 17 Apr 2021 01:37:17 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=masami.hiramatsu@linaro.org Received: by mail-pg1-x52b.google.com with SMTP id 31so4739514pgn.13 for ; Fri, 16 Apr 2021 16:37:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:user-agent:mime-version :content-transfer-encoding; bh=A0gOiaBsh2XJ3XtpQcao84rDO/08pllwZi1wefFWa8U=; b=UdBPPi4/yTb2zoY8QLKJaTwCaVjAx4BZEGcHJIed7sTZmTvCpsgolz3IpRkglf7wG5 ZC7mFi4Jfx4aa/zM9Bid2OEPBLFj+aZ+CumU2YEx3TG3vTjWfshQEru6zM2hr83/hDPw dyILNe3LkL/eQ71pdknUm4bpU1rxjFBcLk07rtNq89k7zF5qfqU0VFmaasjUIvcz9Roi j3uriBGZmF0idPZakHdgmKn/mV+VJDh/2E1NBmtJicyArLcxLuSUg8KQAJJ6J7qYM/1l uHalAacoQf0YepbYjaaePr0d3NcoFJlh7OlfOvg0Lr+oRrUxB/1tlUg4BWdUCjLj0hiR lATQ== 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:user-agent :mime-version:content-transfer-encoding; bh=A0gOiaBsh2XJ3XtpQcao84rDO/08pllwZi1wefFWa8U=; b=F97YdehkL4mzYHujsqEtPlwc/boLFSJ4bFMr316Dfy5Bg9eotNL/eqER/jUsLbYUP3 K/6iViV2mjrptiRZxfwugEHCfdwVAaTEFrhxolfu2i5vm//BX6QcsfbUk6TnMkr3fMeJ SaC6BIacCDB5KRWGt1QW/mjaKECa/KC8u0lSMcxfQfvxziGZMYX4z8gEJW/mTS6Fp366 GEWoGJLvMEXw3HcHlhGr0GLTgyqz0fW2sQqabQb0ECBlhLuIq9+QXvrB/mSye/dpO55H wQ+VwOIU5QWQd6k19hvypt4UsL38hK5EoN4FnQ8Yr6DUNoVwYOMMiwE9BLrjFU18zzo9 jswA== X-Gm-Message-State: AOAM530HWHMUujJaF1L5dRXs9z24nCQAb00E+Odi3EGcvstHoq/px6ZM /jfh6R/zOd7sQYsTP3KZ5pZiPQ== X-Received: by 2002:a63:e707:: with SMTP id b7mr1200678pgi.389.1618616235217; Fri, 16 Apr 2021 16:37:15 -0700 (PDT) Received: from localhost.localdomain (NE2965lan1.rev.em-net.ne.jp. [210.141.244.193]) by smtp.gmail.com with ESMTPSA id l35sm5721378pgm.10.2021.04.16.16.37.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 16 Apr 2021 16:37:14 -0700 (PDT) From: Masami Hiramatsu To: Peng Fan , Simon Glass , Tom Rini , Heinrich Schuchardt , Alexander Graf , Jagan Teki , Vignesh R , Joe Hershberger , Ramon Fried , Sughosh Ganu Cc: Masami Hiramatsu , Jassi Brar , Ilias Apalodimas , Masahisa Kojima , Takahiro Akashi , Tim Harvey , Bin Meng , u-boot@lists.denx.de Subject: [PATCH v2 00/13] arm64: synquacer: Add SynQuacer/DeveloperBox support Date: Sat, 17 Apr 2021 08:37:08 +0900 Message-Id: <161861622792.298230.15803163505976731363.stgit@localhost> X-Mailer: git-send-email 2.25.1 User-Agent: StGit/0.19 MIME-Version: 1.0 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.34 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" X-Virus-Scanned: clamav-milter 0.102.4 at phobos.denx.de X-Virus-Status: Clean Hello, Here is the 2nd version of the series (including some fixes for build errors) to add SynQuacer/DeveloperBox 96board EE suport on U-Boot. Because of my poor typo, the previous version was not sent to the ML. Anyway I have fixed it. This series includes not only DeveloperBox support but also some fixes for the issues which I faced while porting U-Boot on the DeveloperBox. First 3 patches are fixes, next 1 patch is a code cleanup for generic gpio for arm. The next 7 patches adding DeveloperBox devices and board support. The last 2 patches are related to the UEFI capsule update. Changes in v2 ------------- Previous [1/13] was re-sent to the ML by Tim Harvey, so I dropped it. So this series needs the following patch. https://lists.denx.de/pipermail/u-boot/2021-April/447519.html And I had some comments on the v1 patch, so I updated: [10/13] - Add reference commit id of original EDK2 to the comment - Just copy the EDK2 dts files as-is (change #include path) - Split out the u-boot specific changes in -u-boot.dtsi. - Removed unneeded spi-nor flash partition information. [11/13] - Do not include arch/gpio.h and remove arch-sc2a11/gpio.h. - Remove non-UEFI boot commands. - Use Distro boot. - Remove NOR-connected SPI node by path instead of alias. - Rename configs/SynQuacer_defconfig to configs/synquacer_developerbox_defconfig. - Rename include/configs/SynQuacer.h to include/configs/synquacer.h. - Move README under doc/board/socionext/ and make it .rst text. DeveloperBox ============ DeveloperBox is a certified 96boards Enterprise Edition board. The board/SoC has: - * Socionext SC2A11 24-cores ARM Cortex-A53 on tbe Mini-ATX form factor motherboard * 4 DIMM slots (4GB DDR4-2400 UDIMM shipped by default) * 1 4xPCIe Gen2 slot and 2 1xPCIe Gen2 slots (1x slots are connected via PCIe bridge chip) * 4 USB-3.0 ports * 2 SATA ports * 1 GbE network port * 1 USB-UART serial port (micro USB) * 64MB SPI NOR Flash * 8GB eMMC Flash Storage * 96boards LS connector The DeveloperBox schematic can be found here: - https://www.96boards.org/documentation/enterprise/developerbox/hardware-docs/mzsc2am_v03_20180115_a.pdf And the other documents can be found here: - https://www.96boards.org/documentation/enterprise/developerbox/ Currently, the U-Boot port supports: - * USB * eMMC * SPI-NOR * SATA * GbE The DeveloperBox boots the TF-A and EDK2 as a main bootloader by default. The DeveloperBox U-Boot port will replace the EDK2 and boot from TF-A as BL33, but no need to combine with it. Thank you, --- Jassi Brar (4): mtd: spi-nor-ids: add support for Macronix mx25u51245g and mx66u1g45g flash mmc: synquacer: Add SynQuacer F_SDH30 SDHCI driver spi: synquacer: Add HSSPI SPI controller driver for SynQuacer net: synquacer: Add netsec driver Masami Hiramatsu (9): ata: ahci-pci: Use scsi_ops to initialize ops dm: pci: Skip setting VGA bridge bits if parent device is the host bus efi: Fix to use null handle to create new handle for efi_fmp_raw gpio: Introduce CONFIG_ONLY_GENERIC_GPIO to cleanup #ifdefs pci: synquacer: Add SynQuacer ECAM based PCIe driver ARM: dts: synquacer: Add device trees for DeveloperBox board: synquacer: Add DeveloperBox 96boards EE support doc: qemu: arm64: Fix the documentation of capsule update configs: synquacer: Enable EFI capsule update support arch/arm/Kconfig | 32 + arch/arm/dts/Makefile | 2 arch/arm/dts/synquacer-sc2a11-caches.dtsi | 73 + .../dts/synquacer-sc2a11-developerbox-u-boot.dtsi | 57 + arch/arm/dts/synquacer-sc2a11-developerbox.dts | 56 + arch/arm/dts/synquacer-sc2a11.dtsi | 595 ++++++++++ arch/arm/include/asm/gpio.h | 8 board/cortina/common/Kconfig | 1 board/socionext/developerbox/Kconfig | 36 + board/socionext/developerbox/MAINTAINERS | 13 board/socionext/developerbox/Makefile | 9 board/socionext/developerbox/developerbox.c | 145 +++ configs/synquacer_developerbox_defconfig | 108 ++ doc/board/emulation/qemu_capsule_update.rst | 11 doc/board/index.rst | 1 doc/board/socionext/developerbox.rst | 87 ++ doc/board/socionext/index.rst | 9 drivers/ata/ahci-pci.c | 2 drivers/mmc/Kconfig | 10 drivers/mmc/Makefile | 1 drivers/mmc/f_sdh30.c | 81 + drivers/mmc/sdhci.c | 9 drivers/mtd/spi/spi-nor-ids.c | 2 drivers/net/Kconfig | 8 drivers/net/Makefile | 1 drivers/net/sni_netsec.c | 1134 ++++++++++++++++++++ drivers/pci/Kconfig | 12 drivers/pci/Makefile | 1 drivers/pci/pci-uclass.c | 3 drivers/pci/pcie_ecam_synquacer.c | 600 +++++++++++ drivers/spi/Kconfig | 8 drivers/spi/Makefile | 1 drivers/spi/spi-synquacer.c | 491 +++++++++ include/configs/synquacer.h | 112 ++ lib/efi_loader/efi_capsule.c | 2 35 files changed, 3704 insertions(+), 17 deletions(-) create mode 100644 arch/arm/dts/synquacer-sc2a11-caches.dtsi create mode 100644 arch/arm/dts/synquacer-sc2a11-developerbox-u-boot.dtsi create mode 100644 arch/arm/dts/synquacer-sc2a11-developerbox.dts create mode 100644 arch/arm/dts/synquacer-sc2a11.dtsi create mode 100644 board/socionext/developerbox/Kconfig create mode 100644 board/socionext/developerbox/MAINTAINERS create mode 100644 board/socionext/developerbox/Makefile create mode 100644 board/socionext/developerbox/developerbox.c create mode 100644 configs/synquacer_developerbox_defconfig create mode 100644 doc/board/socionext/developerbox.rst create mode 100644 doc/board/socionext/index.rst create mode 100644 drivers/mmc/f_sdh30.c create mode 100644 drivers/net/sni_netsec.c create mode 100644 drivers/pci/pcie_ecam_synquacer.c create mode 100644 drivers/spi/spi-synquacer.c create mode 100644 include/configs/synquacer.h -- Masami Hiramatsu