From 2e607bfb94239d634a4787ce64503f1cf79e977b Mon Sep 17 00:00:00 2001 From: Julian Arango <95070226+ja-818@users.noreply.github.com> Date: Mon, 23 Nov 2026 04:02:44 +0000 Subject: [PATCH] mfd: macsmc: T6050: register the gP GPIO bank where the tree describes it On T6050 the SMC registers its input, power and hwmon cells, the PCIO and low GPIO banks and the described reboot and RTC cells. The gP bank (apple,smc-gpio) is only in the list for the other SoCs. The J716s's N1 port names its power line on that bank (pwren-gpios = <&smc_gpio 0x13 ...>), so pcie-apple's port probe waits for a GPIO provider that never appears: "Port /pcie@1cb0000000/pci@0,0 probe fail", deferred forever, and no PCIe device, Wi-Fi or Bluetooth. Register the gP bank with the T6050 described cells, under a cell name of its own ("macsmc-gpio" is the PCIO bank's; gpio-macsmc binds both by compatible). Only the J716s's tree describes the bank today, so no other T6050 board changes. Tested on one J716s (27.2 stub 26B123, omarchy-m5's v272-17 kernel with this change) with pwren-gpios kept in its tree: the gP bank registers ("First GPIO key: gP01"), pcie-apple probes the N1 port with no deferral, and Wi-Fi and Bluetooth come up. Signed-off-by: Julian Arango <95070226+ja-818@users.noreply.github.com> Co-Authored-By: Claude Opus 5.5 --- drivers/mfd/macsmc.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/drivers/mfd/macsmc.c b/drivers/mfd/macsmc.c index cb32577a3bf66..b73b9cf082f2e 100644 --- a/drivers/mfd/macsmc.c +++ b/drivers/mfd/macsmc.c @@ -83,12 +83,15 @@ static const struct mfd_cell apple_smc_described_devs[] = { /* * T6050's reboot/power-off and RTC, for a kernel that owns the machine (J775D, booted bare - * metal). Registered only where the device tree describes them, so a T6050 device tree without - * them registers what it did before. + * metal), and the gP GPIO bank, which carries the J716s's N1 power line (gP13, the pwren-gpios + * of its Wi-Fi/Bluetooth port). Registered only where the device tree describes them, so a T6050 + * device tree without them registers what it did before. The gP bank has a cell name of its own: + * "macsmc-gpio" is the PCIO bank's, and the driver binds both by compatible. */ static const struct mfd_cell apple_smc_t6050_described_devs[] = { MFD_CELL_OF("macsmc-reboot", NULL, NULL, 0, 0, "apple,smc-reboot"), MFD_CELL_OF("macsmc-rtc", NULL, NULL, 0, 0, "apple,smc-rtc"), + MFD_CELL_OF("macsmc-gp-gpio", NULL, NULL, 0, 0, "apple,smc-gpio"), }; static int apple_smc_add_described_devices(struct apple_smc *smc, const struct mfd_cell *cells,