summaryrefslogtreecommitdiff
path: root/arch/arm/boot/dts/sun4i-a10-gemei-g9.dts
diff options
context:
space:
mode:
authorPriit Laes <plaes@plaes.org>2015-12-11 23:23:00 +0200
committerMaxime Ripard <maxime.ripard@free-electrons.com>2015-12-18 22:19:18 +0100
commit2c102c38d5ee4e6d3f428eed563a95bc2b3c2561 (patch)
tree97cd47d52e35c1381de4ddcd745cb8b226231575 /arch/arm/boot/dts/sun4i-a10-gemei-g9.dts
parent53aa9346098a15df9227e232236f4ada298ef6fc (diff)
downloadlwn-2c102c38d5ee4e6d3f428eed563a95bc2b3c2561.tar.gz
lwn-2c102c38d5ee4e6d3f428eed563a95bc2b3c2561.zip
ARM: dts: sun4i: gemei-g9: Enable PA GPIO pin configuration
PA GPIO pin (PH15) controls power to external amplifier (FT2012Q). Signed-off-by: Priit Laes <plaes@plaes.org> Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
Diffstat (limited to 'arch/arm/boot/dts/sun4i-a10-gemei-g9.dts')
-rw-r--r--arch/arm/boot/dts/sun4i-a10-gemei-g9.dts14
1 files changed, 13 insertions, 1 deletions
diff --git a/arch/arm/boot/dts/sun4i-a10-gemei-g9.dts b/arch/arm/boot/dts/sun4i-a10-gemei-g9.dts
index 1d73a9897b71..ac64781a0a9c 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>;