From patchwork Thu Apr 24 06:16:58 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tushar Behera X-Patchwork-Id: 4045751 Return-Path: X-Original-To: patchwork-linux-samsung-soc@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 370049F319 for ; Thu, 24 Apr 2014 06:18:16 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 7204C2025A for ; Thu, 24 Apr 2014 06:18:15 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 906B520219 for ; Thu, 24 Apr 2014 06:18:14 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751821AbaDXGSN (ORCPT ); Thu, 24 Apr 2014 02:18:13 -0400 Received: from mail-pd0-f173.google.com ([209.85.192.173]:39481 "EHLO mail-pd0-f173.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750860AbaDXGSM (ORCPT ); Thu, 24 Apr 2014 02:18:12 -0400 Received: by mail-pd0-f173.google.com with SMTP id p10so1238265pdj.4 for ; Wed, 23 Apr 2014 23:18:11 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=+kUyzrn9z6VfcbHh4TP5wUaCwWNO7oFjct0hMx0S+AM=; b=PljDHeUWtKIUJpPSaMShp9qYPpenLzxqpTUgK2EuypISwyKRvoqt/o5Go2aVTQy2qH 0aOXjzMGbOCyvkQZ+4gdCTAMrFnvMAqF6LTPw+GLSYX4lpDYy2KokGISJlioHXdH0UcY TQ9qe77pRBiINHJLZzmCJU/rYkKGDJRb6dzyOK1SFtpq3TFjB5KxI9nzzbUJiLtz0l4l grBIO83f3450yKKxzBl3jpsP55NN8R3kRQiEoBmdlT+tfNAGQhnclS1KqihWG5AjYrQH PadXkOh3rfbChKxnXbZr/vdeFOAknvnBSk5NnFaxaEWMdtqc91gGGt+tEBXPy8ZhCS2o eylw== X-Gm-Message-State: ALoCoQmYjouY3CMSxmxmMEHjUQ0KVVVSINaxdhQ4z98NdvWnW4IXpZbCcFb8SYMEX5mW8lBewFQ6 X-Received: by 10.68.189.33 with SMTP id gf1mr61758362pbc.111.1398320291653; Wed, 23 Apr 2014 23:18:11 -0700 (PDT) Received: from linaro.sisodomain.com ([115.113.119.130]) by mx.google.com with ESMTPSA id yq4sm15419755pab.34.2014.04.23.23.18.09 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 23 Apr 2014 23:18:11 -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 1/2] ARM: dts: Add sound node for Snow board Date: Thu, 24 Apr 2014 11:46:58 +0530 Message-Id: <1398320219-23362-2-git-send-email-tushar.behera@linaro.org> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1398320219-23362-1-git-send-email-tushar.behera@linaro.org> References: <1398320219-23362-1-git-send-email-tushar.behera@linaro.org> Sender: linux-samsung-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-samsung-soc@vger.kernel.org X-Spam-Status: No, score=-7.5 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, UNPARSEABLE_RELAY 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 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 --- arch/arm/boot/dts/exynos5250-snow.dts | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/arch/arm/boot/dts/exynos5250-snow.dts b/arch/arm/boot/dts/exynos5250-snow.dts index 1bc9b50..f63df3c 100644 --- a/arch/arm/boot/dts/exynos5250-snow.dts +++ b/arch/arm/boot/dts/exynos5250-snow.dts @@ -196,6 +196,38 @@ }; }; + regulators { + compatible = "simple-bus"; + #address-cells = <1>; + #size-cells = <0>; + + max98095-en-regulator { + compatible = "regulator-fixed"; + gpio = <&gpx1 7 0>; + enable-active-high; + regulator-boot-on; + regulator-always-on; + }; + }; + + i2c@12CD0000 { + max98095: codec@11 { + compatible = "maxim,max98095"; + reg = <0x11>; + }; + }; + + 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>; };