Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752899AbbH1QAo (ORCPT ); Fri, 28 Aug 2015 12:00:44 -0400 Received: from mout.perfora.net ([74.208.4.197]:57531 "EHLO mout.perfora.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752406AbbH1QAl (ORCPT ); Fri, 28 Aug 2015 12:00:41 -0400 From: Marcel Ziswiler To: linux-tegra@vger.kernel.org Cc: Marcel Ziswiler , Russell King , Thierry Reding , devicetree@vger.kernel.org, Kumar Gala , Stephen Warren , linux-kernel@vger.kernel.org, Ian Campbell , Rob Herring , Pawel Moll , Mark Rutland , Alexandre Courbot , linux-arm-kernel@lists.infradead.org Subject: [PATCH 07/11] arm: tegra: colibri_t30: activate stmpe811 touch controller Date: Fri, 28 Aug 2015 17:59:42 +0200 Message-Id: <1440777586-19545-8-git-send-email-marcel.ziswiler@toradex.com> X-Mailer: git-send-email 2.4.3 In-Reply-To: <1440777586-19545-1-git-send-email-marcel.ziswiler@toradex.com> References: <1440777586-19545-1-git-send-email-marcel.ziswiler@toradex.com> X-Provags-ID: V03:K0:6v5KHSATpwpF4/5LGkeZ8coH1pkOlxO3cm+YUqmyNwUXWBmEcMf xRowlbNrDEilQiUO7SDDR/WoBej7nGVW7mUF9VUA2IH1C+3tlr1b7tX7QonhV4nKLWD+l+l QuH700B9GT4kS0GawzATG7LO3wMyKz7z04qXBG1eARbpibgsyHcWudG/L0iu9NPqgTr5feC bwgQh8kXGv/GijahwSvTA== X-UI-Out-Filterresults: notjunk:1;V01:K0:5ilUVW6RsRk=:UmG+gK6E6qyd9if4BnDL0U qvRrVg99vaQB/hXQYoSKSXBhbLbcfom334ucVIAC7NwXnoQrS7S6RwdgbJsF0AAPE5RoMgJdM vJzJLS4iZDN7ImP9SIoO212k6DUKGk4dijxKVGwE57llTrA8nflr3y2iTe5+HaZl0NWmkCvPG lqKRLCIKjAFCGG3L6MTdBe2CPIytdNprsPomE4JHlT9wpG34RM7jhlrNwLTUEsqRtIrejDibY lg0oxFuw/Y8Xl2WDzCmt7zPcJAVm5I8gb18BlhtjNBwGHv7icPqK3M6xVWlLOkC5zeFQqZCfP Bk/FHUwhe7vc5fwKbWfW0r7U0Mseoy6748fdRN3n6PDsZiFI1Uu8rAxiuK+2rn0fcGx8EAK/i o/GlJGVEWc6KgO84Nco+KCXWTe+mKxQZIr+JnVkYaYP46fKEqybAE1qjaSgzdxRVFy2SeKejo DFuR2xjZ4iELuJDlawojLTQdUDuHIrNpREK6/W+l0nWlkhMCBBwMhK97pU2mu6gXPBNz9QIgq zx/EwwvtzL6lyhJ9C9Iz1mxPWlQR0y2UrhxjeT2+jRDBZz73Kqaf2hSh1N8PkCoGvJdDyTB6Q M7KIhXYKBmWQVqkGOHqBj/z0BP0vHnwIb4DCr+mX5b38EjnJLN5cDCC+jOf7xmNmBx/Tr+19w e8flhptBXwUSIFQFNUFcte3ffGn4wnzsEgTdDVoDwT2ZXwqmwAnx5NY9gFDDeC8od57I= Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1890 Lines: 67 Activate STMPE811 touch controller as found on Colibri T30 modules. Signed-off-by: Marcel Ziswiler --- arch/arm/boot/dts/tegra30-colibri.dtsi | 40 ++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) diff --git a/arch/arm/boot/dts/tegra30-colibri.dtsi b/arch/arm/boot/dts/tegra30-colibri.dtsi index fba3d2a..5f8ec5c 100644 --- a/arch/arm/boot/dts/tegra30-colibri.dtsi +++ b/arch/arm/boot/dts/tegra30-colibri.dtsi @@ -320,6 +320,46 @@ }; }; + /* STMPE811 touch screen controller */ + stmpe811@41 { + compatible = "st,stmpe811"; + #address-cells = <1>; + #size-cells = <0>; + reg = <0x41>; + interrupts = ; + interrupt-parent = <&gpio>; + interrupt-controller; + id = <0>; + blocks = <0x5>; + irq-trigger = <0x1>; + + stmpe_touchscreen { + compatible = "st,stmpe-ts"; + reg = <0>; + /* 3.25 MHz ADC clock speed */ + st,adc-freq = <1>; + /* 8 sample average control */ + st,ave-ctrl = <3>; + /* 7 length fractional part in z */ + st,fraction-z = <7>; + /* + * 50 mA typical 80 mA max touchscreen drivers + * current limit value + */ + st,i-drive = <1>; + /* 12-bit ADC */ + st,mod-12b = <1>; + /* internal ADC reference */ + st,ref-sel = <0>; + /* ADC converstion time: 80 clocks */ + st,sample-time = <4>; + /* 1 ms panel driver settling time */ + st,settling = <3>; + /* 5 ms touch detect interrupt delay */ + st,touch-det-delay = <5>; + }; + }; + /* * LM95245 temperature sensor * Note: OVERT_N directly connected to PMIC PWRDN -- 2.4.3 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/