ARM: dts: sun4i: gemei-g9: Enable PA GPIO pin configuration
authorPriit Laes <plaes@plaes.org>
Fri, 11 Dec 2015 21:23:00 +0000 (23:23 +0200)
committerMaxime Ripard <maxime.ripard@free-electrons.com>
Fri, 18 Dec 2015 21:19:18 +0000 (22:19 +0100)
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>
arch/arm/boot/dts/sun4i-a10-gemei-g9.dts

index 1d73a9897b7144fa409b7547bf88992f489ed872..ac64781a0a9cc0f5bf0472157f7120224359254e 100644 (file)
 /*
  * 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";
 };
 
        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>;