From patchwork Thu Apr 17 17:59:30 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Doug Anderson X-Patchwork-Id: 4010131 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 1ABD6C0DA2 for ; Thu, 17 Apr 2014 18:01:41 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 4CDF320117 for ; Thu, 17 Apr 2014 18:01:40 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 77C8D201DE for ; Thu, 17 Apr 2014 18:01:39 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752839AbaDQSB1 (ORCPT ); Thu, 17 Apr 2014 14:01:27 -0400 Received: from mail-qg0-f73.google.com ([209.85.192.73]:51213 "EHLO mail-qg0-f73.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751529AbaDQSAT (ORCPT ); Thu, 17 Apr 2014 14:00:19 -0400 Received: by mail-qg0-f73.google.com with SMTP id q108so34347qgd.2 for ; Thu, 17 Apr 2014 11:00:18 -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=LtD7BBEYMr7Wai4pEP0wLlS4vxg96DArakzN70+VXpI=; b=CVU5OmVuMXD6m4dBe8wvexBB2lVgMbo+urEgpdiF9jEnNDudC4voAcJGQedhAy5PE5 SEHuSQfXFnDgRJIc+uF62wFt3SS2uCCQfnywUuKhmyfHGYQlsgBjvEZDj5ShbPYQ1DV1 LyKZM4aOhUDVK32VQy7zuKykwaeCaGL2Z4Ip2eHlTypWkJ+FaXfuElm7pAsxJhPP7hpA 0PnnnGUpXXs32wp2rOG8NqTNta6QfrtNOvxvCHZhCJTTlahDhf/emzYGyw/PzhDjONcb ZFMBOX8du2ZWAPx6yJTm6+cZ61CeRvsBZFSgG9GybHdX3fdtwIfTCCpluVTThLjIE3j2 /RwA== X-Gm-Message-State: ALoCoQlZFAqnOfOvoal/CJTFPcUPhBXVn2D6cw/Yzw+uLcm85DsdDNVVlSdtobZ5Z3vGywLClLregzgMBSYOZZiz45gCW6NbbX1B19NBO/9D056mfNsbeHGfkCNzm5yO3VdNhvsp0NMnrC6DnzS/cjUO+TNzRYlAVZnLiWB3ZuR2YEiYpeVqPB9v3sneJuUwOWCUtPvohQEpiaFRgGf2I1bqZXl0Bh3g8w== X-Received: by 10.236.159.99 with SMTP id r63mr7715284yhk.7.1397757618249; Thu, 17 Apr 2014 11:00:18 -0700 (PDT) Received: from corp2gmr1-2.hot.corp.google.com (corp2gmr1-2.hot.corp.google.com [172.24.189.93]) by gmr-mx.google.com with ESMTPS id g21si3610835yhe.3.2014.04.17.11.00.18 for (version=TLSv1.1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 17 Apr 2014 11:00:18 -0700 (PDT) Received: from tictac.mtv.corp.google.com (tictac.mtv.corp.google.com [172.22.72.141]) by corp2gmr1-2.hot.corp.google.com (Postfix) with ESMTP id 0FE705A4274; Thu, 17 Apr 2014 11:00:18 -0700 (PDT) Received: by tictac.mtv.corp.google.com (Postfix, from userid 121310) id C3A8B805CE; Thu, 17 Apr 2014 11:00:17 -0700 (PDT) From: Doug Anderson To: Lee Jones , Stephen Warren , Wolfram Sang Cc: abrestic@chromium.org, dgreid@chromium.org, Olof Johansson , Simon Glass , linux-samsung-soc@vger.kernel.org, linux-tegra@vger.kernel.org, Doug Anderson , Rob Herring , Pawel Moll , Mark Rutland , Ian Campbell , Kumar Gala , Russell King , Stephen Warren , Thierry Reding , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH 7/7] ARM: tegra: Add the EC i2c tunnel to tegra124-venice2 Date: Thu, 17 Apr 2014 10:59:30 -0700 Message-Id: <1397757570-19750-8-git-send-email-dianders@chromium.org> X-Mailer: git-send-email 1.9.1.423.g4596e3a In-Reply-To: <1397757570-19750-1-git-send-email-dianders@chromium.org> References: <1397757570-19750-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.6 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: Stephen Warren --- arch/arm/boot/dts/tegra124-venice2.dts | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/arch/arm/boot/dts/tegra124-venice2.dts b/arch/arm/boot/dts/tegra124-venice2.dts index c17283c..df97d15 100644 --- a/arch/arm/boot/dts/tegra124-venice2.dts +++ b/arch/arm/boot/dts/tegra124-venice2.dts @@ -8,6 +8,7 @@ compatible = "nvidia,venice2", "nvidia,tegra124"; aliases { + i2c20 = "/spi@0,7000d400/cros-ec@0/i2c-tunnel"; rtc0 = "/i2c@0,7000d000/pmic@40"; rtc1 = "/rtc@0,7000e000"; }; @@ -813,6 +814,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>;