From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pl1-f176.google.com (mail-pl1-f176.google.com [209.85.214.176]) (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 C37282E7376 for ; Thu, 9 Jul 2026 04:53:05 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.176 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1783572787; cv=none; b=q71xy26JnDUxyyEz50NwwF2pcM/2zFQRO+SFTn/i44PIJhDjn2xfysOWNZA+oRw8g2Msq9YSowRmSgw5GdsalhYaee8nlbW/BmhF2xw7luN8zAjd2hw/FhTm1dKgzZaKBEQmO5FoIhmzKJvzTy2YD3AdE0nYiMeRLDcAyrMTpbU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1783572787; c=relaxed/simple; bh=uWgOzCk3HJqnimxEvgxG5haMcDkZa8740bZxUMybWwg=; h=From:Subject:Date:Message-Id:MIME-Version:Content-Type:To:Cc; b=IE7QkBuHtijA14f2UiP05gdtF9PnqC0fWe+GRXXmmdNM8ApjGJemYCw+sTfYp8UK7M7HFR8E6KZsdaXFxFF05+7yNSjTmp6qQIPFMFG6DTIBa6IIXRO760Z/s7/ggUlqV2eV0umAzpojB6N1PHH8gQqQzZbXWyHCMSYq5O17iqw= 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=VG6/3R+D; arc=none smtp.client-ip=209.85.214.176 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="VG6/3R+D" Received: by mail-pl1-f176.google.com with SMTP id d9443c01a7336-2c6b67d5fa1so5270945ad.2 for ; Wed, 08 Jul 2026 21:53:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1783572785; x=1784177585; 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=rss97cjDQSVlLDw4954aQMvhSqBEsq548Tg4wWga1tE=; b=VG6/3R+D0BlMpQeBnLqzWG3Djj2VIRDJT55qhPU3cw/Jse/AOp969md1wVDBgXDbw9 qd0FFClD7eSoYIHxyyzcP3akw8L95LI7L19erJNlVu8kOXQ7vC8VPaPI+0Asj1eFiZd4 vEurLw0ov47SlJwJsaKCsIJY8mN08S4VvNy12Eiz6HoYZU0U1G1MPqR8+Ej0024nWbcE MLgizLwydorThOIPPcQDy7DODKBETCkfOyniGL1oJPNhtPZrmZWD26bJleLFGbAchHzc udx50W0q87u+BEYE+qB65uo63lADpsnwqPhCdDMawoPhapht/MKZ2TqxfM+SoIfvCU6I i1cw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1783572785; x=1784177585; 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=rss97cjDQSVlLDw4954aQMvhSqBEsq548Tg4wWga1tE=; b=CJUlE/T1V/Lygwroy4wAKJOdfOyVXvYoQG1mLCxMEJQclkn+2rJC9eJ/m5geWIaSvl 09QLTVhvdSGskZCa354RiqP+9j5hyNWVVkaU9omABKGXOU5NGrKnBH6Mh2c1vD4sLjtM bl144lEKIAqZoy4LF6wHYAb4BoZE1oL7zhtO/6RdaunR7DsN7G3MpCtDQ2/YEKFKiKnR rtZyICv0mDmFj9og6Gl/17/9L5+2apjkUV5mOPhgKdRSI1P4I30Ybm0sLw3JVrWaCdyJ eWbq1Adg+YK+z9pqVN1cAXW3cbwA9hkVyxNPZ8a0ur+l6d/RjU0/6s2RbauKXwGZOVE+ M5+g== X-Forwarded-Encrypted: i=1; AHgh+Rq4r1Ly2VgKDSj2IiVVPIab7yj47mKxoFQJUaaXvRLxQv/UYeDhsdVX5VL+uf3I1yHWfDzVHl/l4APTew==@vger.kernel.org X-Gm-Message-State: AOJu0YzAYJWZ601caNh8zwODb5fh8jBmE7X66KmbMceNTc6h6M4fxb3T qrStlMivmIruClSK55mTGFtjFc5myBG3x5/oAu5p+AycPLHN/3VbdnAH X-Gm-Gg: AfdE7ckdkrx8WQd+a8u8Lr3NN8ZNEGGm9ljdw7c9HqF9bTT1+i2RBSPlifWjzdYpFrw UYlPzE2eLHpNLsoGBdtBpcLteKpEEVRv23yg1gGisfRfdWD3lcS80JUn6HfllYrZ0rw5mScMh1Q lie1sCp4rJvUWlVGnM4yU7WQGFDUiXBK5sSGivRyGJ5Cb6URHjKpyKlQafFKKMAxXOnkYn0ii93 PH+XdfVLPFSH6eSPPzEfLATaSahZP8sRxMo8Fei4v0yOwyCUzJygIPJ6TNbSBUOJ76erkDDOSLX RLT0qmnog4wzUu7h8oQl50vlwp79wtidP3JijQU2D/kxVHOsi0aVJJKJLWl8tnHCo9S1pB9u1Bu Gk6DSOs0UMU/itFVhslqx2EZz/78YmVDAB/+1/EMb86ekp5pt9dIeLbI3EiQq2WQ3kINV/MTaJK BEMndvz55Rv42VuHApzUq/QM6CUZYM/oVIzBT9DIpDnc31pcimmsopuetBCkurEpVmA9JiejnMi t11 X-Received: by 2002:a05:6a20:431a:b0:3b7:d9d6:9fc9 with SMTP id adf61e73a8af0-3c0bce1895fmr5924516637.2.1783572785059; Wed, 08 Jul 2026 21:53:05 -0700 (PDT) Received: from dtor-ws.sjc.corp.google.com ([2a00:79e0:2ebe:8:e229:88c8:fd09:9a39]) by smtp.gmail.com with ESMTPSA id a92af1059eb24-13b658a99afsm26559252c88.0.2026.07.08.21.53.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 08 Jul 2026 21:53:04 -0700 (PDT) From: Dmitry Torokhov Subject: [PATCH v2 00/11] Remove support for platform data from samsung keypad Date: Wed, 08 Jul 2026 21:52:58 -0700 Message-Id: <20260708-samsung-kp-v2-0-3c6ed4c9b3b6@gmail.com> Precedence: bulk X-Mailing-List: linux-input@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=H4sIACopT2oC/1XMQQ6CMBBA0auQWTukHYuiK+9hXDR0Cg2WkikSD eHuNu5cvsX/G2SWwBmu1QbCa8ghTQV0qKAb7NQzBlcMpMioVl8w25hfU4/jjB2zc8aTP5OCEsz CPrx/s/uj2EuKuAzC9m+hTNPqY026MSdDqNHFsMinXpKkcUjrrY82POsuRdj3LypkxtKhAAAA 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, Krzysztof Kozlowski X-Mailer: b4 0.16-dev-b242f Hi, This is a reworked and extended version of the series previously posted to convert the Samsung keypad driver and Cragganmore 6410 board to generic device properties. The first 8 patches of the original series (general cleanups) have been merged into mainline, and this version focuses on the remaining keypad rework and extends the board conversion. Specifically, we rework the Samsung keypad driver to stop using platform data and instead rely on generic device properties, and convert the Cragganmore board to use software nodes for all its peripherals, removing legacy GPIO lookup tables. We start by introducing a compact matrix keypad binding and implementing it in the driver. To support referencing Samsung GPIO chips in board properties, we add infrastructure to register and attach software nodes to Samsung gpio_chips. We then switch the Cragganmore keypad to use software properties and drop platform data support from the driver. To convert the PMIC DVS regulator on Cragganmore, we add software node support to the wm831x regulator driver, allowing DVS configuration via device properties. Once the board is converted, we clean up the driver by removing legacy DVS platform data fields. Finally, we convert the remaining peripherals on Cragganmore (GPIO keys, PMIC, WM1250, SPI0, basic-mmio-gpio, and LEDs) to software properties. This allows us to eliminate all legacy GPIO lookup tables, which also fixes incorrect GPIO chip names ("GPIO" vs "GP") from previous descriptor conversions. Mark, it would be great if you could give this a spin on Cragganmore. Thanks! 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 (11): 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 regulator: wm831x: support software node in platform data ARM: s3c: crag6410: convert PMIC to software properties regulator: wm831x: remove legacy DVS platform data ARM: s3c: crag6410: convert remaining GPIO lookup tables to property entries ARM: s3c: crag6410: convert basic-mmio-gpio and LEDs to software properties .../bindings/input/samsung,s3c6410-keypad.yaml | 53 ++- arch/arm/mach-s3c/Kconfig | 5 - arch/arm/mach-s3c/Kconfig.s3c64xx | 1 - 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 | 368 +++++++++++++-------- arch/arm/mach-s3c/setup-keypad-s3c64xx.c | 20 -- drivers/input/keyboard/samsung-keypad.c | 192 ++++------- drivers/regulator/wm831x-dcdc.c | 24 +- include/linux/input/samsung-keypad.h | 39 --- include/linux/mfd/wm831x/pdata.h | 5 +- 16 files changed, 445 insertions(+), 434 deletions(-) --- base-commit: 8e9685d3c41c35dd1b37df70d854137abcb2fbac change-id: 20240819-samsung-kp-ceedd4f2f720 Thanks. -- Dmitry