From patchwork Thu Aug 23 05:52:25 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dinh Nguyen X-Patchwork-Id: 10573461 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id E5E0A14E1 for ; Thu, 23 Aug 2018 05:52:32 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D37C82B968 for ; Thu, 23 Aug 2018 05:52:32 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id C79F62BA73; Thu, 23 Aug 2018 05:52:32 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.1 required=2.0 tests=BAYES_00,DKIM_SIGNED, MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from mail.linuxfoundation.org (mail.linuxfoundation.org [140.211.169.12]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id BA0992B968 for ; Thu, 23 Aug 2018 05:52:31 +0000 (UTC) Received: from mail.linux-foundation.org (localhost [127.0.0.1]) by mail.linuxfoundation.org (Postfix) with ESMTP id 2A9FA7F6; Thu, 23 Aug 2018 05:52:30 +0000 (UTC) X-Original-To: ltsi-dev@lists.linuxfoundation.org Delivered-To: ltsi-dev@mail.linuxfoundation.org Received: from smtp1.linuxfoundation.org (smtp1.linux-foundation.org [172.17.192.35]) by mail.linuxfoundation.org (Postfix) with ESMTPS id D83917F6 for ; Thu, 23 Aug 2018 05:52:28 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp1.linuxfoundation.org (Postfix) with ESMTPS id E8D3B786 for ; Thu, 23 Aug 2018 05:52:27 +0000 (UTC) Received: from localhost.localdomain (cpe-70-114-128-244.austin.res.rr.com [70.114.128.244]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 260D9208EC; Thu, 23 Aug 2018 05:52:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1535003547; bh=0BRWN8C4+HoTYOO/asN6qtoxQ+u52WcyeU0ltgDkNR4=; h=From:To:Cc:Subject:Date:From; b=BW1zC5Oewc6itb+z36wi6YbvHdILdo2gsq3QpAJnMQ1I6iPDCHnnrfF6bY8ZMdBEU OANH4mSD0v9H6SdlLTAOvBXuEG1JFnHj6sOrSnIPwt1u4YPV2KaZ+MfCkIKnrw6o3z ktfktS2O2ZBpbvcecMpEgaNUZXZrt/weSiQ7zsiw= From: Dinh Nguyen To: ltsi-dev@lists.linuxfoundation.org Date: Thu, 23 Aug 2018 00:52:25 -0500 Message-Id: <1535003545-26958-1-git-send-email-dinguyen@kernel.org> X-Mailer: git-send-email 2.7.4 Cc: dinguyen@kernel.org Subject: [LTSI-dev] [GIT/RFC PULL LTSI-4.14] SoCFPGA, NIOS2 SoC and Driver to v4.18, version 2 X-BeenThere: ltsi-dev@lists.linuxfoundation.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: "A list to discuss patches, development, and other things related to the LTSI project" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: ltsi-dev-bounces@lists.linuxfoundation.org Errors-To: ltsi-dev-bounces@lists.linuxfoundation.org X-Virus-Scanned: ClamAV using ClamSMTP Hi, This is version 2 of the initial submission of updates for v4.14-ltsi. This version 2 uses 'git cherry-pick -x' for traceability of all upstream patches. Thanks, Dinh The following changes since commit 4cea13b66144903ae7310331b43e08f7b2d6aadb: Linux 4.14.65 (2018-08-18 10:48:00 +0200) are available in the git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/dinguyen/linux.git tags/socfpga_for_v4.14_ltsi_v2 for you to fetch changes up to c773385cb8661a397d87a3db14e743e361538896: reset: socfpga: build the reset-socfpga for Stratix10 SOC (2018-08-23 00:30:17 -0500) ---------------------------------------------------------------- LTSI-v4.14 Preparation for SoCFPGA SoCs (v4.18) Base: * v4.14.65 Backports of the following components to v4.18 * Stratix10 enablement(clock driver) * NIOS2 updates * FPGA manager updates * FPGA Documentation updates * MAINTAINERS file updates for FPGA manager Version 2 - Each cherry-picked commit contains the hash ID from linux-next. ---------------------------------------------------------------- Alan Tull (38): arm64: dts: stratix10: add gpio header arm64: dts: stratix10: enable gpio and leds arm64: dts: stratix10: enable i2c, add i2c periperals MAINTAINERS: add backup FPGA maintainer fpga: bridge: support getting bridge from device fpga: mgr: API change to replace fpga load functions with single function fpga: mgr: separate getting/locking FPGA manager fpga: region: use dev_err instead of pr_err fpga: region: remove unneeded of_node_get and put fpga: region: get mgr early on fpga: region: check for child regions before allocing image info fpga: region: fix slow warning with more than one overlay fpga: region: use image info as parameter for programming region fpga: region: separate out code that parses the overlay fpga: region: add fpga-region.h header fpga: region: rename some functions prior to moving fpga: region: add register/unregister functions fpga: region: add fpga_region_class_find fpga: region: move device tree support to of-fpga-region.c fpga: of-fpga-region: accept overlays that don't program FPGA fpga: clean up fpga Kconfig fpga: add attribute groups fpga: fpga-region: comment on fpga_region_program_fpga locking fpga: region: don't use drvdata in common fpga code fpga: manager: change api, don't use drvdata fpga: bridge: change api, don't use drvdata fpga: region: change api, add fpga_region_create/free fpga: use SPDX fpga: mgr: kernel-doc fixes fpga: bridge: kernel-doc fixes fpga: region: kernel-doc fixes Documentation: fpga: move fpga overview to driver-api documentation: fpga: move fpga-mgr.txt to driver-api documentation: fpga: add bridge document to driver-api documentation: fpga: move fpga-region.txt to driver-api fpga: clarify that unregister functions also free MAINTAINERS: Add driver-api/fpga path Documentation: fpga: cleanup Alexey Khoroshilov (1): fpga: socfpga-a10: disable clk on error in socfpga_a10_fpga_probe() Arnd Bergmann (1): arm64: dts: socfpga: add missing interrupt-parent Baolin Wang (1): nios2: Use read_persistent_clock64() instead of read_persistent_clock() Bhumika Goyal (1): fpga: make xlnx_pr_decoupler_br_ops const Christophe Jaillet (1): fpga: altera-cvp: Fix an error handling path in 'altera_cvp_probe()' Dinh Nguyen (22): clk: socfpga: stratix10: add clock driver for Stratix10 platform clk: socfpga: stratix10: use platform driver APIs clk: socfpga: stratix10: suppress unbinding platform's clock driver clk: socfpga: stratix10: fix the parents of mpu_free_clk clk: socfpga: stratix10: fix the sdmmc_free_clk mux arm64: dts: stratix10: fix up the gic register for the Stratix10 platform arm64: dts: stratix10: add ethernet/sdmmc support to the S10 devkit arm64: dts: stratix10: include the reset manager bindings arm64: dts: stratix10: add the 'altr,modrst-off' property arm64: dts: stratix10: add reset property for various peripherals arm64: dts: stratix10: fix interrupt number for gpio1 arm64: dts: stratix10: enable USB on the devkit arm64: dts: stratix10: add USB ECC reset bit arm64: dts: stratix10: enable watchdog timer on the S10 devkit arm64: dts: stratix10: disable false USB overcurrent on devkit arm64: dts: stratix10: use clock bindings for the Stratix10 platform arm64: dts: stratix10: fill in clocks field for usb and watchdog arm64: dts: stratix10: add OCP reset property for ethernet net: stmmac: socfpga: add additional ocp reset line for Stratix10 dt-bindings: documentation: add clock bindings information for Stratix10 usb: dwc2: add optional usb ecc reset bit reset: socfpga: build the reset-socfpga for Stratix10 SOC Geert Uytterhoeven (1): fpga: Remove depends on HAS_DMA in case of platform dependency Graham Moore (1): arm64: dts: stratix10: Add PL330 DMAC to Stratix10 dts Greentime Hu (1): nios2: add ioremap_nocache declaration before include asm-generic/io.h. Gustavo A. R. Silva (2): fpga: fpga-mgr: remove unnecessary code in __fpga_mgr_get fpga: fpga-bridge: remove unnecessary null check in of_fpga_bridge_get Ian Abbott (1): fpga: region: release of_parse_phandle nodes after use Jaehoon Chung (1): arm64: dts: stratix10: remove 'num-slots' property for dwmmc Johannes Thumshirn (1): PCI: Add Altera vendor ID Kang Luwei (3): fpga: dfl: add FPGA Management Engine driver basic framework fpga: dfl: fme: add header sub feature support fpga: dfl: fme: add partial reconfiguration sub feature support Krzysztof Kozlowski (1): nios2: defconfig: Cleanup from old Kconfig options Mathieu Malaterre (1): nios2: dts: Remove leading 0x and 0s from bindings notation Ooi, Joyce (1): arm64: dts: stratix10: Change pad skew values for EMAC0 PHY driver Paolo Pisati (2): fpga: lattice machxo2: Add Lattice MachXO2 support dt: bindings: fpga: add lattice machxo2 slave spi binding description Thor Thayer (5): arm64: dts: stratix10: fix SPI settings arm64: dts: stratix10: add sdram ecc arm64: dts: stratix10: Fix SPI nodes for Stratix10 arm64: dts: stratix10: Add QSPI support for Stratix10 arm64: dts: stratix10: Add SPI node clocks for Stratix10 Ulf Magnusson (1): nios2: kconfig: Remove blank help text Wu Hao (22): fpga: mgr: add region_id to fpga_image_info fpga: mgr: add status for fpga-manager fpga: mgr: add compat_id support fpga: region: add compat_id support fpga: add device feature list support fpga: dfl: add chardev support for feature devices fpga: dfl: add dfl_fpga_cdev_find_port fpga: dfl: add dfl_fpga_port_ops support. fpga: dfl: add dfl_fpga_check_port_id function. fpga: dfl-pci: add enumeration for feature devices fpga: dfl: fme: add DFL_FPGA_GET_API_VERSION/CHECK_EXTENSION ioctls support fpga: dfl: add fpga manager platform driver for FME fpga: dfl: fme-mgr: add compat_id support fpga: dfl: add fpga bridge platform driver for FME fpga: dfl: add fpga region platform driver for FME fpga: dfl: fme-region: add support for compat_id fpga: dfl: add FPGA Accelerated Function Unit driver basic framework fpga: dfl: afu: add port ops support fpga: dfl: afu: add header sub feature support fpga: dfl: afu: add DFL_FPGA_GET_API_VERSION/CHECK_EXTENSION ioctls support fpga: dfl: afu: add DFL_FPGA_PORT_DMA_MAP/UNMAP ioctls support MAINTAINERS: add entry for FPGA DFL drivers Xiao Guangrong (2): fpga: dfl: add feature device infrastructure fpga: dfl: afu: add afu sub feature support Zhang Yi (1): fpga: add FPGA DFL PCIe device driver Documentation/ABI/testing/sysfs-class-fpga-manager | 24 + Documentation/ABI/testing/sysfs-class-fpga-region | 9 + Documentation/ABI/testing/sysfs-platform-dfl-fme | 23 + Documentation/ABI/testing/sysfs-platform-dfl-port | 16 + .../devicetree/bindings/clock/intc_stratix10.txt | 20 + .../bindings/fpga/lattice-machxo2-spi.txt | 29 + Documentation/driver-api/fpga/fpga-bridge.rst | 49 + Documentation/driver-api/fpga/fpga-mgr.rst | 220 +++++ Documentation/driver-api/fpga/fpga-region.rst | 102 ++ Documentation/driver-api/fpga/index.rst | 13 + Documentation/driver-api/fpga/intro.rst | 54 + Documentation/driver-api/index.rst | 1 + Documentation/fpga/fpga-mgr.txt | 199 ---- Documentation/ioctl/ioctl-number.txt | 1 + MAINTAINERS | 11 +- arch/arm64/boot/dts/altera/socfpga_stratix10.dtsi | 165 +++- .../boot/dts/altera/socfpga_stratix10_socdk.dts | 147 ++- arch/nios2/Kconfig | 1 - arch/nios2/boot/dts/3c120_devboard.dts | 16 +- arch/nios2/configs/10m50_defconfig | 1 - arch/nios2/configs/3c120_defconfig | 1 - arch/nios2/include/asm/io.h | 1 + arch/nios2/kernel/time.c | 4 +- drivers/char/xillybus/xillybus_pcie.c | 1 - drivers/clk/Makefile | 1 + drivers/clk/socfpga/Makefile | 9 +- drivers/clk/socfpga/clk-gate-s10.c | 125 +++ drivers/clk/socfpga/clk-periph-s10.c | 149 +++ drivers/clk/socfpga/clk-pll-s10.c | 146 +++ drivers/clk/socfpga/clk-s10.c | 346 +++++++ drivers/clk/socfpga/clk.h | 4 + drivers/clk/socfpga/stratix10-clk.h | 80 ++ drivers/fpga/Kconfig | 177 +++- drivers/fpga/Makefile | 16 + drivers/fpga/altera-cvp.c | 23 +- drivers/fpga/altera-fpga2sdram.c | 34 +- drivers/fpga/altera-freeze-bridge.c | 35 +- drivers/fpga/altera-hps2fpga.c | 37 +- drivers/fpga/altera-pr-ip-core-plat.c | 13 +- drivers/fpga/altera-pr-ip-core.c | 31 +- drivers/fpga/altera-ps-spi.c | 20 +- drivers/fpga/dfl-afu-dma-region.c | 463 +++++++++ drivers/fpga/dfl-afu-main.c | 636 ++++++++++++ drivers/fpga/dfl-afu-region.c | 166 ++++ drivers/fpga/dfl-afu.h | 100 ++ drivers/fpga/dfl-fme-br.c | 114 +++ drivers/fpga/dfl-fme-main.c | 279 ++++++ drivers/fpga/dfl-fme-mgr.c | 349 +++++++ drivers/fpga/dfl-fme-pr.c | 479 +++++++++ drivers/fpga/dfl-fme-pr.h | 84 ++ drivers/fpga/dfl-fme-region.c | 89 ++ drivers/fpga/dfl-fme.h | 38 + drivers/fpga/dfl-pci.c | 243 +++++ drivers/fpga/dfl.c | 1044 ++++++++++++++++++++ drivers/fpga/dfl.h | 410 ++++++++ drivers/fpga/fpga-bridge.c | 199 ++-- drivers/fpga/fpga-mgr.c | 268 +++-- drivers/fpga/fpga-region.c | 534 ++-------- drivers/fpga/ice40-spi.c | 21 +- drivers/fpga/machxo2-spi.c | 415 ++++++++ drivers/fpga/of-fpga-region.c | 490 +++++++++ drivers/fpga/socfpga-a10.c | 34 +- drivers/fpga/socfpga.c | 32 +- drivers/fpga/ts73xx-fpga.c | 20 +- drivers/fpga/xilinx-pr-decoupler.c | 24 +- drivers/fpga/xilinx-spi.c | 20 +- drivers/fpga/zynq-fpga.c | 14 +- drivers/net/ethernet/stmicro/stmmac/Kconfig | 2 +- .../net/ethernet/stmicro/stmmac/dwmac-socfpga.c | 18 +- drivers/reset/Kconfig | 2 +- drivers/usb/dwc2/core.h | 1 + drivers/usb/dwc2/platform.c | 10 + include/dt-bindings/clock/stratix10-clock.h | 84 ++ include/linux/fpga/altera-pr-ip-core.h | 13 +- include/linux/fpga/fpga-bridge.h | 23 +- include/linux/fpga/fpga-mgr.h | 86 +- include/linux/fpga/fpga-region.h | 47 + include/linux/pci_ids.h | 2 + include/uapi/linux/fpga-dfl.h | 179 ++++ 79 files changed, 8360 insertions(+), 1026 deletions(-) create mode 100644 Documentation/ABI/testing/sysfs-class-fpga-region create mode 100644 Documentation/ABI/testing/sysfs-platform-dfl-fme create mode 100644 Documentation/ABI/testing/sysfs-platform-dfl-port create mode 100644 Documentation/devicetree/bindings/clock/intc_stratix10.txt create mode 100644 Documentation/devicetree/bindings/fpga/lattice-machxo2-spi.txt create mode 100644 Documentation/driver-api/fpga/fpga-bridge.rst create mode 100644 Documentation/driver-api/fpga/fpga-mgr.rst create mode 100644 Documentation/driver-api/fpga/fpga-region.rst create mode 100644 Documentation/driver-api/fpga/index.rst create mode 100644 Documentation/driver-api/fpga/intro.rst delete mode 100644 Documentation/fpga/fpga-mgr.txt create mode 100644 drivers/clk/socfpga/clk-gate-s10.c create mode 100644 drivers/clk/socfpga/clk-periph-s10.c create mode 100644 drivers/clk/socfpga/clk-pll-s10.c create mode 100644 drivers/clk/socfpga/clk-s10.c create mode 100644 drivers/clk/socfpga/stratix10-clk.h create mode 100644 drivers/fpga/dfl-afu-dma-region.c create mode 100644 drivers/fpga/dfl-afu-main.c create mode 100644 drivers/fpga/dfl-afu-region.c create mode 100644 drivers/fpga/dfl-afu.h create mode 100644 drivers/fpga/dfl-fme-br.c create mode 100644 drivers/fpga/dfl-fme-main.c create mode 100644 drivers/fpga/dfl-fme-mgr.c create mode 100644 drivers/fpga/dfl-fme-pr.c create mode 100644 drivers/fpga/dfl-fme-pr.h create mode 100644 drivers/fpga/dfl-fme-region.c create mode 100644 drivers/fpga/dfl-fme.h create mode 100644 drivers/fpga/dfl-pci.c create mode 100644 drivers/fpga/dfl.c create mode 100644 drivers/fpga/dfl.h create mode 100644 drivers/fpga/machxo2-spi.c create mode 100644 drivers/fpga/of-fpga-region.c create mode 100644 include/dt-bindings/clock/stratix10-clock.h create mode 100644 include/linux/fpga/fpga-region.h create mode 100644 include/uapi/linux/fpga-dfl.h