Received: by 2002:a25:23cc:0:0:0:0:0 with SMTP id j195csp667163ybj; Thu, 7 May 2020 04:59:26 -0700 (PDT) X-Google-Smtp-Source: APiQypLi8xDqtJf1uB1ksYRR2PTCOkMLTC6SDUiYzv/6xctzyPQY7pd4dGgT/sQyQ5Rg3sunyyDT X-Received: by 2002:a05:6402:1215:: with SMTP id c21mr11888460edw.128.1588852766727; Thu, 07 May 2020 04:59:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1588852766; cv=none; d=google.com; s=arc-20160816; b=LG2AKTVySS4qBd/J44Ckh1174izQkctmxMQUS4TuANZ7UUBcUP6unmc9JVoN1deE0E WMxTM5cqaVWZF8apgYHRiBqCc2AAouiK+gV4dBaHQ9veHD7rJ560rp28oIFD1+rPtik8 sHkADnORJ+lYj41XrtiwjtdJNIgOh+H3JeqGGMyyRQnEtz96+8RihIQaorsl7Y4Y+Vxs OCTd1d2tMnB4YLKrhv+VJE/i68WH17tubPsYxUIvrqpGu1nlBGu9tof7ck707RMNOsGS ZEwB1WeuoN72pk/Odq3jdxGnnL7Ai/Qam7Imstr3TCo4Wiz5GMNiOxC2WU7d2Dir/Je3 v0Rw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=Abi1sauqthy0o7ll0iZzcPHhpwrLBTxb2uGa7fPFiLQ=; b=AYb0pyJuZbj7mZLcQPuwGQkh7LXv7OTgTfR0m1FhPktd53P4MuOS2v67l/6hwKxdVk Rf/QtP1idOHnlLdWmFq/7pdmdgrezK5j479ileOCCs3VY3gTIlX1iC5x4ToLCgCmvqjH 5aGqKF9uIc7UwQfk6aqlDEzh5Qf3KCmcmup+nE3fDt6Z7uIqIQJv83laT+Nnz7pWPpOJ uSHe8EqXYI8ah/wxAlJq901wWl2rd6KXpJcWHAdQl64HFXi9GQ38JOXVdNhGJI1eaZfu +rbQGjm6ZRP9UleVo+zGQdw6LsTYr5lALy8B7Eyppex/sp44yTp9pimPOc79J3o30WMN kgdg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@st.com header.s=STMicroelectronics header.b=GIJuQejX; 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=NONE dis=NONE) header.from=st.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y10si2887843ejw.403.2020.05.07.04.58.59; Thu, 07 May 2020 04:59:26 -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=@st.com header.s=STMicroelectronics header.b=GIJuQejX; 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=NONE dis=NONE) header.from=st.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725949AbgEGL5A (ORCPT + 99 others); Thu, 7 May 2020 07:57:00 -0400 Received: from mx07-00178001.pphosted.com ([62.209.51.94]:12750 "EHLO mx07-00178001.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725809AbgEGL47 (ORCPT ); Thu, 7 May 2020 07:56:59 -0400 Received: from pps.filterd (m0046668.ppops.net [127.0.0.1]) by mx07-00178001.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id 047BlNbU019120; Thu, 7 May 2020 13:56:49 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=st.com; h=subject : to : cc : references : from : message-id : date : mime-version : in-reply-to : content-type : content-transfer-encoding; s=STMicroelectronics; bh=Abi1sauqthy0o7ll0iZzcPHhpwrLBTxb2uGa7fPFiLQ=; b=GIJuQejXla90HpGmtZDbiJfaJf/Te3VxqU5xQ8jWvu3wploWyszCvSsKUweezDFW9JZD v5I2NIwxgtJi/DD25NO3uhdFTdXffkshL548goU2CzpT/tgDv7+6lueMj5trNVk/JlVA 6816KnHtUHmmKtpwzbz+My1gAJfm7Hm/cV/yyNvPncYAi7gE3K/GpvUor8dQ6QQPP1RA jR73rI7qcu/ULlX0lnFWMyfzPlffis242A6KJaw9sipz0R1U4bYM89ZJGUfbUc56l0n4 8T5FTzGDE61OHZxhMe9cOgXpjTURWb1qRWIG8vqgeYYtPYkOX/3IqktROmpagvnOVud+ MQ== Received: from beta.dmz-eu.st.com (beta.dmz-eu.st.com [164.129.1.35]) by mx07-00178001.pphosted.com with ESMTP id 30rxb2bhgj-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 07 May 2020 13:56:49 +0200 Received: from euls16034.sgp.st.com (euls16034.sgp.st.com [10.75.44.20]) by beta.dmz-eu.st.com (STMicroelectronics) with ESMTP id D088B10002A; Thu, 7 May 2020 13:56:48 +0200 (CEST) Received: from Webmail-eu.st.com (sfhdag3node2.st.com [10.75.127.8]) by euls16034.sgp.st.com (STMicroelectronics) with ESMTP id BE4582B42A0; Thu, 7 May 2020 13:56:48 +0200 (CEST) Received: from lmecxl0912.tpe.st.com (10.75.127.50) by SFHDAG3NODE2.st.com (10.75.127.8) with Microsoft SMTP Server (TLS) id 15.0.1347.2; Thu, 7 May 2020 13:56:44 +0200 Subject: Re: [PATCH V2 3/4] ARM: dts: stm32: enable stmpe811 on stm32429-disco board To: , , CC: , , References: <1588850125-24344-1-git-send-email-dillon.minfei@gmail.com> From: Alexandre Torgue Message-ID: <98d6d44c-ff23-ac15-c17b-8f5f49ad2274@st.com> Date: Thu, 7 May 2020 13:56:36 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.4.1 MIME-Version: 1.0 In-Reply-To: <1588850125-24344-1-git-send-email-dillon.minfei@gmail.com> Content-Type: text/plain; charset="utf-8"; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Originating-IP: [10.75.127.50] X-ClientProxiedBy: SFHDAG8NODE1.st.com (10.75.127.22) To SFHDAG3NODE2.st.com (10.75.127.8) X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.216,18.0.676 definitions=2020-05-07_06:2020-05-07,2020-05-07 signatures=0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Dillon On 5/7/20 1:15 PM, dillon.minfei@gmail.com wrote: > 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 Good idea to add changes log for this patch. But this log has to be placed after "---" below. This log has not to appear in your commit message. Furthermore, you should only add changes for this patch without talking about other patches . > > Signed-off-by: dillon min > --- Add patch change log here. > 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>; > + }; > + }; > +}; >