From patchwork Wed Jul 12 22:16: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: 1807001 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=3PqQ7eVz; 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=mkLczbqb; 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 4R1XCz2K0Pz20c6 for ; Thu, 13 Jul 2023 08:17:19 +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=M5ZjNRmvqwP0RKko7XrKCHABREVS7dMT1/sXv5qCAx8=; b=3PqQ7eVzukXrWQ G7WAwco8z1JtMj7jaIrIv+wMn6yLbmOojaEdM5XyrwfO5DQlw1ZcXfKwsfC0Tm4KUdGN50KOKpZqb Rbl64SPTcW1Po3oa/8ct7011GoprKisuP/eUC4U0+TxG1WKnq7ysIdClAjnbLr5+6IlvBGJ3Bx1dc UgUp9Ph793gIrBW+EKhbO8NBhn0noQ8OSMWY0UIEpag1NXPkVqSJv36ww2i5MT6SjY0HpV3v1ahA1 GwuCl7C8yd1en8/zXjlEOYMQVKXPdR/wL4JqrG36KLC3r2ni8GKdMtr1S5T1aoDHUvp2mPCY1L5WF I+6Qd865cUoNa+bXeoeQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qJi8f-001NhN-2q; Wed, 12 Jul 2023 22:16:49 +0000 Received: from mail-lj1-x22f.google.com ([2a00:1450:4864:20::22f]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qJi8b-001Nec-1a for linux-mtd@lists.infradead.org; Wed, 12 Jul 2023 22:16:47 +0000 Received: by mail-lj1-x22f.google.com with SMTP id 38308e7fff4ca-2b701e41cd3so124823441fa.3 for ; Wed, 12 Jul 2023 15:16:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1689200203; x=1691792203; 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=U6m3CTODGn0UWM9+Rqg0ugH9A7AU7fZ4SISWuI+6Sl4=; b=mkLczbqbzzrRQn2RyVkNaVNj3OI3BbGW5Le6Wh/rF5Ymm5H7qzgFdrilT9YUDZIp4u T7TEAhVgmdaqVGZlbZKsyOqvVW9sAe84fsVZ//6lH184KsXbGmB3vNpcIn1S5HD6JRSf yZk354Te+JdvgZSJa1vLDLoX0sZVpuizcj5EJXGM7f1LuBeyzZu6Yc3cqWnJ4FFCWTrS NUNRZuRF2zvMf8sax2QkC5d9foXld9dSIX6Bg5vdyTMjTMk6uFa5pltHcaqLM4nzrSOH O1jPX0Lx5/E024E1+KqKBHTlgqyuEgauk9nHCtDJh9PuNqyd2nZcdsG5jD/ZIMFxsRSF n34A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1689200203; x=1691792203; 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=U6m3CTODGn0UWM9+Rqg0ugH9A7AU7fZ4SISWuI+6Sl4=; b=RXioNKIQf8DeOuPM+13rvW5K9nPevRsJj9OUJ0W+JXNaYcuex6N8Eu9PG8sXRCywvy t4rMceE+cSn4LfKq2guXrB2zHfJNM/4NbjIANKgs/B7aba38J+fSx25UgGNu3jz3drLM UlETzqmANvZ8RtM4xVG+Tjs62HCsnfzFk+DHY+QBFCLQ4n8OjRKD9RUaUoXdhvf3rbDh I5PCT0abCvZSHvtpszsLEhxfSeMK7sWQI+xAp4W51fItMD7Uvks07pO5ZhLMzO8DYKvc kITMca2PS1DQVH/zX8qvCUpyCW3d3Gr6re/fRaXigP6wdEnw0R/iLIiN9aUYYkjRmszQ 8HOQ== X-Gm-Message-State: ABy/qLZr5DQ1hn2i0qHv9F4klpXZraG1rwayEDzjW8mlCJx8sKNZ/oHO Wn0LVGe800Lpj6qaPjZMynwDSKD6O82tXeHVakU= X-Google-Smtp-Source: APBJJlFe+iB0Y2THx9p8X+1eWOfB5H55LoZR90PLwjI1D6WC7kB+FxTXJq3m7CAQ90tyxbcEeWPHSA== X-Received: by 2002:a2e:2405:0:b0:2b6:e0d3:45b5 with SMTP id k5-20020a2e2405000000b002b6e0d345b5mr18223822ljk.3.1689200202746; Wed, 12 Jul 2023 15:16:42 -0700 (PDT) Received: from [127.0.1.1] ([85.235.12.238]) by smtp.gmail.com with ESMTPSA id b19-20020a2e8953000000b002b6e00a3e19sm1177774ljk.132.2023.07.12.15.16.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 12 Jul 2023 15:16:42 -0700 (PDT) From: Linus Walleij Date: Thu, 13 Jul 2023 00:16:41 +0200 Subject: [PATCH v4 1/2] dt-bindings: mtd: Add SEAMA partition bindings MIME-Version: 1.0 Message-Id: <20230713-seama-partitions-v4-1-69e577453d40@linaro.org> References: <20230713-seama-partitions-v4-0-69e577453d40@linaro.org> In-Reply-To: <20230713-seama-partitions-v4-0-69e577453d40@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-20230712_151645_530389_90CCC9D4 X-CRM114-Status: GOOD ( 14.73 ) 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 v3->v4: - Drop false flagged cells etc. ChangeLog v2->v3: - Drop reference from partitions.yaml again - Drop select: false - Use u [...] 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:22f 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 Reviewed-by: Rob Herring --- ChangeLog v3->v4: - Drop false flagged cells etc. 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 | 44 ++++++++++++++++++++++ 1 file changed, 44 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..4c1cbf43e81a --- /dev/null +++ b/Documentation/devicetree/bindings/mtd/partitions/seama.yaml @@ -0,0 +1,44 @@ +# 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 + +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 Wed Jul 12 22:16:42 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Linus Walleij X-Patchwork-Id: 1807002 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=HzkuaHjz; 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=T2altrG6; 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 4R1XD20S4vz20Ph for ; Thu, 13 Jul 2023 08:17:22 +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=HzkuaHjzjTyGNt bD67JQDC0sXdsHuvZ2JN1EOxETmasvpbrJVfRuf6pTO5gsc8hgs3HqTNXIS9LKVzB1tWoH9LaZ+vS W3JejbBgzO3r3iwybtTpGaLM689DAtuv0U/MtIHPGzTTNwjq+DdjfnOPAlEh+8LHgSkUmkNjQiyiw Oihe+LNBymUKFvY5iF4uurSifs6eyVuzAxvo3vJ9Gdc6bQPsnr+bWBBeprsripjPKDPPGWjBOmkYL dDZCs63YP18xd9cJnv8E1xzEbO8MPjWTV9SYZ7RUzd7BM8gF73dGAJfMVUdhT/59byQh1HqzS61HJ C4ncSRQ/gpqGoaUv05dQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qJi8k-001Niz-24; Wed, 12 Jul 2023 22:16:54 +0000 Received: from mail-lj1-x22a.google.com ([2a00:1450:4864:20::22a]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qJi8d-001Nev-2x for linux-mtd@lists.infradead.org; Wed, 12 Jul 2023 22:16:49 +0000 Received: by mail-lj1-x22a.google.com with SMTP id 38308e7fff4ca-2b700e85950so118163781fa.3 for ; Wed, 12 Jul 2023 15:16:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1689200204; x=1691792204; 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=T2altrG6dNzTVxPdyClkJw6UuED6zHa7UCunHa6cLY+LwlFbTD3B2BwAfohvJe8gh6 pTpmZnkjw+1X0M/uNMTIcatfVlQVrJ4hHuYZX66VPchGp47Fy2Et2R1uSsNPhAcObUzM EX6ErPJGyHFHkPASUn6xIGmsxQ21uw7hTq222rCrwEvDOv55J5sjJDARy+7g45MGtgnf mGkCAuMQfUCz7W6wMxDGQiuexXt6/oA9yM7TgjqL0o2NsX+abR7jEhqQHSEZ5cIR6ib/ wwOkb+EpaQ4b2toTE7CfeK1QltRTAJrFqE37roVWqf7tJH/Is6ameSiB+FJo1mcz/e5f S8gw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1689200204; x=1691792204; 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=OW4lUsRviEwxEdFuiFXr9PeV1FyYJKLjRIOSOYfd9c6EUO8Gt3RTA4lNSGC2/UX3KF ZTc425Driug+QvdassdcWyjrUYABRfNWRmY6QRzD5ZcNk9z0LberRdOvJ2ezTcR+TmP9 PNEib6OS5fRkqC3GIdLda/kv8Y6WKUUhqKvPlS2hNHWIb7Stmu69Zq/GDGr26SKe0ikI a8t5xdGeONh+bPuIYyAVJrI2Z70mSAyyE49P1B/YoiExR7eQ60+oF2fRrGlnkHbW9sLW xtfcjAu7e9t2hIfEXO0L0WUhCFUYjFJRky3VTHTgZ3NP8sXqy8Y4hbPtbetf40MMBkId kOig== X-Gm-Message-State: ABy/qLbBHwsPakBWdbBSgKiN9ZpNjzpjQeE0ypAkMqt1j7d+BbK3wYJ0 u+EW1GY3VFj+LBdjFg3d7s3itmZCWD9FG/093B8= X-Google-Smtp-Source: APBJJlFlg0wg+oLTe0osO+qC/fBLQfjtsicmaKbj2TfVUiwnMm2ZtNyVk0imiu82DR14aN/jJPhZLw== X-Received: by 2002:a2e:9d04:0:b0:2b6:e8a0:a7f8 with SMTP id t4-20020a2e9d04000000b002b6e8a0a7f8mr16540965lji.31.1689200204409; Wed, 12 Jul 2023 15:16:44 -0700 (PDT) Received: from [127.0.1.1] ([85.235.12.238]) by smtp.gmail.com with ESMTPSA id b19-20020a2e8953000000b002b6e00a3e19sm1177774ljk.132.2023.07.12.15.16.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 12 Jul 2023 15:16:43 -0700 (PDT) From: Linus Walleij Date: Thu, 13 Jul 2023 00:16:42 +0200 Subject: [PATCH v4 2/2] ARM: dts: bcm5301x: Add SEAMA compatibles MIME-Version: 1.0 Message-Id: <20230713-seama-partitions-v4-2-69e577453d40@linaro.org> References: <20230713-seama-partitions-v4-0-69e577453d40@linaro.org> In-Reply-To: <20230713-seama-partitions-v4-0-69e577453d40@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-20230712_151647_955719_20C76FB9 X-CRM114-Status: GOOD ( 11.75 ) 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:22a 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>; };