From: Jonas Rebmann <jre@pengutronix.de>
To: Ahmad Fatoum <a.fatoum@pengutronix.de>,
Sascha Hauer <s.hauer@pengutronix.de>,
BAREBOX <barebox@lists.infradead.org>
Subject: Re: [PATCH 2/2] ARM: boards: remove obsolete PCA9450_RESET_CTRL setup
Date: Tue, 11 Mar 2025 12:21:52 +0100 [thread overview]
Message-ID: <2a97c0f8-f9fd-47f0-8ac6-a0c5b7499dc1@pengutronix.de> (raw)
In-Reply-To: <f6277af8-56a9-4327-a299-d2e2d39cbc1a@pengutronix.de>
Hi Ahmad,
Not so much. As mentioned in the cover, the imx8 boards routinely
configure a larger array of pca9450 registers. As I didn't give the rest
of that setup a closer look, I did not change the code.
I have only tested this series on the phyboard segin imx93.
Just like with the imx93 boards, after application of the driver patch,
the { PCA9450_RESET_CTRL, 0xA1 } lines in lowlevel.c should no more have
an effect (as no board currently uses nxp,wdog_b-warm-reset).
Should I remove all { PCA9450_RESET_CTRL, 0xA1 } configuration in v2?
- Jonas
On 2025-03-11 12:03, Ahmad Fatoum wrote:
> Hi,
>
> On 3/11/25 11:50, Jonas Rebmann wrote:
>> Since a previous commit, PCA9450_RESET_CTRL is initialized to 0xA1 in
>> pca9450_probe; explicitly setting this in board.c has no effect anymore.
>
> Note that there is a number of i.MX8M boards that also use the PCA9450
> and configure 0xA1 into PCA9450_RESET_CTRL in their lowlevel.c.
>
> Any particular reason against or for dropping the configuration there?
>
> Thanks,
> Ahmad
>
>> Signed-off-by: Jonas Rebmann <jre@pengutronix.de>
>> ---
>> arch/arm/boards/phytec-phycore-imx93/board.c | 9 ---------
>> arch/arm/boards/tqma93xx/board.c | 3 ---
>> 2 files changed, 12 deletions(-)
>>
>> diff --git a/arch/arm/boards/phytec-phycore-imx93/board.c b/arch/arm/boards/phytec-phycore-imx93/board.c
>> index 149248ca654624826d0e8f6fe0f1f42c2747e248..03ba8cb5026d2a9eaa054fcfc69e18872fcd658e 100644
>> --- a/arch/arm/boards/phytec-phycore-imx93/board.c
>> +++ b/arch/arm/boards/phytec-phycore-imx93/board.c
>> @@ -6,23 +6,14 @@
>> #include <init.h>
>> #include <linux/kernel.h>
>> #include <environment.h>
>> -#include <mfd/pca9450.h>
>> #include <deep-probe.h>
>> #include <mach/imx/bbu.h>
>> #include <linux/pinctrl/consumer.h>
>>
>> -static void phycore_imx93_init_pmic(struct regmap *map)
>> -{
>> - /* set WDOG_B_CFG to cold reset */
>> - regmap_write(map, PCA9450_RESET_CTRL, 0xA1);
>> -}
>> -
>> static int phycore_imx93_probe(struct device *dev)
>> {
>> struct device_node *np;
>>
>> - pca9450_register_init_callback(phycore_imx93_init_pmic);
>> -
>> /*
>> * The phy on the EQOS has its MDIO lines connected to the FEC. The phy
>> * registers can only be successfully read when the EQOS pinctrl setup
>> diff --git a/arch/arm/boards/tqma93xx/board.c b/arch/arm/boards/tqma93xx/board.c
>> index b181784079cf12e5a112d13f95c87c2cf5ebeba6..b4de6c2f6c347cb255537a3784a667a9c2607de3 100644
>> --- a/arch/arm/boards/tqma93xx/board.c
>> +++ b/arch/arm/boards/tqma93xx/board.c
>> @@ -27,9 +27,6 @@ static void tqma93xx_init_pmic(struct regmap *map)
>>
>> /* I2C_LT_EN*/
>> regmap_write(map, 0xa, 0x3);
>> -
>> - /* set WDOG_B_CFG to cold reset */
>> - regmap_write(map, PCA9450_RESET_CTRL, 0xA1);
>> }
>>
>> static int tqma93xx_probe(struct device *dev)
>>
>
>
>
next prev parent reply other threads:[~2025-03-11 11:22 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-03-11 10:50 [PATCH 0/2] Move pca9450 RESET_CTRL configuration to driver Jonas Rebmann
2025-03-11 10:50 ` [PATCH 1/2] mfd: pca9450: configure pmic reset behavior Jonas Rebmann
2025-03-12 12:38 ` Sascha Hauer
2025-03-11 10:50 ` [PATCH 2/2] ARM: boards: remove obsolete PCA9450_RESET_CTRL setup Jonas Rebmann
2025-03-11 11:03 ` Ahmad Fatoum
2025-03-11 11:21 ` Jonas Rebmann [this message]
2025-03-11 11:42 ` Ahmad Fatoum
2025-03-12 12:43 ` Sascha Hauer
2025-03-11 11:05 ` [PATCH 0/2] Move pca9450 RESET_CTRL configuration to driver Rouven Czerwinski
2025-03-11 11:40 ` Jonas Rebmann
2025-03-11 11:42 ` Jonas Rebmann
2025-03-12 12:31 ` Sascha Hauer
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=2a97c0f8-f9fd-47f0-8ac6-a0c5b7499dc1@pengutronix.de \
--to=jre@pengutronix.de \
--cc=a.fatoum@pengutronix.de \
--cc=barebox@lists.infradead.org \
--cc=s.hauer@pengutronix.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