[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CANeKEMMDj2D9x5jbOEbDDtbN_NG22mJwDPJva+bT-p6RJawMdg@mail.gmail.com>
Date: Tue, 17 Sep 2024 12:17:50 +0200
From: Erez <erezgeva2@...il.com>
To: Erez Geva <erezgeva@...ime.org>
Cc: linux-mtd@...ts.infradead.org, Tudor Ambarus <tudor.ambarus@...aro.org>,
Pratyush Yadav <pratyush@...nel.org>, Michael Walle <mwalle@...nel.org>, linux-kernel@...r.kernel.org,
Miquel Raynal <miquel.raynal@...tlin.com>, Richard Weinberger <richard@....at>,
Vignesh Raghavendra <vigneshr@...com>, devicetree@...r.kernel.org, Rob Herring <robh@...nel.org>,
Krzysztof Kozlowski <krzk+dt@...nel.org>, Conor Dooley <conor+dt@...nel.org>,
Esben Haabendal <esben@...nix.com>
Subject: Re: [PATCH v4 3/5] dt-bindings: mtd: spi-nor: add OTP parameters
On Tue, 17 Sept 2024 at 11:50, Erez Geva <erezgeva@...ime.org> wrote:
>
> From: Erez Geva <ErezGeva2@...il.com>
>
> Some flash devices need OTP parameters in device tree.
> As we can not deduce the parameters based on JEDEC ID or SFDP.
>
> Signed-off-by: Erez Geva <ErezGeva2@...il.com>
> ---
> .../bindings/mtd/jedec,spi-nor.yaml | 37 +++++++++++++++++++
> 1 file changed, 37 insertions(+)
>
> diff --git a/Documentation/devicetree/bindings/mtd/jedec,spi-nor.yaml b/Documentation/devicetree/bindings/mtd/jedec,spi-nor.yaml
> index 6e3afb42926e..d502b7fab2ce 100644
> --- a/Documentation/devicetree/bindings/mtd/jedec,spi-nor.yaml
> +++ b/Documentation/devicetree/bindings/mtd/jedec,spi-nor.yaml
> @@ -90,6 +90,43 @@ properties:
> the SRWD bit while writing the status register. WP# signal hard strapped to GND
> can be a valid use case.
>
> + opt_n_regions:
> + type: u32
> + description:
> + Some flash devices need OTP parameters in the device tree.
> + As we can not deduce the parameters based on JEDEC ID or SFDP.
> + This parameter indicates the number of OTP regions.
> + The value must be larger than 1 and mandatory for OTP.
Sorry: "The value must be larger or equal to 1 and mandatory for OTP.
"
> +
> + otp_len:
> + type: u32
> + description:
> + Some flash devices need OTP parameters in the device tree.
> + As we can not deduce the parameters based on JEDEC ID or SFDP.
> + This parameter indicates the size (length) in bytes of an OTP region.
> + Currently the driver supports symmetric OTP,
> + which means all regions must use the same size.
> + The value must be positive and mandatory for OTP.
> +
> + otp_offset:
> + type: u32
> + description:
> + Some flash devices need OTP parameters in the device tree.
> + As we can not deduce the parameters based on JEDEC ID or SFDP.
> + This parameter indicates the offset in bytes of
> + an OTP region relative to its previous.
> + User can omit it if the offset equals the length.
> + Or in case we have a single OTP region.
> +
> + otp_base:
> + type: u32
> + description:
> + Some flash devices need OTP parameters in the device tree.
> + As we can not deduce the parameters based on JEDEC ID or SFDP.
> + This parameter indicates the base in bytes of the first OTP region.
> + User can omit it if the base is zero.
> + I.e. the address of the first OTP region starts from 0.
> +
> reset-gpios:
> description:
> A GPIO line connected to the RESET (active low) signal of the device.
> --
> 2.39.5
>
Powered by blists - more mailing lists