From: Stefan Roese <sr@denx.de>
To: Pierre Bourdon <delroth@gmail.com>, u-boot@lists.denx.de
Cc: Baruch Siach <baruch@tkos.co.il>,
Konstantin Porotchkin <kostap@marvell.com>
Subject: Re: [PATCH] mtd: nand: pxa3xx: use marvell, prefix for custom DT properties
Date: Fri, 14 Jan 2022 16:34:58 +0100 [thread overview]
Message-ID: <f07125eb-e005-1121-0f49-63398cde44c3@denx.de> (raw)
In-Reply-To: <20211225044629.1322122-1-delroth@gmail.com>
On 12/25/21 05:46, Pierre Bourdon wrote:
> The DT properties for the "enable-arbiter" and "keep-config" config
> knobs were previously named inconsistently:
>
> - The u-boot driver used "nand-enable-arbiter" and "nand-keep-config"
> names, without Marvell prefixes.
>
> - The Linux driver uses "marvell,nand-keep-config" ("enable-arbiter"
> does not exist anymore in recent kernels, but it also used to be
> "marvell,nand-enable-arbiter").
>
> - The device trees almost all use "marvell," prefixed names, except for
> one single instance of "nand-enable-arbiter" without vendor prefix.
>
> This commit standardizes on the vendor prefixed version, making the
> u-boot driver read from DT props "marvell,nand-enable-arbiter" and
> "marvell,nand-keep-config". The one device tree using the unprefixed
> version is also changed to use the new naming.
>
> This has the side effect of making the previously no-op "marvell,"
> config knobs already present in some DTs actually do something. This was
> likely the original intention of the DT authors, but note that this
> commit was not tested on every single impacted board.
>
> Signed-off-by: Pierre Bourdon <delroth@gmail.com>
Applied to u-boot-marvell/master
Thanks,
Stefan
> ---
> arch/arm/dts/armada-cp110.dtsi | 2 +-
> drivers/mtd/nand/raw/pxa3xx_nand.c | 4 ++--
> 2 files changed, 3 insertions(+), 3 deletions(-)
>
> diff --git a/arch/arm/dts/armada-cp110.dtsi b/arch/arm/dts/armada-cp110.dtsi
> index abf1e4ea08..ddc10d2374 100644
> --- a/arch/arm/dts/armada-cp110.dtsi
> +++ b/arch/arm/dts/armada-cp110.dtsi
> @@ -231,7 +231,7 @@
> #address-cells = <1>;
> #size-cells = <0>;
> clocks = <&CP110_LABEL(syscon0) 1 2>;
> - nand-enable-arbiter;
> + marvell,nand-enable-arbiter;
> num-cs = <1>;
> nand-ecc-strength = <8>;
> nand-ecc-step-size = <512>;
> diff --git a/drivers/mtd/nand/raw/pxa3xx_nand.c b/drivers/mtd/nand/raw/pxa3xx_nand.c
> index 8ff58a7038..3a9c9ca508 100644
> --- a/drivers/mtd/nand/raw/pxa3xx_nand.c
> +++ b/drivers/mtd/nand/raw/pxa3xx_nand.c
> @@ -1862,10 +1862,10 @@ static int pxa3xx_nand_probe_dt(struct udevice *dev, struct pxa3xx_nand_info *in
> return -EINVAL;
> }
>
> - if (dev_read_bool(dev, "nand-enable-arbiter"))
> + if (dev_read_bool(dev, "marvell,nand-enable-arbiter"))
> pdata->enable_arbiter = 1;
>
> - if (dev_read_bool(dev, "nand-keep-config"))
> + if (dev_read_bool(dev, "marvell,nand-keep-config"))
> pdata->keep_config = 1;
>
> /*
>
Viele Grüße,
Stefan Roese
--
DENX Software Engineering GmbH, Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-51 Fax: (+49)-8142-66989-80 Email: sr@denx.de
prev parent reply other threads:[~2022-01-14 15:35 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-12-25 4:46 [PATCH] mtd: nand: pxa3xx: use marvell, prefix for custom DT properties Pierre Bourdon
2022-01-14 15:34 ` Stefan Roese [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=f07125eb-e005-1121-0f49-63398cde44c3@denx.de \
--to=sr@denx.de \
--cc=baruch@tkos.co.il \
--cc=delroth@gmail.com \
--cc=kostap@marvell.com \
--cc=u-boot@lists.denx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox