From patchwork Fri Jul 22 17:42:40 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jassi Brar X-Patchwork-Id: 592477 Delivered-To: patch@linaro.org Received: by 2002:a05:7000:b811:0:0:0:0 with SMTP id fc17csp709917mab; Fri, 22 Jul 2022 10:42:55 -0700 (PDT) X-Google-Smtp-Source: AGRyM1vIEERZtoTyLKccrEiKFkYjOTu9OiBTBvjdgM9WVWCOyvRGojIS4ennuUwmuTjDGfJhCTh/ X-Received: by 2002:a92:280e:0:b0:2dd:c13:e559 with SMTP id l14-20020a92280e000000b002dd0c13e559mr417928ilf.55.1658511775456; Fri, 22 Jul 2022 10:42:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1658511775; cv=none; d=google.com; s=arc-20160816; b=s9BShPf8R8tOEyLr8f5iQZHgkm4xkqt50j0ZBjwiPPTzKABzY3ysNmYHilF6EoJ3sn 4yUJSk8JQnWHYCC7TNUeB2KmProQDZQUp1A89uqOqFKnfjdly9Hv2zKsNEhhI8H0/0jT zGwp0HHyybhgugSuY2EAnTR3AB8kKx19Iz9gasvVZhzc2Ou7Lym4qXO/pYGWS92Ap34k EYL1M6IQYVU0wiXzZ5Bg2Xrg5dsaRmytDRgiO/opBbLOZtDSARMqIUC0I6KBAaLBO0qm wsgKBfDDd7e4Q0HSCP6uTHxWFYtUUughigCI14axiYPRnE3sboTbqADViizIKNwU6C6p hhxA== 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:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=3vCJ/te1fOKjq0WUmaM9yF1ovj2aoT9bx49w6k6qpdg=; b=YCZdABZM56Z+NL8cF1aGueyQXe1xR9gRxU993/PeRYOVjlbSVH4YKhYKoR+yQxr8x0 X0Omz5zs+Dz8p1exo/58UuW0XKnH7vJxXPiItjtp4O2kjNK5JFGXrPndYFQjfK7v1nHv 9k+aY6KzCpP82aD6bT7C5ePqyCojM1SqvY/xRXvtiHBBJBoW7T7qk165THoO24cvUTgb wjnjF4Eh4BDfM4w7AvDwjwPoM1rjjNcGxpFDHST1JU0zJOfd1yH5ATtRu+zJEb8xxEiE JtBDU8XAhEeOljSqD/pwHO/2fgcYmCGYeBLltawvawT2bwLzcz5d/XzHUk8iWPLE3YFI JGoA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=W7oHMfOu; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from phobos.denx.de (phobos.denx.de. [2a01:238:438b:c500:173d:9f52:ddab:ee01]) by mx.google.com with ESMTPS id m12-20020a056e02158c00b002dcebe504absi5388906ilu.69.2022.07.22.10.42.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 22 Jul 2022 10:42:55 -0700 (PDT) Received-SPF: pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 as permitted sender) client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=W7oHMfOu; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 8BC9F8210C; Fri, 22 Jul 2022 19:42:51 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com 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=gmail.com header.i=@gmail.com header.b="W7oHMfOu"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 1B8AF83C51; Fri, 22 Jul 2022 19:42:50 +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.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,SPF_HELO_NONE, SPF_PASS autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-io1-xd35.google.com (mail-io1-xd35.google.com [IPv6:2607:f8b0:4864:20::d35]) (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 42F1480C75 for ; Fri, 22 Jul 2022 19:42:47 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=jassisinghbrar@gmail.com Received: by mail-io1-xd35.google.com with SMTP id r70so4153070iod.10 for ; Fri, 22 Jul 2022 10:42:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=3vCJ/te1fOKjq0WUmaM9yF1ovj2aoT9bx49w6k6qpdg=; b=W7oHMfOuv+Qf0+62HTR7ldcTD4ozglVwEZcu6yz++c6dBxIbe2EuXoHyeYKbulHm6g 7TkFQh+Wjj+3fgcIqStnzAu1ht4TwpXEkma9aGr8VkEWIJagI5clKxT1UHwIhCJZVlPW hwQUhfiBADHKG/cGRFr0tEKp6216dsLRdhqSir9+8M9iK918mAJGr2xJaARm7SHvk07V Xn6PKVp78Vc7I0lzJMxb0sg+vueAX92Na1Ko/Ap1PEQ5uEuaduJFksoai20MXkdoJDZY dGTmxgYiHKhmCIR7iDrSvgURHCENQnjl+xF1jlQ/N35iiK0HEDdKExDgRDHMRbx2U8kT BvwA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=3vCJ/te1fOKjq0WUmaM9yF1ovj2aoT9bx49w6k6qpdg=; b=N0zUiuzc6Hto8f27ohv6sIVgWH0DU7Eja02ahBEnI/N2c3ej5uYNUC3TZQ/slBdbLG 1jkhcWQH2cPTeQJ7B8jtfasnrYeG0z0XP6H3rO5ObI8lLzjZtVhnXZjU/uePFxoGr2tN QlCxX0ME/jJIWvfWdCSofGjVL0dOZwnSaamzU2Q94rWf3yaLuteh8UkmfWlDivg3Na6o wrzCjW+yaUHU0GmYQeU9/rQZL7k52eBJ4PpYZzZcSJqtI3iuUBD4yDrPFkqitehlCcjk HaIC2ooBzL6vJEJ+hOdt87z3skDw57UE9H1//f9XgU1418VZpNMH/dgvyudo5lSl9c1j L23w== X-Gm-Message-State: AJIora/UMwP3n6QxowSnRp9Cl2947qxlDuLpV+iQj9AxGIm7ustJ5cXb dUvxNLGkWn7676eSEzVd7gNuYG8jIhU= X-Received: by 2002:a05:6638:3385:b0:339:ea59:a31f with SMTP id h5-20020a056638338500b00339ea59a31fmr490150jav.55.1658511765404; Fri, 22 Jul 2022 10:42:45 -0700 (PDT) Received: from localhost.localdomain (wnpgmb0311w-ds01-179-115.dynamic.bellmts.net. [206.45.179.115]) by smtp.gmail.com with ESMTPSA id w127-20020a022a85000000b0033ed97119ccsm2215183jaw.1.2022.07.22.10.42.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 22 Jul 2022 10:42:44 -0700 (PDT) From: jassisinghbrar@gmail.com To: u-boot@lists.denx.de Cc: xypron.glpk@gmx.de, ilias.apalodimas@linaro.org, takahiro.akashi@linaro.org, patrick.delaunay@foss.st.com, patrice.chotard@foss.st.com, sjg@chromium.org, bmeng.cn@gmail.com, trini@konsulko.com, etienne.carriere@linaro.org, monstr@monstr.eu, Jassi Brar Subject: [PATCH 0/5] FWU: Add support for mtd backed feature on DeveloperBox Date: Fri, 22 Jul 2022 12:42:40 -0500 Message-Id: <20220722174240.63935-1-jassisinghbrar@gmail.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220714183913.118505-1-sughosh.ganu@linaro.org> References: <20220714183913.118505-1-sughosh.ganu@linaro.org> MIME-Version: 1.0 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 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.103.6 at phobos.denx.de X-Virus-Status: Clean From: Jassi Brar The mtd and synquacer (developerbox) support was dropped from v6[1] This patchset re-introduces the support over last v7[2] submission of the patchset. All the comments on this code over v5 submission have been addressed. Moving forward a changelog will be maintained. [1] https://lore.kernel.org/all/20220704051658.1085442-1-sughosh.ganu@linaro.org/ [2] https://lore.kernel.org/all/20220714183913.118505-1-sughosh.ganu@linaro.org/ Jassi Brar (2): dt: fwu: developerbox: enable fwu banks and mdata regions fwu: DeveloperBox: add support for FWU Sughosh Ganu (3): dt/bindings: Add bindings for FWU Metadata mtd storage FWU: Add FWU metadata access driver for MTD storage regions FWU: mtd: Add helper functions for accessing FWU metadata .../synquacer-sc2a11-developerbox-u-boot.dtsi | 22 +- board/socionext/developerbox/Makefile | 1 + board/socionext/developerbox/developerbox.c | 13 + board/socionext/developerbox/fwu_plat.c | 95 ++++++ configs/synquacer_developerbox_defconfig | 13 +- doc/board/socionext/developerbox.rst | 96 ++++++ .../firmware/fwu-mdata-mtd.yaml | 38 +++ drivers/fwu-mdata/Kconfig | 8 + drivers/fwu-mdata/Makefile | 1 + drivers/fwu-mdata/fwu_mdata_mtd.c | 308 ++++++++++++++++++ include/configs/synquacer.h | 10 + lib/fwu_updates/Makefile | 1 + lib/fwu_updates/fwu_mtd.c | 173 ++++++++++ 13 files changed, 776 insertions(+), 3 deletions(-) create mode 100644 board/socionext/developerbox/fwu_plat.c create mode 100644 doc/device-tree-bindings/firmware/fwu-mdata-mtd.yaml create mode 100644 drivers/fwu-mdata/fwu_mdata_mtd.c create mode 100644 lib/fwu_updates/fwu_mtd.c