From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wm1-f41.google.com (mail-wm1-f41.google.com [209.85.128.41]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id DE2C516EBFE; Fri, 9 Aug 2024 23:02:38 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.41 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1723244560; cv=none; b=OircUqjrqd5COYGlRuXhUSB+duknX+prE1UOQ+XmHX8r2POETUJ8hlNrwu7piW3Bp1gIuu/jrPddauAvY7d/niT1By/fiS2IK9WIUmBSntHCO5QMnyh1HWw6pw+W6AfjNfpntTtx7wkgf/ujj+L5bXHskWbeqFbuJP58jBucGGA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1723244560; c=relaxed/simple; bh=6IE7tvskZW59pVR1UJxmlFcac0npVXGRA3ZaUx+Dgm0=; h=From:To:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=DKn3O04EERmDbUcHXgtvinc2Xj6r3kEFo/XeMsrj0YhRUGsnCU0cBSAtZNeEOwKhCmTrXv+oSoMrAclDzYprDr23qFcZW6UEyqFnWYo0dj0q+2wwqdkwXRfypFxq20FsxgfR06fWC3vGpNkI4C/cvanBlqd9OZgkhgCQpUSRKc4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=IDJR4Sdx; arc=none smtp.client-ip=209.85.128.41 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="IDJR4Sdx" Received: by mail-wm1-f41.google.com with SMTP id 5b1f17b1804b1-4280c55e488so14898175e9.0; Fri, 09 Aug 2024 16:02:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1723244557; x=1723849357; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:from:to:cc:subject:date:message-id :reply-to; bh=5xBEuESArl0fBfjXYsEhDBEbTfGt9gI5ouD6sU73/GU=; b=IDJR4SdxSxLqNgeXEePRJyA4IdbZdAU7QfxsdH4xoPlhRp8+N0b0ZszmtFuf326YT5 fQyOoivU6WGta8sejgC63LLTotamldOH2fvx+/7jmzYmO5DHAuIQQbflzNYLgV7vvHUL SMRN+KhZuI8NKcCtn54u+QlqYxKGnk4lZ6cnyv7gkOvQhHdiEe0a+e3pC02hj9pIGCUb zDhD5a4ubze/IpchfBOONns7AbO7aI1H+AjKdKirUneoGw2u2uVTBVXnnULCCOvj4ZVL 8gT4q1r/ShKsDHTT3ncNKXm3+QBsTjuPcXT2JRXP0jITXicXkOZSBHSDWh2i7mr9EIA/ tQ7A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1723244557; x=1723849357; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=5xBEuESArl0fBfjXYsEhDBEbTfGt9gI5ouD6sU73/GU=; b=FTQxIEFyIY3/o20yp4MJojlteAnQtFPtpFL3hMEz4z4yJMoPSu933TbAC9x2X4vOzK 1mARGiZ87TWGmqPe+bK4x7DMKncuF16de9PIMUhZKADRtlEzHJC2fD/HdSUPR4yQPbYT j2YweJ0Zq5KnZkCP1BpfUigMVSvDGW0ubdkvyvyCYIIN0jlpzfAzXdRAaC6YHmUyiQd7 UPDfqxYJvFrFdhTIygbp/59bcMLpH4Wm8pCWdhtFCpS4RXrDfhHQsj8+th30ipRhXvqv 5fHFKr/s9Uxyza+oQPnlMRWOsmb15oIu5ZYzPygC3A+egVuYO9WO2RCyL6Pa10eieuZN mC2A== X-Forwarded-Encrypted: i=1; AJvYcCUZiSmUfnwLUbrRKO5raSFBDAiv/wTcDOJP+utfxov4DGKCTg5quENtdegXlZ7HCx2xUc55uOMfqfCKK7orwwzO2qZef6u2Cdnv8PONzXHuA57JR/mittiUoLPbxy8hGXlr/wD+nAgAyHCoz/64TPnnzZ+bO+PP4M4mSNACbJth331WwQ== X-Gm-Message-State: AOJu0Yy9Wglqm68eEzTam31h1ABCVH0z7vE7tb3KTIZA5BdrK6PgjxcH nVsXof0xBZSaHs/2FHyUIgWbSwMtO1Rddha2LjHXWsvVnQWg7ly5 X-Google-Smtp-Source: AGHT+IFaIZzfJMZGEZqQdwrs5TglTqfV4r7biRyhTVd339hoMEUvKuDwHH0rtXy2N3qYTRaD/OaGZA== X-Received: by 2002:a05:600c:1394:b0:428:9c0:2ad with SMTP id 5b1f17b1804b1-4290b8deddbmr49137295e9.18.1723244557103; Fri, 09 Aug 2024 16:02:37 -0700 (PDT) Received: from localhost.localdomain (host-87-10-253-138.retail.telecomitalia.it. [87.10.253.138]) by smtp.googlemail.com with ESMTPSA id 5b1f17b1804b1-429c75044a8sm7987485e9.9.2024.08.09.16.02.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 09 Aug 2024 16:02:36 -0700 (PDT) From: Christian Marangi To: Ulf Hansson , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Miquel Raynal , Richard Weinberger , Vignesh Raghavendra , Joern Engel , Keith Busch , Jens Axboe , Christoph Hellwig , Sagi Grimberg , Saravana Kannan , Christian Marangi , Thomas Bogendoerfer , Wolfram Sang , Florian Fainelli , linux-mmc@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mtd@lists.infradead.org, linux-nvme@lists.infradead.org Subject: [PATCH v4 6/7] dt-bindings: mtd: Add Documentation for Airoha fixed-partitions Date: Fri, 9 Aug 2024 19:21:04 +0200 Message-ID: <20240809172106.25892-7-ansuelsmth@gmail.com> X-Mailer: git-send-email 2.45.2 In-Reply-To: <20240809172106.25892-1-ansuelsmth@gmail.com> References: <20240809172106.25892-1-ansuelsmth@gmail.com> Precedence: bulk X-Mailing-List: linux-mmc@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Add Documentation for Airoha fixed-partitions compatibles. Airoha based SoC declare a dedicated partition at the end of the flash to store calibration and device specific data, in addition to fixed partitions. The offset of this special partition is not well defined as it depends on flash bad block management that might require reserving additional space at the end of the flash. This binding allows defining all fixed partitions and marking the last one to detect the correct offset. Signed-off-by: Christian Marangi --- .../partitions/airoha,fixed-partitions.yaml | 80 +++++++++++++++++++ .../bindings/mtd/partitions/partitions.yaml | 1 + 2 files changed, 81 insertions(+) create mode 100644 Documentation/devicetree/bindings/mtd/partitions/airoha,fixed-partitions.yaml diff --git a/Documentation/devicetree/bindings/mtd/partitions/airoha,fixed-partitions.yaml b/Documentation/devicetree/bindings/mtd/partitions/airoha,fixed-partitions.yaml new file mode 100644 index 000000000000..8d7221561f51 --- /dev/null +++ b/Documentation/devicetree/bindings/mtd/partitions/airoha,fixed-partitions.yaml @@ -0,0 +1,80 @@ +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/mtd/partitions/airoha,fixed-partitions.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Airoha SoC partitioning + +description: | + Airoha based SoC declare a dedicated partition at the end of the flash to + store calibration and device specific data, in addition to fixed partitions. + The offset of this special partition is not well defined as it depends on + flash bad block management that might require reserving additional space at the + end of the flash. + + This binding allows defining all fixed partitions and marking the last one to + detect the correct offset. + +maintainers: + - Christian Marangi + +select: false + +properties: + compatible: + const: airoha,fixed-partitions + + "#address-cells": + enum: [ 1, 2 ] + + "#size-cells": + enum: [ 1, 2 ] + +patternProperties: + "^partition@[0-9a-f]+$": + $ref: partition.yaml# + properties: + compatible: + const: airoha,dynamic-art + unevaluatedProperties: false + +required: + - "#address-cells" + - "#size-cells" + +additionalProperties: false + +examples: + - | + partitions { + compatible = "airoha,fixed-partitions"; + #address-cells = <1>; + #size-cells = <1>; + + partition@0 { + label = "bootloader"; + reg = <0x00000000 0x00080000>; + }; + + partition@80000 { + label = "tclinux"; + reg = <0x00080000 0x02800000>; + }; + + partition@2880000 { + label = "tclinux_slave"; + reg = <0x02880000 0x02800000>; + }; + + partition@5080000 { + label = "rootfs_data"; + reg = <0x5080000 0x00800000>; + }; + + partition@ffffffff { + compatible = "airoha,dynamic-art"; + label = "art"; + reg = <0xffffffff 0x00300000>; + }; + }; diff --git a/Documentation/devicetree/bindings/mtd/partitions/partitions.yaml b/Documentation/devicetree/bindings/mtd/partitions/partitions.yaml index 1dda2c80747b..ec254e03adf0 100644 --- a/Documentation/devicetree/bindings/mtd/partitions/partitions.yaml +++ b/Documentation/devicetree/bindings/mtd/partitions/partitions.yaml @@ -14,6 +14,7 @@ maintainers: - Miquel Raynal oneOf: + - $ref: airoha,fixed-partitions.yaml - $ref: arm,arm-firmware-suite.yaml - $ref: brcm,bcm4908-partitions.yaml - $ref: brcm,bcm947xx-cfe-partitions.yaml -- 2.45.2 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 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 8726AC52D7D for ; Fri, 9 Aug 2024 23:02:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type: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:Cc:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=pje1o8SVWSAocOcfsLuB8z5g+4e5HkTlhsZWwINnJQI=; b=InHWXYVb3VRu72 g1FD6qxILmkmYOGr2yWPN1Rl863bJrxwqYrzUuKWoLrbds5bCNwynIux6nJFF2t8tsxQj7NqLJsUZ 3chEgQh69vbpUP2m9SuijOisxLokKOwJIs9h5ZtKGSW/uyiJ4Z35LALVRgnfyAELrukO4qOeIRHim Tvxyj6C9fw+fdonq0tqgauYjVr2n8Co539WgNu8pzNipd4IgyXcSm5eYGTII19KKcwsX/1JrD2cJT cV2apguN/g1GC99CXhSqAe5lrI+02EMMQQ8QEiThljHFrB2DykRakq8AxGibI6Zq0BsAccmskxjhU QjZ5njADkE1XXEYvnMIA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1scYdD-0000000CiBl-3hgF; Fri, 09 Aug 2024 23:02:47 +0000 Received: from mail-wm1-x32f.google.com ([2a00:1450:4864:20::32f]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1scYd5-0000000Ci3O-45Za; Fri, 09 Aug 2024 23:02:43 +0000 Received: by mail-wm1-x32f.google.com with SMTP id 5b1f17b1804b1-42122ac2f38so14781185e9.1; Fri, 09 Aug 2024 16:02:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1723244557; x=1723849357; darn=lists.infradead.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:from:to:cc:subject:date:message-id :reply-to; bh=5xBEuESArl0fBfjXYsEhDBEbTfGt9gI5ouD6sU73/GU=; b=SKGgeOMF4oHNJ8MzClKdm20RQiFGbbN3G41EwJ40NDEWwXMHmHhnDPY4FyFKlHHw2C U2Oqf0iH4GtvKXofg3R44R67aUaGL5c5aqASyTQJkqXIcgrGBs5KoUVwfoCnsGRLnIFy cDlnt3cICJy5NSHFoPyfG+WaxyprFb/GvGVAymuJLSdH8mN70feCp4DotbJF0ifvaxoK asxSzA2twiRHZEv6Mj/PLgMWzGGoQz+TlAEPmuRCZWNRJ7n4mEQEfa35IzhN3u0TYgwf QZTapmnBIH1WaGEuEKIJElSfpaOw/56g+7t9uwRAz6nuPppELhXvtXtf+zLnXLD70hfY ZUFw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1723244557; x=1723849357; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=5xBEuESArl0fBfjXYsEhDBEbTfGt9gI5ouD6sU73/GU=; b=LzDQJ+R3Uh2tyEv4MrbUZWazqoI7bZMgTrQa1eFGZQ0v6X/k7ODOSxz6r9O16iN9w2 FonCj0db79drM9F6g71B4E9Z8EMgKQiG9cYccG1ZKKUwVQvFOjux+so/H9CgL0Do/v1b IZe7jYNldgohZufGi8YSJM6DWnwbM1wXZ9Z9wcROFAwqNlU49oJK5JLAkh2HJMHa8j5f xcj/GrraZprGmUGvCoT8MOFlkrAVhEr4X9FBT/1lXhmejqgY64dPpkW9i2EDpS+k7NSA jJhEB8ETZXmx2YlhNlanDLR2+ZnvDLKeqBclP4kQqWawqYJOKoR60BFU3k60X5uR8S1G +mOQ== X-Forwarded-Encrypted: i=1; AJvYcCXR5PO2g7tlZV8f5IcXJsjslKuPgBZ2zvZVtzztclPSMWj/uKijV0q+J/gIqlfDenpYGHLDW10A7cHHseCq7uIwCALlJoWiFY3SAfhARZ6O4mAOoV2Hb9ErgZofrCWWsRVUEV82vkejp005D1Nb X-Gm-Message-State: AOJu0YwwhBBsRZlTTZ+cUREkBjjwewQa7xeDfRVR5GZroZfXOVBRQrq+ dMr5XMB9IdSKLQMTVFsCIgDpfxRgDLKBG3VdQ6rDQFxwfyBqBp4L X-Google-Smtp-Source: AGHT+IFaIZzfJMZGEZqQdwrs5TglTqfV4r7biRyhTVd339hoMEUvKuDwHH0rtXy2N3qYTRaD/OaGZA== X-Received: by 2002:a05:600c:1394:b0:428:9c0:2ad with SMTP id 5b1f17b1804b1-4290b8deddbmr49137295e9.18.1723244557103; Fri, 09 Aug 2024 16:02:37 -0700 (PDT) Received: from localhost.localdomain (host-87-10-253-138.retail.telecomitalia.it. [87.10.253.138]) by smtp.googlemail.com with ESMTPSA id 5b1f17b1804b1-429c75044a8sm7987485e9.9.2024.08.09.16.02.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 09 Aug 2024 16:02:36 -0700 (PDT) From: Christian Marangi To: Ulf Hansson , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Miquel Raynal , Richard Weinberger , Vignesh Raghavendra , Joern Engel , Keith Busch , Jens Axboe , Christoph Hellwig , Sagi Grimberg , Saravana Kannan , Christian Marangi , Thomas Bogendoerfer , Wolfram Sang , Florian Fainelli , linux-mmc@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mtd@lists.infradead.org, linux-nvme@lists.infradead.org Subject: [PATCH v4 6/7] dt-bindings: mtd: Add Documentation for Airoha fixed-partitions Date: Fri, 9 Aug 2024 19:21:04 +0200 Message-ID: <20240809172106.25892-7-ansuelsmth@gmail.com> X-Mailer: git-send-email 2.45.2 In-Reply-To: <20240809172106.25892-1-ansuelsmth@gmail.com> References: <20240809172106.25892-1-ansuelsmth@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240809_160240_084912_DE2FB246 X-CRM114-Status: GOOD ( 18.52 ) X-BeenThere: linux-mtd@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Linux MTD discussion mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , 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 Add Documentation for Airoha fixed-partitions compatibles. Airoha based SoC declare a dedicated partition at the end of the flash to store calibration and device specific data, in addition to fixed partitions. The offset of this special partition is not well defined as it depends on flash bad block management that might require reserving additional space at the end of the flash. This binding allows defining all fixed partitions and marking the last one to detect the correct offset. Signed-off-by: Christian Marangi --- .../partitions/airoha,fixed-partitions.yaml | 80 +++++++++++++++++++ .../bindings/mtd/partitions/partitions.yaml | 1 + 2 files changed, 81 insertions(+) create mode 100644 Documentation/devicetree/bindings/mtd/partitions/airoha,fixed-partitions.yaml diff --git a/Documentation/devicetree/bindings/mtd/partitions/airoha,fixed-partitions.yaml b/Documentation/devicetree/bindings/mtd/partitions/airoha,fixed-partitions.yaml new file mode 100644 index 000000000000..8d7221561f51 --- /dev/null +++ b/Documentation/devicetree/bindings/mtd/partitions/airoha,fixed-partitions.yaml @@ -0,0 +1,80 @@ +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/mtd/partitions/airoha,fixed-partitions.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Airoha SoC partitioning + +description: | + Airoha based SoC declare a dedicated partition at the end of the flash to + store calibration and device specific data, in addition to fixed partitions. + The offset of this special partition is not well defined as it depends on + flash bad block management that might require reserving additional space at the + end of the flash. + + This binding allows defining all fixed partitions and marking the last one to + detect the correct offset. + +maintainers: + - Christian Marangi + +select: false + +properties: + compatible: + const: airoha,fixed-partitions + + "#address-cells": + enum: [ 1, 2 ] + + "#size-cells": + enum: [ 1, 2 ] + +patternProperties: + "^partition@[0-9a-f]+$": + $ref: partition.yaml# + properties: + compatible: + const: airoha,dynamic-art + unevaluatedProperties: false + +required: + - "#address-cells" + - "#size-cells" + +additionalProperties: false + +examples: + - | + partitions { + compatible = "airoha,fixed-partitions"; + #address-cells = <1>; + #size-cells = <1>; + + partition@0 { + label = "bootloader"; + reg = <0x00000000 0x00080000>; + }; + + partition@80000 { + label = "tclinux"; + reg = <0x00080000 0x02800000>; + }; + + partition@2880000 { + label = "tclinux_slave"; + reg = <0x02880000 0x02800000>; + }; + + partition@5080000 { + label = "rootfs_data"; + reg = <0x5080000 0x00800000>; + }; + + partition@ffffffff { + compatible = "airoha,dynamic-art"; + label = "art"; + reg = <0xffffffff 0x00300000>; + }; + }; diff --git a/Documentation/devicetree/bindings/mtd/partitions/partitions.yaml b/Documentation/devicetree/bindings/mtd/partitions/partitions.yaml index 1dda2c80747b..ec254e03adf0 100644 --- a/Documentation/devicetree/bindings/mtd/partitions/partitions.yaml +++ b/Documentation/devicetree/bindings/mtd/partitions/partitions.yaml @@ -14,6 +14,7 @@ maintainers: - Miquel Raynal oneOf: + - $ref: airoha,fixed-partitions.yaml - $ref: arm,arm-firmware-suite.yaml - $ref: brcm,bcm4908-partitions.yaml - $ref: brcm,bcm947xx-cfe-partitions.yaml -- 2.45.2 ______________________________________________________ Linux MTD discussion mailing list http://lists.infradead.org/mailman/listinfo/linux-mtd/