Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp28844141rwd; Wed, 5 Jul 2023 03:40:47 -0700 (PDT) X-Google-Smtp-Source: APBJJlETycmTZZVIqv730CbCSmPCLI64vH25YpeOdYyiBHDlBBea0UTHZ/AIjyFRjvFUk/fT6XeS X-Received: by 2002:a17:90a:4e82:b0:263:6c37:69e with SMTP id o2-20020a17090a4e8200b002636c37069emr16663048pjh.43.1688553647535; Wed, 05 Jul 2023 03:40:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688553647; cv=none; d=google.com; s=arc-20160816; b=BcYlTDxgkjLd/ACHf2tq+Pa0wXADLEn/Z3EqiN2l10DYYmpepsHxBB+7f8ZeKIL1+t PcPeM8TmSJw3/iiL8lI7+wEtf4wJNKBu33wL/OnF+rsxDyAC3oCNOAwhA3XXVA2Tw6l+ gykHtkHJGEnVV8kvEWyPpS2eUYmiXAeBTQ+JjbdhCc3Umruj15Y9O/5RQymIYI23cCW2 5fsBVlJ39hx24blIgWloVNXQAChfmciMmOCqn6/p+bjgXZJw5R33TB3asWP9wwx0kXzq +xsMBhqu6CzQnvNEFR3/cp9DtVgtROZMYnz3XZBKjs6bLkBm/9QwdsBWenO0Vvfc3hOl DvAQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:in-reply-to:references:message-id :content-transfer-encoding:mime-version:subject:date:from :dkim-signature; bh=a/PHi0Jgg0AWMsXAjQJ5U4jp3MPBa0UlRbW8srl3Ihw=; fh=fwUA3j6Xkb65Z/G+pTA24Sxekytlvqvg2ip3lw6O4hc=; b=B9X6+wG4tMlLG7D1m76793zZ8Sfvh22zKgPgVICBOuIHR3oYJOojn5mVyvpuWLfSNk jOtmyA5Upqn9I/yUjbuKIb/2eYwf2m8nSILMlZiquBomAlEZYDVKYUEwwdDOWGRk4F8k /a6O/4Y7q1XdFx62lefKs4xZuFKewX1BnpFSX3DuvPEzEfCyn7v4e5JanMpphCLzM2kX m8kEIhamBMKAWf4lvMRaovlrvUO+rlBaPK0ZNz0U2/hVubzGc1/8OAFG3PqLTEzqIovD EH0FBMV27hyDcJp3vQNbp7AjF2g0W8K57C4Pb52A1U1bnu3OlgmlEgyDlat3vuQ8J0yd jX5A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=pdCch86L; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id qe8-20020a17090b4f8800b00263baf744dfsi1498190pjb.139.2023.07.05.03.40.30; Wed, 05 Jul 2023 03:40:47 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=pdCch86L; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231981AbjGEKR5 (ORCPT + 99 others); Wed, 5 Jul 2023 06:17:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43480 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231861AbjGEKRy (ORCPT ); Wed, 5 Jul 2023 06:17:54 -0400 Received: from mail-lf1-x136.google.com (mail-lf1-x136.google.com [IPv6:2a00:1450:4864:20::136]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0DBECE4B for ; Wed, 5 Jul 2023 03:17:53 -0700 (PDT) Received: by mail-lf1-x136.google.com with SMTP id 2adb3069b0e04-4fb94b1423eso9916576e87.1 for ; Wed, 05 Jul 2023 03:17:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1688552271; x=1691144271; 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=a/PHi0Jgg0AWMsXAjQJ5U4jp3MPBa0UlRbW8srl3Ihw=; b=pdCch86LI+GK00eBaliFuGFYp11K2GD81RBf8d5o9ZzCK12suCVzqtuRI2yL5S02r2 PbtRnHFsjp/9Z3lffbkIH28juVsneAPxbJkOLe1hGGRNbZFiYfkoYeVYivWDKgSjljYt o3PvWYI4s59dX6GJ9hkyfC+b/s09d13xS0V7amwq2lOhzegXQ9I9lG/NO0h9xMlhQL1y FDxx8ymDNHNAB+ZWaMFtV2RPpx6wiqdgTZr0yYwVNoVnrPWXIBHh9hOskAaN4v4FjCDG n0RoITMlReoUb2+ZT6eQcjgTn+NgJbkBrp9LpLr/dXMXyOhRzQeACCGjiok00r7DW+tv cMSw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1688552271; x=1691144271; 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=a/PHi0Jgg0AWMsXAjQJ5U4jp3MPBa0UlRbW8srl3Ihw=; b=OPvB4tcPF+kXX8lTs5brUoEwBf/PBc4+CCx4sACQlN/JkOM3Ek2YXaW1411NruZDNO 26xjclig25x4IzqAsb9zcnWDcULllEK7h27ldwUcwYt3WuW8u7ETal2Nyupdo8DkTiwi iCBULBbgIw5inMRNa5P0SG1hucOE1ztYHMsEkbyvbEtywMeQPyq4wYN8ndWdsk42cxZ8 DHTZ0pY9YE/y7w606og7LNNFy0OgWRbRuarDjQxoR21SuWD9S5qR7WPRQtj0h61Sejci c09xH/XuNiL1q95JStNBaQg7sKQ0uUdhzIrilb86MkpWA+w5QpmHHDtkkQFw8XdW3aMH J2vg== X-Gm-Message-State: ABy/qLa/qqemamX7lb6EkSvYQYkl1xXJdERyeB7dJE/VuZgQqDw+Xjf3 727dl3OQW3htZpc6DCLh79WYCg== X-Received: by 2002:a05:6512:3082:b0:4f8:6833:b13c with SMTP id z2-20020a056512308200b004f86833b13cmr12689324lfd.14.1688552271235; Wed, 05 Jul 2023 03:17:51 -0700 (PDT) Received: from [127.0.1.1] ([85.235.12.238]) by smtp.gmail.com with ESMTPSA id l27-20020ac2555b000000b004fb75943ab3sm4774418lfk.258.2023.07.05.03.17.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 05 Jul 2023 03:17:50 -0700 (PDT) From: Linus Walleij Date: Wed, 05 Jul 2023 12:17:46 +0200 Subject: [PATCH v2 1/2] dt-bindings: mtd: Add SEAMA partition bindings MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20230705-seama-partitions-v2-1-9d349f0d5ab7@linaro.org> References: <20230705-seama-partitions-v2-0-9d349f0d5ab7@linaro.org> In-Reply-To: <20230705-seama-partitions-v2-0-9d349f0d5ab7@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 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net 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 --- ChangeLog v1->v2: - Fix up the binding to be childless --- .../bindings/mtd/partitions/partitions.yaml | 1 + .../devicetree/bindings/mtd/partitions/seama.yaml | 50 ++++++++++++++++++++++ 2 files changed, 51 insertions(+) diff --git a/Documentation/devicetree/bindings/mtd/partitions/partitions.yaml b/Documentation/devicetree/bindings/mtd/partitions/partitions.yaml index 2edc65e0e361..9bd0a8d800da 100644 --- a/Documentation/devicetree/bindings/mtd/partitions/partitions.yaml +++ b/Documentation/devicetree/bindings/mtd/partitions/partitions.yaml @@ -21,6 +21,7 @@ oneOf: - $ref: linksys,ns-partitions.yaml - $ref: qcom,smem-part.yaml - $ref: redboot-fis.yaml + - $ref: seama.yaml properties: compatible: true diff --git a/Documentation/devicetree/bindings/mtd/partitions/seama.yaml b/Documentation/devicetree/bindings/mtd/partitions/seama.yaml new file mode 100644 index 000000000000..5ed7764bba69 --- /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. 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 + +select: false + +properties: + compatible: + const: seama + + '#address-cells': false + + '#size-cells': false + +required: + - compatible + +additionalProperties: false + +examples: + - | + partitions { + compatible = "fixed-partitions"; + #address-cells = <1>; + #size-cells = <1>; + + partition@0 { + compatible = "seama"; + reg = <0x0 0x800000>; + label = "firmware"; + }; + }; -- 2.34.1