From patchwork Tue May 20 17:43:35 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Job Sava X-Patchwork-Id: 891400 Received: from mail-qt1-f181.google.com (mail-qt1-f181.google.com [209.85.160.181]) (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 9D5C5261571 for ; Tue, 20 May 2025 17:43:42 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.160.181 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1747763024; cv=none; b=hN6aGLuhsPqTnkqOgoRsTQtOiy7ZdfVN3RmOMhO76ZXhm/tvaQzbW4ig0MUBZk8D6P39tlOz6W8cvEiCSF3U3Rlk521S3nlbaHL2bUpasXUgOKcXFwI10V/c3XceKTWB1i4TMRGOyROQM5Z5pBBH7YyHsS50k7oCg+c5qXy2NZo= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1747763024; c=relaxed/simple; bh=yeqxdYgDP/mwIyxs/1rcj9YB1LowK4KlQZ4Zwsqf0Q8=; h=From:Subject:Date:Message-Id:MIME-Version:Content-Type:To:Cc; b=NMSNVCWrrdkoVqNhoNstLHZ5eKhiNeUC+8okt0eT9TzepiNJEbzJzfiA1hnWuYImyfXdGJ4krSw7GXKfx5hjsTH2sBZLbDj4emOE2ncsfhtteiQRRsTOMVHkLXa4st0Y1jD91MYJdm7hGW9F9tW1v4oBUJ5CUGvrNrUbK0TdAOs= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=criticallink.com; spf=pass smtp.mailfrom=criticallink.com; dkim=pass (2048-bit key) header.d=criticallink.com header.i=@criticallink.com header.b=ChzYwes/; arc=none smtp.client-ip=209.85.160.181 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=criticallink.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=criticallink.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=criticallink.com header.i=@criticallink.com header.b="ChzYwes/" Received: by mail-qt1-f181.google.com with SMTP id d75a77b69052e-4774193fdffso97677611cf.1 for ; Tue, 20 May 2025 10:43:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=criticallink.com; s=google; t=1747763021; x=1748367821; darn=vger.kernel.org; h=cc:to:content-transfer-encoding:mime-version:message-id:date :subject:from:from:to:cc:subject:date:message-id:reply-to; bh=uEVyBoAEqxAn/2eLRcFtZIXRt97TuO35d71JLM0GfEs=; b=ChzYwes/t5fTXjSq43Th165DDGy4vPOJ5K1jml3D2ioY3TsbQ5WlYyt/udSqBdVBK0 sKSBOto2u9fz0TR9p/po3ZEMlLp7QEy2Knn8+SIjAYYVa/ywT4/2qB2ZxH8ZCrfwBST7 VWcrwB58vGmt8cpiRmyI75Duz7jjVK6ShIyjbeSPiouiFrIdoielPYEoVOZmOZUBYCM1 Bj2nGimpH1zTEMgf/KrgnjUqGTn+J6ysmeBIFNiHAcEmsxrP88iX6ikowEWHnPPJ8iVc 1rBTlulI+3VxAgumYL/h7uViFpzUF7gn0wrccbNqXmehLhembeIo9Pl8f4yjM6SazzYY 09lQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1747763021; x=1748367821; h=cc:to:content-transfer-encoding:mime-version:message-id:date :subject:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=uEVyBoAEqxAn/2eLRcFtZIXRt97TuO35d71JLM0GfEs=; b=czZs2pySocmAm+FtJx9rVOzDYE2SOE6zh0TqKl/PRfdw51Oa6ioBCBx1hne9KAauqK h5lNXiX/QDz1AhWxHpdJel7nyDMZQT1Eqj0mBVWj4U+xkvRROQX1sqdS9v3jdRaJEbJp BgREcJT+NRWm8H2rxe6TugNcD/MUkpEr00mzVnOBf8haqYhZDbcYr0PBn6My+vLUbSdW zTk/p1jE86jEjlJdl/wIblgRedVetki6FhXBc1MgvicyLKmqKOMmvyguqTUATxLFZucO K8fg/nic8vanrhgzOiQ47HqswsPMyE69y1VAW2rBYGb0q3+mejEsVaYUnY8S94/jvX+p VLyQ== X-Forwarded-Encrypted: i=1; AJvYcCWX9fTxQnhr9LetnIYGbeqzW25eALXNsQEG3bRkPbhmJHJlSZk+ei6sYDthsPLk8QGAJ2XQZBz7M/4j7w==@vger.kernel.org X-Gm-Message-State: AOJu0YwLRjZdOkTmngm0W0NFdGuZRnXnvczg4FQGbMo4aC639JlVauMQ ONfEPlwUo/kIRdl1bcJU5aZRSwq9F8Oh6GInk9ZmhmOw9596humZVIm1bh7r0hDBjw== X-Gm-Gg: ASbGnct6qK+292heSGecPbUJB+Oc+S/BSm4h4Denu7n+SX5gtkmUDcQvprP+YmsXEWa zf+U8mB6YcEAu9x9CF2VizEkpVJDVLG3pXleFIdRXIm9/ekVk5ECuqI++DHZo2BCyY0Z6CDIB5P zvcq4XDdsAbiKIKnHkTkNNT7XFO6D8zw8GLDBtXLqVA2ME69LbpdG4Td6NS05AhaZ5pXsEjVjs+ UMGiKPJBBKhxbXar6oDE9aiPKApcpaYxP1inyjzaj7nd4496AgHUmuwZe2ecDkDxXxYEN6x//ot PM8ZdwtusuuPQrNfDZqEtas61aI9Ani+65xQottlpRaHrxLL3zmL+PYzwKfL1d9MXIh79acoX8k Y98CPLvIbCRxXNy97Q1ngESNw3w== X-Google-Smtp-Source: AGHT+IFXZ7YXoRgCP1iWcGdKBbqM9UFlgIi18ryOD2ALUlsiaRsaFpTB9VFjJh8xZMUDnOmM2EYDLw== X-Received: by 2002:a05:622a:5c96:b0:476:91f1:9e5 with SMTP id d75a77b69052e-494b096c63cmr355564001cf.50.1747763021408; Tue, 20 May 2025 10:43:41 -0700 (PDT) Received: from [127.0.1.1] (static-72-90-70-109.syrcny.fios.verizon.net. [72.90.70.109]) by smtp.googlemail.com with ESMTPSA id d75a77b69052e-494ae528553sm72660101cf.68.2025.05.20.10.43.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 20 May 2025 10:43:40 -0700 (PDT) From: Job Sava Subject: [PATCH 0/3] Powerbutton driver and powerdown request for TPS65224 PMIC Date: Tue, 20 May 2025 13:43:35 -0400 Message-Id: <20250520-linux-stable-tps6594-pwrbutton-v1-0-0cc5c6e0415c@criticallink.com> Precedence: bulk X-Mailing-List: linux-input@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-B4-Tracking: v=1; b=H4sIAEe/LGgC/x3NTQqEMAxA4atI1hPoqC3oVYZZtDVqQGpp6g+Id 7e4/DbvXSCUmAT66oJEOwuvoeD7qcDPNkyEPBRDrWqtWtXgwmE7UbJ1C2GOYnTXYjyS23JeA5L SZvDeG0caSiQmGvl8B7//fT9p5Db+cAAAAA== To: Lee Jones , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Julien Panis , Dmitry Torokhov Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-input@vger.kernel.org, jcormier@criticallink.com, Job Sava X-Mailer: b4 0.13.0 X-Developer-Signature: v=1; a=ed25519-sha256; t=1747763020; l=2045; i=jsava@criticallink.com; s=20250404; h=from:subject:message-id; bh=yeqxdYgDP/mwIyxs/1rcj9YB1LowK4KlQZ4Zwsqf0Q8=; b=0mQyiMtS10+eQAOXVRfVhl1B94z6lzdx7XMoe/eb62Plu5J5y2Oi8RlHZ0ZeBrgdC9Wy03jPq FvUpzzVYBLaBVr+qVAqWI4a1d8RN8Hr4QGgkRlwRejow0fh7il0FPtn X-Developer-Key: i=jsava@criticallink.com; a=ed25519; pk=DPPriJ+pziqtCZ0EIomf/hKU23s5T1u4WOQaT8BpQSw= Hello all, The following patches were created to get the tps65224 PMIC powerbutton driver and power off request working on the MitySOM-AM62PX. The patches are as follows: 1-Powerbutton: Full implementation TPS659224 pmic push and release interrupts are now handled by the powerbutton driver. These events now issue a power off request that puts the PMIC into STANDBY mode. tps6594-pwrbutton.c is modeled off the tps65219-pwrbutton.c driver. 2-OFF-request: The PMIC will now respond to a power off request. This is done by sending the PMIC a command to enter STANDBY mode. The PMIC will then turn off the power to the system. 3-Device tree bindings: The device tree binding for the TPS65224 PMIC has been updated to include a proper description of the power button functionality. 4-Impact: Button presses will now be detected reliably by the newly added powerbutton driver. The `tps6594-pfsm.c` file will no longer handle push and release pushbutton interrupts. This is because the powerbutton driver now manages these interrupts, as intended, which ensures the powerbutton functionality operates independently and correctly. Regards, Job Sava jsava@criticallink.com Critical Link LLC Signed-off-by: Job Sava --- Job Sava (3): dt-bindings: mfd: Add power-button option for TI TPS6594 PMIC mfd: tps6594-pwrbutton: Add powerbutton functionality mfd: tps6594: Adds support for powering off the PMIC .../devicetree/bindings/mfd/ti,tps6594.yaml | 15 +++ drivers/input/misc/Kconfig | 10 ++ drivers/input/misc/Makefile | 1 + drivers/input/misc/tps6594-pwrbutton.c | 126 +++++++++++++++++++++ drivers/mfd/tps6594-core.c | 49 +++++++- 5 files changed, 199 insertions(+), 2 deletions(-) --- base-commit: a5806cd506af5a7c19bcd596e4708b5c464bfd21 change-id: 20250403-linux-stable-tps6594-pwrbutton-e056dccc6be5 Best regards,