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: 4010241 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 5C1F49F2BA for ; Thu, 17 Apr 2014 18:10:10 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 9093420200 for ; Thu, 17 Apr 2014 18:10:09 +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 AEDC1201B9 for ; Thu, 17 Apr 2014 18:10:08 +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 1Waqj3-0005eH-Ij; Thu, 17 Apr 2014 18:07:53 +0000 Received: from mail-qc0-f202.google.com ([209.85.216.202]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1Waqj1-000511-DV for linux-arm-kernel@lists.infradead.org; Thu, 17 Apr 2014 18:07:51 +0000 Received: by mail-qc0-f202.google.com with SMTP id m20so104547qcx.3 for ; Thu, 17 Apr 2014 11:07:29 -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=eRRwoAt8OuEZKD6OLon7G+Cc25UpM8IiZV+ZX6K1Z1zszNYB8OGEycYkIZ+KDR6Mf9 6/U1PnLWnrsq9M+aRa854nSEeeSw1t+NalO1BX3OtOBSN8aYvFjhcEte/OT2Nth32Fyv KIbszmuiSpam31cbj3vhKJDZGKjUTV/F80Y0WQZws1fSmlTyPUP53SYUqYSkxFGYPhzq tJqeZDxOVHRYAF/K24CZ/G5ZbLfJCf3OvO7Hj712FuuJP8J74nCtUyqZjQPnwrRYCWBx SrPTAEj1iipp8Xkk1MzXXPDml1g6MJWA/sSdCTXm+Gqrm53ASXbbjdwpJZayyQvFDp68 2bYg== X-Gm-Message-State: ALoCoQl83Tj96pfxtWJjWCDgHRj8/MLlkfO+2cC29LJRP00bIWg6kFO7FuO1K0kHq111dYuk2pn5SOfoMnqv6v5ckutyzs8N/9PzUq22qO7SwEc3Ukuok8V+MT2sbp5iWjaTEvQyrqU3UiiUzOEufgH6VDNQbfRfMXo1nzfFQyD10/9Fr1L3DP1YaqB6xURsq5pGyoB0tkb+3Fh71sXfjf50p6yhlVZMxg== 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 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> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20140417_110751_523873_456C458E X-CRM114-Status: UNSURE ( 9.19 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -1.4 (-) Cc: Mark Rutland , devicetree@vger.kernel.org, linux-samsung-soc@vger.kernel.org, Russell King , Pawel Moll , Ian Campbell , abrestic@chromium.org, Simon Glass , Stephen Warren , Doug Anderson , linux-kernel@vger.kernel.org, linux-tegra@vger.kernel.org, Rob Herring , Thierry Reding , Kumar Gala , Olof Johansson , 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.6 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: 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>;