summaryrefslogtreecommitdiff
path: root/arch/arm/boot/dts/sun5i-a13-utoo-p66.dts
diff options
context:
space:
mode:
authorHans de Goede <hdegoede@redhat.com>2015-12-11 21:43:58 +0300
committerMaxime Ripard <maxime.ripard@free-electrons.com>2015-12-19 00:18:16 +0300
commita692e00a778997ea84238aac803fa4a5cd562fc8 (patch)
tree36e045d5f484e1b7e0a4391e7116e9fb209ddd6a /arch/arm/boot/dts/sun5i-a13-utoo-p66.dts
parent2367cee5fda1e9ebc605b13175492b31030acd9d (diff)
downloadlinux-a692e00a778997ea84238aac803fa4a5cd562fc8.tar.xz
ARM: dts: sun5i: Enable onboard codec used on the UTOO P66 tablet
The UTOO P66 tablet uses the A13's integrated audio codec, enable it. Signed-off-by: Hans de Goede <hdegoede@redhat.com> Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
Diffstat (limited to 'arch/arm/boot/dts/sun5i-a13-utoo-p66.dts')
-rw-r--r--arch/arm/boot/dts/sun5i-a13-utoo-p66.dts14
1 files changed, 14 insertions, 0 deletions
diff --git a/arch/arm/boot/dts/sun5i-a13-utoo-p66.dts b/arch/arm/boot/dts/sun5i-a13-utoo-p66.dts
index 5236c1e3a1b5..fa9ddfdcfe96 100644
--- a/arch/arm/boot/dts/sun5i-a13-utoo-p66.dts
+++ b/arch/arm/boot/dts/sun5i-a13-utoo-p66.dts
@@ -73,6 +73,13 @@
};
};
+&codec {
+ pinctrl-names = "default";
+ pinctrl-0 = <&codec_pa_pin>;
+ allwinner,pa-gpios = <&pio 6 3 GPIO_ACTIVE_HIGH>; /* PG3 */
+ status = "okay";
+};
+
&cpu0 {
cpu-supply = <&reg_dcdc2>;
};
@@ -168,6 +175,13 @@
};
&pio {
+ codec_pa_pin: codec_pa_pin@0 {
+ allwinner,pins = "PG3";
+ allwinner,function = "gpio_out";
+ allwinner,drive = <SUN4I_PINCTRL_10_MA>;
+ allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
+ };
+
mmc0_cd_pin_p66: mmc0_cd_pin@0 {
allwinner,pins = "PG0";
allwinner,function = "gpio_in";