From patchwork Tue Apr 22 16:45:54 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Doug Anderson X-Patchwork-Id: 4033831 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 554BA9F319 for ; Tue, 22 Apr 2014 16:50:38 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id ECF09201C8 for ; Tue, 22 Apr 2014 16:50:33 +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 54C24201BA for ; Tue, 22 Apr 2014 16:50:30 +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 1Wcdrl-0002Ue-2z; Tue, 22 Apr 2014 16:48:17 +0000 Received: from mail-pa0-f74.google.com ([209.85.220.74]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1WcdqK-0002Qu-S6 for linux-arm-kernel@lists.infradead.org; Tue, 22 Apr 2014 16:46:49 +0000 Received: by mail-pa0-f74.google.com with SMTP id fb1so738002pad.5 for ; Tue, 22 Apr 2014 09:46:22 -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=akT2IStwFfE4C2etImWhH6MTy4Y3wQE80yXF/6Yl1HA=; b=WAVFtZ3rCgrNy8ifAHhHKg36ZWChuICsG3dJaQjxvWXTD62U7aG3yL7nTtRnLTqM0w JBBmjpt2htx/RJSPsMQV0vE8DPt6i5/rLUCdBNXYAnLSKB0AdQyN37EG+8/e6hD5DBQN n1YeaBzoIOEYLOtgDlrea3MCErJUpIlq/idSHD2JeoogyuLwnDcbhS+HBw3zg1o44bFT 2XGNbySDRiJ5Gyr/saobxaYWY+YYGQqOB6SbGYRYBSCNQKBm8eL7c4RVieY92xX/deNj RzZdArZBU73J544aMO1CEDsbN0517Wtk8XbmQveqoYzAyR8SqAkNokgwMCcgsNsK6ict w4Dg== X-Gm-Message-State: ALoCoQlUlzb3lAnQrMSOsseFaEkaOEfJWXOhhtq+FbLS1uPwBpOQW4MEigQwIxltAJ4/CVdqX1DvS+EdA6igBYbuXewZw9EJBv2HJEqJiKfe0HLLdf6R9AYJ8D0PoAYXUEqsNeYOYgGoaVRlwb+KyjVin12KVYcKdqtDBRvzF8DReuqQsrau/tlNoQXKdDBPmtSU9ablakhokzyAgDXfy6kzNhLdLf2x8Q== X-Received: by 10.66.66.196 with SMTP id h4mr21936550pat.22.1398185181332; Tue, 22 Apr 2014 09:46:21 -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 f65si5663979yhg.7.2014.04.22.09.46.21 for (version=TLSv1.1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 22 Apr 2014 09:46:21 -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 1BCFF31C269; Tue, 22 Apr 2014 09:46:21 -0700 (PDT) Received: by tictac.mtv.corp.google.com (Postfix, from userid 121310) id D185880EFE; Tue, 22 Apr 2014 09:46:20 -0700 (PDT) From: Doug Anderson To: lee.jones@linaro.org, swarren@nvidia.com, wsa@the-dreams.de Subject: [PATCH v2 7/7] ARM: tegra: Add the EC i2c tunnel to tegra124-venice2 Date: Tue, 22 Apr 2014 09:45:54 -0700 Message-Id: <1398185154-19404-8-git-send-email-dianders@chromium.org> X-Mailer: git-send-email 1.9.1.423.g4596e3a In-Reply-To: <1398185154-19404-1-git-send-email-dianders@chromium.org> References: <1398185154-19404-1-git-send-email-dianders@chromium.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20140422_094648_921295_E9EFAB24 X-CRM114-Status: GOOD ( 10.11 ) 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 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>;