From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-lf1-f50.google.com (mail-lf1-f50.google.com [209.85.167.50]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 9D75C33123D for ; Thu, 11 Jun 2026 15:41:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.50 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1781192471; cv=none; b=aldblAOfgb/TZe6FMpxtP9blyuGtxqoJZgM7iAXbbu+c1PPK2rA0nuARWS+310zV9iwoVDDoHxCsCnyDdLyKtd5fRKQnT1VXXncwBafmDeIyyRInW78/HCApWpN/03reGkTaLs/+8UDtuf3QBpvlyJ4B0UeGD/AZrgAFjz3YO9c= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1781192471; c=relaxed/simple; bh=RPmaQk94XVkHjUWvCHnUNh/oP6dEj3BeRyO7pRtRAQo=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=IkTNyjMZ4QmhL6vPSaXpfeZ9iymnhEfrw9mx5f7QsRg34vjcAf4jexIl8F7Bm48h979uq1ME73OAzzUS6+aL9OSu36IbxII9SSyrrzABZ5w22ZXkBiXQPj5vkDO6Ct5DUPXI8AznEQYqqAN9V8VoPQASiqVbO3GBPAQE1bq8hdk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=nWL9kDZ3; arc=none smtp.client-ip=209.85.167.50 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="nWL9kDZ3" Received: by mail-lf1-f50.google.com with SMTP id 2adb3069b0e04-5aa7bf3d512so8423398e87.2 for ; Thu, 11 Jun 2026 08:41:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1781192468; x=1781797268; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=5GKrlwR5PMGqe4clCpmusoR6L/gapT+56WN//GZADUM=; b=nWL9kDZ3NWkqMttXrVtBV3cjsBclaBT+YT0mXsxSAMyQAFrs1ThSPrsDqlaoJiUyY5 PU04+goNeE1BCRxhlPCJZOQYHA2mzv8ngDEYPltrnrVQrvdd3f2gwUOoBChXOYRl4tZa uqRggtUQm2RpB16zqJJ49hXXCcMLW9A5hg2g2VzdO37iGccgYJRBzT+r4FJCYr3nxvET MvvlRRZm1yLIstlOx9pRXggJa+NrVDTbPW6hOeXN/WD+o+If8iuq3g/zdGRy9GDbI8P2 Z0q+IrgGVnP4KjSiXoCBESO9LVnwA5WDu1j2/n9sm11kn/VAT7jsyxMyHrRFiHwPCTZ7 M7Ow== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1781192468; x=1781797268; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=5GKrlwR5PMGqe4clCpmusoR6L/gapT+56WN//GZADUM=; b=TkOBvWVCW19pCtTjvzc4BQOGBPusEEnCM5maOzjcGeQJgA+cxfpHm/e9dWhFeh7tgS EI84MoHMJcvcOWCLR9ECx6N8vg7AwDV1MHgUdRiNu4TRxSytg1OU+OyT3CTK6qBlbcgF uS0tdRS8pT9Ztp37Kn+wa700k7RuynpWlnilEsETU2FjX3NX6hSROhYNo4j5qlEOM9lB 41Uq/j+IR/mtY+riVySjdy6zUOBX4QDTce8kuFehXZ68QcmqObY1JAyT5EKlxkWLUItc hg48XuegA0f1cqXJFpa36vTTyLaQUo3PFjvdnyyessMzz0vDz6189jLZmVBA8lJN1bre dVwg== X-Forwarded-Encrypted: i=1; AFNElJ/5EC0Y5TbYDRqc8KScNjPPeEQeCXMVn9wrSPRnSh7ATZu5rW/b38VWx9Ja7sd8Imxm2/O0NOusaad72iE=@vger.kernel.org X-Gm-Message-State: AOJu0YzAuU1UKiVmyf+DCKraQHL2JXMf2M/QLFegU/eH99j+E6eenEuY LSkylJF0A5deFX9KVJ4N0CaA0h3dNccSp/i8DvjxAYRYjGAZ0h9mkpCQ X-Gm-Gg: Acq92OGD8hkxKeAXEfzS3rRwKyBQgJMzL7iDsUKWInfk6fMlGGIn4SJDbNZwT4gmrKt n9NBkCbK4yIpPmH+89N1We1g/SQQxbfRa3fIhJf3J9ZShVds8DvXdtGb3AJjPg+o0RX/FGaTLt/ YiL+pCj06w3UkmK0DydAlQ7dWYEd/aCisU+Y5An+DI0MRIb0cHXirludrkTVyGUyRNEMjL0u1q9 +aZtPLIz3YrKjsF+kX6eNEOpWufFlY7517/ShImFnDGpWDMN8qGO/TkANqayx2ljp9UFUVsZjAJ Wpm/X7OroRRf4I3FCCZ68F+x9N2PQRPpqKzTOpWKLJieV7OUQshgf/jZJZN1EPWEkBgjOxCzMz0 thk8M6j6QBvXD4Czvkbw4eMVQP2zVyOZW9dg117lg9L5fL9ryE9QjIFHGUNS9S8/+fPN1gzTp2p 36qi3OhTDRRK6jkVr1CIpfJDCQRlzj0m83JdRllSBak1hHTTbaOyuN+RAMG7HScEoEfW8= X-Received: by 2002:a05:6512:1090:b0:5aa:6a2b:d449 with SMTP id 2adb3069b0e04-5ad27aba631mr1088964e87.21.1781192467393; Thu, 11 Jun 2026 08:41:07 -0700 (PDT) Received: from Shofiq.home (87-92-251-137.rev.dnainternet.fi. [87.92.251.137]) by smtp.gmail.com with ESMTPSA id 38308e7fff4ca-3991ac81488sm5994641fa.1.2026.06.11.08.41.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 11 Jun 2026 08:41:07 -0700 (PDT) From: Md Shofiqul Islam To: linux-iio@vger.kernel.org, devicetree@vger.kernel.org Cc: jic23@kernel.org, robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org, linusw@kernel.org, linux-kernel@vger.kernel.org, Md Shofiqul Islam Subject: [PATCH v2 0/3] lis302dl/lis3lv02d: fix click thresholds and add legacy YAML binding Date: Thu, 11 Jun 2026 18:41:02 +0300 Message-ID: <20260611154105.3727-1-shofiqtest@gmail.com> X-Mailer: git-send-email 2.51.1 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit This series addresses the review feedback on v1 of the lis302 binding conversion. During the audit of upstream board DTS files I found 11 ARM boards referencing st,lis302dl or st,lis3lv02d. This led to two additional findings that the v1 patch missed: 1. A longstanding driver bug: the driver reads st,click-threshold-x/y/z but 5 upstream boards use st,click-thresh-x/y/z (the name from the old .txt documentation). Those boards have had silent click detection failures for years because the driver ignores the misspelled property. Patch 1 fixes this by setting a sensible default of 10 in the driver. 2. Three different compatible strings are used as the primary binding for different boards: st,lis302dl (Nokia N900), st,lis3lv02d (Nokia N950/N9, AM335x Pepper), and st,lis302dl-spi (PXA300 Raumfeld). The v1 patch only included st,lis302dl-spi and st,lis3lv02d. Changes from v1: - New patch 1: fix driver click threshold defaults - New patch 2: remove st,lis302dl-spi and st,lis3lv02d from the deprecated section of st,st-sensors.yaml (duplicate resolution) - Patch 3 (binding, formerly the only patch): - Add prominent WARNING at top of description - Add st,lis302dl compatible (Nokia N900) - Document both supply naming conventions (Vdd-supply/Vdd_IO-supply and vdd-supply/vddio-supply used by N900) - Add mount-matrix (Nokia N900) - Mark all click/irq/wakeup/filter properties as deprecated=true - Add st,click-thresh-x/y/z as deprecated with a note explaining the misspelling situation - Remove Jonathan Cameron as maintainer (declined); use Linus Walleij - Remove driver path reference from description - Add schema range constraints for axis remapping properties - Update example to use Nokia N900 (minimal, modern node) Md Shofiqul Islam (3): misc: lis3lv02d: set default click detection thresholds dt-bindings: iio: st,st-sensors: remove lis302dl and lis3lv02d from deprecated list dt-bindings: iio: accel: convert lis302 binding to YAML schema (v2) .../devicetree/bindings/iio/accel/lis302.txt | 119 ------- .../bindings/iio/accel/st,lis302dl.yaml | 320 ++++++++++++++++++ .../bindings/iio/st,st-sensors.yaml | 6 - drivers/misc/lis3lv02d/lis3lv02d.c | 8 + 4 files changed, 328 insertions(+), 125 deletions(-) delete mode 100644 Documentation/devicetree/bindings/iio/accel/lis302.txt create mode 100644 Documentation/devicetree/bindings/iio/accel/st,lis302dl.yaml -- 2.51.1