ARM: dts: sun4i: Enable onboard codec used on the pov protab2-ips9 tablet
authorHans de Goede <hdegoede@redhat.com>
Fri, 11 Dec 2015 18:43:59 +0000 (19:43 +0100)
committerMaxime Ripard <maxime.ripard@free-electrons.com>
Fri, 18 Dec 2015 21:18:19 +0000 (22:18 +0100)
The pov protab2-ips9 tablet uses the A10'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/sun4i-a10-pov-protab2-ips9.dts

index 1f92ec7..918f972 100644 (file)
        };
 };
 
+&codec {
+       pinctrl-names = "default";
+       pinctrl-0 = <&codec_pa_pin>;
+       allwinner,pa-gpios = <&pio 7 15 GPIO_ACTIVE_HIGH>; /* PH15 */
+       status = "okay";
+};
+
 &cpu0 {
        cpu-supply = <&reg_dcdc2>;
 };
                allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
        };
 
+       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>;
+       };
+
        touchscreen_pins: touchscreen_pins@0 {
                allwinner,pins = "PA5", "PB13";
                allwinner,function = "gpio_out";