Skip to contentSkip to conversation

ARM: dts: sun4i: gemei-g9: Enable PA GPIO pin configuration

PATCH New Priit Laes 2 participants 3 messages Dec 11, 2015 – Dec 18, 2015

Subsystems (2)
lore
Share & tools
lore

Priit Laes

author
#0 lore raw

PATCH 1/1 ARM: dts: sun4i: gemei-g9: Enable PA GPIO pin configuration

PA GPIO pin (PH15) controls power to external amplifier (FT2012Q).

This patch depends on 'ASoC: sun4i-codec: Add support for PA gpio pin' authored by Hans de Goede.

Priit Laes (1):
ARM: dts: sun4i: gemei-g9: Enable PA GPIO pin configuration

 arch/arm/boot/dts/sun4i-a10-gemei-g9.dts | 14 +++++++++++++-
 1 file changed, 13 insertions(+), 1 deletion(-)
Signature · 1 line
2.6.4
author
#1 lore raw

PATCH 1/1 ARM: dts: sun4i: gemei-g9: Enable PA GPIO pin configuration

PA GPIO pin (PH15) controls power to external amplifier (FT2012Q).

---
 arch/arm/boot/dts/sun4i-a10-gemei-g9.dts | 14 +++++++++++++-
 1 file changed, 13 insertions(+), 1 deletion(-)
arch/arm/boot/dts/sun4i-a10-gemei-g9.dts +13 -1
index 1d73a98..ac64781 100644
@@ -65,13 +65,16 @@
 /*
  * TODO:
  *   2x cameras via CSI
- *   audio input
  *   AXP battery management
  *   NAND
  *   OTG
  *   Touchscreen - gt801_2plus1 @ i2c adapter 2 @ 0x48
  */
 &codec {
+	/* PH15 controls power to external amplifier (ft2012q) */
+	pinctrl-names = "default";
+	pinctrl-0 = <&codec_pa_pin>;
+	allwinner,pa-gpios = <&pio 7 15 GPIO_ACTIVE_HIGH>;
 	status = "okay";
 };
 
@@ -151,6 +154,15 @@
 	status = "okay";
 };
 
+&pio {
+	codec_pa_pin: codec_pa_pin at 0 {
+		allwinner,pins = "PH15";
+		allwinner,function = "gpio_out";
+		allwinner,drive = <SUN4I_PINCTRL_10_MA>;
+		allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
+	};
+};
+
 &reg_dcdc2 {
 	regulator-always-on;
 	regulator-min-microvolt = <1000000>;
Signature · 1 line
2.6.4
#2 lore raw

PATCH 1/1 ARM: dts: sun4i: gemei-g9: Enable PA GPIO pin configuration

Quoted 3 lines · Priit Laes

PA GPIO pin (PH15) controls power to external amplifier (FT2012Q).

Applied, thanks!

Maxime

Signature · 10 lines
Maxime Ripard, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20151218/334abe22/attachment.sig>