Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 822A3C43334 for ; Fri, 22 Jul 2022 17:43:32 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 8C32583F2D; Fri, 22 Jul 2022 19:43:30 +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="N7fzFdKb"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id C2A8783F3D; Fri, 22 Jul 2022 19:43:28 +0200 (CEST) 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 E758083C51 for ; Fri, 22 Jul 2022 19:43:25 +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 u20so4153034iob.8 for ; Fri, 22 Jul 2022 10:43:25 -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=N7fzFdKbNRdyi9xTlIdce/NVslPqFwxqrL2/L/VZSZ7L0HVkwNDW/EBe7kDZgJBU2A 1JAHA0s97uqFVd6lhRgF3v34IO1/MBj7n5Uaam9lOo8sW5nd4u2LsONKr/oTf7/rbm0h zdNjHtolhPk+nuqH/uHlkT3Iil5LwASes3kdXL7nGFtmtqts+uiQ6bF2DsjThdr+kECY 1FQXighhHVoh3JLI8HNG+cJLsBhSrmC5uQN+90krW01ItFBNjmJQNDG4jmeI1QU/zxXk TWZpVr5nImjs/LUJyTX3hMUnNRGQC5Hjgwq8h5tmZUYspbecG2jeazGgoj+oEH8+GxkV BRqg== 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=1b7Z1WzngMMOV1PJ/J4ZlJr3qmSY2fOVQKBpYF1ueZ+V8ehO9m8mZyZzjAlwu4aE6U SD4XnH2T5xQeZrvhxkyCiVfXKPbVtiZoOYdM44muAmT8dPIoGUV8dHMHkxYkt1nAjHKr r0MnY821tmCtmZwlaOLNE1NWo4D2O3yFIN8FVTRJFTH8XF093MR9ubuHW+nqwVGQuO3a bZI8nwQoq9DhGSJe/y3KxJpB2ODLLpI313eAE01ATI1IU51mMjYLj34KWREJsTvUEHIM b+pGrTMr6f1W4o5OAnjNTbMFGT6iQph780xaL+yuNCXgPy3C6Q5QR5IUiXuaP1D0+K8o TyCQ== X-Gm-Message-State: AJIora8splFujtKndaqxfvbSewIzFJXruNKrs6Zm1cETRaFwutTvKxd9 +DOn+H+LtfwJm2MNA+S0klCZY0RWMu4= X-Google-Smtp-Source: AGRyM1tghVekcFFBBp+7Nu47ELi4e3Z84Y/ke+Yog6JrxyjWl7ksUWAP87zfHPR1zXiWObjF2DD4mg== X-Received: by 2002:a05:6638:3722:b0:33f:4948:a91c with SMTP id k34-20020a056638372200b0033f4948a91cmr518768jav.283.1658511804193; Fri, 22 Jul 2022 10:43:24 -0700 (PDT) Received: from localhost.localdomain (wnpgmb0311w-ds01-179-115.dynamic.bellmts.net. [206.45.179.115]) by smtp.gmail.com with ESMTPSA id s26-20020a02c51a000000b00339eedc7840sm2242348jam.94.2022.07.22.10.43.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 22 Jul 2022 10:43:23 -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:43:14 -0500 Message-Id: <20220722174319.64006-1-jassisinghbrar@gmail.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220722174240.63935-1-jassisinghbrar@gmail.com> References: <20220722174240.63935-1-jassisinghbrar@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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 -- 2.25.1