From patchwork Mon Jan 14 17:54:20 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?q?Oskari_Lemmel=C3=A4?= X-Patchwork-Id: 1024729 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=lists.openwrt.org (client-ip=2607:7c80:54:e::133; helo=bombadil.infradead.org; envelope-from=openwrt-devel-bounces+incoming=patchwork.ozlabs.org@lists.openwrt.org; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=lemmela.net Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="OvqgLplR"; dkim=fail reason="signature verification failed" (4096-bit key; unprotected) header.d=lemmela.net header.i=@lemmela.net header.b="M6KmKoJL"; dkim-atps=neutral Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:e::133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 43dh2p35dZz9sCr for ; Tue, 15 Jan 2019 04:55:30 +1100 (AEDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:Subject:Message-Id: Date:To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=G1TgGdEzQoNc9WLLqy5kEwknT7ETNyYSWzgpv7/iOQ0=; b=OvqgLplRtUMe// oTBx6QhvHuB9d27eTZa5JlsWfLXbOuyPu7QIWsqlzEdF9rQ1GFCift9Vw6RrJozQ4NoJ3ofOnpLCz lkRrmu/V8GYwJXXRydeoPUrHp3JkPrKJ9NRZPoSBwUX96ixJZylwC307RIdBo5wwKgIOIPuGc3HLU 2/LpA3YQWxFhVCDamj55H02Gqoor35LJtK1v1l4VkxIxHtg0VTr0aCTQD66dnqJjmJeAEBmvl2oSg klfm/HjBeoPeXtO7oPo5AWZFiz0rWQoMhz9IGXAkdQR4Ks5bO2kxTaZvb2Aj4xpOXV5Ocja9J9Dt3 A6PmWWfKIKOl4iXZ93cA==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1gj6SK-0002me-R8; Mon, 14 Jan 2019 17:55:24 +0000 Received: from mail1.kuutio.org ([92.222.216.83]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gj6Rj-0001Ak-19 for openwrt-devel@lists.openwrt.org; Mon, 14 Jan 2019 17:54:51 +0000 Received: from localhost (localhost [127.0.0.1]) by mail1.kuutio.org (Postfix) with ESMTP id 554DE1FB8E; Mon, 14 Jan 2019 18:54:41 +0100 (CET) Authentication-Results: mail1.kuutio.org (amavisd-new); dkim=pass (4096-bit key) reason="pass (just generated, assumed good)" header.d=lemmela.net DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=lemmela.net; h= x-mailer:message-id:date:date:subject:subject:from:from:received :received; s=dkim; t=1547488480; x=1550080481; bh=EW3zE911HkZFoh jDd1fsFkNGTe/44S2LwezGigz8jOA=; b=M6KmKoJLPBg7JnYSwugWxLZLW3NKiR SDb7e1mPYXqKbOK6WXMO7NLry81lhpdKy+N8KrBQ5ATFnSGSxn3X9izNq26wc8XZ m6Bf2+OlidLrBGIYsHMPs9DrdwwXn1Hb+aTJ+WkzjI/uTQZMldv0BhFqurK57QmB 7a6XEvAAT77vuZ7cMsTqU2d2xGADUyY0lO9An9SnOFcYXztkOJvFDi8Gpx/mJpb+ 1dQPMzKnARuPNRwVVqX0SaDqxunKU+MPJkA7KzKMFrPY2ddu5zOIEejf579qCG6l 620W4nuvHNhDg9NuDnJEpm3U51MdlCwXbyiAbg6i6fbWmZZLeqUjsShA172Z8btN zvxmO7+eojmWvJTpE12Fg+T10Mmk1pwQHJnldJukzGUEXPt06plEIMFVzilIPn8e F442aeL+KvbhfRsyR89BjzCoTeuytrAmUQYzpC+UYM1v4Bf1Pv4xCpuavZyTNGcK LGc8WQhSXGeChxMY6Rc+FZYP8Ia5WGXQN/Zs10CS5loyYJQAvP+fRLBWO6uAKHpX 5MF4CF/qVrPrdi2QzP89eTavtXdL8Bx3G9M3w6Dqx03kmvh2EQ7gg7EsDJa7IOvX g/2RXtCg/Pu/Elx71v5VKGcCoPB9hd7Nq7KJcSqsI729v0ixzX0q6f+O8/KCiTJG jLHGF3fVbliQ4= X-Virus-Scanned: amavisd-new at kuutio.org Received: from mail1.kuutio.org ([127.0.0.1]) by localhost (mail1.kuutio.org [127.0.0.1]) (amavisd-new, port 10024) with LMTP id yL36IiW8q1nA; Mon, 14 Jan 2019 18:54:40 +0100 (CET) Received: from build.kuutio.org (unknown [IPv6:2001:998:13:e4::69]) by mail1.kuutio.org (Postfix) with ESMTPSA id 112EA1F960; Mon, 14 Jan 2019 18:54:40 +0100 (CET) From: Oskari Lemmela To: openwrt-devel@lists.openwrt.org Date: Mon, 14 Jan 2019 19:54:20 +0200 Message-Id: <20190114175429.7320-1-oskari@lemmela.net> X-Mailer: git-send-email 2.17.1 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190114_095447_905553_6DC066F1 X-CRM114-Status: GOOD ( 11.19 ) X-Spam-Score: -0.2 (/) X-Spam-Report: SpamAssassin version 3.4.2 on bombadil.infradead.org summary: Content analysis details: (-0.2 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 SPF_PASS SPF: sender matches SPF record -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid Subject: [OpenWrt-Devel] [PATCH 0/9] sunxi: add support for pine64-lts X-BeenThere: openwrt-devel@lists.openwrt.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Oskari Lemmela MIME-Version: 1.0 Sender: "openwrt-devel" Errors-To: openwrt-devel-bounces+incoming=patchwork.ozlabs.org@lists.openwrt.org Patches for Pine64 LTS support. Pine64 LTS has onboard 16MB SPI flash device which can be used to boot Openwrt. Following patch set enables: - FIT image booting from flash and SD - storing environment to flash - sysupgrade support for flash and SD to flash - modifying enviroment in flash U-boot image can be written to SPI flash via booting from SD card and then writing u-boot-with-spl.bin to /dev/mtd0. Oskari Lemmela (9): sunxi: add a64 watchdog support sunxi: add spi flash support to kernel sunxi: spi flash dts changes sunxi: switch to lzma compressed fit image sunxi: add support for pine64 lts uboot-sunxi: add spi driver for pine64 lts uboot-sunxi: move pine64 lts env to spi flash uboot-envtools: sunxi: add support for the pine64 lts sunxi: sysupgrade: add support for pine64 lts spi flash package/boot/uboot-envtools/files/sunxi | 33 ++ package/boot/uboot-sunxi/Makefile | 9 + .../010-sunxi-A64-Add-Pine64-LTS-board.patch | 69 ++++ ...ner-sun50i-a64-Add-spi-flash-node-fo.patch | 64 ++++ ...i-allwinner-spi-driver-sun6i-support.patch | 311 ++++++++++++++++++ ...er-sunxi-fix-spurious-timeout-issues.patch | 30 ++ .../302-sunxi-add-spi-flash-bootcmd.patch | 81 +++++ ...03-sunxi-dt-a64-sopine-add-spi-alias.patch | 27 ++ ...4-sunxi-a64-enable-spi-in-pine64-lts.patch | 32 ++ ...sunxi-enable-distro-spi-boot-command.patch | 25 ++ ...-move-env-to-spi-flash-in-pine64-lts.patch | 27 ++ ...efines-if-config-env-is-in-spi-flash.patch | 57 ++++ package/boot/uboot-sunxi/uEnv-a64.txt | 5 +- package/boot/uboot-sunxi/uEnv-default.txt | 5 +- package/boot/uboot-sunxi/uEnv-pangolin.txt | 5 +- target/linux/sunxi/Makefile | 2 +- .../sunxi/base-files/lib/upgrade/platform.sh | 30 +- target/linux/sunxi/config-4.14 | 9 +- target/linux/sunxi/config-4.19 | 9 +- target/linux/sunxi/cortexa53/target.mk | 1 - target/linux/sunxi/image/Makefile | 21 +- target/linux/sunxi/image/cortex-a53.mk | 38 +-- target/linux/sunxi/image/cortex-a7.mk | 36 +- target/linux/sunxi/image/cortex-a8.mk | 11 +- ...arm64-dts-allwinner-a64-Add-watchdog.patch | 54 +++ ...ner-a64-Add-Pine64-LTS-device-tree-f.patch | 59 ++++ ...80-arm64-allwinner-a64-add-SPI-nodes.patch | 83 +++++ ...ner-sun50i-a64-Add-spi-flash-node-fo.patch | 41 +++ ...a64-sopine-Add-Sopine-flash-partitio.patch | 51 +++ ...ner-a64-Add-Pine64-LTS-device-tree-f.patch | 59 ++++ ...a64-sopine-Add-Sopine-flash-partitio.patch | 51 +++ 31 files changed, 1274 insertions(+), 61 deletions(-) create mode 100644 package/boot/uboot-envtools/files/sunxi create mode 100644 package/boot/uboot-sunxi/patches/010-sunxi-A64-Add-Pine64-LTS-board.patch create mode 100644 package/boot/uboot-sunxi/patches/073-arm64-dts-allwinner-sun50i-a64-Add-spi-flash-node-fo.patch create mode 100644 package/boot/uboot-sunxi/patches/300-arm-sunxi-allwinner-spi-driver-sun6i-support.patch create mode 100644 package/boot/uboot-sunxi/patches/301-arm-timer-sunxi-fix-spurious-timeout-issues.patch create mode 100644 package/boot/uboot-sunxi/patches/302-sunxi-add-spi-flash-bootcmd.patch create mode 100644 package/boot/uboot-sunxi/patches/303-sunxi-dt-a64-sopine-add-spi-alias.patch create mode 100644 package/boot/uboot-sunxi/patches/304-sunxi-a64-enable-spi-in-pine64-lts.patch create mode 100644 package/boot/uboot-sunxi/patches/305-sunxi-enable-distro-spi-boot-command.patch create mode 100644 package/boot/uboot-sunxi/patches/306-sunxi-a64-move-env-to-spi-flash-in-pine64-lts.patch create mode 100644 package/boot/uboot-sunxi/patches/307-env-check-defines-if-config-env-is-in-spi-flash.patch create mode 100644 target/linux/sunxi/patches-4.14/040-arm64-dts-allwinner-a64-Add-watchdog.patch create mode 100644 target/linux/sunxi/patches-4.14/062-arm64-dts-allwinner-a64-Add-Pine64-LTS-device-tree-f.patch create mode 100644 target/linux/sunxi/patches-4.14/080-arm64-allwinner-a64-add-SPI-nodes.patch create mode 100644 target/linux/sunxi/patches-4.14/081-arm64-dts-allwinner-sun50i-a64-Add-spi-flash-node-fo.patch create mode 100644 target/linux/sunxi/patches-4.14/400-arm64-allwinner-a64-sopine-Add-Sopine-flash-partitio.patch create mode 100644 target/linux/sunxi/patches-4.19/062-arm64-dts-allwinner-a64-Add-Pine64-LTS-device-tree-f.patch create mode 100644 target/linux/sunxi/patches-4.19/400-arm64-allwinner-a64-sopine-Add-Sopine-flash-partitio.patch