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: 13310940 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 08EBDC001B0 for ; Wed, 12 Jul 2023 22:17:22 +0000 (UTC) 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=HNEde03xcd74tnvATHSSwKKApvkXFHm1OA1PONWlfCc=; b=KugxDBStJTZEEk uXJs8EVorgCzI0XgFz4j3c2xk2HCXkKIMoGSPzaIR15f8uVkwCE07EzCPR18rQbk0oY4MrGSqas5s TIpHzBTEmUNLeM1yBkA0UDBSu1r1FFLp/8vTn42tnA+GfdbZCi+eCB3ur7/J+VAJsqSmucGFlw8Wp W+gevxkcJquj281IWXlswby1FY1zieglF+q707+SUrWnxVLL2ZJ3xk9KSL9ox5INblhxnUHSNXU+l smJofIJP580VNdDRFynopVX4F07fTDwhc07JY175VvPdSlOUHVmOTqXOjuSG4xX2tfLnUonIRuYwn TAmdnb48ff6/eWkGYi1w==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qJi8j-001NiE-1j; Wed, 12 Jul 2023 22:16:53 +0000 Received: from mail-lj1-x22d.google.com ([2a00:1450:4864:20::22d]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qJi8c-001NeO-0Q for linux-arm-kernel@lists.infradead.org; Wed, 12 Jul 2023 22:16:47 +0000 Received: by mail-lj1-x22d.google.com with SMTP id 38308e7fff4ca-2b701e41cd3so124823341fa.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=ZRP0lzbvwjZQ2VQMCTg3GN8v4yI4SW7Va30A464rP+alVwEjElqeId+1o36IEAUgRA HwNXuyIFczlsm3q1tYyOul6sl1GoKY528h+szSuzdsYGIaEOjioFk+xbjTxm1bUFE32g j0Ot1JqNb7r6uDrdhB2KYxpbVtyWBGECSaamSRb3SGlZg7yDfWMWskzzCk99x6hCBXC5 pRfPgN3+zOWJqIOBI7JBJ0tjxhZxNueDuj3dnGznXuBtb+lPvtJrBgedvtXVB1hzQrdF RalJ1uPZESDnHJyEdJ4G3+uTFLiPVUqzUmy9W6MwTfLn53ZfqCDXIu0DTenje6oIdX0E yBGQ== X-Gm-Message-State: ABy/qLavX1XDuhmgqiPn5hd0emxvO6jlrlWEqtUdL5PFXClN+zrkURLJ DPDUwp+gtMtduFCb0cpmUlqwow== 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_151646_171545_C5CEFF0D X-CRM114-Status: GOOD ( 15.57 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.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: 13310938 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id DB613EB64DA for ; Wed, 12 Jul 2023 22:17:18 +0000 (UTC) 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=wGxsEbrYIiqev61qHN4S5muyW3kMb890fA5yuPdBNmE=; b=CsWh58MeBUhFC7 EHNl0NX1m5nueYfwvi4VXp3v227cXnD8EncSsBDHLmYfl4Qc2SmpSdtjxdIWhuQ/H5jVQKz6iY1H3 EZhBjZs03l2Mm74Bzyi6wLayRCDp6EX1Npw8TsJjJknsjsMqAuk/tLvdg5hNEhRoC1XamJ/NvF6DQ fv+pzgODRzMtmo9AxEnP2p9ADKV6xugNfcOspQbb2G6OkdaJuahWPuwHYFryyIBrQMv+3iwGhUJs0 xEIsuy4AxKHPKgx/4AKzBI7Dim5NwZthZBcKMPVtGr/VPksVOafPggkUzjQYZHv+EDgZD1KhuQ5JC +oz1Z4bKXbuElr3uhe0A==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qJi8k-001Nil-0D; Wed, 12 Jul 2023 22:16:54 +0000 Received: from mail-lj1-x233.google.com ([2a00:1450:4864:20::233]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qJi8d-001Neu-1x for linux-arm-kernel@lists.infradead.org; Wed, 12 Jul 2023 22:16:48 +0000 Received: by mail-lj1-x233.google.com with SMTP id 38308e7fff4ca-2b6b98ac328so118450451fa.0 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=N6YwsmviQJTjzNZ3lJ3GIm6pmiz9Z/bznJNS3N9xW+ktHSn/myRHRTO7wOhiqFx1O5 MeIGnK0Xfe/anFLBJSNd4EEB9k7wauop5rrDFqIGyzjEIATw9TayQT8fbCfvgtA75U1R +5cz4ADTCAPrHk4hQSJDGroHE6RaYuutxe6YMCaGQc0VBBEAPKAa6uwiPLrUXduLIRIT Knl/pkzV9DYnzBLcsq3+0Vb/9UWH5+CqZCpAQqIxvxbIuoUEqNdQsvuxbF53Zpk1V34s qcthV3yH00af63VpHQMXM0bg99NgFg31a5EKtZd82/hvm9XEVugN9Fyr4UPKpBWyLqTy BDFA== X-Gm-Message-State: ABy/qLZeO6j/LziXE+/XMcH+gUc88g2KiJlG18vuCwX02THp/mDGnqV8 hzAc9iO2PGUi/gDYzTXojhZrYw== 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_657921_026995BD X-CRM114-Status: GOOD ( 12.69 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.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>; };