Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp3721582pxb; Mon, 24 Jan 2022 16:18:47 -0800 (PST) X-Google-Smtp-Source: ABdhPJxPIKdkh9WiHf41h0v3rOhQ2o43I1KjwRW4X8ksYkKAFgbld7AZz51ZxgLwozXN1ieVFDDA X-Received: by 2002:a17:90b:240a:: with SMTP id nr10mr799732pjb.110.1643069927201; Mon, 24 Jan 2022 16:18:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643069927; cv=none; d=google.com; s=arc-20160816; b=KTkNX+epxMx3kjRamm8hcjtpSlJcwCJh0885o/oo/+j9B4AARgi8uw9uFI4AlrofJH dWbZ1lPh57RKV32tqypuO/tnnUoP9chuL0KJjxNg386epg4YOIFo2OTVlENtxJGL53FM l64CnDyiKmLnf42iZrwndxtF5LcwCxZPbWB0eNHvpQd9NQY0oc+UW6NjqMlbgueAzA70 DskcFDYWtQbW6SkiJ0APweS/rTFPfyZboiOZp9f/IyuOUFyMlap2uAOQFqFfPiZNc1BM p0PQJZ0y/f+J3yyL1zo8b4h3R2vieSpKi+J6m7NUouDeESDztqhCnngDIPMEM4t4WjeL w0rw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=xLky4YkwivjtJkBvhJL0U5DPI4IY61KEees6F07F390=; b=OlT/REViGkjGLg6/gNhnYbxqvDuKRXcI9hWDQDbn4gZJTKH3WvK85JKLEiTxbN1bMX VAVLnVh5KY/I2kWd8mEt+9aAaJQ7eKXFro5qI483uRtnHF55N42XqJ/X/TWd2fmfdQ90 O6cRxh0xo1otROQzPYJt/GvSCvppVkmtYFEFNKgZvSfjZvE1jpXniiXT/Ov4frjJM2fI Ot9VTUmm1Me+NW9DrCaGTk0LQMaFukGw1SgK0qxdvdtvY/uuAAbdzn3HmzvSdDfuKLsh CiVSkpGio8QCzXGzfkOsm0XysWrIbdw2GeEIVbax2TazT/ERVY/iupPQgy8B9a7+xhv8 dNmQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=h5nLtgJy; 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=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id r8si14002932pff.43.2022.01.24.16.18.35; Mon, 24 Jan 2022 16:18:47 -0800 (PST) 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=@linuxfoundation.org header.s=korg header.b=h5nLtgJy; 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=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2373024AbiAYAM6 (ORCPT + 99 others); Mon, 24 Jan 2022 19:12:58 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52998 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1837174AbiAXX20 (ORCPT ); Mon, 24 Jan 2022 18:28:26 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6A5DAC075941; Mon, 24 Jan 2022 13:33:47 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 0CDFA614D9; Mon, 24 Jan 2022 21:33:47 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id C59C9C340E4; Mon, 24 Jan 2022 21:33:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1643060026; bh=2obqsxI+/SH42dQ+X0D1aLLfemkok/28qdVTR7fdTIc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=h5nLtgJy5oDfiXuBdcZlChrL6S+/zcErlB2Or/2pERK1CioXUAPWuSOYT+jMgVDwI /RnI6acCo7YzDqfc6pmqRWhJ2KYWo+DPtimqWJk1W+oT+9Fojp81XsYLozl8J0t7Eb CUlPKRW9w/W5u0524C4d8xOWjS2GovmJlz2e4ki0= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Dario Binacchi , Dmitry Torokhov , Sasha Levin Subject: [PATCH 5.16 0797/1039] Input: ti_am335x_tsc - set ADCREFM for X configuration Date: Mon, 24 Jan 2022 19:43:06 +0100 Message-Id: <20220124184152.092668924@linuxfoundation.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220124184125.121143506@linuxfoundation.org> References: <20220124184125.121143506@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Dario Binacchi [ Upstream commit 73cca71a903202cddc8279fc76b2da4995da5bea ] As reported by the STEPCONFIG[1-16] registered field descriptions of the TI reference manual, for the ADC "in single ended, SEL_INM_SWC_3_0 must be 1xxx". Unlike the Y and Z coordinates, this bit has not been set for the step configuration registers used to sample the X coordinate. Fixes: 1b8be32e6914 ("Input: add support for TI Touchscreen controller") Signed-off-by: Dario Binacchi Link: https://lore.kernel.org/r/20211212125358.14416-2-dariobin@libero.it Signed-off-by: Dmitry Torokhov Signed-off-by: Sasha Levin --- drivers/input/touchscreen/ti_am335x_tsc.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/input/touchscreen/ti_am335x_tsc.c b/drivers/input/touchscreen/ti_am335x_tsc.c index 83e685557a197..fd3ffdd23470b 100644 --- a/drivers/input/touchscreen/ti_am335x_tsc.c +++ b/drivers/input/touchscreen/ti_am335x_tsc.c @@ -131,7 +131,8 @@ static void titsc_step_config(struct titsc *ts_dev) u32 stepenable; config = STEPCONFIG_MODE_HWSYNC | - STEPCONFIG_AVG_16 | ts_dev->bit_xp; + STEPCONFIG_AVG_16 | ts_dev->bit_xp | + STEPCONFIG_INM_ADCREFM; switch (ts_dev->wires) { case 4: config |= STEPCONFIG_INP(ts_dev->inp_yp) | ts_dev->bit_xn; -- 2.34.1