All of lore.kernel.org
 help / color / mirror / Atom feed
From: plaes@plaes.org (Priit Laes)
To: linux-arm-kernel@lists.infradead.org
Subject: [linux-sunxi] Re: [PATCH v3 3/3] ARM: dts: sun4i: gemei-g9: Enable sun4i audio codec support
Date: Thu, 12 Nov 2015 20:53:19 +0200	[thread overview]
Message-ID: <1447354399.31635.10.camel@plaes.org> (raw)
In-Reply-To: <CAGb2v66uG-0EgVR=5SS4Lk-y5mX9v3Z39xP+0f7u7BfYq-b1yw@mail.gmail.com>

On Mon, 2015-11-09 at 11:59 +0800, Chen-Yu Tsai wrote:
> On Sat, Nov 7, 2015 at 1:54 AM, Priit Laes <plaes@plaes.org> wrote:
> > Gemei G9 has internal speakers and headphone jack. Audio switching
> > from internal speakers to headphones is automatically handled by
> > extra FT2012Q audio amplifier chip that works out of the box.
> 
> Nice that it works out of the box. The FEX file does mention:
> 
> audio_pa_ctrl???= port:PH15<1><default><default><0>

Nice catch.

Setting it low mutes audio, and setting it back high unmutes.



> So either it is floating or pulled up by default? Since it works
> now I don't see any reason to block it. On the other hand once
> that binding is introduced it would be nice to add it for power
> management reasons.

Should I just add comment about it or do something like this:

&codec {
? status = "okay";
? /*
? ?* TODO: Add codec_ext_pwr_pin to turn off external audio AMP
? ?&pio {
? ? ?codec_ext_pwr_pin:?codec_ext_pwr_pin at 0?{
? ? ? ?allwinner,pins = "PH15";
? ? ? ?allwinner,function = "gpio_out";
? ? ? ?allwinner,drive = <SUN4I_PINCTRL_10_MA>;
? ? ? ?allwinner,pull = <SUN4I_PINCTRL_PULL_UP>;
? ? ?}
? ?}
? ?*/
}


> 
> Acked-by: Chen-Yu Tsai <wens@csie.org>
> 
> > Signed-off-by: Priit Laes <plaes@plaes.org>
> > ---
> > Changes since v2:
> > ?- Dropped routing property.
> > 
> > ?arch/arm/boot/dts/sun4i-a10-gemei-g9.dts | 5 ++++-
> > ?1 file changed, 4 insertions(+), 1 deletion(-)
> > 
> > diff --git a/arch/arm/boot/dts/sun4i-a10-gemei-g9.dts
> > b/arch/arm/boot/dts/sun4i-a10-gemei-g9.dts
> > index 16c1a67..1d73a98 100644
> > --- a/arch/arm/boot/dts/sun4i-a10-gemei-g9.dts
> > +++ b/arch/arm/boot/dts/sun4i-a10-gemei-g9.dts
> > @@ -65,12 +65,15 @@
> > ?/*
> > ? * TODO:
> > ? *???2x cameras via CSI
> > - *???audio
> > + *???audio input
> > ? *???AXP battery management
> > ? *???NAND
> > ? *???OTG
> > ? *???Touchscreen - gt801_2plus1 @ i2c adapter 2 @ 0x48
> > ? */
> > +&codec {
> > +???????status = "okay";
> > +};
> > 
> > ?&cpu0 {
> > ????????cpu-supply = <&reg_dcdc2>;
> > --
> > 2.6.3
> > 
> 

  reply	other threads:[~2015-11-12 18:53 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-11-06 17:54 [PATCH v3 0/3] ARM: dts: sun4i: gemei-g9: Devicetree improvements Priit Laes
2015-11-06 17:54 ` [PATCH v3 1/3] ARM: dts: sun4i: gemei-g9: Convert to use axp209 regulator nodes Priit Laes
2015-11-09  4:08   ` Chen-Yu Tsai
2015-11-06 17:54 ` [PATCH v3 2/3] ARM: dts: sun4i: gemei-g9: Use reg_ldo2 instead of reg_vcc3v0 Priit Laes
2015-11-09  4:17   ` Chen-Yu Tsai
2015-11-06 17:54 ` [PATCH v3 3/3] ARM: dts: sun4i: gemei-g9: Enable sun4i audio codec support Priit Laes
2015-11-09  3:59   ` Chen-Yu Tsai
2015-11-12 18:53     ` Priit Laes [this message]
2015-11-19 16:09       ` [linux-sunxi] " Maxime Ripard
2015-11-20  2:56         ` Chen-Yu Tsai
2015-11-20  8:23           ` Hans de Goede
2015-11-09  2:02 ` [PATCH v3 0/3] ARM: dts: sun4i: gemei-g9: Devicetree improvements Maxime Ripard

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=1447354399.31635.10.camel@plaes.org \
    --to=plaes@plaes.org \
    --cc=linux-arm-kernel@lists.infradead.org \
    /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.