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>; + }; + }; + }; From patchwork Sat May 6 15:29:45 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Linus Walleij X-Patchwork-Id: 90766 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp1123301vqo; Sat, 6 May 2023 08:43:40 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5/ggpnB88/Uq1AsaekvOuyGupI1xrJdlHs0hGlNAyrIwXHqZw68KEgo4LJ6Z7++vXutvUC X-Received: by 2002:a05:6a00:1805:b0:63c:56f5:5053 with SMTP id y5-20020a056a00180500b0063c56f55053mr12976211pfa.13.1683387819800; Sat, 06 May 2023 08:43:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683387819; cv=none; d=google.com; s=arc-20160816; b=w1wzoRVzMuaP+VfNIqjewvk5T7TQD+s5fMREtiQ+Ro9hTcYpSVwGW1T/HNVRVlTy7O nsRbevYYIPuHHY+KInVvBPTHdeYBSsJwbyE4elFqOpvjXx1wLMsZ+y4Oyi5Eox+BiYpY Jzeb7/2FQJosoTxsMnTDn2SPggPv1ifsixBcXjT0eH55yUWpN3ohQWXTjeomICsd6eA4 lG7vGtdh0Kh7M9GHONnW7ZFyfaHSRea/RQT99mkoOrUFAiFsFt6ylS6BQDFNJfNGjUMt CW+xElmwCBoVgx7XDZI+v8B/Ro7FeG89L5X9i8N+49+e3oUJThfZApFWg4gwgUwrRbtz 1GLA== 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=4qtQZvewa01bd3WNJlBR7VuLAaPubF3IprbkAp3R6jI=; b=sX5fIMAWDaoFoIqfuAeOI8ftunAFQJ1qyCEpn8wP9F0VaKeJwuX73RvAZCBnkgkdBQ s69NarWEpe715Sql3HMqaWy4vuIkasXz1C9I5+oXwgmYY1FTSEOQ6LLHxEo4q0Ohr/WM KcRkfSrewIG6g/9nSUmTLkzO7VW4OBZmJuGn01CAcMVG/PbpAnFPu4DZwsGQLIxZj9eT zczaabUM04bGYnSGXaPvUCNWn49L07Of59hGQcj+6ftr2gBr1aMklXbJdhRbYCXdXL5s Z2oddmQnGYKPPTM/CtJISpjZv6mjxHZbJYNw/F3Wl3cuak9pNbHJaGC8xFVVdLJjuV8w 4UBw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=rhuQY7bo; 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 f2-20020a625102000000b00628217e3ea6si4270042pfb.316.2023.05.06.08.43.26; Sat, 06 May 2023 08:43:39 -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=rhuQY7bo; 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 S233037AbjEFP36 (ORCPT + 99 others); Sat, 6 May 2023 11:29:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50032 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232946AbjEFP3u (ORCPT ); Sat, 6 May 2023 11:29:50 -0400 Received: from mail-lf1-x12f.google.com (mail-lf1-x12f.google.com [IPv6:2a00:1450:4864:20::12f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1F81F1A4AC for ; Sat, 6 May 2023 08:29:49 -0700 (PDT) Received: by mail-lf1-x12f.google.com with SMTP id 2adb3069b0e04-4f1394cb0d1so3287208e87.3 for ; Sat, 06 May 2023 08:29:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1683386987; x=1685978987; 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=rhuQY7bo7jkXWsQzOXHpflGgCgLdqnVRcCihN51Y9WQwdrcHNtLEMKbqkNuARXYgi/ NcTP6lA8O/JTb+wbiiXPdeyw2r4vOVb4c/2oZz7oOvpvX7xszULlw2HX1O9sFU2A36n8 IQHdV/NcGoUKxnChKWA/OiaSOnxeMS5SuH8leoPO18dpv0pto3li4LFhpNP2QTu/OURc jY93voIUXGtjUAp0WAR75xrNW4pkQFozS4OM0KWwTcGj2hLrvevxDLnuSWz7Dw5KMSHl J3NhFjjRCU1rsuN6LcF7erX3lQIXqAl3uNGXuJzMIRbrJFcm5OjTPPsb/4/6phXQ9fNA EhjA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1683386987; x=1685978987; 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=cGxscifXw0hLA+kkF7maYuJZprwY5e4GgZ9JpapYOIsi8pevNI1ttS61z0W0DJBZ3s Yf6sscBKayGM8da8cThdAbtojlWGJmtyff17z78quaJyUTdDrQb9FO2ppZZ3qLU0+Lps IDQkUwRlPgFuraq1DF0nMMukAYamAY4ZSy+bl+Xhs06QTvPJq19DjTg+FBIhRQ2U9W8e tDysDJkQUxMlOInlcbWk1yPyaO+9QQFB/hwI0G5Q9V3NgwcoezsTYRPl6VFRFVVgFxjO hSkyRFKnxG9R8akUC+4O8APeoxjDAGPsJJD+A4zAbXOToljf6dGPkb2XLHyLouq+rlBI wllQ== X-Gm-Message-State: AC+VfDyjAef5xQZ+NN7exQGbH4NtlrbwcxyU4XeCe5AJbpzDFDCU+IhZ hZX34ROGB9z1ao5BaBoG0YY2HA== X-Received: by 2002:ac2:4470:0:b0:4ed:c3a1:752a with SMTP id y16-20020ac24470000000b004edc3a1752amr1189012lfl.45.1683386987504; Sat, 06 May 2023 08:29:47 -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.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 06 May 2023 08:29:47 -0700 (PDT) From: Linus Walleij Date: Sat, 06 May 2023 17:29:45 +0200 Subject: [PATCH 2/2] ARM: dts: bcm5301x: Add SEAMA compatibles MIME-Version: 1.0 Message-Id: <20230506-seama-partitions-v1-2-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=unavailable 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?1765160066511644421?= X-GMAIL-MSGID: =?utf-8?q?1765160066511644421?= 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>; };