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: 807264 Return-Path: X-Original-To: incoming-imx@patchwork.ozlabs.org Delivered-To: patchwork-incoming-imx@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=lists.infradead.org (client-ip=65.50.211.133; helo=bombadil.infradead.org; envelope-from=linux-arm-kernel-bounces+incoming-imx=patchwork.ozlabs.org@lists.infradead.org; receiver=) Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="j+LEfQXS"; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=rere.qmqm.pl header.i=@rere.qmqm.pl header.b="HUgTn1mO"; dkim-atps=neutral Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3xhftf53tLz9sP5 for ; Wed, 30 Aug 2017 06:12:10 +1000 (AEST) 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 1dmmrm-0007cA-4I; 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?b?TWljaGHFgiBNaXJvc8WCYXc=?= 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-Spam-Score: -2.0 (--) X-Spam-Report: SpamAssassin version 3.4.1 on bombadil.infradead.org summary: Content analysis details: (-2.0 points) pts rule name description ---- ---------------------- -------------------------------------------------- 0.0 TVD_RCVD_IP Message was received from an IP address -0.0 SPF_PASS SPF: sender matches SPF record -0.0 SPF_HELO_PASS SPF: HELO matches SPF record -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list 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+incoming-imx=patchwork.ozlabs.org@lists.infradead.org List-Id: linux-imx-kernel.lists.patchwork.ozlabs.org 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";