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: 13233558 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 2D5F0C77B7F for ; Sat, 6 May 2023 15:30:44 +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=lop+NTd+U2QPhtdP1L0haHiwmIStHWXoD50jMZWccEk=; b=1MTXmmyAvfy/oT 8DR9FQDO34uORgsPGEq1kZrIHaf2tKEtJh3atu9pR1GobwWeGYbZfAH5Mlk6Q0RzJZj8Df0Td7d9W ROUofcYp8u7asU+u5zkD19pxgaIiOteaOUitX6lUBCZ4lI97eHlkhFZsJelVDq2VcqMTKhTWgk+Iv 5FLXPLWWG5b4Vi1uI/5m9IAKJNPBu7vTnViWxb/F3GWD4Q3DeIyvwYk9NzQvguf2cIRYwqV/1ZmSO YEdLn7OuAiB05JiNCECIMRBaVj3nAMpMDDkIor29XQ6CQQo/UEw2I0sUhc2O+vaIiighvRmqT4Dzp 7QGQbMhLJvT+rYSwt+Lw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1pvJrA-00DuJd-2N; Sat, 06 May 2023 15:29:56 +0000 Received: from mail-lf1-x134.google.com ([2a00:1450:4864:20::134]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1pvJr3-00DuFI-0X for linux-arm-kernel@lists.infradead.org; Sat, 06 May 2023 15:29:52 +0000 Received: by mail-lf1-x134.google.com with SMTP id 2adb3069b0e04-4f13d8f74abso3283248e87.0 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=Yp8RFkpPejk3ouzELcw0RW82VCxmUnw0ZCL9rlNNH8xvjEUVk1czs+7pWeM76d4xoC Qh5hLOsQsUrcr9MCyaxAWGvnhVcefF2enrOrzcf+2+aj+IfSAQhhC5pRQCxPYKWePMzY QspjWyWyqUaZusOCKlNGR0FlVRbPOGFzvq24X82DZkYtxvzdwCQ6eXUpTL27+ZWNa2TD ziZAXdJCfb+Q89pTy1db6chFZsgEPPFVrJbVmh+bYU3GemY1Xu9doS3cdLvICeiJdZpR hin0hqmLpPPHSOjEU4nBfQPXwjIcUBMKcYWez6Xv9/aPBD6c3Ifzb2xhHseNwQS8Z728 NbkA== X-Gm-Message-State: AC+VfDyn5gDFVBNR96fSxKMMTC6yUQlImC+B5LpztJZiQnlGTVPlooTh on1ztvLr4NUUDYoWCm9xK6p08A== 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_389299_0B52D689 X-CRM114-Status: GOOD ( 14.08 ) 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 --- .../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>; + }; + }; + };