From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pl1-f174.google.com (mail-pl1-f174.google.com [209.85.214.174]) (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 03312344D8B for ; Sun, 12 Jul 2026 02:12:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.174 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1783822380; cv=none; b=dIGPwuXsiUNPwBiFi0GxgUQeFO5IboE/wyX9pBBvrvd2GiAGnFyc9o3jgm2gF6n48bXlwV8R+yiuH57QZWh25HWlky1S8Ml+EasqUW9dvYENOjsC80KfHKcDlaLJwjRyPmaamsLTsU26DFyDjXl5ZxeQ9Bzzaxtv/+qeka1jnV0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1783822380; c=relaxed/simple; bh=hvTXNaq5urOGZLsi2ZFCjd3V+3EespLnbI3oOLSonsM=; h=From:Subject:Date:Message-Id:MIME-Version:Content-Type:To:Cc; b=WF7O3B120C3lK6RrUldsXLYuvb1N446QmQYfGd71sttaeDm8iVEyjj3POXvj6zVYajPRY0ewZ1rwgZOsryS5wbOsZdAU9hC1/YtjcFV2VLjbWbhSpK+TTHBqSYU++dzeWo2j7gPr5VUI2rp+Ql6+QUhPCiL/0jfKtmehm+kUOEo= 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=L+Jg5D3A; arc=none smtp.client-ip=209.85.214.174 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="L+Jg5D3A" Received: by mail-pl1-f174.google.com with SMTP id d9443c01a7336-2cc6dd436c6so24452315ad.2 for ; Sat, 11 Jul 2026 19:12:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1783822378; x=1784427178; darn=vger.kernel.org; h=cc:to:content-transfer-encoding:content-type:mime-version :message-id:date:subject:from:from:to:cc:subject:date:message-id :reply-to:content-type; bh=akuiiPDroRfJeMxQ3ozyBHs44kZ19VHRGG2J2TIkiPU=; b=L+Jg5D3AYD7EaLi7Rom6AdJHoDoXb3foXSB554j3divtSX6oiCLDNMG0umvwMoLvbG v2Uy2EWRiq9/KJsZxs9KlGBiwR9c9Dy1lSme+Pkk3YesO4GwjynUvqP9L7oa1VixJGAl cq4PLiBmQslaoPFfg5HjWKUxvuNGMFTBVFqM14DbIlCWC6t7ivhz7V2wToVmIAapZoP+ YyEaGmsKxvXnhMYg7gqSKBsTOJQxv4HpTkf6VMDzWqktNBUaqHeg2a4Cqg+tJ4ed+xb+ W6T6ifMhF9KV25LJYGait46YfXRwaZnEtdap5S7DvMU48I1beCWbuLrtA7sXN6v29OAA I30g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1783822378; x=1784427178; h=cc:to:content-transfer-encoding:content-type:mime-version :message-id:date:subject:from:x-gm-gg:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to:content-type; bh=akuiiPDroRfJeMxQ3ozyBHs44kZ19VHRGG2J2TIkiPU=; b=ERlNt3nzfIbMhXxbJy6JLfGFuIBtDmrbqS4xYHiz11vnKY3ZbBQLEEo1QvzEfrfddc YIFn4IbDRNZLjPYBkoArfmexChwhFuIlW+xcSpOLSppxmw6HDudolTsXIC8uAhYwcFvV qVAq4y3uFn/2RBp9yddxOA1y+4AQFR22qyL7pWIHz8F5KmnHISq27Ac4TojS63zGKlu5 bhcILhTwZqq4Wr6U8TdWNughGbAuW1WWFrE6Vd+7WO5rl7ByjvhilHGxXHxa2e1J4QjB iBM3MTNIs1PISILeSw49bWTpysH2ZMouKW5FAgB90QTzIpZx1VoVRzdyN3gsH2uF2kIN gUQg== X-Forwarded-Encrypted: i=1; AHgh+RrNJ+suyH0T6tG2tQA3YuyynEqcn4sgLIfBu3BSgGKmn7hYZ20jLjVBZLkHDwtjpHP4gp8b4jIoKiJt@vger.kernel.org X-Gm-Message-State: AOJu0YxSpNd53bqxnSQUss+xfKvfuc0g6BGVMdpM3WFC3oecrRd2YSQj tXXcevSZL1bzzU0uRJMo69wONwk08IPAPVEWg149XTCOKLDqDoI+3ITx X-Gm-Gg: AfdE7cnTUrMv3riJDMmJRZVLE7CkqHo2JEFzLPedb5ZvPQ+CgVbh6w7ozQzKmQN0T+b nsvojMUSwR3E0Vb1r50uPnthan2mi8jrPb80s9OSZFEy7/b/HAPN76YRbG+6yyVDlLIOeFrjn4L aF7XQYu6j27mx7VGKZTYM8bqBsWlPE/+RF9HFcmc/B76Igr3YeFB4L8Shq0Y4FlDTOzL6JvYM1B 5jEHE8nSH5nArmnoBZn0WfHU0hqIN8pWxEmZvcSF8qfZxiVTi0jFZjo8Hv7kPYeSuaJWNsuec40 iS9BcnyHfa84yuqm1VrMjxJW/zxvyTQ1rhCiamjQD2rpyCwyUD1tWdGNEDMsrZ3v7lLS+xfROSG U6WIedqpyukOItsxUDtT0J0RSRC2uq4huMenI9q4gxr7nVe6Qd5fZTwRNz+MJjc0JXqJVDMkjJ0 SMZqhnGjcYSVF4mUhsFz/RlmDfdpCFmIcbPKVR9lQh+FZ+jLdBnKz+wDeWjZ6HVV6R/4zWSwFzW FM= X-Received: by 2002:a05:6a21:7701:b0:3c0:9c1a:8951 with SMTP id adf61e73a8af0-3c110b34ff1mr4611577637.73.1783822378295; Sat, 11 Jul 2026 19:12:58 -0700 (PDT) Received: from dtor-ws.sjc.corp.google.com ([2a00:79e0:2ebe:8:c63e:9756:a95c:c75]) by smtp.gmail.com with ESMTPSA id 5a478bee46e88-3117d847e17sm54796692eec.18.2026.07.11.19.12.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 11 Jul 2026 19:12:57 -0700 (PDT) From: Dmitry Torokhov Subject: [PATCH v3 00/10] Remove support for platform data from samsung keypad Date: Sat, 11 Jul 2026 19:12:41 -0700 Message-Id: <20260711-samsung-kp-v3-0-b2fcaba77aff@gmail.com> Precedence: bulk X-Mailing-List: devicetree@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-B4-Tracking: v=1; b=H4sIABn4UmoC/1XOQQ6DIBCF4as0rDsGEVG76j0aFwijEosYsKbGe PeiK7v8M5kvbyMBvcFAHreNeFxMMG6Mkd1vRPVy7BCMjk0YZZyWaQVB2vAZOxgmUIha85a1BaM kPkweW/M9sVcdu/XOwtx7lH8E5XmZZglLcy44gxS0NbNfk9l5N/RueXZWmneinD3Q3oR4WM+BC zvoAxK0oOV1y8KAQqYEaq6qJmvERan3ff8BOv6NlukAAAA= X-Change-ID: 20240819-samsung-kp-ceedd4f2f720 To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Peter Griffin , Alim Akhtar , Russell King , Mark Brown , Linus Walleij , Charles Keepax , Sam Protsenko , Arnd Bergmann , Bartosz Golaszewski Cc: Krzysztof Kozlowski , linux-input@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, patches@opensource.cirrus.com, Conor Dooley , Bartosz Golaszewski , Krzysztof Kozlowski X-Mailer: b4 0.16-dev-b242f Hi, This series converts the Samsung keypad driver and the Cragganmore 6410 board to generic device properties, allowing the removal of legacy platform data and GPIO lookup tables. We rework the Samsung keypad driver to stop using platform data, utilizing a new compact matrix keypad binding. To support this on the Cragganmore board, we add infrastructure to associate software nodes with Samsung gpio_chips, and add software node propagation support to the wm831x MFD core to route DVS GPIO to the PMIC regulator. Finally, we convert all peripherals on the Cragganmore board (including keypad, GPIO keys, PMIC, WM1250, SPI0, basic-mmio-gpio, and LEDs) to software properties. This allows us to eliminate all legacy GPIO lookup tables and fixes incorrect GPIO chip names from previous conversions. Mark, it would be great if you could give this a spin on Cragganmore. The majority of changes are in arch/board code, with a couple of input matches and one for MFD. If everyone agrees maybe we can merge it all through the soc tree? Thanks! Changes in v3: - Fixed legacy property handling regression in the keypad driver by separating compact and verbose binding paths - Removed redundant registration of crag6410_mmgpio_node from mach-crag6410.c - Removed dead S3C64XX_SETUP_KEYPAD Kconfig symbol definition and selection - Fixed missing newline in pr_err() message in mach-crag6410.c - Redesigned PMIC DVS support to keep regulator driver changes minimal (untouched) and only use software nodes for GPIO routing via MFD core - Link to v2: https://patch.msgid.link/20260708-samsung-kp-v2-0-3c6ed4c9b3b6@gmail.com Changes in v2: - Patches 1-8 of v1 were merged into mainline, dropping them from this series - Rebased remaining patches (9-14 of v1) onto latest next - Resolved conflicts in mach-crag6410.c - Removed redundant "out of memory" error messages from the keypad driver - Added an infrastructure patch to register and attach software nodes for Samsung gpio_chips - Converted basic-mmio-gpio and LEDs on Cragganmore 6410 to software properties in a new separate patch - Addressed DT bindings feedback on the compact binding patch - Fixed proximity switch event type for GPIO keys - Added support for software nodes in wm831x regulator driver - Converted PMIC DVS on Cragganmore 6410 to software properties using the new driver support - Removed legacy DVS platform data fields and cleaned up driver fallback. --- Dmitry Torokhov (10): dt-bindings: input: samsung,s3c6410-keypad: introduce compact binding Input: samsung-keypad - handle compact binding ARM: s3c: register and attach software nodes for Samsung gpio_chips ARM: s3c: crag6410: switch keypad device to software properties Input: samsung-keypad - remove support for platform data ARM: s3c: crag6410: use software nodes/properties to set up GPIO keys mfd: wm831x: support software nodes for DCDC regulators ARM: s3c: crag6410: convert PMIC DVS GPIO to software properties ARM: s3c: crag6410: convert basic-mmio-gpio and LEDs to software properties ARM: s3c: crag6410: convert remaining GPIO lookup tables to property entries .../bindings/input/samsung,s3c6410-keypad.yaml | 53 ++- arch/arm/mach-s3c/Kconfig | 5 - arch/arm/mach-s3c/Kconfig.s3c64xx | 7 - arch/arm/mach-s3c/Makefile.s3c64xx | 1 - arch/arm/mach-s3c/devs.c | 62 ---- arch/arm/mach-s3c/devs.h | 2 - arch/arm/mach-s3c/gpio-core.h | 3 + arch/arm/mach-s3c/gpio-samsung-s3c64xx.h | 5 + arch/arm/mach-s3c/gpio-samsung.c | 72 +++- arch/arm/mach-s3c/keypad.h | 27 -- arch/arm/mach-s3c/mach-crag6410.c | 369 +++++++++++++-------- arch/arm/mach-s3c/setup-keypad-s3c64xx.c | 20 -- drivers/input/keyboard/samsung-keypad.c | 200 +++++------ drivers/mfd/wm831x-core.c | 47 ++- include/linux/input/samsung-keypad.h | 39 --- include/linux/mfd/wm831x/pdata.h | 2 + 16 files changed, 472 insertions(+), 442 deletions(-) --- base-commit: 8e9685d3c41c35dd1b37df70d854137abcb2fbac change-id: 20240819-samsung-kp-ceedd4f2f720 Thanks. -- Dmitry