From patchwork Mon Feb 22 08:33:26 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Linus Walleij X-Patchwork-Id: 62476 Delivered-To: patch@linaro.org Received: by 10.112.43.199 with SMTP id y7csp1096290lbl; Mon, 22 Feb 2016 00:34:59 -0800 (PST) X-Received: by 10.66.250.199 with SMTP id ze7mr36639234pac.103.1456130099801; Mon, 22 Feb 2016 00:34:59 -0800 (PST) Return-Path: Received: from bombadil.infradead.org (bombadil.infradead.org. [2001:1868:205::9]) by mx.google.com with ESMTPS id lk8si38223037pab.112.2016.02.22.00.34.59 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 22 Feb 2016 00:34:59 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-arm-kernel-bounces+patch=linaro.org@lists.infradead.org designates 2001:1868:205::9 as permitted sender) client-ip=2001:1868:205::9; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-arm-kernel-bounces+patch=linaro.org@lists.infradead.org designates 2001:1868:205::9 as permitted sender) smtp.mailfrom=linux-arm-kernel-bounces+patch=linaro.org@lists.infradead.org; dkim=neutral (body hash did not verify) header.i=@linaro.org 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 1aXlwJ-0005Ll-8h; Mon, 22 Feb 2016 08:33:55 +0000 Received: from mail-lf0-x22f.google.com ([2a00:1450:4010:c07::22f]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1aXlwG-0005GZ-R4 for linux-arm-kernel@lists.infradead.org; Mon, 22 Feb 2016 08:33:53 +0000 Received: by mail-lf0-x22f.google.com with SMTP id l143so88855117lfe.2 for ; Mon, 22 Feb 2016 00:33:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=Cm4Xj8wbxnk7sr2jW/l2tV+aSzeWKqpGJXNlO4ULWfQ=; b=VHBQ+hrN//S4BGa4hYb0gh5ypR+A8PXRBP7wjYYGwo2MoyIqCFWoifovgHqxtvy3BK ScKSgv+XoOBvTZ/dtjWk0PcjjnlR/PG0O8UHqfkIYRH6LdyL/L8WTwUGGXa5/+0OH1VW dr372168nNpMBY4cIkuNmFUscM5injlSW/f4Y= 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; bh=Cm4Xj8wbxnk7sr2jW/l2tV+aSzeWKqpGJXNlO4ULWfQ=; b=WDXbJW78hSxKJrjo+/UWYWidI534Ty7/89w2JfqaGkcSPtJqi3tQlKie8ZLOn80BCb nCq7OPQCZQSFDKo7BE1Op6KAVwaPEJksjjGTN1bVSpZ9e3ypDr9TvMW4RU4bD/haSP4K l9z0cLbczuzN3CpAkdiXonV6Pa/jFvHD/Y4S6n/QF4eG3IJkALfcvjCiOWusBcv32aTL DLp1Kia8jkZV1rHd2j6WQ1x5ghZ6S2i5nBFuaacS8l6QGwG9tNTuVBzQ7xc56ZuHbxeb a+/HptLKXROmAwqm5oPs3GcEYYRIw5ZrtS6w0i3z636rzd7q8XAXDnYdu+Ag96kGJavJ kyPg== X-Gm-Message-State: AG10YOSDGmR0P6z+mAnntBBdbYVqUgD14h0ty6Syhj5r0uKCpGXOA4AyLTaHVr0bIm4P7FQg X-Received: by 10.25.44.213 with SMTP id s204mr9719109lfs.148.1456130010986; Mon, 22 Feb 2016 00:33:30 -0800 (PST) Received: from localhost.localdomain ([85.235.10.227]) by smtp.gmail.com with ESMTPSA id uj8sm3103990lbb.43.2016.02.22.00.33.29 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 22 Feb 2016 00:33:30 -0800 (PST) From: Linus Walleij To: arm@kernel.org Subject: [PATCH] ARM: Ux500: add synaptics RMI4 for Ux500 TVK DT Date: Mon, 22 Feb 2016 09:33:26 +0100 Message-Id: <1456130006-4169-1-git-send-email-linus.walleij@linaro.org> X-Mailer: git-send-email 2.4.3 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20160222_003353_055516_724B54C3 X-CRM114-Status: GOOD ( 15.22 ) X-Spam-Score: -2.7 (--) X-Spam-Report: SpamAssassin version 3.4.0 on bombadil.infradead.org summary: Content analysis details: (-2.7 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low trust [2a00:1450:4010:c07:0:0:0:22f listed in] [list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Linus Walleij , linux-arm-kernel@lists.infradead.org MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patch=linaro.org@lists.infradead.org This adds the Synaptics RMI4 touchscreen to the Ux500 TVK user interface board. Tested on the U8500 HREFv60plus with the TVK UIB. Signed-off-by: Linus Walleij --- ARM SoC maintainers: please apply this patch directly for-next on some DT branch, I have no other Ux500 DT patches. These bindings are ACKed by Rob Herring in another thread so I think it's pointless to keep it out of tree. --- arch/arm/boot/dts/ste-href-tvk1281618.dtsi | 37 +++++++++++++++++++++++++++++- 1 file changed, 36 insertions(+), 1 deletion(-) -- 2.4.3 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel diff --git a/arch/arm/boot/dts/ste-href-tvk1281618.dtsi b/arch/arm/boot/dts/ste-href-tvk1281618.dtsi index b7b4211c5353..55f9d0cc90f3 100644 --- a/arch/arm/boot/dts/ste-href-tvk1281618.dtsi +++ b/arch/arm/boot/dts/ste-href-tvk1281618.dtsi @@ -37,7 +37,6 @@ }; soc { - /* Add Synaptics touch screen, TC35893 keypad etc here */ i2c@80004000 { tc35893@44 { compatible = "toshiba,tc35893"; @@ -159,6 +158,33 @@ vddio-supply = <&db8500_vsmps2_reg>; }; }; + + i2c@80110000 { + synaptics@4b { + /* Synaptics RMI4 TM1217 touchscreen */ + compatible = "syna,rmi4-i2c"; + #address-cells = <1>; + #size-cells = <0>; + reg = <0x4b>; + vdd-supply = <&ab8500_ldo_aux1_reg>; + vddio-supply = <&db8500_vsmps2_reg>; + pinctrl-names = "default"; + pinctrl-0 = <&synaptics_tvk_mode>; + interrupt-parent = <&gpio2>; + interrupts = <20 IRQ_TYPE_EDGE_FALLING>; + + rmi-f01@1 { + reg = <0x1>; + syna,nosleep = <1>; + }; + rmi-f11@11 { + reg = <0x11>; + touchscreen-inverted-x; + syna,sensor-type = <1>; + }; + }; + }; + pinctrl { /* Pull up this GPIO pin */ tc35893 { @@ -212,6 +238,15 @@ }; }; }; + synaptics { + synaptics_tvk_mode: synaptics_tvk { + /* Touchscreen uses GPIO 84 */ + tvk_cfg1 { + pins = "GPIO84_C2"; + ste,config = <&gpio_in_pu>; + }; + }; + }; }; }; };