linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH RESEND V3] ASoC: cs42xx8: add reset-gpio in binding document
@ 2019-05-16 11:24 S.j. Wang
  2019-05-16 11:27 ` Mark Brown
  2019-05-16 11:34 ` [alsa-devel] " Fabio Estevam
  0 siblings, 2 replies; 4+ messages in thread
From: S.j. Wang @ 2019-05-16 11:24 UTC (permalink / raw)
  To: brian.austin, Paul.Handrigan, lgirdwood, broonie, perex, tiwai,
	alsa-devel
  Cc: linux-kernel

Add reset-gpio property, which is an optional option

Signed-off-by: Shengjiu Wang <shengjiu.wang@nxp.com>
---
Changes in RESEND v3
- send updated binding document only

Changes in v3
- update binding document.

Changes in v2
- use devm_gpiod_get_optional instead of of_get_named_gpio

 Documentation/devicetree/bindings/sound/cs42xx8.txt | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/Documentation/devicetree/bindings/sound/cs42xx8.txt b/Documentation/devicetree/bindings/sound/cs42xx8.txt
index 8619a156d038..ab8f54095269 100644
--- a/Documentation/devicetree/bindings/sound/cs42xx8.txt
+++ b/Documentation/devicetree/bindings/sound/cs42xx8.txt
@@ -14,6 +14,11 @@ Required properties:
   - VA-supply, VD-supply, VLS-supply, VLC-supply: power supplies for the device,
     as covered in Documentation/devicetree/bindings/regulator/regulator.txt
 
+Optional properties:
+
+  - reset-gpio : a GPIO spec to define which pin is connected to the chip's
+    !RESET pin
+
 Example:
 
 cs42888: codec@48 {
@@ -25,4 +30,5 @@ cs42888: codec@48 {
 	VD-supply = <&reg_audio>;
 	VLS-supply = <&reg_audio>;
 	VLC-supply = <&reg_audio>;
+	reset-gpio = <&pca9557_b 1 1>;
 };
-- 
2.21.0


^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH RESEND V3] ASoC: cs42xx8: add reset-gpio in binding document
  2019-05-16 11:24 [PATCH RESEND V3] ASoC: cs42xx8: add reset-gpio in binding document S.j. Wang
@ 2019-05-16 11:27 ` Mark Brown
  2019-05-16 11:30   ` [EXT] " S.j. Wang
  2019-05-16 11:34 ` [alsa-devel] " Fabio Estevam
  1 sibling, 1 reply; 4+ messages in thread
From: Mark Brown @ 2019-05-16 11:27 UTC (permalink / raw)
  To: S.j. Wang
  Cc: brian.austin, Paul.Handrigan, lgirdwood, perex, tiwai,
	alsa-devel, linux-kernel

[-- Attachment #1: Type: text/plain, Size: 365 bytes --]

On Thu, May 16, 2019 at 11:24:12AM +0000, S.j. Wang wrote:

> +Optional properties:
> +
> +  - reset-gpio : a GPIO spec to define which pin is connected to the chip's
> +    !RESET pin

gpio properties are supposed to be called -gpios even if there's a
single GPIO possible due to DT rules.  The code will accept plain -gpio
but the documentation should say gpios.

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 488 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* RE: [EXT] Re: [PATCH RESEND V3] ASoC: cs42xx8: add reset-gpio in binding document
  2019-05-16 11:27 ` Mark Brown
@ 2019-05-16 11:30   ` S.j. Wang
  0 siblings, 0 replies; 4+ messages in thread
From: S.j. Wang @ 2019-05-16 11:30 UTC (permalink / raw)
  To: Mark Brown
  Cc: brian.austin, Paul.Handrigan, lgirdwood, perex, tiwai,
	alsa-devel, linux-kernel


Hi

> 
> > +Optional properties:
> > +
> > +  - reset-gpio : a GPIO spec to define which pin is connected to the chip's
> > +    !RESET pin
> 
> gpio properties are supposed to be called -gpios even if there's a single
> GPIO possible due to DT rules.  The code will accept plain -gpio but the
> documentation should say gpios.
Ok, will update in v4 😊

Best regards
Wang shengjiu

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [alsa-devel] [PATCH RESEND V3] ASoC: cs42xx8: add reset-gpio in binding document
  2019-05-16 11:24 [PATCH RESEND V3] ASoC: cs42xx8: add reset-gpio in binding document S.j. Wang
  2019-05-16 11:27 ` Mark Brown
@ 2019-05-16 11:34 ` Fabio Estevam
  1 sibling, 0 replies; 4+ messages in thread
From: Fabio Estevam @ 2019-05-16 11:34 UTC (permalink / raw)
  To: S.j. Wang
  Cc: brian.austin, Paul.Handrigan, lgirdwood, broonie, perex, tiwai,
	alsa-devel, linux-kernel

On Thu, May 16, 2019 at 8:25 AM S.j. Wang <shengjiu.wang@nxp.com> wrote:

>  cs42888: codec@48 {
> @@ -25,4 +30,5 @@ cs42888: codec@48 {
>         VD-supply = <&reg_audio>;
>         VLS-supply = <&reg_audio>;
>         VLC-supply = <&reg_audio>;
> +       reset-gpio = <&pca9557_b 1 1>;

Please use GPIO_ACTIVE_LOW instead as it makes the polarity clearer.

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2019-05-16 11:34 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-05-16 11:24 [PATCH RESEND V3] ASoC: cs42xx8: add reset-gpio in binding document S.j. Wang
2019-05-16 11:27 ` Mark Brown
2019-05-16 11:30   ` [EXT] " S.j. Wang
2019-05-16 11:34 ` [alsa-devel] " Fabio Estevam

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).