From patchwork Tue Dec 22 09:33:50 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Caesar Wang X-Patchwork-Id: 7903191 Return-Path: X-Original-To: patchwork-linux-rockchip@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 2D83A9F1AF for ; Tue, 22 Dec 2015 09:35:11 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 61691205BB for ; Tue, 22 Dec 2015 09:35:10 +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 860A9205B3 for ; Tue, 22 Dec 2015 09:35:09 +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 1aBJLZ-0004Q7-65; Tue, 22 Dec 2015 09:35:09 +0000 Received: from mail-pf0-f172.google.com ([209.85.192.172]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1aBJLB-0003s0-Kj; Tue, 22 Dec 2015 09:34:46 +0000 Received: by mail-pf0-f172.google.com with SMTP id u7so57355645pfb.1; Tue, 22 Dec 2015 01:34:25 -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=rouNrziPldi4X/1CGq50BjmDdwXPgqKIRuSpSoUWe1s=; b=LnUGPmM4Ps4Hb7/QxzR8nwhSZT10jgHHZOU/WxsDYc29NytAamUfuMjUeVRjlV/lrz dnPy4OlYJPi2E8V95+3ZVNNILuxBkCU777Rd+bpreUcd3XVAyAsW+h8SCOJCrgUhsK4Z ESxJUbEzk2FY1sKXtTkVyYl2oFgNDKB09kEnaLg75722t6NfGJwdlLvYYtykP9qYUDV1 KYAYAmrzR5cvg8bv9oaOP5zFvSxqA0W/WrHa4mr1B8ugRQzETOECqBHzuYMl+pzr2dCI TK9PIUxJ4YqYP8WlR2xEcDxukK1EMkvPU2oTQmdwWDodipQ/0JpS7c5lIlRM6CFJePmN JMBw== X-Received: by 10.98.42.205 with SMTP id q196mr34213970pfq.74.1450776864907; Tue, 22 Dec 2015 01:34:24 -0800 (PST) Received: from localhost.localdomain ([103.29.142.67]) by smtp.gmail.com with ESMTPSA id o2sm44624204pap.31.2015.12.22.01.34.21 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 22 Dec 2015 01:34:23 -0800 (PST) From: Caesar Wang To: heiko@sntech.de Subject: [PATCH 2/5] ARM: dts: add the sound codec for kylin board Date: Tue, 22 Dec 2015 17:33:50 +0800 Message-Id: <1450776833-27639-3-git-send-email-wxt@rock-chips.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1450776833-27639-1-git-send-email-wxt@rock-chips.com> References: <1450776833-27639-1-git-send-email-wxt@rock-chips.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20151222_013445_849552_D3500787 X-CRM114-Status: UNSURE ( 8.43 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -2.4 (--) X-BeenThere: linux-rockchip@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Upstream kernel work for Rockchip platforms 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, leecam@google.com, linux-arm-kernel@lists.infradead.org, keescook@google.com, leozwang@google.com, Caesar Wang MIME-Version: 1.0 Sender: "Linux-rockchip" Errors-To: linux-rockchip-bounces+patchwork-linux-rockchip=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable 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 992f9ca..bb7e549 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"; @@ -257,6 +279,17 @@ &i2c2 { status = "okay"; + + rt5616: rt5616@1b { + #sound-dai-cells = <0>; + compatible = "rt5616"; + reg = <0x1b>; + }; +}; + +&i2s { + #sound-dai-cells = <0>; + status = "okay"; }; &sdio {