From nobody Wed Dec 17 06:17:37 2025 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 836B4C001DF for ; Wed, 12 Jul 2023 22:16:50 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231891AbjGLWQt (ORCPT ); Wed, 12 Jul 2023 18:16:49 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34800 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231658AbjGLWQp (ORCPT ); Wed, 12 Jul 2023 18:16:45 -0400 Received: from mail-lj1-x22a.google.com (mail-lj1-x22a.google.com [IPv6:2a00:1450:4864:20::22a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8670919B4 for ; Wed, 12 Jul 2023 15:16:44 -0700 (PDT) Received: by mail-lj1-x22a.google.com with SMTP id 38308e7fff4ca-2b701e41cd3so124823351fa.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=EiwaIi2Yc+TWcd6wwWDX5N36nOApbLKiVKYraLWSWa9laEQHnOoJcbetxoh59lKEDQ a3t60Pv5lGcO4uhnRD3BQMHprvnmguRrgayvjqtbR7guJ0nPh3W3uDB6T+eRj4rk2NR8 aHKuvGz1wHPIivd1+GtC1KKSWK/HXhi7ANIKJRjJAI8KxIFMjnYf+UMfcAbB41TDkYau xP8nlFFkl065FK73sZ/AYEasQDxzJ14tAf5DrcqhSnqyJF+kofaBdoEYMRk0eeAwp9Zg Ajggl4f+6LC08uVSKBenUhX30pH6CNXHjXzwGRCPl4ntwU4lTZ+qI7bHAwijd0KxgS9O B0wA== X-Gm-Message-State: ABy/qLaiI3Q+UM48MioFBiY/hSCy5p/5PVhdfG1uyMZ6MQUv3YJRUsRZ VSMV4CZfFP9zVdJb6AVwQRzx2w== 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 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable 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?q?Rafa=C5=82_Mi=C5=82ecki?= , 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 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.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 =3D "fixed-partitions"; + #address-cells =3D <1>; + #size-cells =3D <1>; + + partition@0 { + compatible =3D "seama"; + reg =3D <0x0 0x800000>; + label =3D "firmware"; + }; + }; --=20 2.34.1 From nobody Wed Dec 17 06:17:37 2025 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 77771EB64DD for ; Wed, 12 Jul 2023 22:16:53 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232588AbjGLWQw (ORCPT ); Wed, 12 Jul 2023 18:16:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34816 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231987AbjGLWQr (ORCPT ); Wed, 12 Jul 2023 18:16:47 -0400 Received: from mail-lj1-x229.google.com (mail-lj1-x229.google.com [IPv6:2a00:1450:4864:20::229]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0980E199D for ; Wed, 12 Jul 2023 15:16:46 -0700 (PDT) Received: by mail-lj1-x229.google.com with SMTP id 38308e7fff4ca-2b701e1c80fso118069271fa.2 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=SaHWAHkciXDrM/UaITaD5zDASSe5Ddy/PYLSjmq9uwSBezBBua3Mcsn3t8/f1ogxcQ OSbqeTFsZg+U9/HhkC0vVtFpDIzwdTpIeihzJm8EdNHyQUEB2v5jjsH1M5FMZjb8Ohqm MrZFUkZQUCb6lEO1Q41u6gmBtnq8JYaDT/M5xv3oPPnN/QMr6JwFZ30Krd4r7OEAY+lr HSc/DIctmOK+aNtX5R/9QQMuryMnpfQodE10nJEoEgQ1SKhKTJWDuCEbRSuw7CpWRR+j v2M6mKc7ze59b3/raE4fSygRTg/PzZVpbW13tTx5iLFaXaGSQTHd8CyS1G7DaPYqd+R9 4JWw== X-Gm-Message-State: ABy/qLak9LRcAX6j4oHOrR5q15wmi6SDh65TMOwaGMTEjhnUCuf8H69G n+9JRmQlloF+OfrY46beQlwkrQ== 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 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable 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?q?Rafa=C5=82_Mi=C5=82ecki?= , 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 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.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 =3D <1>; =20 partition@0 { + compatible =3D "seama"; label =3D "firmware"; reg =3D <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 =3D "seama"; label =3D "firmware"; reg =3D <0x00000000 0x08000000>; }; --=20 2.34.1