From patchwork Tue Nov 28 00:52:24 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Masahiro Yamada X-Patchwork-Id: 119788 Delivered-To: patch@linaro.org Received: by 10.140.22.227 with SMTP id 90csp1052271qgn; Mon, 27 Nov 2017 16:53:29 -0800 (PST) X-Google-Smtp-Source: AGs4zMZjK1msxo7ecDX5asoj0rdVP5EuNGJTK3jEsYnIEb0g4yLctujSH8kajw7fxi94AukJAd6/ X-Received: by 10.80.171.132 with SMTP id u4mr125535edc.193.1511830409232; Mon, 27 Nov 2017 16:53:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1511830409; cv=none; d=google.com; s=arc-20160816; b=kO1k0Hz7WyTL0OWYZJ2OStsZegcP74xdD5U6menM4G+M5O/iMZPbrv36vY1hFnEaQp j4GtWwxR51eANHZsSLkMoambVkHPI/p3cO7kLKyrCcKFqtv5L6rocn1wF++ts+ZG8VXE O7aAjhCrxTC6AXhGu2WyWWc9+5N8L6Ci0CioJN1MXP6HC2mRc/KNPtynUuHdFlDg3S5a t28/zlJvcpDjiFNrvmFwD3qH2TYbBq4k8THuO6Cwyo6ftdBtUE5XW9qKbeFEfjkroIh2 WnozHOz4fZ1Z3rh7aa9ezdp75PVSMY7IiX0WmIl/BDWnTKJtNpcREIC6pbjM19pOnjZs RTOQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:list-subscribe:list-help :list-post:list-archive:list-unsubscribe:list-id:precedence:subject :cc:to:message-id:date:from:mime-version:dkim-signature:dkim-filter :arc-authentication-results; bh=d0KGRXJNaorF+ycRpTsR/XwkVEZcONlRRvt1kBS5uFQ=; b=v/GHP8yQfLB3K7Dq9NEKY0av99S+sedRIZGMp7gOZUB7xC67bOq+8wuypKAOntoN7T aQI2+F24E++Zj9/YdbHqFSm+/WBCr36aMt6DQyWMBd+ZZi1qWi30PrT13gYGBQfw6ty9 0NBmgjoVInPVi6t1H33nGhQsNdmzG4Z/K1BuXGcARzqLfvm2shQfLqjojywsYSXLZFgV 8zfNFkmDHh3OuieHRgZ4rjii/44XBy/Vg2A8LTTnGH0ImA57UuyY25RBUcshNmBq1nFn drketooeopVpdMTSW03Gnxo2EdNgV+qEnXw4fUGq736D2wxjwrqeeS3U0Bi+PjeoWonX 3vag== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@nifty.com header.s=dec2015msa header.b=VhnQhRkD; spf=pass (google.com: best guess record for domain of u-boot-bounces@lists.denx.de designates 81.169.180.215 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de Return-Path: Received: from lists.denx.de (dione.denx.de. [81.169.180.215]) by mx.google.com with ESMTP id m10si4515445eda.449.2017.11.27.16.53.28; Mon, 27 Nov 2017 16:53:29 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of u-boot-bounces@lists.denx.de designates 81.169.180.215 as permitted sender) client-ip=81.169.180.215; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@nifty.com header.s=dec2015msa header.b=VhnQhRkD; spf=pass (google.com: best guess record for domain of u-boot-bounces@lists.denx.de designates 81.169.180.215 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de Received: by lists.denx.de (Postfix, from userid 105) id C4ABFC21DBB; Tue, 28 Nov 2017 00:53:26 +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=RCVD_IN_DNSWL_BLOCKED, 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 6C5C3C21DA5; Tue, 28 Nov 2017 00:53:24 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id 09C6BC21DA5; Tue, 28 Nov 2017 00:53:22 +0000 (UTC) Received: from conssluserg-01.nifty.com (conssluserg-01.nifty.com [210.131.2.80]) by lists.denx.de (Postfix) with ESMTPS id F0EDDC21DA2 for ; Tue, 28 Nov 2017 00:53:21 +0000 (UTC) Received: from mail-yb0-f182.google.com (mail-yb0-f182.google.com [209.85.213.182]) (authenticated) by conssluserg-01.nifty.com with ESMTP id vAS0r50l026321 for ; Tue, 28 Nov 2017 09:53:06 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conssluserg-01.nifty.com vAS0r50l026321 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1511830386; bh=WF+eTR1u9E8LjiXeebQdjbyXLNih9gGUz5DwZAlhZ8U=; h=From:Date:Subject:To:Cc:From; b=VhnQhRkDaJJZRqVyhheWSl+ew/kQ6xO1e299G4OTEF8MSYy89HmK5JKBF2WLyiDMZ zH1kwOtil1+mHlRxj9jBS2biWf+SBWvv6H6P0lrc0PdS9aDTXTV4c3a5OQ0oUCUwM3 5z5jd7VB57VZxV/YuskQJivyke/LT46G63mmV7B5I0QYqilpaYXpOKS0ScVktojCmf sjJxaRARGEFM/Ha2Kntqo67A1KUesT+GWBi2CjABBqryTVs5FwzjBtDTcvVXOjmXkn l2bh/geqN9kEbfrgu/4vxUPF+yQY5yviHteTl+78VimawykSOxqNrXU1OcObykS+tM vXQM3LbN9gGDw== X-Nifty-SrcIP: [209.85.213.182] Received: by mail-yb0-f182.google.com with SMTP id n185so11102074yba.6 for ; Mon, 27 Nov 2017 16:53:06 -0800 (PST) X-Gm-Message-State: AJaThX7VYGFS/3g3aB8GLMMqLGhAb+NdWImhfgrawhLeucpQSeaVfXtT lKtfdDsOacvxbGykmGz6DvTSvi3XSEWm/z5RXbc= X-Received: by 10.37.186.77 with SMTP id z13mr5581845ybj.505.1511830385031; Mon, 27 Nov 2017 16:53:05 -0800 (PST) MIME-Version: 1.0 Received: by 10.37.8.66 with HTTP; Mon, 27 Nov 2017 16:52:24 -0800 (PST) From: Masahiro Yamada Date: Tue, 28 Nov 2017 09:52:24 +0900 X-Gmail-Original-Message-ID: Message-ID: To: Tom Rini Cc: U-Boot Mailing List Subject: [U-Boot] [GIT PULL] NAND + UniPhier updates for v2018.01-rc1 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" Hi Tom, Please pull a large number of NAND core syncing and a little bit UniPhier updates. I picked up commits from Linux one by one in order not to break existing drivers. At last, the Denali NAND driver is fully synced with Linux 4.15-rc1. I tested it on my UniPhier boards, and working for me. The following changes since commit 0931b6f20e19f6c412d6ad1ba8e3b50b2a70c3c0: Merge git://git.denx.de/u-boot-rockchip (2017-11-26 18:10:21 -0500) are available in the git repository at: git://git.denx.de/u-boot-uniphier.git master for you to fetch changes up to 6391d42f23181d363fc5e07652baf1c79a37f1b5: ARM: uniphier: remove unused NAND CONFIG options (2017-11-28 09:39:19 +0900) ---------------------------------------------------------------- Boris Brezillon (9): mtd: nand: Add an option to maximize the ECC strength mtd: nand: automate NAND timings selection mtd: nand: Fix data interface configuration logic mtd: nand: Add a few more timings to nand_sdr_timings mtd: add mtd_ooblayout_xxx() helper functions mtd: nand: Drop unused cached programming support mtd: nand: Drop the ->errstat() hook mtd: nand: Wait for PAGEPROG to finish in drivers setting NAND_ECC_CUSTOM_PAGE_ACCESS mtd: nand: Pass the CS line to ->setup_data_interface() Marc Gonzalez (1): mtd: nand: Support controllers with custom page Masahiro Yamada (13): bitops: collect BIT macros to include/linux/bitops.h mtd: nand: add onfi_* stubs in case ONFI_DETECTION is disabled mtd: nand: allow drivers to request minimum alignment for passed buffer mtd: nand: add generic helpers to check, match, maximize ECC settings mtd: nand: add a shorthand to generate nand_ecc_caps structure mtd: nand: introduce NAND_ROW_ADDR_3 flag mtd: nand: denali: sync with Linux 4.15-rc1 ARM: uniphier: set CONFIG_LOGLEVEL to 6 ARM: uniphier: remove IRQ settings ARM: uniphier: remove XIRQ pin settings gpio: uniphier: import dt-binginds header from Linux ARM: dts: uniphier: Sync with Linux 4.15-rc1 ARM: uniphier: remove unused NAND CONFIG options Sascha Hauer (5): mtd: nand: remove unnecessary 'extern' from function declarations mtd: nand: Create a NAND reset function mtd: nand: Introduce nand_data_interface mtd: nand: convert ONFI mode into data interface mtd: nand: Expose data interface for ONFI mode 0 arch/arm/dts/uniphier-ld11-ref.dts | 10 +- arch/arm/dts/uniphier-ld11.dtsi | 50 +- arch/arm/dts/uniphier-ld20-ref.dts | 10 +- arch/arm/dts/uniphier-ld20.dtsi | 87 +- arch/arm/dts/uniphier-ld4-ref.dts | 10 +- arch/arm/dts/uniphier-ld4.dtsi | 23 +- arch/arm/dts/uniphier-ld6b-ref.dts | 10 +- arch/arm/dts/uniphier-pinctrl.dtsi | 52 +- arch/arm/dts/uniphier-pro4-ref.dts | 10 +- arch/arm/dts/uniphier-pro4.dtsi | 22 +- arch/arm/dts/uniphier-pro5.dtsi | 16 +- arch/arm/dts/uniphier-pxs2.dtsi | 66 +- arch/arm/dts/uniphier-pxs3-ref.dts | 10 +- arch/arm/dts/uniphier-pxs3.dtsi | 42 +- arch/arm/dts/uniphier-sld8-ref.dts | 10 +- arch/arm/dts/uniphier-sld8.dtsi | 23 +- arch/arm/dts/uniphier-support-card.dtsi | 3 +- arch/arm/dts/uniphier-v7-u-boot.dtsi | 8 +- arch/arm/include/asm/arch-sunxi/dram_sunxi_dw.h | 3 +- arch/arm/mach-kirkwood/include/mach/gpio.h | 4 - arch/arm/mach-uniphier/board_init.c | 51 - arch/arm/mach-uniphier/sbc/sbc-ld11.c | 2 +- arch/arm/mach-uniphier/sbc/sbc-pxs2.c | 2 +- configs/uniphier_ld4_sld8_defconfig | 1 + configs/uniphier_v7_defconfig | 1 + configs/uniphier_v8_defconfig | 1 + drivers/gpio/gpio-uniphier.c | 3 +- drivers/gpio/kw_gpio.c | 2 +- drivers/mtd/mtdcore.c | 360 ++++ drivers/mtd/nand/Kconfig | 11 - drivers/mtd/nand/davinci_nand.c | 10 +- drivers/mtd/nand/denali.c | 2027 +++++++++--------- drivers/mtd/nand/denali.h | 473 ++-- drivers/mtd/nand/denali_dt.c | 17 +- drivers/mtd/nand/denali_spl.c | 14 +- drivers/mtd/nand/nand_base.c | 530 ++++- drivers/mtd/nand/nand_timings.c | 494 +++-- include/configs/uniphier.h | 5 - include/dt-bindings/gpio/uniphier-gpio.h | 18 + include/linux/bitops.h | 7 + include/linux/mtd/mtd.h | 57 + include/linux/mtd/nand.h | 314 ++- include/usb/lin_gadget_compat.h | 4 +- 43 files changed, 3106 insertions(+), 1767 deletions(-) create mode 100644 include/dt-bindings/gpio/uniphier-gpio.h