From patchwork Thu Dec 17 14:21:51 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Caesar Wang X-Patchwork-Id: 7873761 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id B1299BEEE5 for ; Thu, 17 Dec 2015 14:26:06 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id DE62D20272 for ; Thu, 17 Dec 2015 14:26:05 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 0055720259 for ; Thu, 17 Dec 2015 14:26:05 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1a9ZU1-0004E0-46; Thu, 17 Dec 2015 14:24:41 +0000 Received: from mail-pf0-f175.google.com ([209.85.192.175]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1a9ZSt-0003CU-CJ; Thu, 17 Dec 2015 14:23:33 +0000 Received: by mail-pf0-f175.google.com with SMTP id o64so31768370pfb.3; Thu, 17 Dec 2015 06:23:10 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=TEkULI3F++NlWayECw0EAq/mx1a17L0Y/19Y8WG6JBo=; b=GTSjsuUposCxqyHNsRBCB5LW0cG80JqMNFX6B8/QwyxZcWThCxdbhBtNWSyG1/D3TT zpGxJY05VOaTuVlbV5P/fdbExftTCinbxysohGPSEDzvnABZ6eCUbDWNVGNjneYxxwME MaLLeXHeQ6gy/Dq6rAGtnXlqiFDywhRVwEHQuqaY82aTLRjstytB9HkqEBYRvp08cBJE pLazY8poSFFBTRn14ofoYQq/otPGq0ZCxcXU1BisI3PzKjHNUsHcqkg02KDbflEtQEbG kPtX7zXYDpAjDgmyXnIL/9OstYLfyyjmMoDSYedfyO/zNh4eqsL3yBLcoFdEdsrrGVWH UAwA== X-Received: by 10.98.73.135 with SMTP id r7mr14474593pfi.42.1450362190485; Thu, 17 Dec 2015 06:23:10 -0800 (PST) Received: from localhost.localdomain ([103.46.142.20]) by smtp.gmail.com with ESMTPSA id mj1sm16264330pab.34.2015.12.17.06.23.03 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 17 Dec 2015 06:23:09 -0800 (PST) From: Caesar Wang To: heiko@sntech.de Subject: [PATCH v1 5/6] ARM: dts: add the sound codec for kylin board Date: Thu, 17 Dec 2015 22:21:51 +0800 Message-Id: <1450362112-8075-6-git-send-email-wxt@rock-chips.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1450362112-8075-1-git-send-email-wxt@rock-chips.com> References: <1450362112-8075-1-git-send-email-wxt@rock-chips.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20151217_062331_813603_889BBE0F X-CRM114-Status: UNSURE ( 8.62 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -2.6 (--) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-rockchip@lists.infradead.org, linux-arm-kernel@lists.infradead.org, keescook@google.com, leozwang@google.com, Caesar Wang MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-2.5 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY, URIBL_BLACK autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Support the rt5616 codec for kylin board, but we need enable the i2s firstly. Signed-off-by: Caesar Wang --- arch/arm/boot/dts/rk3036-kylin.dts | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) diff --git a/arch/arm/boot/dts/rk3036-kylin.dts b/arch/arm/boot/dts/rk3036-kylin.dts index 69b1e1e..296139b 100644 --- a/arch/arm/boot/dts/rk3036-kylin.dts +++ b/arch/arm/boot/dts/rk3036-kylin.dts @@ -46,6 +46,28 @@ model = "Rockchip RK3036 KylinBoard"; compatible = "rockchip,rk3036-kylin", "rockchip,rk3036"; + sound { + compatible = "simple-audio-card"; + simple-audio-card,format = "i2s"; + simple-audio-card,name = "rockchip,rt5616-codec"; + simple-audio-card,mclk-fs = <64>; + simple-audio-card,widgets = + "Microphone", "Microphone Jack", + "Headphone", "Headphone Jack"; + simple-audio-card,routing = + "MIC1", "Microphone Jack", + "MIC2", "Microphone Jack", + "Microphone Jack", "micbias1", + "Headphone Jack", "HPOL", + "Headphone Jack", "HPOR"; + simple-audio-card,cpu { + sound-dai = <&i2s>; + }; + simple-audio-card,codec { + sound-dai = <&rt5616>; + }; + }; + vcc_sys: vsys-regulator { compatible = "regulator-fixed"; regulator-name = "vcc_sys"; @@ -261,6 +283,17 @@ &i2c2 { status = "okay"; + + rt5616: rt5616@1b { + #sound-dai-cells = <0>; + compatible = "rt5616"; + reg = <0x1b>; + }; +}; + +&i2s { + #sound-dai-cells = <0>; + status = "okay"; }; &lcdc {