From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pg1-f169.google.com (mail-pg1-f169.google.com [209.85.215.169]) (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 D24B925B0B7 for ; Tue, 2 Jun 2026 05:01:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.215.169 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1780376514; cv=none; b=okaBlEtqteR4HnA/KeJZ8rU1KQzYJ3Q4SbTx3uoeWICPDYBcnQRyoU+ASUD1TIo1c6SdYJTnCe1M42J7IbiOWj0fJKZ+jeh+7c3OmqbzGkksCRD4uBI4RYH2DvzGO7POL9DVylqHndEGA1eDnxMYyKxh7TU+35HCBs+K1+NloYo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1780376514; c=relaxed/simple; bh=fu0fHH8GEc/eY/dNnjeJ3WVSqYJqyom/Ku2BZeg7cwg=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=INTljMdtvzFWODnmClOPezgQ2Ri2RcJGbniK24TCvkXSZ6PGwsvr+F3o0RX+xPE767LNHUqi6lg7+sUK8pO3kzZh/4+uXbc3J+yLJYjSMCBx7i56DpKC50ExMoN0HRCmaP4T8IpgXWmrG2Axg/tp0mtv3OK4s1+IoqqadE9Fws0= 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=c8QoYsFY; arc=none smtp.client-ip=209.85.215.169 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="c8QoYsFY" Received: by mail-pg1-f169.google.com with SMTP id 41be03b00d2f7-c85b2139015so617464a12.2 for ; Mon, 01 Jun 2026 22:01:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1780376512; x=1780981312; 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=l9UBbJFTl4BJCNOtay024UeZbTsRkAab8z+DA8cu9aI=; b=c8QoYsFY9Sut9YrShUiaPBBVj7d0MPG4ujhdUmeEccGCOpoRr1sFJb6yRWoAuX3qu4 nHCkwhFINEe2IoY9jZz3ZsYLk2X+mklQgjtXa2FSj197wBsVyGIhAr7pdgdTiYTZ0cP3 c8zNju5soV9fqe1dNdvpjuCxyAEc3LN+D0mm4fjFFuHkIp4s3WpmbHN0VEhP0IHuxG67 tcxCYHpkXLW+rMRzRujZbWb1RfOrXLSvFg9UB79hd7UNk9Uj5TC49iQ7GaiP5fpQWBtn pBEJn/lgsjrVaUbSTRT9Vs+7HcS2DFjDYXK0GTUWG4nxnWTFOpZg8WFYUISL85RyF+OO hYhQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1780376512; x=1780981312; 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=l9UBbJFTl4BJCNOtay024UeZbTsRkAab8z+DA8cu9aI=; b=GjPeYKbzJqIWzRka/LxaV5B8AvkFjA1UugVZcqh6Tt9tBxb/ugLAbIk5tnzdXh3H2w 5GH3ZG7I3TF1aJ0XI024LNMwj4GQ4SFRlC9YAZUGRIwbvU6FVjsyOZcQN97p0n8h0B8A yTLAIQ14t58dmxlNOqiYsAF5TsBO8OUC++pj6QFQ96g9IBy64p3huz3GJ3jZA99bfi/h yHSot6lXVnw6btsXLBCUnpGXzG1SEaeyenMOLNhGK/poVbrGHMvbLuR82TzEiDYDW/ic zWbei1aFkGUKxvozrlIzLreZD/yfNdFJ6HOqXwK2s9dBK0xqOaUDZRozUZQ29K71h+vP wmlA== X-Forwarded-Encrypted: i=1; AFNElJ+AJIfsAaWyuW7M23eDLwcj54uZin7yfAQ+I+aPfjGOP3sXzQ8HqSv7KkBcxbxvsfJ1la76sPaHtnEPcIM=@vger.kernel.org X-Gm-Message-State: AOJu0YyQh7nbUFCi7XLIaZ/FiHp6KXfhVLuSCmGprydd/Q2KPF0P5bQ8 +IoI/5KG+Vit6CitEf1N8gHL8kfzNIupp+YSy1rQSpfzwQZksqnbjfBV X-Gm-Gg: Acq92OGstuHTLA1VTXYDJEycDMM8jkLMetLUzd4o+9lwG02sMg5pkwaUpLU4BhlyXp2 aCIXFwAz/0ZT7e8T059qTF0EhBeV2IvncO3NLONZn7BrI0S2jx+00o96k7xsWGNJvblUf9nU1zW hCDpLELB1gH8Zm9CVpjng4Vmu04nC3avaADFYtIrbJU3o9JiiEe0fZMRotwbIoYfvcG1Dc/rb9O D0njPvUKyS3Bh60LIWUkw019oW1VmqNfKoY7YM2XWB1U24ut1C2eIFngEf0UGZeWFpuvx1GK8K/ eZjaujmqFW2IBEKcyBlYSzXuAe92v/j9/MIc0tdmvPCbSQmxdpZ7pCUR7fywilbe+HLbZwTpcfR NjARLReRr27rT2p5FP2oUCI4UV1FEz6YkYQJf7wXsyQ0AZS91Y1EYE7hWE2Z03jrHXVx0+FpfMh uMh6AHEmIbrSc4He9f2518TGwr8qLyWy0Dn+LPyOHqw3TUE4OQBBgVHHtf+e1u8N9BJqnB1qqRD 5rJHu7RFcg4TUgdSGalyhGj+LfmrLkoIlxDLP23TU87Vw== X-Received: by 2002:a05:6a20:6f06:b0:39c:787:f197 with SMTP id adf61e73a8af0-3b427f33690mr14407222637.36.1780376511958; Mon, 01 Jun 2026 22:01:51 -0700 (PDT) Received: from ryzen ([2601:644:8000:5b5d:7285:c2ff:fe45:8a32]) by smtp.gmail.com with ESMTPSA id 41be03b00d2f7-c8589d055c7sm8958467a12.9.2026.06.01.22.01.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 01 Jun 2026 22:01:50 -0700 (PDT) From: Rosen Penev To: linux-gpio@vger.kernel.org Cc: Madhavan Srinivasan , chleroy@kernel.org, Michael Ellerman , Nicholas Piggin , Linus Walleij , Bartosz Golaszewski , linuxppc-dev@lists.ozlabs.org (open list:LINUX FOR POWERPC (32-BIT AND 64-BIT)), linux-kernel@vger.kernel.org (open list) Subject: [PATCH 0/7] gpio: move ppc4xx driver to drivers/gpio and modernize Date: Mon, 1 Jun 2026 22:01:24 -0700 Message-ID: <20260602050131.856789-1-rosenp@gmail.com> X-Mailer: git-send-email 2.54.0 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 moves the ppc4xx GPIO driver from arch/powerpc to drivers/gpio, converts it to be a proper platform driver using generic MMIO helpers, drops architecture-specific accessors, and prepares it for module build and COMPILE_TEST. Patches 1-4 move the driver and convert it to standard platform driver infrastructure. Patch 5 switches to generic MMIO helpers. Patch 6 drops PPC-specific IO accessors and enables COMPILE_TEST. Patch 7 adds the missing MODULE metadata so the driver can actually be built as a module. Rosen Penev (7): gpio: move ppc4xx gpio driver from arch/powerpc to drivers/gpio gpio: ppc44x: Use module platform driver helper for GPIO gpio: ppc44x: Set GPIO chip firmware node gpio: ppc44x: Use platform resource helper for GPIO MMIO gpio: ppc44x: Convert GPIO to generic MMIO gpio: ppc44x: drop PPC-specific IO helpers and rename to ppc44x gpio: ppc44x: add MODULE info arch/powerpc/configs/44x/warp_defconfig | 2 +- arch/powerpc/configs/ppc44x_defconfig | 2 +- arch/powerpc/platforms/44x/Kconfig | 7 - arch/powerpc/platforms/44x/Makefile | 2 +- arch/powerpc/platforms/44x/gpio.c | 210 ----------------------- drivers/gpio/Kconfig | 7 + drivers/gpio/Makefile | 1 + drivers/gpio/gpio-ppc44x.c | 217 ++++++++++++++++++++++++ 8 files changed, 228 insertions(+), 220 deletions(-) delete mode 100644 arch/powerpc/platforms/44x/gpio.c create mode 100644 drivers/gpio/gpio-ppc44x.c -- 2.54.0