diff mbox

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

Message ID 1449868980-28237-2-git-send-email-plaes@plaes.org (mailing list archive)
State New, archived
Headers show

Commit Message

Priit Laes Dec. 11, 2015, 9:23 p.m. UTC
PA GPIO pin (PH15) controls power to external amplifier (FT2012Q).

Signed-off-by: Priit Laes <plaes@plaes.org>
---
 arch/arm/boot/dts/sun4i-a10-gemei-g9.dts | 14 +++++++++++++-
 1 file changed, 13 insertions(+), 1 deletion(-)

Comments

Maxime Ripard Dec. 18, 2015, 9:19 p.m. UTC | #1
On Fri, Dec 11, 2015 at 11:23:00PM +0200, Priit Laes wrote:
> PA GPIO pin (PH15) controls power to external amplifier (FT2012Q).
> 
> Signed-off-by: Priit Laes <plaes@plaes.org>

Applied, thanks!

Maxime
diff mbox

Patch

diff --git a/arch/arm/boot/dts/sun4i-a10-gemei-g9.dts b/arch/arm/boot/dts/sun4i-a10-gemei-g9.dts
index 1d73a98..ac64781 100644
--- a/arch/arm/boot/dts/sun4i-a10-gemei-g9.dts
+++ b/arch/arm/boot/dts/sun4i-a10-gemei-g9.dts
@@ -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@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>;