From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-dy2-f42.google.com (mail-dy2-f42.google.com [74.125.229.42]) (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 75E4135C691 for ; Wed, 30 Sep 2026 04:58:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=74.125.229.42 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1790744305; cv=none; b=kDOeWFxD0aevu8hqWNgwULKdONIJxbLYOguANg/geWFUiwSN+e3CR0a/B+pJcnUahiH8alydqLPETg48BZI4lX2N+Ijb8M8QRzgVBSEJJT/hMsldGMukvvQevTBYWpglo2FAQI5wZ7iQaT2LsuIJODGoXZ/tk+B0Jir80pJSCps= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1790744305; c=relaxed/simple; bh=bocwqw7X310Ap6HbvXN88unuvzXmO6SuDNjdejac4+s=; h=From:Subject:Date:Message-Id:MIME-Version:Content-Type:To:Cc; b=n24zPL5/2dsIRjUmgt1XhyOAqTH6uA8XAgjHX6abvGLXnmDyMVHlJnZJwT+a4QXUBTnWZB5pqLtFZA3NUQVPZCpXq2VdvYouFERofi7MvKYyFINVnymU2Nqe33Z/HMNDkh6m/4IVr79cirX3Xs1R46G5Qxk4ARZIrqzkzX6KYjI= 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=AT7DDBaR; arc=none smtp.client-ip=74.125.229.42 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="AT7DDBaR" Received: by mail-dy2-f42.google.com with SMTP id 5a478bee46e88-341d0522b4dso7548851eec.1 for ; Tue, 29 Sep 2026 21:58:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1790744303; x=1791349103; 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=uEa+/CcqrhlXh9egqa2jk7iOVWdF6h8G71PxTzsaVVk=; b=AT7DDBaRlgxqE5QlgB2sbI5BWR5GkjRwziO+IrDLO0I+hwDH86FtYEADRW99Tft9Lh Iatm4mCwlQT269h0uhR74TCyS8ZTtFCnTOPPSX8WSCmvs6dWB0s/j8wpug7ic/bntkqk RK1I3VkeVZKzeC3YQcM8Y0206QAYeYw0c4o7fE2hH67tMOIntui/KFi/Ig2nhxjPArxa Buk++fkVXOPEMSP91VSLWieErsRJCc6xIqedcZ9SamSS+d1XXxRAHD4I57/hHrx0lKVa XqiaYMWiAsJo0coNRsw9DKazohn7vhm563tuOFQK9eW9I+Xiz311VW4szHG3wHbH6eco 3TcA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1790744303; x=1791349103; 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=uEa+/CcqrhlXh9egqa2jk7iOVWdF6h8G71PxTzsaVVk=; b=vYDZmSNkj2MIGcHMTUKB22/ljwxi0uca/I61TNg1Iy8O9W8e92VNUloI4szYuASTxE yP+xXQdyrzcRMUof4u+DT+key5tJ6/wJ9jb5tCvPCSOB9YNMRQ6xi2RO/viGt6ErJnga rJdDk8IER9fo7DBC4TQe0roSxN4eA1eg4pm4MzmHziL1ESa+ASTYWZWUGNubOhZu3Cfl fc20g2YwhMKxmaKvxDbCFwOp7cIWJgVNqEm5guTKheYnKTCW0N+MXfTnHUMzc6XrfMCs JhJmlhq1L2tjTWj/rUHj7La/GwXPNSK+vOL03ANFzoZ29xf4CILwyC6iKR70p5j55UWE Va7A== X-Forwarded-Encrypted: i=1; AKwUvByHkrMpCPz6V/8OI1j+DIF1BfCr+1h6yYImlKWc4zwFvWiojIl8qrZTCKo1QXXz8MBsemIOHpTJB278@vger.kernel.org X-Gm-Message-State: AFq9FYKmutK7rVkZT0xHctETQhmiwDM4XbHDkDxW7njm7EFiCWazI8E+ zdeE1r5MWgz73VU1CtFYye2o8jLG2QtamZ3ttjjPdK8mdCzR0f+smZS5 X-Gm-Gg: AYBFou3hb3amr/NmQs1VCudtGKQySgLdM4BxIgExfqLd8iA+IqtIS2Gvp/LQr6X61Ye q5e0fJtFbW3gMVBAa7CHiKD9AWWKd+U1YQoU5+ZiSY7Vs+kukr2bYyP2y+XrPNMZ0ohq6si2XBF A2E9s72jL7lI/X0rbiPaqeXMmTkuX6udTBUEgiibl5525i9s1TErJI+ULRPb5CbIjNT6TJFIpS/ ux6X2pnC8U1lQCYIkvJ13jgPvSH0VCN1yfD1dd76cJsdoSq9u7bPV/ELoETgsN4OwmIOaJLEcBu k4frdjViCaDfjalRJLdE3RVRF9zoIHjXueIBr1cfCpHiz/R2j7AA7uxkjVF2gRkS0ov4PFbNIFw NPlOWQMifhI5ydgYO3tKf0JKt02otd2DNF9x4bg6/92RDF2+MGwTFF9HurExN2sMV4usno+gI+S YDDr/ZmVmTsvicmLWjnR0tf+EO2y2EM6yFZBje2MdjHVhp6o/6QrLItkBA0WKqGk1ETB/nS6rmW mx5OwC29MzeQbjYqaqDvPOGLMehkFID/EQIk+UAwkeX1T1DJTy0D445JZEa/2Q= X-Received: by 2002:a05:7301:d38c:b0:33b:dfe3:250d with SMTP id 5a478bee46e88-34cdc9b6537mr582806eec.23.1790744303385; Tue, 29 Sep 2026 21:58:23 -0700 (PDT) Received: from dtor-ws.sjc.corp.google.com ([2a00:79e0:2ebe:8:101a:5ce6:a15e:d8ca]) by smtp.gmail.com with ESMTPSA id 5a478bee46e88-34cf514b783sm571056eec.13.2026.09.29.21.58.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 29 Sep 2026 21:58:22 -0700 (PDT) From: Dmitry Torokhov Subject: [PATCH v3 0/5] sh: mach-rsk: rsk7203: switch to using static device property, drop legacy gpio API Date: Tue, 29 Sep 2026 21:57:59 -0700 Message-Id: <20260929-rsk7203-properties-v3-0-02f84aeb8e47@gmail.com> Precedence: bulk X-Mailing-List: linux-gpio@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=H4sIANeWvGoC/x3MSw6DIBRA0a00jEuCiJ921H00HQA+BC2fAtVG4 95LHJ7BvTtKEA0kdL/sKMJikvGuoL5ekNTcjYDNUIwooS2pK4JjmjtKahyiDxBzaXFPhaKyouL WN6iEIYIyv3P6fBWr6C3OOgI/V9OaBx8yz5vyrLMiWDutWuvJMSvWFubAxux9kLzjm5Dw9o/vk je20pE3H4eO4w9iiNjntgAAAA== X-Change-ID: 20260310-rsk7203-properties-82bf2c12b985 To: Rich Felker , John Paul Adrian Glaubitz , Yoshinori Sato Cc: Geert Uytterhoeven , Linus Walleij , Bartosz Golaszewski , Andy Shevchenko , Arnd Bergmann , linux-sh@vger.kernel.org, linux-kernel@vger.kernel.org, linux-renesas-soc@vger.kernel.org, linux-gpio@vger.kernel.org, Bartosz Golaszewski X-Mailer: b4 0.17-dev-6c14f This series of patches converts rsk7203 to use static device properties for its devices, including gpio-keys and gpio-leds, and removing dependency on legacy gpio API (in favor of gpiod API). To configure pin functions the board is switched to use gpio-hogs, as doing full conversion to pinmux is too challenging without access to hardware. Changes in v3: - Avoided using inline compound literals for property entries in software node initializers to fix compilation errors with older GCC compilers (GCC < 14). - Collected Acked-by and Reviewed-by trailers from Bartosz Golaszewski and Linus Walleij. Changes in v2: - Added a patch to isolate the function gpiochip from the parent fwnode to prevent ambiguous property lookups. - Added a patch attaching a software node to the main PFC gpiochip device. - Adjusted the board setup to use the PFC software node for LEDs and GPIO keys instead of creating a standalone node. - Added support to sh-pfc for configuring the secondary "function" gpiochip via a "functions" child software node. - Converted board pin configuration from legacy gpio_request() to GPIO hogs, using postcore_initcall to ensure nodes are available during driver probe. Signed-off-by: Dmitry Torokhov --- Dmitry Torokhov (5): pinctrl: renesas: gpio: isolate function gpiochip from parent fwnode sh: pfc: attach software node to the GPIO chip sh: mach-rsk: rsk7203: use static device properties for LEDs and GPIO buttons pinctrl: renesas: gpio: support software nodes for function GPIOs sh: mach-rsk: rsk7203: convert pin configuration to using software nodes arch/sh/boards/mach-rsk/devices-rsk7203.c | 314 ++++++++++++++++++++++-------- arch/sh/include/cpu-common/cpu/pfc.h | 3 + arch/sh/kernel/cpu/pfc.c | 20 +- drivers/pinctrl/renesas/gpio.c | 28 +++ 4 files changed, 281 insertions(+), 84 deletions(-) --- base-commit: 6474fa070f2b8013b4b87350b775b8c3be6e8aac change-id: 20260310-rsk7203-properties-82bf2c12b985 Thanks. -- Dmitry