From patchwork Sun Mar 13 16:34:57 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dario Binacchi X-Patchwork-Id: 552393 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 4FCBEC433EF for ; Sun, 13 Mar 2022 16:35:25 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235029AbiCMQga (ORCPT ); Sun, 13 Mar 2022 12:36:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45012 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235027AbiCMQg0 (ORCPT ); Sun, 13 Mar 2022 12:36:26 -0400 Received: from mail-ej1-x635.google.com (mail-ej1-x635.google.com [IPv6:2a00:1450:4864:20::635]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1D58E63E0 for ; Sun, 13 Mar 2022 09:35:15 -0700 (PDT) Received: by mail-ej1-x635.google.com with SMTP id r13so29151417ejd.5 for ; Sun, 13 Mar 2022 09:35:15 -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=RsYMm6yDzAg/+Yh+dNaABewzSTjIvrbPi3LLKKyRQvg=; b=n1wOpGeTOgXBPKiHGCOffT9Af5Qxo2tL1Nx6Nme3v5idj5BmBazNL0s+qEAboFzRyX zM7RyyknU43kNR4UM10/WIDEcv31FmMkD9Y5N35FRvwBnUkwaY+3xfHtjpwfE9LD4leS +PeeDgKb4UDIsmBXK/lOd/KgdcPkt+XGJQjXU= 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=RsYMm6yDzAg/+Yh+dNaABewzSTjIvrbPi3LLKKyRQvg=; b=K8tw+Ze8P9VSKzDWcQ1qDb3AIrfoDiC7pkQlMByIxeKgieyfll0auYjsZrWRTZ4Z2N B5ScGKIPOoP/dDjtIw3tupC7/bIhkHxefo96+Hvkail/54F6fxcYhwT2vz7HLVIYc20R TlGXBlHqVOZVHzurcZOerfkyelgqMMtTHRv+QO+vAQsKa/SBvpInBPE7iflH+YvSDqMd 85QXqlQXVBdEfBlZsaRBzd+3rdoE8uUzqCtLWHkhGyICYPTwTrOYoVPTajzuSZCsimrD r8bIaagL9SAngmjBjegJD26+5vmoKHSJL1vwfwR2eMDVFFdl0Kty7jucdsfKG2mgx914 +38Q== X-Gm-Message-State: AOAM531UG73UkDLRcX5T4ukx3GDR0OqREFiJ8rA8ADCYiCIMlhkwgkeh Lm42YyOfp3vQWCemRKPA4Va/zw== X-Google-Smtp-Source: ABdhPJxdvnjxRtxUUa9/OWlZoHsXmiNPk3uDy7OtZ+pLE80Sbl5RlicY1cH+I0M3lqHHiLSi3IQyDQ== X-Received: by 2002:a17:906:c08a:b0:6ce:36f8:bfe8 with SMTP id f10-20020a170906c08a00b006ce36f8bfe8mr15927929ejz.52.1647189313605; Sun, 13 Mar 2022 09:35:13 -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 qt22-20020a170906ecf600b006da6ef9b820sm5725028ejb.112.2022.03.13.09.35.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 13 Mar 2022 09:35:13 -0700 (PDT) From: Dario Binacchi To: linux-kernel@vger.kernel.org Cc: Dario Binacchi , Dmitry Torokhov , Marco Felsch , Michael Trimarchi , Oliver Graute , Rob Herring , Stephan Gerhold , devicetree@vger.kernel.org, linux-input@vger.kernel.org Subject: [PATCH v3 0/6] Input: edt-ft5x06 - Improve configuration Date: Sun, 13 Mar 2022 17:34:57 +0100 Message-Id: <20220313163503.5183-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 v3: - Add hz unit suffix to report-rate dts property. - Add '|' to report-rate-hz description in the yaml document. - 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(-)