From patchwork Wed Jul 5 10:17:46 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Linus Walleij X-Patchwork-Id: 116069 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:9f45:0:b0:3ea:f831:8777 with SMTP id v5csp1794887vqx; Wed, 5 Jul 2023 04:26:45 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5jujU+cja78K727AtLY5LO7pqVXuXuYiOBgSQQKIbF5JxWsNqLh1V51+qSKRHo3yW31PqJ X-Received: by 2002:a05:6808:130b:b0:3a1:eaf8:ceea with SMTP id y11-20020a056808130b00b003a1eaf8ceeamr14719723oiv.44.1688556405308; Wed, 05 Jul 2023 04:26:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688556405; cv=none; d=google.com; s=arc-20160816; b=uM0733dLFDWYxnmqPIFckkITGOlbv+sRbKk3lwBUlPq5CJEH4P9dldGP5dvewhqpaP bdHW1t/ymmdhzJfP8Tuerxv+wgb3i57OohdEDkuEl26F8afPLMFglFnwXPcdFm77nDqq u5cYHCSkL2PZ2Bk9Izot/yzxX8uAvrAoyy/xapseLFVgFvBQmUqT0nuMF8C00xfy4To0 yvHiRjl3LfcmwT6fXSkNNxULlsnxAIrREV34dHAHWjbi7nSS45NE0kmZ+sWDV5JSSuV9 jBBoFaM1akJk92Y7Tl7b/2tk2ZSPYUYoByIwUAL1Agl7cLDaFK5lxuQ2srhuG+CEOfib Mcaw== 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=Nj6Rp4DkQ+XG7uCi0Su11LJvDBfm76tJZHsw/7qO1xA=; b=GnIZ/CV2kUTPZROzYMhs3exOp7Ue/sWeQ2Wr6RpPmiMfHIoB8No2L1O3shK589bzfD ArweYOsm713tu9ipoeyZ3/RRkSyFJFNDLlVn7TH7jAiK7l9QGaYWs0hLdcEz1/Cxgfbx 6PDe/tsxhVRWGSHH1xrra3A72F2EbsdmdsQnEM6E130gPgi65HWum+HkaqHIKZltooCN 9Lv321Y/6voYEYh+2W6vljnWlVPwSM+G2OTTq54D4OThcVIGSuMfXcOo27y4yifWgXvC 2+9UFmd50HY/TfQmgpOD+NQzA3jrnE7aOcZbI8U73pYN0k2WWQrIQQoJdUui4D+esicB 8hDQ== 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 Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id e12-20020a63db0c000000b0055b5f13dd64si12277684pgg.92.2023.07.05.04.26.30; Wed, 05 Jul 2023 04:26:45 -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 S232001AbjGEKR6 (ORCPT + 99 others); Wed, 5 Jul 2023 06:17:58 -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 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?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=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?1770579721514830247?= X-GMAIL-MSGID: =?utf-8?q?1770579721514830247?= 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"; + }; + };