From patchwork Tue Aug 29 20:08:53 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?b?TWljaGHFgiBNaXJvc8WCYXc=?= X-Patchwork-Id: 9928229 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 6CE6760380 for ; Tue, 29 Aug 2017 20:12:14 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 5FA0F28634 for ; Tue, 29 Aug 2017 20:12:14 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 533F128A55; Tue, 29 Aug 2017 20:12:14 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-1.8 required=2.0 tests=BAYES_00,DKIM_ADSP_ALL, DKIM_SIGNED,DKIM_VALID,RCVD_IN_DNSWL_LOW autolearn=no version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 0902228634 for ; Tue, 29 Aug 2017 20:12:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:To:MIME-Version:Subject:From:References :In-Reply-To:Message-Id:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=ejo5x5+aoWHmnTE9jCF+Y0TCxwCRUa0cK87qJdGYNPg=; b=j+LEfQXSjblm6X 7GRx88XlPw48CbFElec4N7IkoyhzWQes7+CsA8TSdZvOiHqmxaF11rwuBao3D2ii6mk/SyBo0F7jF tKRQkbfCOKsBtEdC+mTPCTz0gyW2tpDYMX45jLhdn1rSj0D7wcdxm3nJb7RuMJM0J3whv2Ye+7jmZ fCQnY5z7+t2bGWefVkQU0NahNKpqieh6jpSPekwe1AZwjRKWagjz6rdjkRc9VY+YL10MrSzsnbHby EUbVevcw6IKtxuWLEk36YebKIm3PqM8a/ZUHI3RcoBdusHUDCI2yAsfmcxBDKEpYleS86TQS5U16K eklm4DTJOzXu9Fxtk3WQ==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1dmmrl-0007cA-Vk; Tue, 29 Aug 2017 20:12:06 +0000 Received: from 78-11-180-123.static.ip.netia.com.pl ([78.11.180.123] helo=rere.qmqm.pl) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1dmmr8-0004jZ-DO for linux-arm-kernel@lists.infradead.org; Tue, 29 Aug 2017 20:11:29 +0000 Received: from remote.user (localhost [127.0.0.1]) by rere.qmqm.pl (Postfix) with ESMTPSA id 3xhfps6KJXz2v; Tue, 29 Aug 2017 22:08:53 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=rere.qmqm.pl; s=1; t=1504037334; bh=/jBL0IXSfL4qU9D7tqMfsxX76y+HiP63Zo0flpMF8hE=; h=Date:In-Reply-To:References:From:Subject:To:Cc:From; b=HUgTn1mOASs1THkMPMvaRiYEEx01/hQHUQIsQSLz+ELlZnsYoKf1h52ylIyB6fSWM dy+bOS6jv+oygbTSMkcUbL48UqqChIsz+c/Ewzxh4wCB7YX7H+FROb1GuIWUlXRaF0 B7RQayob/vD9jrfX68D04xvfLmnoGk5m22G7s653dIKKJeHhfZvM2ID1g0zpSVFSiG QbuuDRdrlNfpM25JsfUIIicBlr5zAOyxKpZtJiei/68PfJs9yUbrx4ALzsBIY1RYmU 8sgqBJ4EYx2PkW1P6cUzTy6gmzWqv1O4f0zN7BGsjGBBaladHZRzH/4+EImZXRSOzI H4RlU9kgmG+KA== X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.99.2 at rere Date: Tue, 29 Aug 2017 22:08:53 +0200 Message-Id: In-Reply-To: References: From: =?UTF-8?q?Micha=C5=82=20Miros=C5=82aw?= Subject: [PATCH 1/2] arm: AT91: enable ac97 controller for at91sam9g45 MIME-Version: 1.0 To: Nicolas Ferre , Alexandre Belloni , Russell King X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170829_131126_724863_25DDE7BA X-CRM114-Status: UNSURE ( 6.04 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-arm-kernel@lists.infradead.org Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP Add AC97 controller node as present on AT91SAM9G45-EKES board. Signed-off-by: Michał Mirosław --- arch/arm/boot/dts/at91sam9g45.dtsi | 21 +++++++++++++++++++++ arch/arm/boot/dts/at91sam9m10g45ek.dts | 4 ++++ 2 files changed, 25 insertions(+) diff --git a/arch/arm/boot/dts/at91sam9g45.dtsi b/arch/arm/boot/dts/at91sam9g45.dtsi index e567d5fd3f9d..0e69a97695cd 100644 --- a/arch/arm/boot/dts/at91sam9g45.dtsi +++ b/arch/arm/boot/dts/at91sam9g45.dtsi @@ -846,6 +846,16 @@ }; }; + ac97 { + pinctrl_ac97: ac97-0 { + atmel,pins = + ; /* PD6 periph A AC97RX pin */ + }; + }; + pioA: gpio@fffff200 { compatible = "atmel,at91rm9200-gpio"; reg = <0xfffff200 0x200>; @@ -965,6 +975,17 @@ status = "disabled"; }; + ac97: sound@fffac000 { + compatible = "atmel,at91sam9263-ac97c"; + reg = <0xfffac000 0x4000>; + interrupts = <24 IRQ_TYPE_LEVEL_HIGH 5>; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_ac97>; + clocks = <&ac97_clk>; + clock-names = "ac97_clk"; + status = "disabled"; + }; + macb0: ethernet@fffbc000 { compatible = "cdns,at91sam9260-macb", "cdns,macb"; reg = <0xfffbc000 0x100>; diff --git a/arch/arm/boot/dts/at91sam9m10g45ek.dts b/arch/arm/boot/dts/at91sam9m10g45ek.dts index 2400c99134f7..9cf1f5163fbd 100644 --- a/arch/arm/boot/dts/at91sam9m10g45ek.dts +++ b/arch/arm/boot/dts/at91sam9m10g45ek.dts @@ -47,6 +47,10 @@ status = "okay"; }; + ac97: sound@fffac000 { + status = "okay"; + }; + macb0: ethernet@fffbc000 { phy-mode = "rmii"; status = "okay";