All of lore.kernel.org
 help / color / mirror / Atom feed
From: Bhargav Raviprakash <bhargav.r@ltts.com>
To: jpanis@baylibre.com
Cc: arnd@arndb.de, bhargav.r@ltts.com, broonie@kernel.org,
	conor+dt@kernel.org, devicetree@vger.kernel.org,
	eblanc@baylibre.com, gregkh@linuxfoundation.org,
	kristo@kernel.org, krzysztof.kozlowski+dt@linaro.org,
	lee@kernel.org, lgirdwood@gmail.com, linus.walleij@linaro.org,
	linux-arm-kernel@lists.infradead.org, linux-gpio@vger.kernel.org,
	linux-kernel@vger.kernel.org, m.nirmaladevi@ltts.com, nm@ti.com,
	robh+dt@kernel.org, vigneshr@ti.com
Subject: Re: [PATCH v4 10/11] pinctrl: pinctrl-tps6594: Add TPS65224 PMIC pinctrl and GPIO
Date: Fri, 22 Mar 2024 19:40:43 +0530	[thread overview]
Message-ID: <20240322141043.498005-1-bhargav.r@ltts.com> (raw)
In-Reply-To: <b473d940-0301-472d-90f0-297da6815377@baylibre.com>

On Fri, 22 Mar 2024 09:06:13 +0100, Julien Panis wrote:
> On 3/21/24 12:10, Julien Panis wrote:
> > On 3/20/24 11:25, Bhargav Raviprakash wrote:
> >> From: Nirmala Devi Mal Nadar <m.nirmaladevi@ltts.com>
> >>
> >> Add support for TPS65224 pinctrl and GPIOs to TPS6594 driver as they have
> >> significant functional overlap.
> >> TPS65224 PMIC has 6 GPIOS which can be configured as GPIO or other
> >> dedicated device functions.
> >>
> >> Signed-off-by: Nirmala Devi Mal Nadar <m.nirmaladevi@ltts.com>
> >> Signed-off-by: Bhargav Raviprakash <bhargav.r@ltts.com>
> >> Acked-by: Linus Walleij <linus.walleij@linaro.org>
> >
> > With this patch, an issue is observed on am62a:
> >
> > root@am62axx-evm:~# dmesg | grep tps
> > ...
> > [   12.122631] tps6594-pinctrl tps6594-pinctrl.2.auto: error -EINVAL: Couldn't register 
> > gpio_regmap driver
> > [   12.133216] tps6594-pinctrl: probe of tps6594-pinctrl.2.auto failed with error -22
> >
> > Without this patch, the issue disappears. Do you observe
> > the same result with your am62p ?
> >
> > Julien Panis
> >
> 
> Hi Barghav.
> 
> I found the issue in your patch.
> 
> In probe function you handle TPS652254 and TPS6594 'switch' cases,
> but you do not handle TPS6593 and LP8764 cases.
> Since AM62A uses a TPS6593, it currently falls in the default case,
> and as a result probe fails.
> 
> Please fix it for v5.
> 
> Julien Panis

Hi Julien,
 
Thanks for pointing it out.
We added support for TPS6594 alone as mentioned in header description "Pinmux and GPIO driver for tps6594 PMIC". 
TPS6594 and TPS6593 has similar gpio map, however gpio map for LP8764 is different from TPS6594 / TPS6593.

Regards,
Bhargav

WARNING: multiple messages have this Message-ID (diff)
From: Bhargav Raviprakash <bhargav.r@ltts.com>
To: jpanis@baylibre.com
Cc: arnd@arndb.de, bhargav.r@ltts.com, broonie@kernel.org,
	conor+dt@kernel.org, devicetree@vger.kernel.org,
	eblanc@baylibre.com, gregkh@linuxfoundation.org,
	kristo@kernel.org, krzysztof.kozlowski+dt@linaro.org,
	lee@kernel.org, lgirdwood@gmail.com, linus.walleij@linaro.org,
	linux-arm-kernel@lists.infradead.org, linux-gpio@vger.kernel.org,
	linux-kernel@vger.kernel.org, m.nirmaladevi@ltts.com, nm@ti.com,
	robh+dt@kernel.org, vigneshr@ti.com
Subject: Re: [PATCH v4 10/11] pinctrl: pinctrl-tps6594: Add TPS65224 PMIC pinctrl and GPIO
Date: Fri, 22 Mar 2024 19:40:43 +0530	[thread overview]
Message-ID: <20240322141043.498005-1-bhargav.r@ltts.com> (raw)
In-Reply-To: <b473d940-0301-472d-90f0-297da6815377@baylibre.com>

On Fri, 22 Mar 2024 09:06:13 +0100, Julien Panis wrote:
> On 3/21/24 12:10, Julien Panis wrote:
> > On 3/20/24 11:25, Bhargav Raviprakash wrote:
> >> From: Nirmala Devi Mal Nadar <m.nirmaladevi@ltts.com>
> >>
> >> Add support for TPS65224 pinctrl and GPIOs to TPS6594 driver as they have
> >> significant functional overlap.
> >> TPS65224 PMIC has 6 GPIOS which can be configured as GPIO or other
> >> dedicated device functions.
> >>
> >> Signed-off-by: Nirmala Devi Mal Nadar <m.nirmaladevi@ltts.com>
> >> Signed-off-by: Bhargav Raviprakash <bhargav.r@ltts.com>
> >> Acked-by: Linus Walleij <linus.walleij@linaro.org>
> >
> > With this patch, an issue is observed on am62a:
> >
> > root@am62axx-evm:~# dmesg | grep tps
> > ...
> > [   12.122631] tps6594-pinctrl tps6594-pinctrl.2.auto: error -EINVAL: Couldn't register 
> > gpio_regmap driver
> > [   12.133216] tps6594-pinctrl: probe of tps6594-pinctrl.2.auto failed with error -22
> >
> > Without this patch, the issue disappears. Do you observe
> > the same result with your am62p ?
> >
> > Julien Panis
> >
> 
> Hi Barghav.
> 
> I found the issue in your patch.
> 
> In probe function you handle TPS652254 and TPS6594 'switch' cases,
> but you do not handle TPS6593 and LP8764 cases.
> Since AM62A uses a TPS6593, it currently falls in the default case,
> and as a result probe fails.
> 
> Please fix it for v5.
> 
> Julien Panis

