Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp2354122rwi; Tue, 11 Oct 2022 07:52:11 -0700 (PDT) X-Google-Smtp-Source: AMsMyM77ZhiBO+mmrtkC5jhpf/hTWh+u2nrUvv0WPLCe0PQTz6WPNwjBZt44PX4LHxpXYzZSC98x X-Received: by 2002:a63:2c8b:0:b0:41c:5f9e:a1d6 with SMTP id s133-20020a632c8b000000b0041c5f9ea1d6mr21111673pgs.601.1665499930915; Tue, 11 Oct 2022 07:52:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1665499930; cv=none; d=google.com; s=arc-20160816; b=ewrNnkQDnZY+TCgQdCB1p32G9NoygGRmxB0ZdiOKbnP2HM0yZEGRiX5HN9i9NRzisz wnTgMQ0wLR/X494l/YdNRr61N/VW2ve9qfVYsEaLJq0f99bYrGw2aFHE1RgLcfT9f4Pr vrEZhZdDcStp0PQGIpR6A7+TYIoBtMJ5PkSvBJp574hcjm98+RfhX8mw5BXD+27YYdne I9Ex/JrFWG0zP56Z8uteitC+qGXDQi7CFqZRinaNcxbmeVHvEEbZX7VsLai0i/3WcpzD /utnIxUhIpjdbZoiHFMRNw/eVoTMrpxAJQLZ8BnBW5CRL4hk66jLfOYQiJb/pbevZdK8 C5jg== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=1yuzrsWn+JQgJPkkPtFmDqMUYC2j9hWLa0VXQM94T/g=; b=sYlg9tjXxcPWc4+JBOZB3fnbgJxmzWhdFw1xOAOQ1+vI2xgwU85XzfBSr2px0zCDcj 3VrXXPh2LeUFFHj4yReHUmHYeHlFRdJyI/A3k7U7axvTnbJ8BvRRof3WOOSr5PzARcq1 Fe9gciBfgcZZNnllZbRFKRUudGxQbNAEcrzUoLruTeLrza4Fc2BsTH1Nn5TuM7AkOUYB zEkuCBV4qJ0CRK+CnGc5b6S/S6WqpfdsU0CKMECpwmYcbwb6pCaEh6PGOXlrBH4Brk1k AER8NMQFZPKaqjbq3zgsLvcvVP35cINORyW+q4uFMR7a79sBzbCpm1W4JeriMwdHeQEH 6+ZA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=qdwI7VcJ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id c17-20020a17090a8d1100b00202be8d6729si14333422pjo.157.2022.10.11.07.51.59; Tue, 11 Oct 2022 07:52:10 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=qdwI7VcJ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229546AbiJKOue (ORCPT + 99 others); Tue, 11 Oct 2022 10:50:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34692 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229904AbiJKOuX (ORCPT ); Tue, 11 Oct 2022 10:50:23 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3AA0D62AB6; Tue, 11 Oct 2022 07:50:22 -0700 (PDT) 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 B8E70611C1; Tue, 11 Oct 2022 14:50:21 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 468BEC433D7; Tue, 11 Oct 2022 14:50:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1665499821; bh=N1ozdVjEK45DZAaHym9tlga1lHMtoLkWk36OeDCc6bQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=qdwI7VcJEx2rSWQIr/51prN5OI0W8sLWHPSybV2fACaQHkVq5hW6UveN6b6R+xuHI jf1+PUjjtsM2NuHYp3Et0hBTLd7E8kmm2n8xdmlSv1aU1swLuoCwW02ETP7/hW1gPS v5QTCiAMiiRiZie7/9ppeOebb9WGBD3KRe7QxQ7YZwSaFTxClvBnUHKwT0dJ7JTAiF E9q67zy4Hz4xjyCqxO5n0VYdCnJUWi04VChmWww+XQRRYaMdvfrAKP3HWaLd04+4oP Fw9P5gs67XCOBf4VnG4BAI6o+CA9KYvKg35mQGbNxTuBOj7TQja+hb6eltOfwNah1K 2BIfXEQ0WMtfw== From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Haibo Chen , Shawn Guo , Sasha Levin , robh+dt@kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH AUTOSEL 6.0 03/46] ARM: dts: imx7d-sdb: config the max pressure for tsc2046 Date: Tue, 11 Oct 2022 10:49:31 -0400 Message-Id: <20221011145015.1622882-3-sashal@kernel.org> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20221011145015.1622882-1-sashal@kernel.org> References: <20221011145015.1622882-1-sashal@kernel.org> MIME-Version: 1.0 X-stable: review X-Patchwork-Hint: Ignore Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Haibo Chen [ Upstream commit e7c4ebe2f9cd68588eb24ba4ed122e696e2d5272 ] Use the general touchscreen method to config the max pressure for touch tsc2046(data sheet suggest 8 bit pressure), otherwise, for ABS_PRESSURE, when config the same max and min value, weston will meet the following issue, [17:19:39.183] event1 - ADS7846 Touchscreen: is tagged by udev as: Touchscreen [17:19:39.183] event1 - ADS7846 Touchscreen: kernel bug: device has min == max on ABS_PRESSURE [17:19:39.183] event1 - ADS7846 Touchscreen: was rejected [17:19:39.183] event1 - not using input device '/dev/input/event1' This will then cause the APP weston-touch-calibrator can't list touch devices. root@imx6ul7d:~# weston-touch-calibrator could not load cursor 'dnd-move' could not load cursor 'dnd-copy' could not load cursor 'dnd-none' No devices listed. And accroding to binding Doc, "ti,x-max", "ti,y-max", "ti,pressure-max" belong to the deprecated properties, so remove them. Also for "ti,x-min", "ti,y-min", "ti,x-plate-ohms", the value set in dts equal to the default value in driver, so are redundant, also remove here. Signed-off-by: Haibo Chen Signed-off-by: Shawn Guo Signed-off-by: Sasha Levin --- arch/arm/boot/dts/imx7d-sdb.dts | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/arch/arm/boot/dts/imx7d-sdb.dts b/arch/arm/boot/dts/imx7d-sdb.dts index 78f4224a9bf4..e93b9cd9c27b 100644 --- a/arch/arm/boot/dts/imx7d-sdb.dts +++ b/arch/arm/boot/dts/imx7d-sdb.dts @@ -206,12 +206,7 @@ tsc2046@0 { interrupt-parent = <&gpio2>; interrupts = <29 0>; pendown-gpio = <&gpio2 29 GPIO_ACTIVE_HIGH>; - ti,x-min = /bits/ 16 <0>; - ti,x-max = /bits/ 16 <0>; - ti,y-min = /bits/ 16 <0>; - ti,y-max = /bits/ 16 <0>; - ti,pressure-max = /bits/ 16 <0>; - ti,x-plate-ohms = /bits/ 16 <400>; + touchscreen-max-pressure = <255>; wakeup-source; }; }; -- 2.35.1