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: 4095431 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 D14989F169 for ; Wed, 30 Apr 2014 17:46:45 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 1094F202E6 for ; Wed, 30 Apr 2014 17:46:45 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 33B7420172 for ; Wed, 30 Apr 2014 17:46:44 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1759235AbaD3RqH (ORCPT ); Wed, 30 Apr 2014 13:46:07 -0400 Received: from mail-yh0-f73.google.com ([209.85.213.73]:44748 "EHLO mail-yh0-f73.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1759107AbaD3Rof (ORCPT ); Wed, 30 Apr 2014 13:44:35 -0400 Received: by mail-yh0-f73.google.com with SMTP id b6so300021yha.4 for ; Wed, 30 Apr 2014 10:44:35 -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=Ymiwg7Gt/mt3Au/H0MotgahxWUMs4LEInttW9IrDAcv1h7nGtfCNg4Ls4xtNPyDr94 pPO93fUmQXEZuNLWMJ4avp/gfvKYqys8cI07bMba+b+n6HIEQm1tPm2qnnWaI2W74d3N sLrAWskqSj/59/5QfsEfmPknKdXVeDjMOx79ngZvZ9hcefYeEbMmOC1tqkBoxTo3Yz5p 1MwZBW6lEnM4GIbd9so9OpWabGlg3XM7FAowulG7miVjT4qdEjpViP3nYgyzZDcf/a0q cH4X9H/mOfEs04cmMTiOjBpmucFuZWawVXR5GS9lnM4MQ30u7jwe0GD6Bz4tMpnMBbrU Ufcw== X-Gm-Message-State: ALoCoQkHjbY6F+Ma3sJWOfaztHh+7p2N0mcyvovtj3iqs6eCmq2kvBcP19WQA+uOCaT4umB0aj081Pl1CATykgMlEaTw8hZKE/9XbPw+Lf1CIq1ZdS1lYe1Y3P/ExXyXopAYrtt2Zs0D3MgaRnJgf9VNAaQiW6F1uq87praH0Ku15MF0PXF8dOObAUzojFr6Gp3QfWyUHI6bx6bo9UjgIyCyQBEoNeAdfA== 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 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 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> 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 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>;