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: 90769 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp1127081vqo; Sat, 6 May 2023 08:53:25 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7oZLP7PlluWBqZmgFavJEmX3i0HQdaR+eSOarwEP/zjJllj2+Ql/ad2EeLHcEOdi1+7AY8 X-Received: by 2002:a05:6a00:1504:b0:643:9c72:17f with SMTP id q4-20020a056a00150400b006439c72017fmr6658085pfu.26.1683388405330; Sat, 06 May 2023 08:53:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683388405; cv=none; d=google.com; s=arc-20160816; b=Qrw3qnrHcpg+3DYvmJCrTWeb0NFR0w05lykCHz1qDA8bx/8LhUDSwVFeQzUB73EGD7 MbjnohCzn0YuGOuU4qbDvB8+VAYGAkuPdk0sfWtZaAI2LNNlkFooyg6SLjxSbIQ7z8A7 qcNZt9f2BID/rxX4XDtg9KaJP82C5T26wlehFGcWX+vGpA9z3aLmtRlnkAf2igNjIV2f F8t/kEsDuG7p9m5Fx31JPPw4DV1qyKJMDAzSqXEMCI6NSFDe4Clac4YZHU22T9gw+YHp krSULHsxEv8prRX+gtDSxedLCjTggaXGELpr3a3ANcefCUIhDQ1bMh57/nfYd+ZkWnyC i2cA== 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=kcFNxwZJjHoZpWKSHiKHs54BtGGOGq9ohvpv73Bd18I=; b=BZ8zGGuL1j8IJ7eT9wMf3eVTdCiPTZOxedZHUbzP03aVOx0YxaLRrU2YIwIP5zjqdu WZY6XTJTMJUqvR75P0DvBn31UOqCYGVu2C2mJxn6W/hjPRfbAUJWf9EdeyPj24IRoyaY TkLFn28OjsipVn6XI5ooOjim5Km68Q5FdYkUX7JAFPAZNofXpn0T4d/tlgrBnUJZLMGx z8+gOXW2+U3Ig3OD4Cw2ZXEW4rRFa0vcEzd/3Ts7yvR+HoGTmvRp5oqqjy7FMelTecfu geF6UFxOpkoNwBbS57uQbNRzt8emyvPwS0kBVMo8rIDHhIZmPE3yfFV46HrumiQMBAy7 65Ow== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=dJfpUgM6; 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: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id r4-20020a638f44000000b00513128cd495si1203351pgn.730.2023.05.06.08.53.07; Sat, 06 May 2023 08:53:25 -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=dJfpUgM6; 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 S233004AbjEFP3z (ORCPT + 99 others); Sat, 6 May 2023 11:29:55 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50022 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232911AbjEFP3t (ORCPT ); Sat, 6 May 2023 11:29:49 -0400 Received: from mail-lf1-x12e.google.com (mail-lf1-x12e.google.com [IPv6:2a00:1450:4864:20::12e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3E9B618FED for ; Sat, 6 May 2023 08:29:48 -0700 (PDT) Received: by mail-lf1-x12e.google.com with SMTP id 2adb3069b0e04-4f0108a7d20so3270383e87.3 for ; Sat, 06 May 2023 08:29:48 -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=h5osUTe+8vso0G+bVUfRfvxWnQsfM55DJ8t4geon5zKMyFvzhdSyKO80rgU3W4bsfA cc8puKxz5ZlAJ3eA118n1azcwmaSfoiFYVYN9ggwxuIKuucJf7I67PsOlxBty//QecRE VtbUT99KTwfg2n3Kpoo3016YiALjzRplTQcUxRoqhfpxzVxAGZ5ZOd8Vm94pwFG/6psp U0BSDQz5XWxWV6avECyzWKsoL1QSS9Z9hi4WkNVnydrG2N441Mfr5wSK8l5l2difWW6t 9/EIgucmc/BUvWiMNyIP/FeLGbgZQTzayOleKKq5aR+jQgwz7LH8yFA17kTi3LCLjKpp aiog== X-Gm-Message-State: AC+VfDxXUZdmXh0WBrIzIj6GHUICt8MbZUzA1s742eRviUUDFkDURSfP UZaJoQnBgmCwcr3Jgd6cn6Aa9Q== 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-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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1765160680822907963?= X-GMAIL-MSGID: =?utf-8?q?1765160680822907963?= 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>; + }; + }; + };