From patchwork Sat Apr 27 22:14:10 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Olof Johansson X-Patchwork-Id: 2497511 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork1.kernel.org Received: from casper.infradead.org (casper.infradead.org [85.118.1.10]) by patchwork1.kernel.org (Postfix) with ESMTP id 1513D3FD1A for ; Sat, 27 Apr 2013 22:14:23 +0000 (UTC) Received: from merlin.infradead.org ([2001:4978:20e::2]) by casper.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1UWDNt-0004HJ-B2; Sat, 27 Apr 2013 22:14:21 +0000 Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1UWDNq-0002jp-P4; Sat, 27 Apr 2013 22:14:18 +0000 Received: from mail-pb0-x22e.google.com ([2607:f8b0:400e:c01::22e]) by merlin.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1UWDNo-0002jW-G4 for linux-arm-kernel@lists.infradead.org; Sat, 27 Apr 2013 22:14:16 +0000 Received: by mail-pb0-f46.google.com with SMTP id xa7so1509704pbc.5 for ; Sat, 27 Apr 2013 15:14:14 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-received:date:from:to:cc:subject:message-id:references :mime-version:content-type:content-disposition:in-reply-to :user-agent:x-gm-message-state; bh=IdJ4R95F1aymR3YYrQihKjKbNKwTSrUVmyG5/Ch3V3Y=; b=AJ9vsPQ/NiujKM6gzsSBC7yMJws4i4Ks0SKyIUocYN24cf2oLs4Pmk/APP108/1B34 WqX27smm6HxXXmYpm4/nUncnTVQrlpyC8ZIaBDTXhj3kPW+Zlmf58qWL5wSpVu9MevEF 5YL/hW2RDHmhBbXCsP0yW8Ktnc9LyLwoLVAhyRHLYSL/rhjeY90AAAgdRiKHJDIsTfWm 5r/095rdsKEIQM+OobZf+rlexrQ7ZiJSx87Q3hZMqc7f4GDxMR+rUarJv6RiZYFGJdU7 JL/aBGoaXDR1o1qDONrWodDOQvDyz3CLWbmRw53YM0QpQNGl5vr8lfOU/CZRN9crYCeJ gv2g== X-Received: by 10.68.180.67 with SMTP id dm3mr64336887pbc.110.1367100854737; Sat, 27 Apr 2013 15:14:14 -0700 (PDT) Received: from localhost ([2001:470:1f05:1640:c01f:8244:f6f5:8caf]) by mx.google.com with ESMTPSA id qi1sm18705927pac.21.2013.04.27.15.14.12 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Sat, 27 Apr 2013 15:14:13 -0700 (PDT) Date: Sat, 27 Apr 2013 15:14:10 -0700 From: Olof Johansson To: kgene.kim@samsung.com Subject: [PATCH v2] ARM: exynos: dts: cros5250: add EC device Message-ID: <20130427221410.GA10618@quad.lixom.net> References: <1367019745-31826-1-git-send-email-olof@lixom.net> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <1367019745-31826-1-git-send-email-olof@lixom.net> User-Agent: Mutt/1.5.21 (2010-09-15) X-Gm-Message-State: ALoCoQl+y77dULVnnKKFhPTPyO4Z3aYkUZAe30xBEn3/N+3pzRZuqMSo2CRA7Iel+n5T6jg3SBz5 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20130427_181416_641332_7310AB0F X-CRM114-Status: GOOD ( 13.18 ) X-Spam-Score: -1.9 (-) X-Spam-Report: SpamAssassin version 3.3.2 on merlin.infradead.org summary: Content analysis details: (-1.9 points) pts rule name description ---- ---------------------- -------------------------------------------------- -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] Cc: dianders@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: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org Add basic EC information to device tree, currently only describing the keyboard and keymap. Signed-off-by: Olof Johansson Reviewed-by: Doug Anderson --- This builds on the previous patch from Doug to add arbitration (and the sbs-battery dts patch). arch/arm/boot/dts/exynos5250-snow.dts | 96 +++++++++++++++++++++++++++++++++++ 1 file changed, 96 insertions(+) diff --git a/arch/arm/boot/dts/exynos5250-snow.dts b/arch/arm/boot/dts/exynos5250-snow.dts index c115143..ad25e66 100644 --- a/arch/arm/boot/dts/exynos5250-snow.dts +++ b/arch/arm/boot/dts/exynos5250-snow.dts @@ -72,6 +72,102 @@ reg = <0xb>; sbs,poll-retry-count = <1>; }; + + ec: embedded-controller { + compatible = "google,cros-ec-i2c"; + reg = <0x1e>; + interrupts = <6 0>; + interrupt-parent = <&gpx1>; + wakeup-source; + + keyboard-controller { + compatible = "google,cros-ec-keyb"; + keypad,num-rows = <8>; + keypad,num-columns = <13>; + google,needs-ghost-filter; + linux,keymap = <0x0001003a /* CAPSLK */ + 0x0002003b /* F1 */ + 0x00030030 /* B */ + 0x00040044 /* F10 */ + 0x00060031 /* N */ + 0x0008000d /* = */ + 0x000a0064 /* R_ALT */ + + 0x01010001 /* ESC */ + 0x0102003e /* F4 */ + 0x01030022 /* G */ + 0x01040041 /* F7 */ + 0x01060023 /* H */ + 0x01080028 /* ' */ + 0x01090043 /* F9 */ + 0x010b000e /* BKSPACE */ + + 0x0200001d /* L_CTRL */ + 0x0201000f /* TAB */ + 0x0202003d /* F3 */ + 0x02030014 /* T */ + 0x02040040 /* F6 */ + 0x0205001b /* ] */ + 0x02060015 /* Y */ + 0x02070056 /* 102ND */ + 0x0208001a /* [ */ + 0x02090042 /* F8 */ + + 0x03010029 /* GRAVE */ + 0x0302003c /* F2 */ + 0x03030006 /* 5 */ + 0x0304003f /* F5 */ + 0x03060007 /* 6 */ + 0x0308000c /* - */ + 0x030b002b /* \ */ + + 0x04000061 /* R_CTRL */ + 0x0401001e /* A */ + 0x04020020 /* D */ + 0x04030021 /* F */ + 0x0404001f /* S */ + 0x04050025 /* K */ + 0x04060024 /* J */ + 0x04080027 /* ; */ + 0x04090026 /* L */ + 0x040b001c /* ENTER */ + + 0x0501002c /* Z */ + 0x0502002e /* C */ + 0x0503002f /* V */ + 0x0504002d /* X */ + 0x05050033 /* , */ + 0x05060032 /* M */ + 0x0507002a /* L_SHIFT */ + 0x05080035 /* / */ + 0x05090034 /* . */ + 0x050B0039 /* SPACE */ + + 0x06010002 /* 1 */ + 0x06020004 /* 3 */ + 0x06030005 /* 4 */ + 0x06040003 /* 2 */ + 0x06050009 /* 8 */ + 0x06060008 /* 7 */ + 0x0608000b /* 0 */ + 0x0609000a /* 9 */ + 0x060a0038 /* L_ALT */ + 0x060b006c /* DOWN */ + 0x060c006a /* RIGHT */ + + 0x07010010 /* Q */ + 0x07020012 /* E */ + 0x07030013 /* R */ + 0x07040011 /* W */ + 0x07050017 /* I */ + 0x07060016 /* U */ + 0x07070036 /* R_SHIFT */ + 0x07080019 /* P */ + 0x07090018 /* O */ + 0x070b0067 /* UP */ + 0x070c0069>; /* LEFT */ + }; + }; }; };