From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-15.7 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 6D878C43381 for ; Tue, 16 Feb 2021 21:28:17 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 4F47864E08 for ; Tue, 16 Feb 2021 21:28:17 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229544AbhBPV2J (ORCPT ); Tue, 16 Feb 2021 16:28:09 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56666 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230059AbhBPV2E (ORCPT ); Tue, 16 Feb 2021 16:28:04 -0500 Received: from mail-wr1-x42a.google.com (mail-wr1-x42a.google.com [IPv6:2a00:1450:4864:20::42a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 285FAC061788; Tue, 16 Feb 2021 13:27:17 -0800 (PST) Received: by mail-wr1-x42a.google.com with SMTP id v7so15030894wrr.12; Tue, 16 Feb 2021 13:27:17 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=B+rzS0sRv0J3BMSreb/SAsip/5NpGgjcUC0WZfb9UMo=; b=caRYm4JRhNEpJJ5ON0GqN4amrinIZlbOoymCBoNa2y3NhBJxpxqy9oH9+MLXDdT6mQ fM0an6mHcEWV9uTmEBs3SJjnQWUn0u2ydFzLfd74I+rt3aTG8mgS44IfTRkMOKSpLNKo tpvQmkyMOIEQvMzU4Uy0Wi5cR5mrtUHrSGgh40oUi3v9wH9pAtweVQVLzuEG4TuSn0nX ew0xBYMn9ZLqbGnLbB3AxGlmgUfEDGYna0nT0rq12RstesvqkxiDk6auQnHZFlDbIbKG yFOu7g1dwn7eclpPNbKp7+9RTZqNv1D3odJFy3AcOuvzxwwn7BMAdUIzJICErS3oDAn7 bNcw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=B+rzS0sRv0J3BMSreb/SAsip/5NpGgjcUC0WZfb9UMo=; b=Sq81RZFVebBytuGJRw0POaoCqo8wsKdAjnLiin2jH0w4GAxobGZ8OXOQKw22EqXV7V uxHEihGg/Hot2RbqJUeb+2oiLOTKF67ukiJrkhLoxCWOIuVlUhLcR5xi+WSsyCBRq3XW Yg4aZz1D8IRoUU959YZP0ngNs6KgtJGMcKJHm/FxfOAOkVYdTB3YXf5xei4HGeyyPNyH ncGAwGmKPuaUZXrj9vAI73CBTaCy6E7jBYd5B5UPN/aEvWcv0WKAJhHgrr/KT8AIj5qw 0jAxueM6SOVwyzLes+DiqLE9hXwn4k0xZ+mEnspPvvX1+rfsV1wRTivC5dScIhqcw3td KlWw== X-Gm-Message-State: AOAM531D3iCBg52hXRontk8zeNd2O9vwTd3aW6kS0IolgcZOWBI96TrL kK8RdvO2dfjPJ/YGsPI9DurTTE72gMo= X-Google-Smtp-Source: ABdhPJzpGa895LxR+1I55koS/MCG0yUrUf4FciTfVyz+UK47hf3qpzinn/2+isQbyz2+D8Y0rgXnkQ== X-Received: by 2002:a5d:6951:: with SMTP id r17mr13973220wrw.279.1613510835780; Tue, 16 Feb 2021 13:27:15 -0800 (PST) Received: from Ansuel-xps.localdomain (host-87-6-252-11.retail.telecomitalia.it. [87.6.252.11]) by smtp.googlemail.com with ESMTPSA id s14sm7132182wmj.23.2021.02.16.13.27.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 16 Feb 2021 13:27:15 -0800 (PST) From: Ansuel Smith To: Richard Weinberger Cc: Ansuel Smith , Miquel Raynal , Vignesh Raghavendra , Rob Herring , Boris Brezillon , linux-mtd@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 3/3] dt-bindings: mtd: Document use of nvmem-partitions compatible Date: Tue, 16 Feb 2021 22:26:28 +0100 Message-Id: <20210216212638.28382-4-ansuelsmth@gmail.com> X-Mailer: git-send-email 2.30.0 In-Reply-To: <20210216212638.28382-1-ansuelsmth@gmail.com> References: <20210216212638.28382-1-ansuelsmth@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Document nvmem-partitions compatible used to treat mtd partitions as a nvmem provider. Signed-off-by: Ansuel Smith --- .../mtd/partitions/nvmem-partitions.yaml | 105 ++++++++++++++++++ 1 file changed, 105 insertions(+) create mode 100644 Documentation/devicetree/bindings/mtd/partitions/nvmem-partitions.yaml diff --git a/Documentation/devicetree/bindings/mtd/partitions/nvmem-partitions.yaml b/Documentation/devicetree/bindings/mtd/partitions/nvmem-partitions.yaml new file mode 100644 index 000000000000..1ff283febcaa --- /dev/null +++ b/Documentation/devicetree/bindings/mtd/partitions/nvmem-partitions.yaml @@ -0,0 +1,105 @@ +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/mtd/partitions/nvmem-partitions.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Nvmem partitions + +description: | + This binding can be used to treat the specific partition as a nvmem provider. + Each direct subnodes represents the nvmem cells and won't be parsed as fixed-partitions. + Fixed-partitions bindings described in fixed-partitions.yaml apply to the nvmem provider node. + +maintainers: + - Ansuel Smith + +properties: + compatible: + const: nvmem-partitions + + "#address-cells": true + + "#size-cells": true + + reg: + description: partition's offset and size within the flash + maxItems: 1 + +required: + - compatible + - "#address-cells" + - "#size-cells" + - reg + +additionalProperties: true + +examples: + - | + partitions { + compatible = "fixed-partitions"; + #address-cells = <1>; + #size-cells = <1>; + + /* ... */ + + }; + art: art@1200000 { + compatible = "nvmem-partitions"; + reg = <0x1200000 0x0140000>; + label = "art"; + read-only; + #address-cells = <1>; + #size-cells = <1>; + + macaddr_gmac1: macaddr_gmac1@0 { + reg = <0x0 0x6>; + }; + + macaddr_gmac2: macaddr_gmac2@6 { + reg = <0x6 0x6>; + }; + + pre_cal_24g: pre_cal_24g@1000 { + reg = <0x1000 0x2f20>; + }; + + pre_cal_5g: pre_cal_5g@5000{ + reg = <0x5000 0x2f20>; + }; + }; + - | + partitions { + compatible = "fixed-partitions"; + #address-cells = <1>; + #size-cells = <1>; + + partition@0 { + label = "bootloader"; + reg = <0x000000 0x100000>; + read-only; + }; + + firmware@100000 { + compatible = "brcm,trx"; + label = "firmware"; + reg = <0x100000 0xe00000>; + }; + + calibration@f00000 { + compatible = "nvmem-partitions"; + label = "calibration"; + reg = <0xf00000 0x100000>; + ranges = <0 0xf00000 0x100000>; + #address-cells = <1>; + #size-cells = <1>; + + wifi0@0 { + reg = <0x000000 0x080000>; + }; + + wifi1@80000 { + reg = <0x080000 0x080000>; + }; + }; + }; -- 2.30.0 From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-13.7 required=3.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED,DKIM_SIGNED,DKIM_VALID,FREEMAIL_FORGED_FROMDOMAIN, FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED, USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id B044FC43381 for ; Tue, 16 Feb 2021 21:27:47 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 6048D64E08 for ; Tue, 16 Feb 2021 21:27:47 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 6048D64E08 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-mtd-bounces+linux-mtd=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To:Message-Id:Date: Subject:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=4qd/bueucKxX6b3NIcV8SvKfWRKIByPFiztH/uLa5gg=; b=opoPUPgsVHmMG1y4FWTuHjI1H XEE3F4oCDJ3cJ5thP1yFV7ipkV7+J3hNvcRFbKyb1dOM5Ni9v92E2gaYSux6Lspl3Iq84dJU8RcVQ bmAdwg6miyQiGxv5qpwDjuux/TLOs+Rop7+TTHFGqg25loP70DIn5Dxmp/m8x3Rf+A3xbems6pEZt sP2iY+NhLywWlRc/wI+ZwMIkPphCmTN/le/6BrBHGEaZ6v9ulRq28kFdGlTZKuqK54s3tP/SqblZv hLHsLZC4OudHHQSS3+Jrd4L628YkGtjTyTrqIp8NZg6YSw0jX+xRU/D9ctWTahFdHPep5xA4etAw/ 5V2kkaP4A==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1lC7sN-0004cR-Rz; Tue, 16 Feb 2021 21:27:19 +0000 Received: from mail-wr1-x431.google.com ([2a00:1450:4864:20::431]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1lC7sK-0004bJ-OZ for linux-mtd@lists.infradead.org; Tue, 16 Feb 2021 21:27:17 +0000 Received: by mail-wr1-x431.google.com with SMTP id v14so15052045wro.7 for ; Tue, 16 Feb 2021 13:27:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=B+rzS0sRv0J3BMSreb/SAsip/5NpGgjcUC0WZfb9UMo=; b=caRYm4JRhNEpJJ5ON0GqN4amrinIZlbOoymCBoNa2y3NhBJxpxqy9oH9+MLXDdT6mQ fM0an6mHcEWV9uTmEBs3SJjnQWUn0u2ydFzLfd74I+rt3aTG8mgS44IfTRkMOKSpLNKo tpvQmkyMOIEQvMzU4Uy0Wi5cR5mrtUHrSGgh40oUi3v9wH9pAtweVQVLzuEG4TuSn0nX ew0xBYMn9ZLqbGnLbB3AxGlmgUfEDGYna0nT0rq12RstesvqkxiDk6auQnHZFlDbIbKG yFOu7g1dwn7eclpPNbKp7+9RTZqNv1D3odJFy3AcOuvzxwwn7BMAdUIzJICErS3oDAn7 bNcw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=B+rzS0sRv0J3BMSreb/SAsip/5NpGgjcUC0WZfb9UMo=; b=p4mVHfFpV1FcstyGKKti9mmG4XNTjaEHZmcx05NS1BVJxatiiAZtbfXZuoLG2dPdc9 eWXxae7FZxgWQpy3Xu2TA8vOxGg7K5wAUlflbtMKJqX9oAt1TFqublQZRafKdn7qwWHI SuMnVn8cAZtD7GOwZKq9Xs8gm2DCa/nDoIx+WaM7kd+yhHOl7g+vg839fP1EbJNZOvOB C2ius+rNwuZUnNDREF52fB6JWNDeb04UVysWdWIeZ4vKkj3NUzBo8UJraB2+g5MjnWWi WXfN2hEnfLg4chx/elj5TPyychyFkFVNLhBz3DP7q7L/XmUAkptUb7/iz8aOnPQRAaIB LNKQ== X-Gm-Message-State: AOAM5304cj2MVrYnc1pFzUV7K1KKeMaBtjsOi67+nblVIBitbaYY5Mb2 qHOHBTGljBr3wHoucogDhY8= X-Google-Smtp-Source: ABdhPJzpGa895LxR+1I55koS/MCG0yUrUf4FciTfVyz+UK47hf3qpzinn/2+isQbyz2+D8Y0rgXnkQ== X-Received: by 2002:a5d:6951:: with SMTP id r17mr13973220wrw.279.1613510835780; Tue, 16 Feb 2021 13:27:15 -0800 (PST) Received: from Ansuel-xps.localdomain (host-87-6-252-11.retail.telecomitalia.it. [87.6.252.11]) by smtp.googlemail.com with ESMTPSA id s14sm7132182wmj.23.2021.02.16.13.27.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 16 Feb 2021 13:27:15 -0800 (PST) From: Ansuel Smith To: Richard Weinberger Subject: [PATCH v2 3/3] dt-bindings: mtd: Document use of nvmem-partitions compatible Date: Tue, 16 Feb 2021 22:26:28 +0100 Message-Id: <20210216212638.28382-4-ansuelsmth@gmail.com> X-Mailer: git-send-email 2.30.0 In-Reply-To: <20210216212638.28382-1-ansuelsmth@gmail.com> References: <20210216212638.28382-1-ansuelsmth@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210216_162716_826229_3C4D0309 X-CRM114-Status: GOOD ( 15.15 ) X-BeenThere: linux-mtd@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Linux MTD discussion mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, Vignesh Raghavendra , Boris Brezillon , linux-kernel@vger.kernel.org, Rob Herring , linux-mtd@lists.infradead.org, Miquel Raynal , Ansuel Smith Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-mtd" Errors-To: linux-mtd-bounces+linux-mtd=archiver.kernel.org@lists.infradead.org Document nvmem-partitions compatible used to treat mtd partitions as a nvmem provider. Signed-off-by: Ansuel Smith --- .../mtd/partitions/nvmem-partitions.yaml | 105 ++++++++++++++++++ 1 file changed, 105 insertions(+) create mode 100644 Documentation/devicetree/bindings/mtd/partitions/nvmem-partitions.yaml diff --git a/Documentation/devicetree/bindings/mtd/partitions/nvmem-partitions.yaml b/Documentation/devicetree/bindings/mtd/partitions/nvmem-partitions.yaml new file mode 100644 index 000000000000..1ff283febcaa --- /dev/null +++ b/Documentation/devicetree/bindings/mtd/partitions/nvmem-partitions.yaml @@ -0,0 +1,105 @@ +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/mtd/partitions/nvmem-partitions.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Nvmem partitions + +description: | + This binding can be used to treat the specific partition as a nvmem provider. + Each direct subnodes represents the nvmem cells and won't be parsed as fixed-partitions. + Fixed-partitions bindings described in fixed-partitions.yaml apply to the nvmem provider node. + +maintainers: + - Ansuel Smith + +properties: + compatible: + const: nvmem-partitions + + "#address-cells": true + + "#size-cells": true + + reg: + description: partition's offset and size within the flash + maxItems: 1 + +required: + - compatible + - "#address-cells" + - "#size-cells" + - reg + +additionalProperties: true + +examples: + - | + partitions { + compatible = "fixed-partitions"; + #address-cells = <1>; + #size-cells = <1>; + + /* ... */ + + }; + art: art@1200000 { + compatible = "nvmem-partitions"; + reg = <0x1200000 0x0140000>; + label = "art"; + read-only; + #address-cells = <1>; + #size-cells = <1>; + + macaddr_gmac1: macaddr_gmac1@0 { + reg = <0x0 0x6>; + }; + + macaddr_gmac2: macaddr_gmac2@6 { + reg = <0x6 0x6>; + }; + + pre_cal_24g: pre_cal_24g@1000 { + reg = <0x1000 0x2f20>; + }; + + pre_cal_5g: pre_cal_5g@5000{ + reg = <0x5000 0x2f20>; + }; + }; + - | + partitions { + compatible = "fixed-partitions"; + #address-cells = <1>; + #size-cells = <1>; + + partition@0 { + label = "bootloader"; + reg = <0x000000 0x100000>; + read-only; + }; + + firmware@100000 { + compatible = "brcm,trx"; + label = "firmware"; + reg = <0x100000 0xe00000>; + }; + + calibration@f00000 { + compatible = "nvmem-partitions"; + label = "calibration"; + reg = <0xf00000 0x100000>; + ranges = <0 0xf00000 0x100000>; + #address-cells = <1>; + #size-cells = <1>; + + wifi0@0 { + reg = <0x000000 0x080000>; + }; + + wifi1@80000 { + reg = <0x080000 0x080000>; + }; + }; + }; -- 2.30.0 ______________________________________________________ Linux MTD discussion mailing list http://lists.infradead.org/mailman/listinfo/linux-mtd/