From patchwork Sat May 6 15:29:44 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Linus Walleij X-Patchwork-Id: 1778007 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=VETN+1Qt; 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=dJfpUgM6; 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 4QDBMT4pCxz214M for ; Sun, 7 May 2023 01:30:29 +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=BkGZu8h3Uue/PyuQPEpovrKIV47HkBoALBmvUis4MN0=; b=VETN+1QtPMSok1 jOFveoKKl7H5vsCc8/4gner8Lspwpq0bUEEM1ZrjsuqRupc07/8NKnaPjzD7S3lnmO/r9Tiwf6rXL VZJjT7a7UqzL3duYwv6Zb//+ByNjEuuHcWfnwb7jJzx2/zEj3J9JYWKDdZQ5ccSz79KVtG13ZUWjp 5AiTSCLkk/IbkIJET9OfBfivM1vFKz4ardWzFn2j4eUZEJFibnxdV0KTe0DH8KurWbhrBwKmY2TAT gZvIKngZTPf20b4LZI9AlSCmwX5p9tpYmK79ng5xY7iL/gL5WXt6MSO0f3f315y2B6mdYHpZTI7c/ /1aMQomzrQSS0FBsp2zg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1pvJrB-00DuKC-2S; Sat, 06 May 2023 15:29:57 +0000 Received: from mail-lf1-x129.google.com ([2a00:1450:4864:20::129]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1pvJr3-00DuFJ-0w for linux-mtd@lists.infradead.org; Sat, 06 May 2023 15:29:52 +0000 Received: by mail-lf1-x129.google.com with SMTP id 2adb3069b0e04-4f22908a082so225710e87.1 for ; Sat, 06 May 2023 08:29:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1683386986; x=1685978986; 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=kcFNxwZJjHoZpWKSHiKHs54BtGGOGq9ohvpv73Bd18I=; b=dJfpUgM6CZ/H3KrBlF220za0DUnhwRNDMlR/kzl8wWqnFA4DgVnHkZwAbpOTDjAlkM HigvIxMZShpDWvvX39CH3UhnaeyrkxB9KMsZSBuS9zMYMSri9QYJLfsZfG07MKxcBqRu tk88mzSsbBDhFlIpKo2IjpWAhyk77MIJAg5fs9YHM82CPN9tqmHCpdEO8MiqUgsNI0wK pxwqh9XbuJTIjHYJy4VLvBM29R+nBacy4GS1BojXQVGDimfGGYFPEmUNffHI2/inLPsJ NskppM6iNqwJxHyq8qsokTsLy2oRx0n0nupYHkH2e2sT3MIqdlqufomzjIFmGczYU8XY G53Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1683386986; x=1685978986; 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=kcFNxwZJjHoZpWKSHiKHs54BtGGOGq9ohvpv73Bd18I=; b=ib5lxtLcQMYuIuT2icsBBKJHI/0nn2TTu5rSarmvHTObwzBJRWxd4hiIO4mpQaLZAl 903s07G+bRn2gR3bNiZtj+IfNNhQzK3jwd5aV71f3T56SL8Ya4RCibB7UBHXSb/BNYLh mbFYqXb9PVOcVtSIICm+CHCwacF2NE9gn1Q4UZxoBjzihd5ey+yxhCAU3ollB4qsKDYr aBookr8/TOC8CSzR+k+WsxlFwvXzKbuyVCwE5yrbRGsPHtFNH6pyD3IhdxNG6CLnWzR3 XPodJ3NQhBUusybKGOd9YdaUZM0oJs8VtfYfHf4YhGCRNYPliAd+qL3zjfOkl8Ez6eCm D8xQ== X-Gm-Message-State: AC+VfDxmCoAYptkviGAuLWo/TF9rpquRyjkku8Dh0waQWYhLZTVsrG4e 5neHCJioHhH8lGng3dvyNRsFZw== X-Google-Smtp-Source: ACHHUZ6GtyMk+NQ6GhlKalLwusNPGRbxL5sJNgSk9QivSz+TC736wa6j9aBzMTZaA949wCMGrPiWQg== X-Received: by 2002:ac2:5298:0:b0:4ef:ec6a:198c with SMTP id q24-20020ac25298000000b004efec6a198cmr1448431lfm.26.1683386986519; Sat, 06 May 2023 08:29:46 -0700 (PDT) Received: from [127.0.1.1] ([85.235.12.238]) by smtp.gmail.com with ESMTPSA id v5-20020a197405000000b004eff32d6a21sm680814lfe.121.2023.05.06.08.29.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 06 May 2023 08:29:46 -0700 (PDT) From: Linus Walleij Date: Sat, 06 May 2023 17:29:44 +0200 Subject: [PATCH 1/2] dt-bindings: mtd: Add SEAMA partition bindings MIME-Version: 1.0 Message-Id: <20230506-seama-partitions-v1-1-5806af1e4ac7@linaro.org> References: <20230506-seama-partitions-v1-0-5806af1e4ac7@linaro.org> In-Reply-To: <20230506-seama-partitions-v1-0-5806af1e4ac7@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.1 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230506_082949_391027_B5116FE5 X-CRM114-Status: GOOD ( 13.18 ) 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 --- .../devicetree/bindings/mtd/partitions/seama.yaml | 50 ++++++++++++++++++++++ 1 file changed, 50 insertions(+) Content analysis details: (-0.2 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 SPF_PASS SPF: sender matches SPF record 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [2a00:1450:4864:20:0:0:0:129 listed in] [list.dnswl.org] -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 --- .../devicetree/bindings/mtd/partitions/seama.yaml | 50 ++++++++++++++++++++++ 1 file changed, 50 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..352f008ffdb1 --- /dev/null +++ b/Documentation/devicetree/bindings/mtd/partitions/seama.yaml @@ -0,0 +1,50 @@ +# 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. + +maintainers: + - Linus Walleij + +select: false + +properties: + compatible: + const: seama + + '#address-cells': false + + '#size-cells': false + +patternProperties: + "@[0-9a-f]+$": + $ref: partition.yaml# + +required: + - compatible + +additionalProperties: false + +examples: + - | + flash { + partitions { + compatible = "fixed-partitions"; + #address-cells = <1>; + #size-cells = <1>; + firmware@0 { + compatible = "seama"; + label = "firmware"; + reg = <0x00000000 0x08000000>; + }; + }; + }; From patchwork Sat May 6 15:29:45 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Linus Walleij X-Patchwork-Id: 1778006 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=I/f/IR3r; 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=rhuQY7bo; 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 4QDBMT3l3Yz1ydV for ; Sun, 7 May 2023 01:30:29 +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=I/f/IR3rUjndxx 49unw+7lRPpsWCZB8qeyPhK+WA+ZGV6humlrftc2ovSy1fBkOMS7fniVc0UCLEcT85Qww2iz07gOh Ck/VL6ye91WfkuDPkWO6TuH7alLgR/I8P5mq5OXf72AtDPhJDugI/PfYksA9FMG/s9FeOFMZmjz65 NEMPlttDe4DCC4FVXuHxq8En0UfC6vYKtLSJQcAKRyF+SnFZ3aHPZpjSPdjhS8ylBRZ8E7MFa4bGM LigbzzoB1PoPD8SwiYvClyQ7OUtP7LCrS/Ofnx467qTn2+JxLQTu5l8ANd8Ixjuf32Br0nOqxzW2T 1VIkONNylypCayXYO6Mw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1pvJr8-00DuI5-00; Sat, 06 May 2023 15:29:54 +0000 Received: from mail-lf1-x12a.google.com ([2a00:1450:4864:20::12a]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1pvJr3-00DuFO-2L for linux-mtd@lists.infradead.org; Sat, 06 May 2023 15:29:51 +0000 Received: by mail-lf1-x12a.google.com with SMTP id 2adb3069b0e04-4f1394cb0d1so3287209e87.3 for ; Sat, 06 May 2023 08:29:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1683386987; x=1685978987; 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=rhuQY7bo7jkXWsQzOXHpflGgCgLdqnVRcCihN51Y9WQwdrcHNtLEMKbqkNuARXYgi/ NcTP6lA8O/JTb+wbiiXPdeyw2r4vOVb4c/2oZz7oOvpvX7xszULlw2HX1O9sFU2A36n8 IQHdV/NcGoUKxnChKWA/OiaSOnxeMS5SuH8leoPO18dpv0pto3li4LFhpNP2QTu/OURc jY93voIUXGtjUAp0WAR75xrNW4pkQFozS4OM0KWwTcGj2hLrvevxDLnuSWz7Dw5KMSHl J3NhFjjRCU1rsuN6LcF7erX3lQIXqAl3uNGXuJzMIRbrJFcm5OjTPPsb/4/6phXQ9fNA EhjA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1683386987; x=1685978987; 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=ND+Dm3EJGOngBLkbnRy2I2p1Zqi70FyTV7dGc7tqkr+YQe63TZ8EAF257tFWWWHRz5 daZDgdEaaLaGtzFp9jdrdlbCL/MYPE1IN09rx//PybXE1ld35T5gZ84OD6KDSZYoU/6q RBkJrFlRlsM6H9cGvw8KruMpaZGpHMQArOlt4gsWTsIyiNgEi5S7Jzx4aGzvfpbB+K2X BLEkvW+CNBvaGNtgVANBiBXzSEnS/KhB9o+NmLx+KjoaSlFpbRCUQCvR+nJxN4jf74dp AFtXXSuuLjnTdfmzfDl+b/1GZldZ3JmW5gnvGFlkK+4YaiSv6BnfxWpecAo0V+gDtBy2 DZtQ== X-Gm-Message-State: AC+VfDzl3Ef68mpAj69A5xVbBzLglZADLQF+7DUac67KZPez+ZGPBM/N dQR9EhPdo0dhvfpXz0E0Zgk6lg== X-Google-Smtp-Source: ACHHUZ4aE6ybHgPo+un8T6iOuQhf3zQ+v7vONYr//+SCABjwwSjCNAQ2+Qt3Fv5hsQU1ukHnWuA0/A== X-Received: by 2002:ac2:4470:0:b0:4ed:c3a1:752a with SMTP id y16-20020ac24470000000b004edc3a1752amr1189012lfl.45.1683386987504; Sat, 06 May 2023 08:29:47 -0700 (PDT) Received: from [127.0.1.1] ([85.235.12.238]) by smtp.gmail.com with ESMTPSA id v5-20020a197405000000b004eff32d6a21sm680814lfe.121.2023.05.06.08.29.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 06 May 2023 08:29:47 -0700 (PDT) From: Linus Walleij Date: Sat, 06 May 2023 17:29:45 +0200 Subject: [PATCH 2/2] ARM: dts: bcm5301x: Add SEAMA compatibles MIME-Version: 1.0 Message-Id: <20230506-seama-partitions-v1-2-5806af1e4ac7@linaro.org> References: <20230506-seama-partitions-v1-0-5806af1e4ac7@linaro.org> In-Reply-To: <20230506-seama-partitions-v1-0-5806af1e4ac7@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.1 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230506_082949_767780_B5B39575 X-CRM114-Status: GOOD ( 11.37 ) 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 SPF_PASS SPF: sender matches SPF record 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [2a00:1450:4864:20:0:0:0:12a listed in] [list.dnswl.org] -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>; };