* [PATCH] ARM: dts: sun4i: gemei-g9: Enable PA GPIO pin configuration
@ 2015-12-11 21:22 Priit Laes
2015-12-11 21:23 ` Priit Laes
0 siblings, 1 reply; 3+ messages in thread
From: Priit Laes @ 2015-12-11 21:22 UTC (permalink / raw)
To: linux-arm-kernel
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(-)
--
2.6.4
^ permalink raw reply [flat|nested] 3+ messages in thread
* [PATCH] ARM: dts: sun4i: gemei-g9: Enable PA GPIO pin configuration
2015-12-11 21:22 [PATCH] ARM: dts: sun4i: gemei-g9: Enable PA GPIO pin configuration Priit Laes
@ 2015-12-11 21:23 ` Priit Laes
2015-12-18 21:19 ` Maxime Ripard
0 siblings, 1 reply; 3+ messages in thread
From: Priit Laes @ 2015-12-11 21:23 UTC (permalink / raw)
To: linux-arm-kernel
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(-)
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 at 0 {
+ allwinner,pins = "PH15";
+ allwinner,function = "gpio_out";
+ allwinner,drive = <SUN4I_PINCTRL_10_MA>;
+ allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
+ };
+};
+
®_dcdc2 {
regulator-always-on;
regulator-min-microvolt = <1000000>;
--
2.6.4
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [PATCH] ARM: dts: sun4i: gemei-g9: Enable PA GPIO pin configuration
2015-12-11 21:23 ` Priit Laes
@ 2015-12-18 21:19 ` Maxime Ripard
0 siblings, 0 replies; 3+ messages in thread
From: Maxime Ripard @ 2015-12-18 21:19 UTC (permalink / raw)
To: linux-arm-kernel
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
--
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>
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2015-12-18 21:19 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-12-11 21:22 [PATCH] ARM: dts: sun4i: gemei-g9: Enable PA GPIO pin configuration Priit Laes
2015-12-11 21:23 ` Priit Laes
2015-12-18 21:19 ` Maxime Ripard
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox