From patchwork Sun Mar 5 13:37:07 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Icenowy Zheng X-Patchwork-Id: 9604631 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 BF19D602B4 for ; Sun, 5 Mar 2017 13:59:32 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A187628159 for ; Sun, 5 Mar 2017 13:59:32 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 925BF283B3; Sun, 5 Mar 2017 13:59:32 +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.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID autolearn=ham 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 1DC9E28159 for ; Sun, 5 Mar 2017 13:59:32 +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:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:References: In-Reply-To:Message-Id:Date:Subject:To:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=F/RKcbmeztvs3mqWKRK6XdsOj3g+2p1J+WyCYE2RXHk=; b=qLzjmxmDsgzo4FiMwD7CCMBt2O +27pjaCkwA9J9MX7NOw+HiAfgk57149dzTc89FP9HCAADrMB83T4avuOjC/fdgMn/gttfxxRyNGw2 7u438UYEtzfQs5qxyD9LC6dw8uZCWRIlCZGaFMIfuJmmn2mwb/9vABLTyIbNlxVy3mn/i5rod235q odqUifUjOwUjKTGrsYhVsPHLLLcIhJuLAL7KfGK84F8K1AVJkRX7/bJwgk9Sgf/wy/adZiGgZLd67 bekrC1x5SUZpg0qYH7YodPbhsoP4Qbs4Gto34JvdIZcKX7UnMfExy4pbhDTtZb+CjIwgCmCT4RfRW lPQY5fqA==; 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 1ckWh6-00070I-09; Sun, 05 Mar 2017 13:59:28 +0000 Received: from casper.infradead.org ([2001:770:15f::2]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1ckWh3-0006wJ-Rg for linux-arm-kernel@bombadil.infradead.org; Sun, 05 Mar 2017 13:59:26 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=References:In-Reply-To:Message-Id:Date: Subject:Cc:To:From:Sender:Reply-To:MIME-Version:Content-Type: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=0MQE9HcUyagReOwf7FgnI4IYXSu6zczvcy15TTgkp5A=; b=uoAX65g6IIbhYlzERA3KgVlBp nles0ZdKrmtOhyTInnWDjuUN7HTLolWMqhEFcqc0PxH71Im7VF9wjHRxYEK9z6sPFqr58IW3AKSjv YAg1dlttD7zzPe7MMwMjDbWBArDY+z7CnlHdLvo/3dCKGUHVASdsGSHddW4hZlibOMPTHWK9RL4ZG N9PAyx/AiSevHICtohpKYaypOoqJTkRVVNWprIBepSQcIKiF/CiqVdO/+ewd1HojZpg6FozawC8Gd JuasiGegOiYuuwbB3OxwgZy+K40CDQW/1/oveOVqsmz7G3afOo+PHa+eybKtBL/ZesQP2e0V64fz4 Lj1+zDtdw==; Received: from forward7h.cmail.yandex.net ([87.250.230.218]) by casper.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1ckWPW-0006Ge-2A for linux-arm-kernel@lists.infradead.org; Sun, 05 Mar 2017 13:41:19 +0000 Received: from smtp1m.mail.yandex.net (smtp1m.mail.yandex.net [IPv6:2a02:6b8:0:2519::121]) by forward7h.cmail.yandex.net (Yandex) with ESMTP id 7E38E21652; Sun, 5 Mar 2017 16:40:56 +0300 (MSK) Received: from smtp1m.mail.yandex.net (localhost.localdomain [127.0.0.1]) by smtp1m.mail.yandex.net (Yandex) with ESMTP id 9333163C0D97; Sun, 5 Mar 2017 16:40:50 +0300 (MSK) Received: by smtp1m.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id 1xu4bs3MBZ-ehT0MFx0; Sun, 05 Mar 2017 16:40:49 +0300 (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client certificate not present) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aosc.xyz; s=mail; t=1488721250; bh=0MQE9HcUyagReOwf7FgnI4IYXSu6zczvcy15TTgkp5A=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References; b=RCHoHNsZXDFpirAoV+BCMhSdlzOp3qh5z+JL7k+Rw80tmENuR+Foil+8nsmeUFicu i/b8VBHmQLvquKrSmzSvkIy1Q4H4JxN3GmbterFCxB1d75HoMvTaLij/ZiSKFpQrDt ZLl3yI9dJrvBKRj6WVxlrBoVf+VYAR1bMfIwlUeA= Authentication-Results: smtp1m.mail.yandex.net; dkim=pass header.i=@aosc.xyz X-Yandex-ForeignMX: US X-Yandex-Suid-Status: 1 0, 1 0, 1 0, 1 0, 1 0, 1 0, 1 0, 1 0, 1 0, 1 0, 1 0, 1 1130000036118848 From: Icenowy Zheng To: Vinod Koul , Rob Herring , Maxime Ripard , Chen-Yu Tsai , Mark Brown Subject: [PATCH v2 10/12] ARM: dts: sun8i: add audio codec support into V3s DTSI Date: Sun, 5 Mar 2017 21:37:07 +0800 Message-Id: <20170305133709.6288-11-icenowy@aosc.xyz> X-Mailer: git-send-email 2.11.1 In-Reply-To: <20170305133709.6288-1-icenowy@aosc.xyz> References: <20170305133709.6288-1-icenowy@aosc.xyz> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170305_134118_153923_21794F82 X-CRM114-Status: UNSURE ( 8.22 ) 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: devicetree@vger.kernel.org, alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org, linux-sunxi@googlegroups.com, Icenowy Zheng , dmaengine@vger.kernel.org, linux-arm-kernel@lists.infradead.org MIME-Version: 1.0 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 Allwinner V3s SoC features an internal audio codec like the one in H3, and a analog codec like the one in H3/A23 (but much simpler). Add them in the DTSI file. Signed-off-by: Icenowy Zheng Acked-by: Chen-Yu Tsai --- arch/arm/boot/dts/sun8i-v3s.dtsi | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/arch/arm/boot/dts/sun8i-v3s.dtsi b/arch/arm/boot/dts/sun8i-v3s.dtsi index 7e0342976ba8..5fb6cb69f7bc 100644 --- a/arch/arm/boot/dts/sun8i-v3s.dtsi +++ b/arch/arm/boot/dts/sun8i-v3s.dtsi @@ -250,6 +250,25 @@ interrupts = ; }; + codec: codec@01c22c00 { + #sound-dai-cells = <0>; + compatible = "allwinner,sun8i-v3s-codec"; + reg = <0x01c22c00 0x400>; + interrupts = ; + clocks = <&ccu CLK_BUS_CODEC>, <&ccu CLK_AC_DIG>; + clock-names = "apb", "codec"; + resets = <&ccu RST_BUS_CODEC>; + dmas = <&dma 15>, <&dma 15>; + dma-names = "rx", "tx"; + allwinner,codec-analog-controls = <&codec_analog>; + status = "disabled"; + }; + + codec_analog: codec-analog@01c23000 { + compatible = "allwinner,sun8i-v3s-codec-analog"; + reg = <0x01c23000 0x4>; + }; + uart0: serial@01c28000 { compatible = "snps,dw-apb-uart"; reg = <0x01c28000 0x400>;