From patchwork Sun Apr 3 16:09:33 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dario Binacchi X-Patchwork-Id: 555965 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 055ECC433F5 for ; Sun, 3 Apr 2022 16:10:14 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239145AbiDCQMF (ORCPT ); Sun, 3 Apr 2022 12:12:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46660 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233255AbiDCQME (ORCPT ); Sun, 3 Apr 2022 12:12:04 -0400 Received: from mail-ej1-x634.google.com (mail-ej1-x634.google.com [IPv6:2a00:1450:4864:20::634]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5E60E26135 for ; Sun, 3 Apr 2022 09:10:10 -0700 (PDT) Received: by mail-ej1-x634.google.com with SMTP id bq8so15263650ejb.10 for ; Sun, 03 Apr 2022 09:10:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=GerM7K1QlzkK570Ne5mxP4j5BtuMq64KksJorrc+3FU=; b=XqDN8Z6d/ouufz75zZ7xmKBDt9yCWbq8SF9trZxvr46jz1jBPcr9jNdXJGAu6muIIM CPu4Me/Tq9/0ztqiHi2GzDBICWZV+sGchSt/7gayfNqtpE9IdpmsM+KIhJqJB6IbuqFT 9zqgTy2Q+h2/sxut0KXexu3XOzxLWW5SHtWE8= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=GerM7K1QlzkK570Ne5mxP4j5BtuMq64KksJorrc+3FU=; b=WPi0IaI3e2oWZaAGdf3mXiWmqMUyRG1kHZJal5J/nYf/2ZBLSjiWsVTq/yCQOSNlIx 07MGUS3QQOqbune1wCzGOAb/cFYX62SLrBstDy1d+HU8Y+QYmX/oas53PksJR2giwDF6 oxeOY2/oBpNhgJpopvr2S0Rz0uf5ROuei0ti2UHwWmEMdeBiamqMh9O/C/i5k3LO9/Q2 UVrUjr8xrcvUTt7Dj5KWhYBTQk/dHzvGk2LPE7PpqdOLjh/BPLAwc43cjLt/7bpxlOjR O0XoSYox2KNnwgXq7PV1v6XIf3n8EYrl59217ZU9/YJv/020LJQdLJZJHkuQI4anei36 secQ== X-Gm-Message-State: AOAM5318GA6ND0fzPRGQmi+4l4iYW4LxfYvuxzQytvbVGoZFj5pqPjda +eOqnGdMieVx22Acd+FAAJ3Liw== X-Google-Smtp-Source: ABdhPJwyHq31GeXgzY9nG8s7qLw09zTYTNofyHIMncc0oDHC03jsbGrQwxs816K2Imz4ez3c9HwCLw== X-Received: by 2002:a17:906:af6b:b0:6df:83a9:67db with SMTP id os11-20020a170906af6b00b006df83a967dbmr7681986ejb.222.1649002208874; Sun, 03 Apr 2022 09:10:08 -0700 (PDT) Received: from dario-ThinkPad-T14s-Gen-2i.homenet.telecomitalia.it (host-87-0-15-73.retail.telecomitalia.it. [87.0.15.73]) by smtp.gmail.com with ESMTPSA id do8-20020a170906c10800b006dfe2af50d8sm3350119ejc.121.2022.04.03.09.10.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 03 Apr 2022 09:10:08 -0700 (PDT) From: Dario Binacchi To: linux-kernel@vger.kernel.org Cc: Dario Binacchi , Dmitry Torokhov , Krzysztof Kozlowski , Marco Felsch , Michael Trimarchi , Oliver Graute , Rob Herring , Stephan Gerhold , devicetree@vger.kernel.org, linux-input@vger.kernel.org Subject: [PATCH v4 0/6] Input: edt-ft5x06 - Improve configuration Date: Sun, 3 Apr 2022 18:09:33 +0200 Message-Id: <20220403160939.541621-1-dario.binacchi@amarulasolutions.com> X-Mailer: git-send-email 2.32.0 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-input@vger.kernel.org The series was born from the analysis and mitigation of a crc problem raised by an M06 type device. The added sysfs attributes were helpful in debugging the problem. Patches that change the report rate on driver probing, mitigated crc errors on kernel bootup. The patch to get/set report rate by sysfs for an M12 device, has been tested. Changes in v4: - Add Rob Herring 'Acked-by' tag to: * dt-bindings: input: touchscreen: edt-ft5x06: add report-rate-hz Changes in v3: - Add hz unit suffix. - Add '|' to description. - Check the lower and upper limits of the report-rate-hz value - Convert the M06 report-rate-hz value Changes in v2: - Add Oliver Graute's 'Acked-by' tag to: * Input: edt-ft5x06 - show model name by sysfs * Input: edt-ft5x06 - show firmware version by sysfs - Fix yaml file. Tested with `make DT_CHECKER_FLAGS=-m dt_binding_check'. Dario Binacchi (6): dt-bindings: input: touchscreen: edt-ft5x06: add report-rate-hz Input: edt-ft5x06 - get/set M12 report rate by sysfs Input: edt-ft5x06 - set report rate by dts property Input: edt-ft5x06 - show model name by sysfs Input: edt-ft5x06 - show firmware version by sysfs Input: edt-ft5x06 - show crc and header errors by sysfs .../input/touchscreen/edt-ft5x06.yaml | 8 ++ drivers/input/touchscreen/edt-ft5x06.c | 103 ++++++++++++++++-- 2 files changed, 103 insertions(+), 8 deletions(-)