From patchwork Sat Nov 10 20:01:26 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Linus Walleij X-Patchwork-Id: 150744 Delivered-To: patch@linaro.org Received: by 2002:a2e:299d:0:0:0:0:0 with SMTP id p29-v6csp1366633ljp; Sat, 10 Nov 2018 12:01:44 -0800 (PST) X-Google-Smtp-Source: AJdET5cAszMlKVAeDeGRbYHAId6B6JEYN/j19gmOjL0iqPQLGActMuHds3ARcgP+eZVmEjiqo326 X-Received: by 2002:a63:81c7:: with SMTP id t190mr12186107pgd.393.1541880104319; Sat, 10 Nov 2018 12:01:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1541880104; cv=none; d=google.com; s=arc-20160816; b=qU/U6otK1DrQ048l0nj0cqtJXctIOwGHrNG4Wb7H04wJYl75Wfm/mOyw64rfKx3AKB BNw1sysLeWgD2UEMMWNnyTcOIcNQdasGxi+cDCJ4V54HKKqaVXFSGIf6AbryKzHoetUp rLSvfjhroLnY6Ff0iFZsejFmiNJ6LEoVJiZBcBOdnv7O3g2f58tbdb4BJ9GqOuYLIHz9 f3vdB6+oLvvjcq8Dp+SCaozhG0lqf2KMwFSyO5AHhQOU1V+kJushyGnDuw1leRcTraEH auvaaHxe/RROvQTOIQGZAiASqmx27okHJJP7R74MRsvQE4821IbkmreqEvYGUJVs3iku DJAA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=ociZpFm65LWdTxJXKcKsVU0ihnxY1+uXjBJHvs1iKfM=; b=DYO36YYTG6OF9SzQe9/r1WOja5oMlcRMifeDRh1+qFc+KvBVOyxTi03pD3eygyQP6Q PLhyXHS9zJpC2CDpsEwAqA/FIA6O8tX+6XoMiw2vKrKGcGh2Ec+SvgO7Y/BIEGop7s+L YTNycY7N6p1jKEEGhaeQtFc7vNFiaG4ZC08X2uXfCScUah4KMt7fQu2hE18nXE1tsnk9 RKOV6ZL7MUUX7zLm6pQepa0xMTLvBSpvbhnF6H6APhcCZ363JeKFACvIavDD3EVB0UYi 8lubmlBchmyjz9k0zzaiIvWUtPo217iWs7zo1KjFJG9IP2BQIxZ9nNCqRgwq133cl0jV JSKA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Y0M3ikv2; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l4-v6si13136489plb.258.2018.11.10.12.01.43; Sat, 10 Nov 2018 12:01:44 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Y0M3ikv2; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725815AbeKKFrv (ORCPT + 6 others); Sun, 11 Nov 2018 00:47:51 -0500 Received: from mail-lf1-f66.google.com ([209.85.167.66]:42108 "EHLO mail-lf1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725787AbeKKFrv (ORCPT ); Sun, 11 Nov 2018 00:47:51 -0500 Received: by mail-lf1-f66.google.com with SMTP id l10so5377lfh.9 for ; Sat, 10 Nov 2018 12:01:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=ociZpFm65LWdTxJXKcKsVU0ihnxY1+uXjBJHvs1iKfM=; b=Y0M3ikv2fIQKEBtmX7sVqiGN8Mis+n0AKqR2pUVYmxEZwppBi8p8mm5bxPvXItEcx9 eHlevur3ivLfXym3TZU8HdV0yW+B6ZuKVJUd2cSvOceCYLsNYlPx7uuV+JW+Q9kZffwK 0Z4IhXrJM7vuv9vo5j5C5yMvqsyt/oaXvfKuM= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=ociZpFm65LWdTxJXKcKsVU0ihnxY1+uXjBJHvs1iKfM=; b=G603s1/TnRqv+8h4ndZr+l4SQAM5j9kgEXoJlZ6DQj0yh6cqvQXjDhvO+Vuii8RRoy JZA+wEyBSILQ75ZhjIlvCYZ6wn73sQcsSpNOfIKxLAEoEsJOIXV3Baxwgw7v+dLQNqZG 4YSBIYKPOivCHXUxLHZ9d3s8CGgauyI+8CWY6T3Imo/7MmGztAZkkRHdnVwEpqab90gm Yx7GBrc1ofboy8LPhBCOmYOS4Oy/U8TzAGpXkcTMm1mBSv7Nyt15JbJFD6QujcDDRaSa O4KKq9DmregjYb/JswFLuWjKamIBhfzrN4SAV2Ytl/je/gFsn2bs2uQysHyWY2ZN/zve Mb4g== X-Gm-Message-State: AGRZ1gL08vVXM0RQ3qVdfWEbshhodvRykG2YZNeIYNFIORfIrWGJKwk+ xo1+lasTK0vvGCK8S7qIOSfIZQ== X-Received: by 2002:a19:200b:: with SMTP id g11mr7966915lfg.58.1541880100375; Sat, 10 Nov 2018 12:01:40 -0800 (PST) Received: from localhost.bredbandsbolaget (c-ae7b71d5.014-348-6c756e10.bbcust.telenor.se. [213.113.123.174]) by smtp.gmail.com with ESMTPSA id 75-v6sm2234606ljs.50.2018.11.10.12.01.38 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sat, 10 Nov 2018 12:01:39 -0800 (PST) From: Linus Walleij To: David Woodhouse , Brian Norris , Boris Brezillon , Marek Vasut , Richard Weinberger , linux-mtd@lists.infradead.org Cc: Linus Walleij , devicetree@vger.kernel.org Subject: [PATCH 2/3 v2] mtd: partitions: Add RedBoot FIS DT bindings Date: Sat, 10 Nov 2018 21:01:26 +0100 Message-Id: <20181110200127.13847-2-linus.walleij@linaro.org> X-Mailer: git-send-email 2.19.1 In-Reply-To: <20181110200127.13847-1-linus.walleij@linaro.org> References: <20181110200127.13847-1-linus.walleij@linaro.org> MIME-Version: 1.0 Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org This adds device tree bindings for the RedBoot FIS partition format. Cc: devicetree@vger.kernel.org Reviewed-by: Rob Herring Signed-off-by: Linus Walleij --- ChangeLog v1->v2: - Rebased on linux-mtd-next for v4.21 - Collected Rob's ACK --- .../bindings/mtd/partitions/redboot-fis.txt | 27 +++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 Documentation/devicetree/bindings/mtd/partitions/redboot-fis.txt -- 2.19.1 diff --git a/Documentation/devicetree/bindings/mtd/partitions/redboot-fis.txt b/Documentation/devicetree/bindings/mtd/partitions/redboot-fis.txt new file mode 100644 index 000000000000..fd0ebe4e3415 --- /dev/null +++ b/Documentation/devicetree/bindings/mtd/partitions/redboot-fis.txt @@ -0,0 +1,27 @@ +RedBoot FLASH Image System (FIS) Partitions +=========================================== + +The FLASH Image System (FIS) directory is a flash description +format closely associated with the RedBoot boot loader. + +It uses one single flash eraseblock in the flash to store an index of +all images in the flash. + +This block size will vary depending on flash but is typically +32 KB in size. + +Required properties: +- compatible : (required) must be "redboot-fis" +- fis-index-block : (required) a index to the eraseblock containing + the FIS directory on this device. On a flash memory with 32KB + eraseblocks, 0 means the first eraseblock at 0x00000000, 1 means the + second eraseblock at 0x00008000 and so on. + +Example: + +flash@0 { + partitions { + compatible = "redboot-fis"; + fis-index-block = <0>; + }; +};