Hi Julien,
 
Thanks for pointing it out.
We added support for TPS6594 alone as mentioned in header description "Pinmux and GPIO driver for tps6594 PMIC". 
TPS6594 and TPS6593 has similar gpio map, however gpio map for LP8764 is different from TPS6594 / TPS6593.

Regards,
Bhargav

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

  reply	other threads:[~2024-03-22 14:11 UTC|newest]

Thread overview: 44+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-03-20 10:25 [PATCH v4 00/11] Add support for TI TPS65224 PMIC Bhargav Raviprakash
2024-03-20 10:25 ` Bhargav Raviprakash
2024-03-20 10:25 ` [PATCH v4 01/11] mfd: tps6594: Add register definitions " Bhargav Raviprakash
2024-03-20 10:25   ` Bhargav Raviprakash
2024-03-20 10:25 ` [PATCH v4 02/11] mfd: tps6594: use volatile_table instead of volatile_reg Bhargav Raviprakash
2024-03-20 10:25   ` Bhargav Raviprakash
2024-03-20 10:25 ` [PATCH v4 03/11] mfd: tps6594: add regmap config in match data Bhargav Raviprakash
2024-03-20 10:25   ` Bhargav Raviprakash
2024-03-28 11:37   ` Lee Jones
2024-03-28 11:37     ` Lee Jones
2024-03-20 10:25 ` [PATCH v4 04/11] dt-bindings: mfd: ti,tps6594: Add TI TPS65224 PMIC Bhargav Raviprakash
2024-03-20 10:25   ` Bhargav Raviprakash
2024-03-20 10:25 ` [PATCH v4 05/11] mfd: tps6594-i2c: Add TI TPS65224 PMIC I2C Bhargav Raviprakash
2024-03-20 10:25   ` Bhargav Raviprakash
2024-03-20 10:25 ` [PATCH v4 06/11] mfd: tps6594-spi: Add TI TPS65224 PMIC SPI Bhargav Raviprakash
2024-03-20 10:25   ` Bhargav Raviprakash
2024-03-20 10:25 ` [PATCH v4 07/11] mfd: tps6594-core: Add TI TPS65224 PMIC core Bhargav Raviprakash
2024-03-20 10:25   ` Bhargav Raviprakash
2024-03-20 10:25 ` [PATCH v4 08/11] misc: tps6594-pfsm: Add TI TPS65224 PMIC PFSM Bhargav Raviprakash
2024-03-20 10:25   ` Bhargav Raviprakash
2024-03-20 10:25 ` [PATCH v4 09/11] regulator: tps6594-regulator: Add TI TPS65224 PMIC regulators Bhargav Raviprakash
2024-03-20 10:25   ` Bhargav Raviprakash
2024-03-20 16:38   ` Mark Brown
2024-03-20 16:38     ` Mark Brown
2024-03-28 10:16     ` Bhargav Raviprakash
2024-03-28 10:16       ` Bhargav Raviprakash
2024-03-20 10:25 ` [PATCH v4 10/11] pinctrl: pinctrl-tps6594: Add TPS65224 PMIC pinctrl and GPIO Bhargav Raviprakash
2024-03-20 10:25   ` Bhargav Raviprakash
2024-03-21 11:10   ` Julien Panis
2024-03-21 11:10     ` Julien Panis
2024-03-22  8:06     ` Julien Panis
2024-03-22  8:06       ` Julien Panis
2024-03-22 14:10       ` Bhargav Raviprakash [this message]
2024-03-22 14:10         ` Bhargav Raviprakash
2024-03-22 15:24         ` Esteban Blanc
2024-03-22 15:24           ` Esteban Blanc
2024-03-28 10:35           ` Bhargav Raviprakash
2024-03-28 10:35             ` Bhargav Raviprakash
2024-03-22 16:03   ` Esteban Blanc
2024-03-22 16:03     ` Esteban Blanc
2024-03-28 10:27     ` Bhargav Raviprakash
2024-03-28 10:27       ` Bhargav Raviprakash
2024-03-20 10:25 ` [PATCH v4 11/11] arch: arm64: dts: ti: k3-am62p5-sk: Add TPS65224 PMIC support in AM62P dts Bhargav Raviprakash
2024-03-20 10:25   ` Bhargav Raviprakash

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=20240322141043.498005-1-bhargav.r@ltts.com \
    --to=bhargav.r@ltts.com \
    --cc=arnd@arndb.de \
    --cc=broonie@kernel.org \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=eblanc@baylibre.com \
    --cc=gregkh@linuxfoundation.org \
    --cc=jpanis@baylibre.com \
    --cc=kristo@kernel.org \
    --cc=krzysztof.kozlowski+dt@linaro.org \
    --cc=lee@kernel.org \
    --cc=lgirdwood@gmail.com \
    --cc=linus.walleij@linaro.org \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-gpio@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=m.nirmaladevi@ltts.com \
    --cc=nm@ti.com \
    --cc=robh+dt@kernel.org \
    --cc=vigneshr@ti.com \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.