From: Hans de Goede Date: Fri, 11 Dec 2015 18:43:58 +0000 (+0100) Subject: ARM: dts: sun5i: Enable onboard codec used on the UTOO P66 tablet X-Git-Tag: v4.5-rc1~43^2~16^2~10 X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=commitdiff_plain;h=a692e00a778997ea84238aac803fa4a5cd562fc8;p=linux.git 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 Signed-off-by: Maxime Ripard --- 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 @@ i2c_lcd: i2c@0 { }; }; +&codec { + pinctrl-names = "default"; + pinctrl-0 = <&codec_pa_pin>; + allwinner,pa-gpios = <&pio 6 3 GPIO_ACTIVE_HIGH>; /* PG3 */ + status = "okay"; +}; + &cpu0 { cpu-supply = <®_dcdc2>; }; @@ -168,6 +175,13 @@ &otg_sram { }; &pio { + codec_pa_pin: codec_pa_pin@0 { + allwinner,pins = "PG3"; + allwinner,function = "gpio_out"; + allwinner,drive = ; + allwinner,pull = ; + }; + mmc0_cd_pin_p66: mmc0_cd_pin@0 { allwinner,pins = "PG0"; allwinner,function = "gpio_in";