ARM: dts: sun5i: Enable onboard codec used on the UTOO P66 tablet
authorHans de Goede <hdegoede@redhat.com>
Fri, 11 Dec 2015 18:43:58 +0000 (19:43 +0100)
committerMaxime Ripard <maxime.ripard@free-electrons.com>
Fri, 18 Dec 2015 21:18:16 +0000 (22:18 +0100)
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>
arch/arm/boot/dts/sun5i-a13-utoo-p66.dts

index 5236c1e3a1b51726ddf1012abb3d5e564375f9ff..fa9ddfdcfe9688ab932c8c0ff30b38879fd0d604 100644 (file)
        };
 };
 
+&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>;
 };
 };
 
 &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";