From patchwork Fri Jul 7 17:42:40 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Linus Walleij X-Patchwork-Id: 117239 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:9f45:0:b0:3ea:f831:8777 with SMTP id v5csp3459736vqx; Fri, 7 Jul 2023 11:26:44 -0700 (PDT) X-Google-Smtp-Source: APBJJlGfxpFyd6vNohjYRpfwdop4jEiE2FQ2Sf4nGepOwAWm3/y0nPMovowBLDGWYgmf74jxzD4x X-Received: by 2002:aa7:cc15:0:b0:51e:1690:1b97 with SMTP id q21-20020aa7cc15000000b0051e16901b97mr4521659edt.19.1688754404160; Fri, 07 Jul 2023 11:26:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688754404; cv=none; d=google.com; s=arc-20160816; b=Ryyg/7AVaEbfE6ru99qsjZIH2boFI8tr68jmhG4pep86M0Zp8QUfSL3cUdxIngVamS yb2Ci5/u9p1drvPy1IkRLXoEHu6OZbZZMwjXAcwd68rZpG5u9koezeLAwosj1YKc8ssM +13Ns6SolKDx+Ah9bh4/luLVikwWd2mU2X7/Udek61J/3Bvm+yvJ6vC4+HQ+VNW5Q9rd xwYTUljWSCZiGkW0pwme5+laHeRhCnsxqg/LoA10EbRc3BaOP26IDP+ELsg+UrWxiD6o Ljduc+aqytmxscBma0DfpxEinth8eiRTnfMOsX/7Nin4rMOpKiMuw7iGwzsu6+kBKdQJ kWEw== 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=z54mN4aXgEPP2Sykw+F798h+c0t4S78JPX3MGMsme3I=; fh=fwUA3j6Xkb65Z/G+pTA24Sxekytlvqvg2ip3lw6O4hc=; b=BsaLxaekvAycj+V0tJ+14E0S0bqTDTXePVFgFo0nYqeP2wW821DLvOTBhAk/6pz0pF Mjj4SfkvIDlIBAgGKshBTFSQP/wXNV4016MeWv8g0QzCY/xtAuBjwlONZOYvzsQnyh2D LjYgPFtgU7R5qoAn5E7ifRITQBEu05hNOpQWlzFsWpqJx/3M/VwIm97M0RgVy5pJ9m2B IEMvvSEKpbNy5RiQ6nxb421eQS0o8qZUX+2Yzb0JLnlr4EUwqvVvwS7WEdEtRfO5sbqP 5Ruo/ffRmbd3MckjBhiEgrbHP+Xtqph4b7geTj/NZDe8kOH2cHMRoW0m8CqbrGH/jnzP uOUA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=rIzCoFGV; 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 u14-20020a056402064e00b0051de0197392si2519257edx.599.2023.07.07.11.26.20; Fri, 07 Jul 2023 11:26:44 -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=rIzCoFGV; 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 S232662AbjGGRm6 (ORCPT + 99 others); Fri, 7 Jul 2023 13:42:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53608 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232277AbjGGRms (ORCPT ); Fri, 7 Jul 2023 13:42:48 -0400 Received: from mail-lj1-x235.google.com (mail-lj1-x235.google.com [IPv6:2a00:1450:4864:20::235]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3EA112106 for ; Fri, 7 Jul 2023 10:42:47 -0700 (PDT) Received: by mail-lj1-x235.google.com with SMTP id 38308e7fff4ca-2b6ef9ed2fdso35104821fa.2 for ; Fri, 07 Jul 2023 10:42:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1688751765; x=1691343765; 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=z54mN4aXgEPP2Sykw+F798h+c0t4S78JPX3MGMsme3I=; b=rIzCoFGVdB20065N6xObn1OAjce3QC+vblox21S292YFPbGSC8GmNcyLlTbmxOMbka nh0jcmrEHghm6ttvbMpGaHqPCWAbDJglM++j+wdjf2cbA3K7Y76UjHnVfN0jGH5Md4XQ R0VOqhSVQfcGQCxVEKWXzhwqjs9MF33o1KXzayjKXcZRDk/vCZ4jovPJ3259yAlgk5vM J6kfIZ9r3ALocXSnq/1HpYFJTCAlXNbaXhlBvat29F4mo70NEIE8X7g50JtQJX2uXuXv WJ/e0SkTbCJEY7Xnn0Kqil8sQAAO138kSLl+RGgXn4mkzBKWMwcWjd/G/8I46h/sq4h9 Dp/Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1688751765; x=1691343765; 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=z54mN4aXgEPP2Sykw+F798h+c0t4S78JPX3MGMsme3I=; b=Vc9iJ4GkklL2yjoLFR0onm8DLxciXd0wb0ICR6EElhRd38ADOUn+rJhylrpSWzxQwz Yr7vOIIdPvnO4KNvdpbrroOhRQUCwfBHvbraKe/pJRjT3u7A1rtZGHG9MH1JSsgHaSPc WlSUNW4I7KZV/BMoP4PsTEbfdwYEEBz+mQDqMgtMYy2GB1UjszwURrZ+jFwfEiXxOS1B nQSJ6Wrt2ihAOhLhlow7M3/UwHqbN5kJ9djQcAh+ig6K4f3b0IOJOrVrXdrjAyTZeZ8O 4X2Gn5VcvfV2DHidr5DjrQkh8En+OavACDxAOV3mR71lvEx5MHTe99Gm6WsNvriaEUhq Pv8g== X-Gm-Message-State: ABy/qLY8FVrQwOZokWFlPoDTynGeYgJh3cHsYoGXbALhUJephX59dVl6 7Pyz7wMRZ1O40EKBENoZXj7RZw== X-Received: by 2002:a2e:988c:0:b0:2b6:fa54:cec1 with SMTP id b12-20020a2e988c000000b002b6fa54cec1mr321999ljj.48.1688751765529; Fri, 07 Jul 2023 10:42:45 -0700 (PDT) Received: from [127.0.1.1] ([85.235.12.238]) by smtp.gmail.com with ESMTPSA id 7-20020a05651c008700b002b6ece2456csm859163ljq.121.2023.07.07.10.42.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 07 Jul 2023 10:42:45 -0700 (PDT) From: Linus Walleij Date: Fri, 07 Jul 2023 19:42:40 +0200 Subject: [PATCH v3 1/2] dt-bindings: mtd: Add SEAMA partition bindings MIME-Version: 1.0 Message-Id: <20230707-seama-partitions-v3-1-6aa9391b46bb@linaro.org> References: <20230707-seama-partitions-v3-0-6aa9391b46bb@linaro.org> In-Reply-To: <20230707-seama-partitions-v3-0-6aa9391b46bb@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-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?1770787338085392362?= X-GMAIL-MSGID: =?utf-8?q?1770787338085392362?= This types of NAND partitions appear in OpenWrt and U-Boot. Signed-off-by: Linus Walleij --- 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 | 48 ++++++++++++++++++++++ 1 file changed, 48 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..5105d1a6a44c --- /dev/null +++ b/Documentation/devicetree/bindings/mtd/partitions/seama.yaml @@ -0,0 +1,48 @@ +# 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 + + '#address-cells': false + + '#size-cells': false + +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 Fri Jul 7 17:42: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: 117238 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:9f45:0:b0:3ea:f831:8777 with SMTP id v5csp3458006vqx; Fri, 7 Jul 2023 11:23:24 -0700 (PDT) X-Google-Smtp-Source: APBJJlGloQDBMsvSoF0/OkC2jILSFSd2CcqsA+Ouh4G3AcQe2YXiV+PADIymxBDQU54KiMUaMHVA X-Received: by 2002:a05:6402:138c:b0:51d:d30d:a037 with SMTP id b12-20020a056402138c00b0051dd30da037mr4498451edv.10.1688754203743; Fri, 07 Jul 2023 11:23:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688754203; cv=none; d=google.com; s=arc-20160816; b=dPGevH2ilfO6hq6Gnn/IAhxvhM2zKJYYK/FctUqOnE/uG4JPH5HAq4bXLu2irpfX0J SMQFkiUSRP25nX6HlFv1nYjrfV7PZLjSNYeYxd/VbwGIoIWwOfri+RVPh2vXA4+2LCfa nWyscKPQdV9bvealxuiAlrHbXYoG2dsdkMHUJp83NxsfcPua2sIh8UHTlz8qH7v9iZYU XssMl30kBXmEk1h0S70+Kimr9lR/HhuoIr9X4niyp1T+Vz6yW0TjUUpvGXkO/qcxA192 Q3ORieWSf/zGEA7W+8yyThLn7PnP9VaITY8pbaN+CvKWSr9El5JShDPIk9KGO/fdr1p0 eWQA== 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=; fh=fwUA3j6Xkb65Z/G+pTA24Sxekytlvqvg2ip3lw6O4hc=; b=S5dvtqSdkBCjNLk2oHwsFSbJJLY2d4m60HMi1XtxJTkgfcDYFbuBqJXlZiA4w7PIMx FEV/tCqSub1nRgmjVHBQ7csefV2chdOBUhp6JzTeqwoTX49ssj4zCFDzF39uB+ixkZRz JkED33AIApQ5KL7vcon2y924aQBJ/o2CJEYjGWpHc8qzzNgrMpS7awbL/7Hc4uXxd9p3 4X5c7Eu2v850U2ihd70ovdZEjv2jKWv8lA+5RqVRKfEHiPHvcbjw5kkmuHsp0cHdqfA8 6qxEuxN4Ow0B8La6g29OdZo7BLu0RiSQzOQ7jq3nzGfEtm9J1yU0aX8qTRq10JHWG5rJ B57g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=zTQr0TfM; 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 m2-20020aa7c482000000b0051e0bd32fb6si2674258edq.645.2023.07.07.11.22.56; Fri, 07 Jul 2023 11:23:23 -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=zTQr0TfM; 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 S232732AbjGGRnD (ORCPT + 99 others); Fri, 7 Jul 2023 13:43:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53614 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232418AbjGGRmt (ORCPT ); Fri, 7 Jul 2023 13:42:49 -0400 Received: from mail-lj1-x232.google.com (mail-lj1-x232.google.com [IPv6:2a00:1450:4864:20::232]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0E08819BD for ; Fri, 7 Jul 2023 10:42:48 -0700 (PDT) Received: by mail-lj1-x232.google.com with SMTP id 38308e7fff4ca-2b6afc1ceffso35368061fa.0 for ; Fri, 07 Jul 2023 10:42:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1688751766; x=1691343766; 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=zTQr0TfMcC4DlfkbUXm72Nl/XQ082bNObmI1yt8HMIW00TtkJeshukWttKsGR+I+8f 3R2/dEQx2lxEUYIQMjps10V3ctk1wUJZlPQD4GBQnnHBxVaUIs8t3HAzyTGVsH9pDn/B sjpIygG3CckbYb9qVtfQ6n88mWrvy6v7fTw6xpLMgZxofqyneKD63sfi0EplDCc6mO4G vyLLAljhYZLmuRw9VkeS7YfIryYvhHTHWKttrK5yTA1eMSh2tn4Ox2XgXhq+KyfrtuHT 4TfQwB/IEL5bdLLE6npGDdvVkIGm8UZpcejWnlAJ1kIdLFvxkdZeglH7MuGLySBZ8fMZ ndVw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1688751766; x=1691343766; 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=XxozsswKC0RL/BC97fV+XVIwEymRx6xU6S6YkPCAokGMs44ucIE7n6IfvTa94VuspU ecGj66LY0I1VahkJb4hfIenTETSF84AtCsJ3zVvPatia1zUcKy0BRyBG3BibZYu8VuBP bHectLQ7bMkUNLP0wnmTVMcj78x6VJg3e7AabZEIpSKqqCr8eyUjJagvXnq06Av5SVeJ ghS2o+sXj/ey2inn2ujEu3Dzb0wzfqHZEah5XvysnwjQnwzmz10Z7sam+gZ+mMh7dV0l kQ2BeMjw2UrTZPb36AVhNmTJVcvA0IEraLjdX+5geqQ9M1AC7YZjZkCKK57zZQukaWyG QVeQ== X-Gm-Message-State: ABy/qLYJm40HXaaeJfJ9/8f7beQORED2ut1Mn0UZ7eSe358MRQW8hxjI p4jpfKaW6OPC2LBc864/IzoUZQ== X-Received: by 2002:a2e:9a86:0:b0:2b5:86e4:558e with SMTP id p6-20020a2e9a86000000b002b586e4558emr4641825lji.38.1688751766423; Fri, 07 Jul 2023 10:42:46 -0700 (PDT) Received: from [127.0.1.1] ([85.235.12.238]) by smtp.gmail.com with ESMTPSA id 7-20020a05651c008700b002b6ece2456csm859163ljq.121.2023.07.07.10.42.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 07 Jul 2023 10:42:46 -0700 (PDT) From: Linus Walleij Date: Fri, 07 Jul 2023 19:42:41 +0200 Subject: [PATCH v3 2/2] ARM: dts: bcm5301x: Add SEAMA compatibles MIME-Version: 1.0 Message-Id: <20230707-seama-partitions-v3-2-6aa9391b46bb@linaro.org> References: <20230707-seama-partitions-v3-0-6aa9391b46bb@linaro.org> In-Reply-To: <20230707-seama-partitions-v3-0-6aa9391b46bb@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-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?1770787128314759065?= X-GMAIL-MSGID: =?utf-8?q?1770787128314759065?= 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>; };