From mboxrd@z Thu Jan 1 00:00:00 1970 From: hdegoede@redhat.com (Hans de Goede) Date: Fri, 11 Dec 2015 19:43:58 +0100 Subject: [PATCH v2 3/4] ARM: dts: sun5i: Enable onboard codec used on the UTOO P66 tablet In-Reply-To: <1449859439-30875-1-git-send-email-hdegoede@redhat.com> References: <1449859439-30875-1-git-send-email-hdegoede@redhat.com> Message-ID: <1449859439-30875-3-git-send-email-hdegoede@redhat.com> To: linux-arm-kernel@lists.infradead.org List-Id: linux-arm-kernel.lists.infradead.org The UTOO P66 tablet uses the A13's integrated audio codec, enable it. Signed-off-by: Hans de Goede --- Changes in v2: -Adjust for gpio rename from pa-gpios to allwinner,pa-gpios --- arch/arm/boot/dts/sun5i-a13-utoo-p66.dts | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/arch/arm/boot/dts/sun5i-a13-utoo-p66.dts b/arch/arm/boot/dts/sun5i-a13-utoo-p66.dts index 5236c1e..fa9ddfd 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 = <®_dcdc2>; }; @@ -168,6 +175,13 @@ }; &pio { + codec_pa_pin: codec_pa_pin at 0 { + allwinner,pins = "PG3"; + allwinner,function = "gpio_out"; + allwinner,drive = ; + allwinner,pull = ; + }; + mmc0_cd_pin_p66: mmc0_cd_pin at 0 { allwinner,pins = "PG0"; allwinner,function = "gpio_in"; -- 2.5.0