From patchwork Fri Jul 7 17:42:40 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Linus Walleij X-Patchwork-Id: 1805009 X-Patchwork-Delegate: miquel.raynal@bootlin.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=none (no SPF record) smtp.mailfrom=lists.infradead.org (client-ip=2607:7c80:54:3::133; helo=bombadil.infradead.org; envelope-from=linux-mtd-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org; receiver=) Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; secure) header.d=lists.infradead.org header.i=@lists.infradead.org header.a=rsa-sha256 header.s=bombadil.20210309 header.b=vf26TR7O; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.a=rsa-sha256 header.s=google header.b=rIzCoFGV; dkim-atps=neutral Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:3::133]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4QyLNJ4zDzz20Nq for ; Sat, 8 Jul 2023 03:43:28 +1000 (AEST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:Cc:To:In-Reply-To:References:Message-Id :MIME-Version:Subject:Date:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=Y9IfsIX4CMjGv8AKH0VpizYhIYXwbM8pZ4ySi4XxssE=; b=vf26TR7Ok7U+vb AeSRM9NONc03i65UMhMUxwz8Um6+oXOknf+p0l5Q6wQK0ZI2FzvSYgtpGeixntMdyM+RAb4c9lw8K cjt+k2jQwDofoGnvxVQiUPdAIAXrvDX9DJicZCtg+GkYIiEXUzaz3NfqWJ9iyWqYxGBkPaXzE383J 6Kbtry7WKqjEwC7HBX21xl4i9p8F472oTRG8ojh7lpJNzXo05HWJhCgIfKdfww8j3Ju8gDoL01RD0 BQqOE61x6inYYCe7fYp8CokQ9ZsVedU6UPLnSEmBXZGbzZMVrJZo8zeHFEkw1/+A51sayw5OdbVtJ iDgJvM4ZtW1JPzXjTBCQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qHpTx-005KuT-2m; Fri, 07 Jul 2023 17:43:01 +0000 Received: from mail-lj1-x230.google.com ([2a00:1450:4864:20::230]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qHpTq-005KpQ-0U for linux-mtd@lists.infradead.org; Fri, 07 Jul 2023 17:42:56 +0000 Received: by mail-lj1-x230.google.com with SMTP id 38308e7fff4ca-2b6afc1ceffso35367781fa.0 for ; Fri, 07 Jul 2023 10:42:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1688751765; x=1691343765; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=z54mN4aXgEPP2Sykw+F798h+c0t4S78JPX3MGMsme3I=; b=rIzCoFGVdB20065N6xObn1OAjce3QC+vblox21S292YFPbGSC8GmNcyLlTbmxOMbka nh0jcmrEHghm6ttvbMpGaHqPCWAbDJglM++j+wdjf2cbA3K7Y76UjHnVfN0jGH5Md4XQ R0VOqhSVQfcGQCxVEKWXzhwqjs9MF33o1KXzayjKXcZRDk/vCZ4jovPJ3259yAlgk5vM J6kfIZ9r3ALocXSnq/1HpYFJTCAlXNbaXhlBvat29F4mo70NEIE8X7g50JtQJX2uXuXv WJ/e0SkTbCJEY7Xnn0Kqil8sQAAO138kSLl+RGgXn4mkzBKWMwcWjd/G/8I46h/sq4h9 Dp/Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1688751765; x=1691343765; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=z54mN4aXgEPP2Sykw+F798h+c0t4S78JPX3MGMsme3I=; b=UjaoUORLyhPjNcpgoO3gP+uEg5d9fXqi/G+K9L/c3VqNhfg3/YIfoq3opMP3dbyCnm p935Ihi2LMCa6eRiyc/Gqc0LjzgOuvCnomfKUTLmL7U1cV5I1+nW60izQJbEc0CQTTsx zARCbClLjGR/FFU9psaKtMUdoDtFx4uWlwJmdYLkqR5VABFSN/4Xsx0YoDhEwXgLQqys GXhyBbCUVuuKCFSQCDUUc2Im+TGLuKRAS6Q45/quP9xysW+KB9wUCXlcwOpOx/Tsaeyd 4SCZDvmegMDX0Q2LG/IbGlEQpvXgYr/RgshAjEtf3V5MatdTVF+eksVmp8ng25tOfqLT 3h6Q== X-Gm-Message-State: ABy/qLZdialHTZ+wW1D0H4C7IEOQEsRrf6ZHXakiqmYzK75og/7WdZXt +7aFwVMwTa/G7hB6AxqfCYPyt//OqQEiGwNuHIU= X-Google-Smtp-Source: APBJJlESL/zsHSjP3+q2nsmJZ+A1izmLVc3oqEgoRN5frb7ijEt1grFOcZvBOmMuoUFDfp7LKLIxrw== X-Received: by 2002:a2e:988c:0:b0:2b6:fa54:cec1 with SMTP id b12-20020a2e988c000000b002b6fa54cec1mr321999ljj.48.1688751765529; Fri, 07 Jul 2023 10:42:45 -0700 (PDT) Received: from [127.0.1.1] ([85.235.12.238]) by smtp.gmail.com with ESMTPSA id 7-20020a05651c008700b002b6ece2456csm859163ljq.121.2023.07.07.10.42.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 07 Jul 2023 10:42:45 -0700 (PDT) From: Linus Walleij Date: Fri, 07 Jul 2023 19:42:40 +0200 Subject: [PATCH v3 1/2] dt-bindings: mtd: Add SEAMA partition bindings MIME-Version: 1.0 Message-Id: <20230707-seama-partitions-v3-1-6aa9391b46bb@linaro.org> References: <20230707-seama-partitions-v3-0-6aa9391b46bb@linaro.org> In-Reply-To: <20230707-seama-partitions-v3-0-6aa9391b46bb@linaro.org> To: Miquel Raynal , Richard Weinberger , Vignesh Raghavendra , Rob Herring , Krzysztof Kozlowski , Florian Fainelli , Hauke Mehrtens , =?utf-8?b?UmFmYcWCIE1pxYJlY2tp?= , Broadcom internal kernel review list Cc: linux-mtd@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Linus Walleij X-Mailer: b4 0.12.3 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230707_104254_191352_DBD774EE X-CRM114-Status: GOOD ( 14.93 ) X-Spam-Score: -0.2 (/) X-Spam-Report: Spam detection software, running on the system "bombadil.infradead.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: This types of NAND partitions appear in OpenWrt and U-Boot. Signed-off-by: Linus Walleij --- ChangeLog v2->v3: - Drop reference from partitions.yaml again - Drop select: false - Use unevaluatedProperties ChangeLog v1->v2: - Fix up th [...] Content analysis details: (-0.2 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [2a00:1450:4864:20:0:0:0:230 listed in] [list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -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 -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain X-BeenThere: linux-mtd@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Linux MTD discussion mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-mtd" Errors-To: linux-mtd-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org This types of NAND partitions appear in OpenWrt and U-Boot. Signed-off-by: Linus Walleij --- ChangeLog v2->v3: - Drop reference from partitions.yaml again - Drop select: false - Use unevaluatedProperties ChangeLog v1->v2: - Fix up the binding to be childless --- .../devicetree/bindings/mtd/partitions/seama.yaml | 48 ++++++++++++++++++++++ 1 file changed, 48 insertions(+) diff --git a/Documentation/devicetree/bindings/mtd/partitions/seama.yaml b/Documentation/devicetree/bindings/mtd/partitions/seama.yaml new file mode 100644 index 000000000000..5105d1a6a44c --- /dev/null +++ b/Documentation/devicetree/bindings/mtd/partitions/seama.yaml @@ -0,0 +1,48 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/mtd/partitions/seama.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Seattle Image Partitions + +description: The SEAttle iMAge (SEAMA) partition is a type of partition + used for NAND flash devices. This type of flash image is found in some + D-Link routers such as DIR-645, DIR-842, DIR-859, DIR-860L, DIR-885L, + DIR890L and DCH-M225, as well as in WD and NEC routers on the ath79 + (MIPS), Broadcom BCM53xx, and RAMIPS platforms. This partition type + does not have children defined in the device tree, they need to be + detected by software. + +allOf: + - $ref: partition.yaml# + +maintainers: + - Linus Walleij + +properties: + compatible: + const: seama + + '#address-cells': false + + '#size-cells': false + +required: + - compatible + +unevaluatedProperties: false + +examples: + - | + partitions { + compatible = "fixed-partitions"; + #address-cells = <1>; + #size-cells = <1>; + + partition@0 { + compatible = "seama"; + reg = <0x0 0x800000>; + label = "firmware"; + }; + }; From patchwork Fri Jul 7 17:42:41 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Linus Walleij X-Patchwork-Id: 1805008 X-Patchwork-Delegate: miquel.raynal@bootlin.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=none (no SPF record) smtp.mailfrom=lists.infradead.org (client-ip=2607:7c80:54:3::133; helo=bombadil.infradead.org; envelope-from=linux-mtd-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org; receiver=) Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; secure) header.d=lists.infradead.org header.i=@lists.infradead.org header.a=rsa-sha256 header.s=bombadil.20210309 header.b=rLDoYV4B; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.a=rsa-sha256 header.s=google header.b=zTQr0TfM; dkim-atps=neutral Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:3::133]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4QyLNF2fsLz20Nq for ; Sat, 8 Jul 2023 03:43:25 +1000 (AEST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:Cc:To:In-Reply-To:References:Message-Id :MIME-Version:Subject:Date:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=3lrQVxqv5cWq3uUoTegmXMEPHjmPFSt4MQv7YaMxG8E=; b=rLDoYV4B4F4dpi bk0FRUH5FcxDLv3yA1+qw200HZXWg35PTmeVitYWV7QwVu5F9R6pLvf1R/5FS86wCVrOzClhlkN+8 2rYB54Dk1WfgJdRa0CgPDigUVfKERsnq54Q4xXjYyn6KsqTKW7balhhEVTLPGhZHMEWuQCSQz/2wu VRoBCY5agv8sHCWqZdl7L6qgnpCfecRsYAWky8oXvJp6s42h1euB3x6klHFk0FWoxfw3OfBYIXa1d 10EQqCSFeY2tOmlyTHoU9Rwh7mS4EJCp8Potr77XvcSbRJSFfnNkY/jIxaUKcQWGGYCpJTJyv0eDJ YfoIMXPHiJeRyvBTKVvg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qHpTu-005KtD-0I; Fri, 07 Jul 2023 17:42:58 +0000 Received: from mail-lj1-x234.google.com ([2a00:1450:4864:20::234]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qHpTq-005KpU-0U for linux-mtd@lists.infradead.org; Fri, 07 Jul 2023 17:42:56 +0000 Received: by mail-lj1-x234.google.com with SMTP id 38308e7fff4ca-2b6ef9ed2fdso35105091fa.2 for ; Fri, 07 Jul 2023 10:42:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1688751766; x=1691343766; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=4qtQZvewa01bd3WNJlBR7VuLAaPubF3IprbkAp3R6jI=; b=zTQr0TfMcC4DlfkbUXm72Nl/XQ082bNObmI1yt8HMIW00TtkJeshukWttKsGR+I+8f 3R2/dEQx2lxEUYIQMjps10V3ctk1wUJZlPQD4GBQnnHBxVaUIs8t3HAzyTGVsH9pDn/B sjpIygG3CckbYb9qVtfQ6n88mWrvy6v7fTw6xpLMgZxofqyneKD63sfi0EplDCc6mO4G vyLLAljhYZLmuRw9VkeS7YfIryYvhHTHWKttrK5yTA1eMSh2tn4Ox2XgXhq+KyfrtuHT 4TfQwB/IEL5bdLLE6npGDdvVkIGm8UZpcejWnlAJ1kIdLFvxkdZeglH7MuGLySBZ8fMZ ndVw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1688751766; x=1691343766; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=4qtQZvewa01bd3WNJlBR7VuLAaPubF3IprbkAp3R6jI=; b=VAZJC4H6e2iBEaUEf8MjpGgbRGKiUftZUGLMGM332ciS/wHUAkk0Ng65q0apa6BzIk V17dvoPMM9O290QUF0sbVtIuQY9y/8tJrGpOCEzQQeFOjHEV8qFKvjjKn0KfyEBzKu6y EhbynMLn6k2B+AdpjJY6PpdaAGT1tsnLXFtohUfHvg7tPUU6nlpub+E9Ghm8fqJN1Jc1 T8iiZtuwqJkrZfkZCRW/ZPswBt1WTfqWSIeQ7jz5BAs4H+gNPul3Z2xJv33x1P/qO5CX hqRZofwYZWgWPEZuJBAH9BUnTShGH6VqiCbjAwxVyDcdM4g8Jk7IUPgMnTJQXoI9uR1D nL+w== X-Gm-Message-State: ABy/qLYdh4/aeeIbaVJ/6A/newfRK1z/z/3oHZJHpeRMMAdaqJEqYibA 9K/sP9oHJhKccGspfCuN+3PzNw== X-Google-Smtp-Source: APBJJlG58ikAkD6LHQBmGvRh+KpXB7nKpIJUjW3R2c4WpdveO+EhTkm4mWQdrN4UErqYnbLF5zcjQw== X-Received: by 2002:a2e:9a86:0:b0:2b5:86e4:558e with SMTP id p6-20020a2e9a86000000b002b586e4558emr4641825lji.38.1688751766423; Fri, 07 Jul 2023 10:42:46 -0700 (PDT) Received: from [127.0.1.1] ([85.235.12.238]) by smtp.gmail.com with ESMTPSA id 7-20020a05651c008700b002b6ece2456csm859163ljq.121.2023.07.07.10.42.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 07 Jul 2023 10:42:46 -0700 (PDT) From: Linus Walleij Date: Fri, 07 Jul 2023 19:42:41 +0200 Subject: [PATCH v3 2/2] ARM: dts: bcm5301x: Add SEAMA compatibles MIME-Version: 1.0 Message-Id: <20230707-seama-partitions-v3-2-6aa9391b46bb@linaro.org> References: <20230707-seama-partitions-v3-0-6aa9391b46bb@linaro.org> In-Reply-To: <20230707-seama-partitions-v3-0-6aa9391b46bb@linaro.org> To: Miquel Raynal , Richard Weinberger , Vignesh Raghavendra , Rob Herring , Krzysztof Kozlowski , Florian Fainelli , Hauke Mehrtens , =?utf-8?b?UmFmYcWCIE1pxYJlY2tp?= , Broadcom internal kernel review list Cc: linux-mtd@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Linus Walleij X-Mailer: b4 0.12.3 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230707_104254_192020_055D84D8 X-CRM114-Status: GOOD ( 11.58 ) X-Spam-Score: -0.2 (/) X-Spam-Report: Spam detection software, running on the system "bombadil.infradead.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: This adds SEAMA compatibles to the firmware partition of these two D-Link devices. Signed-off-by: Linus Walleij --- arch/arm/boot/dts/bcm47094-dlink-dir-885l.dts | 1 + arch/arm/boot/dts/bcm47094-dlink-dir-890l.dts | 1 + 2 files changed, 2 insertions(+) Content analysis details: (-0.2 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [2a00:1450:4864:20:0:0:0:234 listed in] [list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -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 -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain X-BeenThere: linux-mtd@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Linux MTD discussion mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-mtd" Errors-To: linux-mtd-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org This adds SEAMA compatibles to the firmware partition of these two D-Link devices. Signed-off-by: Linus Walleij --- arch/arm/boot/dts/bcm47094-dlink-dir-885l.dts | 1 + arch/arm/boot/dts/bcm47094-dlink-dir-890l.dts | 1 + 2 files changed, 2 insertions(+) diff --git a/arch/arm/boot/dts/bcm47094-dlink-dir-885l.dts b/arch/arm/boot/dts/bcm47094-dlink-dir-885l.dts index 555fbe41dd8f..cf3000b07eea 100644 --- a/arch/arm/boot/dts/bcm47094-dlink-dir-885l.dts +++ b/arch/arm/boot/dts/bcm47094-dlink-dir-885l.dts @@ -33,6 +33,7 @@ partitions { #size-cells = <1>; partition@0 { + compatible = "seama"; label = "firmware"; reg = <0x00000000 0x08000000>; }; diff --git a/arch/arm/boot/dts/bcm47094-dlink-dir-890l.dts b/arch/arm/boot/dts/bcm47094-dlink-dir-890l.dts index d945a20b06e0..3551f855ff20 100644 --- a/arch/arm/boot/dts/bcm47094-dlink-dir-890l.dts +++ b/arch/arm/boot/dts/bcm47094-dlink-dir-890l.dts @@ -149,6 +149,7 @@ partitions { * partitions: this device uses SEAMA. */ firmware@0 { + compatible = "seama"; label = "firmware"; reg = <0x00000000 0x08000000>; };