Received: by 2002:a25:23cc:0:0:0:0:0 with SMTP id j195csp639661ybj; Thu, 7 May 2020 04:17:31 -0700 (PDT) X-Google-Smtp-Source: APiQypK68nSnLKJjF58j6UfGoGxccqGfu1ro+/5/XpnLm6ZstFqbkdOSGTIuqcrFoNh845XIOIWZ X-Received: by 2002:a05:6402:1a49:: with SMTP id bf9mr11829473edb.189.1588850250875; Thu, 07 May 2020 04:17:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1588850250; cv=none; d=google.com; s=arc-20160816; b=AFwGTa33cXduccWOmSelaCB6Q/9WTiOhYLD/7YILW4dW53t1KcG+CrmNE3cDlfkike BKjA/wCXJcZffOwnjLqdbFGcRTZgM7qwEsP/pVsQRhZKD+RViqqzQan3DDkMG0j0vQrY a/s+qi0FGmSNaseNLa+hR0W6B9S1KJRQ5qX7Z1NiGkTq0VWgtD9EDSa6WHxcq8f/dhP0 rV3afCW7zmCffOtl1Xp2r9tjPOYYSqqA+mo+4VxgzLc5/8LfV0m19kDg0qM28KHkjwWm 2OAHSYK4y35K4vIhQ09jGIeko7cBBPcPsUTw44FLQ75pGe3Ns6MDTqI/P8ved02lwGb8 SXWQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature; bh=dzZv5l46H3vCVPERauYX1uGZ7zgOzPk4wkpAl/BDozc=; b=k6kxKuIa92rjViJIg0/FfbxWclRAg18qjfC52F4PZ7zSws0yVaJMR1BFbvghaVt/Qy h3ekXEH8uK4J37krcFlt8fEr88+ySaVV0WqJ3XdZv5NJlepSNDN/C0WQnkc80nBanOoe zVTJl5pLXIdRjRvtc1mbMPqNJrnp5GzdWJDVKpADyR375gYfwrXinK8IMOkx4EUe/bQX t6MavW6ApciJyVU95PDwXRed3JB0v7Nheir9RmpoD+rx94BDv57I+aipdu09OxM7D7U0 iSN0c5UF2Qo5iYcxxAFX7AkqoPoHqCTzCR/15/pLA7iSCCK0ixADBur8tgWUKXg7p6dk 6qnA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=tSbG7BME; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id h23si2892248ejq.206.2020.05.07.04.17.06; Thu, 07 May 2020 04:17:30 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=tSbG7BME; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726951AbgEGLPb (ORCPT + 99 others); Thu, 7 May 2020 07:15:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46932 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726900AbgEGLP3 (ORCPT ); Thu, 7 May 2020 07:15:29 -0400 Received: from mail-pj1-x1043.google.com (mail-pj1-x1043.google.com [IPv6:2607:f8b0:4864:20::1043]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8EB5BC05BD43 for ; Thu, 7 May 2020 04:15:29 -0700 (PDT) Received: by mail-pj1-x1043.google.com with SMTP id t9so2521424pjw.0 for ; Thu, 07 May 2020 04:15:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=dzZv5l46H3vCVPERauYX1uGZ7zgOzPk4wkpAl/BDozc=; b=tSbG7BME/8vv5wmI/sQc+zwSPUoEoKgUp4LNjaY+Qkz0zVVKE0Rc1qtVsZEaOJLq+D T7zYpqzmNEPG8PPe3sDzQmIBrVsQ3YdZHaWVxolM7OaCc04AJ72uDYD8xMTigC8YZ73O DtHhv6NGLxThEGqUri6YXrisZZkQWhZux89L9reZ1ZM0TXb1FDtClGLs5Cn3ZioT6Iql HIsRp4uVK4sDNELmcnS2ni7fPUOeRRhGs0TKaajJ3SZlCaquvsun27EVEgONBnuQeCmM OwD+kegqJKmB4tqYRmpgHMdVurC9Ap7GZ9ZpV5TuKaJJXeD5aDbo5AIsWc3ulXRZ8dwr x4dA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=dzZv5l46H3vCVPERauYX1uGZ7zgOzPk4wkpAl/BDozc=; b=WS8vJigXcMKtV7cAt8Z74At8yniez0NdYG+41mAPhwEnplIo5ChIsY9cM13lW2JHX5 FnIYkRAX+6nYQJFIN7lVsfYv0ulfYQEBKSeabm+rZ3DXw6mM6KIH8qaBc0KGFcax3hDm 7f3iwIFrz8V8t2N69idKKfNOm7DDeWgxYrtnIU2AwELdZ6eyBdb1ioEGIBv/O8/CepSg IXYu471J4C13h8tJ2Au0CTgKAfxpyVI5bYIzVZXd5+vRC/EslYCl59zCuUxQoLzXMPsk h6/btP2/xFLWm3Z4BIEPw2ZQBuo4wiBUZiAuXC7iiY48MfmBgtc6R70i9CvdWh4e7CMl iX2A== X-Gm-Message-State: AGi0Pua+LUXSAwk7WSG9mQ4G1xZYqvPg+tHeD+5ip0l/4iHngY1MukaG uPzqrCbb7+mK/O2zesaWWbg= X-Received: by 2002:a17:90a:1f8f:: with SMTP id x15mr14723323pja.76.1588850129146; Thu, 07 May 2020 04:15:29 -0700 (PDT) Received: from fmin-OptiPlex-7060.nreal.work ([103.206.190.146]) by smtp.gmail.com with ESMTPSA id z1sm7056388pjn.43.2020.05.07.04.15.26 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Thu, 07 May 2020 04:15:28 -0700 (PDT) From: dillon.minfei@gmail.com To: mcoquelin.stm32@gmail.com, alexandre.torgue@st.com, philippe.schenker@toradex.com Cc: linux-stm32@st-md-mailman.stormreply.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, dillon min Subject: [PATCH V2 3/4] ARM: dts: stm32: enable stmpe811 on stm32429-disco board Date: Thu, 7 May 2020 19:15:25 +0800 Message-Id: <1588850125-24344-1-git-send-email-dillon.minfei@gmail.com> X-Mailer: git-send-email 2.7.4 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: dillon min Enable the stmpe811 touch screen on stm32429-disco board. Signed-off-by: dillon min [PATCH 3/4]: ARM: dts: stm32: enable stmpe811 on stm32429-disco V2: patch 3: remove unused id, blocks, irq-trigger V1: patch 4: fix read touch screen xyz timeout bug patch 3: enable stmpe_touchscreen on stm32f429-disco board patch 2: add i2c3 pin mux for stm32f4 patch 1: add i2c3 controller interface for stm32f4 Signed-off-by: dillon min --- arch/arm/boot/dts/stm32f429-disco.dts | 47 +++++++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) diff --git a/arch/arm/boot/dts/stm32f429-disco.dts b/arch/arm/boot/dts/stm32f429-disco.dts index 30c0f67..fad1ec1 100644 --- a/arch/arm/boot/dts/stm32f429-disco.dts +++ b/arch/arm/boot/dts/stm32f429-disco.dts @@ -49,6 +49,8 @@ #include "stm32f429.dtsi" #include "stm32f429-pinctrl.dtsi" #include +#include +#include / { model = "STMicroelectronics STM32F429i-DISCO board"; @@ -127,3 +129,48 @@ pinctrl-names = "default"; status = "okay"; }; + +&i2c3 { + pinctrl-names = "default"; + pinctrl-0 = <&i2c3_pins>; + clock-frequency = <100000>; + status = "okay"; + + stmpe811@41 { + compatible = "st,stmpe811"; + reg = <0x41>; + interrupts = <15 IRQ_TYPE_EDGE_FALLING>; + interrupt-parent = <&gpioa>; + /* 3.25 MHz ADC clock speed */ + st,adc-freq = <1>; + /* 12-bit ADC */ + st,mod-12b = <1>; + /* internal ADC reference */ + st,ref-sel = <0>; + /* ADC converstion time: 80 clocks */ + st,sample-time = <4>; + + stmpe_touchscreen { + compatible = "st,stmpe-ts"; + /* 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>; + /* 1 ms panel driver settling time */ + st,settling = <3>; + /* 5 ms touch detect interrupt delay */ + st,touch-det-delay = <5>; + }; + + stmpe_adc { + compatible = "st,stmpe-adc"; + /* forbid to use ADC channels 3-0 (touch) */ + st,norequest-mask = <0x0F>; + }; + }; +}; -- 2.7.4