From patchwork Wed May 7 04:52:27 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tushar Behera X-Patchwork-Id: 29745 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-yh0-f71.google.com (mail-yh0-f71.google.com [209.85.213.71]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 8D293202E6 for ; Wed, 7 May 2014 04:54:12 +0000 (UTC) Received: by mail-yh0-f71.google.com with SMTP id 29sf1683287yhl.10 for ; Tue, 06 May 2014 21:54:12 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:delivered-to:from:to:cc:subject :date:message-id:in-reply-to:references:sender:precedence:list-id :x-original-sender:x-original-authentication-results:mailing-list :list-post:list-help:list-archive:list-unsubscribe; bh=ldTLQEFRAFwBOeIApjRqEzRiqh4z1PfUXRocu/PV+GE=; b=bw8XDMhD/17JPT5TpJ8ucJufbra9zAbjBkLfsXHuiQFpbe3sy2ExF9aYwwwTmZk8xX 0HMKyf/BY3fnYM2uzPosqC2R0Dc5vnyc7U6eAc75RT/9Ej+RWBo5PoHHy3An3GA53dYV GyTI1iNWjP24GCtDQmFEHOq0mulp42smb7uJp1XKSQTRYyQLuijBkfSVLdRLTF5AHR6q ad1/G4XZKwApSWOW7xUy8KmfUgoVvUYAFUVzXGxfFkeoXvgtti9GSE1YBE9UZmKimST/ K15HVCjBxa55vciBN0KKMhsHvn52fzWiW56OmTwYsL5sqkhnXTmgl+ZhfrxHuUk3UngL E0RA== X-Gm-Message-State: ALoCoQl7tdLmGIXZQETpS7sYsrakRA1x7l10chjJRo5GgJ0aYg893Z/w58R4BTlXDvfOrLVo67MQ X-Received: by 10.236.199.108 with SMTP id w72mr2819915yhn.10.1399438452357; Tue, 06 May 2014 21:54:12 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.19.9 with SMTP id 9ls3167581qgg.75.gmail; Tue, 06 May 2014 21:54:12 -0700 (PDT) X-Received: by 10.220.92.135 with SMTP id r7mr36750635vcm.11.1399438452253; Tue, 06 May 2014 21:54:12 -0700 (PDT) Received: from mail-vc0-f176.google.com (mail-vc0-f176.google.com [209.85.220.176]) by mx.google.com with ESMTPS id sw4si2696020vdc.30.2014.05.06.21.54.12 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 06 May 2014 21:54:12 -0700 (PDT) Received-SPF: none (google.com: patch+caf_=patchwork-forward=linaro.org@linaro.org does not designate permitted sender hosts) client-ip=209.85.220.176; Received: by mail-vc0-f176.google.com with SMTP id lg15so578526vcb.35 for ; Tue, 06 May 2014 21:54:12 -0700 (PDT) X-Received: by 10.58.65.10 with SMTP id t10mr4626126ves.34.1399438452145; Tue, 06 May 2014 21:54:12 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.220.221.72 with SMTP id ib8csp277755vcb; Tue, 6 May 2014 21:54:11 -0700 (PDT) X-Received: by 10.66.66.202 with SMTP id h10mr14331916pat.70.1399438450794; Tue, 06 May 2014 21:54:10 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id nt4si1192206pbb.285.2014.05.06.21.54.10; Tue, 06 May 2014 21:54:10 -0700 (PDT) Received-SPF: none (google.com: devicetree-owner@vger.kernel.org does not designate permitted sender hosts) client-ip=209.132.180.67; Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751190AbaEGEyI (ORCPT + 8 others); Wed, 7 May 2014 00:54:08 -0400 Received: from mail-pd0-f178.google.com ([209.85.192.178]:44265 "EHLO mail-pd0-f178.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751691AbaEGEyH (ORCPT ); Wed, 7 May 2014 00:54:07 -0400 Received: by mail-pd0-f178.google.com with SMTP id r10so528586pdi.37 for ; Tue, 06 May 2014 21:54:07 -0700 (PDT) X-Received: by 10.67.22.105 with SMTP id hr9mr14365550pad.57.1399438446944; Tue, 06 May 2014 21:54:06 -0700 (PDT) Received: from linaro.sisodomain.com ([14.140.216.146]) by mx.google.com with ESMTPSA id ov4sm748855pbc.46.2014.05.06.21.54.04 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 06 May 2014 21:54:06 -0700 (PDT) From: Tushar Behera To: linux-samsung-soc@vger.kernel.org, devicetree@vger.kernel.org Cc: kgene.kim@samsung.com, robh+dt@kernel.org Subject: [PATCH V2 1/2] ARM: dts: Add sound node for Snow board Date: Wed, 7 May 2014 10:22:27 +0530 Message-Id: <1399438348-10819-2-git-send-email-tushar.behera@linaro.org> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1399438348-10819-1-git-send-email-tushar.behera@linaro.org> References: <1399438348-10819-1-git-send-email-tushar.behera@linaro.org> Sender: devicetree-owner@vger.kernel.org Precedence: list List-ID: X-Mailing-List: devicetree@vger.kernel.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: tushar.behera@linaro.org X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: patch+caf_=patchwork-forward=linaro.org@linaro.org does not designate permitted sender hosts) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , The audio codec on Snow board, MAX98095 is connected on I2C7 bus. Also it requires the GPX1-7 line to be pulled up. Updated Snow DTS file to incorporate above changes and added a sound node to instantiate the I2S-based sound card. Signed-off-by: Tushar Behera --- Changes for V2: 1. GPX1-7 gpio is now configured through pincontrol, earlier it was configured through a fixed-regualtor. arch/arm/boot/dts/exynos5250-snow.dts | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/arch/arm/boot/dts/exynos5250-snow.dts b/arch/arm/boot/dts/exynos5250-snow.dts index 1ce1088..809af33 100644 --- a/arch/arm/boot/dts/exynos5250-snow.dts +++ b/arch/arm/boot/dts/exynos5250-snow.dts @@ -37,6 +37,13 @@ sd3_bus4: sd3-bus-width4 { samsung,pin-drv = <0>; }; + + max98095_en: max98095-en { + samsung,pins = "gpx1-7"; + samsung,pin-function = <0>; + samsung,pin-pud = <3>; + samsung,pin-drv = <0>; + }; }; gpio-keys { @@ -196,6 +203,26 @@ }; }; + i2c@12CD0000 { + max98095: codec@11 { + compatible = "maxim,max98095"; + reg = <0x11>; + pinctrl-0 = <&max98095_en>; + pinctrl-names = "default"; + }; + }; + + i2s0: i2s@03830000 { + status = "okay"; + }; + + sound { + compatible = "google,snow-audio-max98095"; + + samsung,i2s-controller = <&i2s0>; + samsung,audio-codec = <&max98095>; + }; + usb@12110000 { samsung,vbus-gpio = <&gpx1 1 0>; };