From patchwork Wed Apr 30 17:44:10 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Doug Anderson X-Patchwork-Id: 4095471 Return-Path: X-Original-To: patchwork-linux-arm@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 6424D9F169 for ; Wed, 30 Apr 2014 17:54:14 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 939F1202F8 for ; Wed, 30 Apr 2014 17:54:13 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 96269202F2 for ; Wed, 30 Apr 2014 17:54:12 +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 1WfYgA-0007hn-Cy; Wed, 30 Apr 2014 17:52:22 +0000 Received: from mail-qa0-f73.google.com ([209.85.216.73]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1WfYg8-0007Xc-30 for linux-arm-kernel@lists.infradead.org; Wed, 30 Apr 2014 17:52:20 +0000 Received: by mail-qa0-f73.google.com with SMTP id m5so302005qaj.4 for ; Wed, 30 Apr 2014 10:51:58 -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=0S+MeBdqebYxmV+PEKTmw8BwaFioC/CSy1wwHrYDJrQ=; b=c04m5Attu/r9emi9cdjgWF9IU2ca9K5joYBujGujbh6kvTwBp2YaSRn7HPG3h1M4Td h+xBcv+vJH4dt/I+o8MsMY33fYnKvafZSDbgH33tvgvaAysWzmv78xXC90AYnUxKKYJm igHya0B4hPLv3cMF9M+ct2WtpdWNau0I9V+JEsXv07c1OfiHh93+LoCK5P9zL/2czpTj Dv6Q0wr9/AE0SOXso2FsXx7JzvRmGRSVB66yGd3/mbQ8y5jdo9WhfzaRWtOlm58MbZRq wYwo38kxZahVTXHBH5lXs8Imd5bQ09xcuNbon9shsLVjE9Ksjz04l9pXeUGBaOYmjipp GdKQ== X-Gm-Message-State: ALoCoQlLgkplH65sp98NzbUQDF1ve1T53eOenltLQABy/WlAQoGE0cpnsxsAp9GyjUN7d0GNzMYtH9W3r91rAXhRGiADzHkRtfR02efkuI6n/rLPQd9MlY+OIJkVNhMmU+UIN6dahgTsjcmsXKYMKUF49CEIrDrp0oxEDwKuGfhxI1RJvN5pi7EjmrNBgUQjgXfbUulHwQiyF9Q/W48tOhD/fsmjzJAR4A== X-Received: by 10.236.112.130 with SMTP id y2mr2796401yhg.6.1398879875188; Wed, 30 Apr 2014 10:44:35 -0700 (PDT) Received: from corp2gmr1-1.hot.corp.google.com (corp2gmr1-1.hot.corp.google.com [172.24.189.92]) by gmr-mx.google.com with ESMTPS id g21si3079223yhe.3.2014.04.30.10.44.35 for (version=TLSv1.1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 30 Apr 2014 10:44:35 -0700 (PDT) Received: from tictac.mtv.corp.google.com (tictac.mtv.corp.google.com [172.22.72.141]) by corp2gmr1-1.hot.corp.google.com (Postfix) with ESMTP id 0F55531C25A; Wed, 30 Apr 2014 10:44:35 -0700 (PDT) Received: by tictac.mtv.corp.google.com (Postfix, from userid 121310) id B7C8780B44; Wed, 30 Apr 2014 10:44:34 -0700 (PDT) From: Doug Anderson To: lee.jones@linaro.org, swarren@nvidia.com, wsa@the-dreams.de Subject: [PATCH v3 7/7] ARM: tegra: Add the EC i2c tunnel to tegra124-venice2 Date: Wed, 30 Apr 2014 10:44:10 -0700 Message-Id: <1398879850-9111-8-git-send-email-dianders@chromium.org> X-Mailer: git-send-email 1.9.1.423.g4596e3a In-Reply-To: <1398879850-9111-1-git-send-email-dianders@chromium.org> References: <1398879850-9111-1-git-send-email-dianders@chromium.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20140430_105220_197643_FDEE3FC2 X-CRM114-Status: UNSURE ( 9.62 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -1.4 (-) Cc: mark.rutland@arm.com, devicetree@vger.kernel.org, linux-samsung-soc@vger.kernel.org, linux@arm.linux.org.uk, pawel.moll@arm.com, ijc+devicetree@hellion.org.uk, abrestic@chromium.org, sjg@chromium.org, swarren@wwwdotorg.org, Doug Anderson , linux-kernel@vger.kernel.org, linux-tegra@vger.kernel.org, robh+dt@kernel.org, thierry.reding@gmail.com, galak@codeaurora.org, olof@lixom.net, dgreid@chromium.org, linux-arm-kernel@lists.infradead.org X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , 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,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 This adds the EC i2c tunnel (and devices under it) to the tegra124-venice2 device tree. Signed-off-by: Doug Anderson Tested-by: Andrew Bresticker Tested-by: Stephen Warren --- Changes in v3: None Changes in v2: - Removed i2c20 alias for i2c tunnel arch/arm/boot/dts/tegra124-venice2.dts | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/arch/arm/boot/dts/tegra124-venice2.dts b/arch/arm/boot/dts/tegra124-venice2.dts index c17283c..89cf776 100644 --- a/arch/arm/boot/dts/tegra124-venice2.dts +++ b/arch/arm/boot/dts/tegra124-venice2.dts @@ -813,6 +813,32 @@ google,cros-ec-spi-msg-delay = <2000>; + i2c-tunnel { + compatible = "google,cros-ec-i2c-tunnel"; + #address-cells = <1>; + #size-cells = <0>; + + google,remote-bus = <0>; + + charger: bq24735@9 { + compatible = "ti,bq24735"; + reg = <0x9>; + interrupt-parent = <&gpio>; + interrupts = ; + ti,ac-detect-gpios = <&gpio + TEGRA_GPIO(J, 0) + GPIO_ACTIVE_HIGH>; + }; + + battery: sbs-battery@b { + compatible = "sbs,sbs-battery"; + reg = <0xb>; + sbs,i2c-retry-count = <2>; + sbs,poll-retry-count = <1>; + }; + }; + cros-ec-keyb { compatible = "google,cros-ec-keyb"; keypad,num-rows = <8>;