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: 4033821 Return-Path: X-Original-To: patchwork-linux-samsung-soc@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 0DDA9BFF02 for ; Tue, 22 Apr 2014 16:50:12 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id B012D201BA for ; Tue, 22 Apr 2014 16:50:07 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 486052025B for ; Tue, 22 Apr 2014 16:50:01 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933218AbaDVQru (ORCPT ); Tue, 22 Apr 2014 12:47:50 -0400 Received: from mail-pa0-f73.google.com ([209.85.220.73]:40215 "EHLO mail-pa0-f73.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933239AbaDVQqW (ORCPT ); Tue, 22 Apr 2014 12:46:22 -0400 Received: by mail-pa0-f73.google.com with SMTP id lj1so80191pab.4 for ; Tue, 22 Apr 2014 09:46:21 -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=LFrVaPKEebiwckx5bZEVSnShlh+6TLSAmc4HrOA/gTqRc/CRdDrB98fmdsuSLDE1rw jiJVYmLGZyIiedM909kMqaxZa5co0TOuez3rM+9ukFcpbutw6yxulR2Tt6NFYUjl9pXm lP8KkgokhFi5uHYIPKIwfjNwMSD2n9j+en7UxOKel+nFC7O8xmgjlgOYuKZlehbgor6n V0xRaFk8wppjbIJuozUmaTTzq75sDITjeposFlVAGKjH7cbqc90pdBDB4mfiZNFAqJ/G HtbcO720ant1Mr+ceGzcEjiAVr0WjbWDjBZ3rIbBJhi7IJYHsCDw6pBNEDLs7QYsWhx1 BOTw== X-Gm-Message-State: ALoCoQl4tTnptPnwN2cIGzoqI1J8cQliasdzw13Sv77jLoYHuu4OGGlJ89RI4zMmRtEB0PlI9cqn0hGsZpCE7tZpbEAo0K4MHVRS7C9P0QD4MyJ99hYlKUBXyr5/77AFz0tJPbeclASNda8N/zubdfyhgKOMuYAFPrpRug7uJp4s5hg9ITtJu7Rk2kU+wLKtS4y4+oMTv344TLGgPaZZRR8v75BesLHRlw== 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 Cc: abrestic@chromium.org, dgreid@chromium.org, olof@lixom.net, sjg@chromium.org, linux-samsung-soc@vger.kernel.org, linux-tegra@vger.kernel.org, Doug Anderson , robh+dt@kernel.org, pawel.moll@arm.com, mark.rutland@arm.com, ijc+devicetree@hellion.org.uk, galak@codeaurora.org, linux@arm.linux.org.uk, swarren@wwwdotorg.org, thierry.reding@gmail.com, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org 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> 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 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>;