Skip to content

Commit

Permalink
ARM: dts: sun4i: gemei-g9: Enable PA GPIO pin configuration
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Priit Laes authored and Maxime Ripard committed Dec 18, 2015
1 parent 53aa934 commit 2c102c3
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion arch/arm/boot/dts/sun4i-a10-gemei-g9.dts
Original file line number Diff line number Diff line change
Expand Up @@ -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";
};

Expand Down Expand Up @@ -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>;
Expand Down

0 comments on commit 2c102c3

Please sign in to comment.