From patchwork Mon Sep 9 15:39:02 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jerome Brunet X-Patchwork-Id: 13797248 Received: from mail-wr1-f41.google.com (mail-wr1-f41.google.com [209.85.221.41]) (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 9ED6B44375 for ; Mon, 9 Sep 2024 15:39:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.41 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1725896362; cv=none; b=rU6ljAZGW7tbvX7kIkl27RdorVDDfMsYMDmS8kY1iYBqlWkex4cS89olGOTJvHIXKQqQuSgLQzvm9LtajY3iuBA0o4zTqdEU9GEmOGcue9/GZNfR4LF4tOM1D2NR56+x8N2Yt6S9qcSichbrbt5xIwWMQKWPctiWcHMb6eWpfH4= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1725896362; c=relaxed/simple; bh=tR8kO6PuFrwBBIuqy1jmykEHT6GN8EHwvvkRzwZMc8c=; h=From:Subject:Date:Message-Id:MIME-Version:Content-Type:To:Cc; b=Xi/y+v7B97cQHCCKkMu3kHlMKGg+14N4HY0GNsKKKyTeoUtAFlcd5uFQ1qI2TlQ2T/bz/izvLN4EC0vXaQt0LZr5X1iqi3i4+XtOjJMydLcBRzBjlRxLf4YhVMm2L+SwmWeWIx/ASd4mppetQYd/Wrq3n5jCAYrVtMlwcvnATMk= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=baylibre.com; spf=pass smtp.mailfrom=baylibre.com; dkim=pass (2048-bit key) header.d=baylibre-com.20230601.gappssmtp.com header.i=@baylibre-com.20230601.gappssmtp.com header.b=Z6yQMEBh; arc=none smtp.client-ip=209.85.221.41 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=baylibre.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=baylibre.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=baylibre-com.20230601.gappssmtp.com header.i=@baylibre-com.20230601.gappssmtp.com header.b="Z6yQMEBh" Received: by mail-wr1-f41.google.com with SMTP id ffacd0b85a97d-374c5bab490so3433707f8f.1 for ; Mon, 09 Sep 2024 08:39:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20230601.gappssmtp.com; s=20230601; t=1725896358; x=1726501158; 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=gI3EWry1HeKkrariixrdSUNjJ5pjPrLgpmN89IajSBE=; b=Z6yQMEBhU9uHwdwBwxpBdL6ZAVd2iPL36oQysjCZuN35mhNozIol83cHeA0PWQv7to vlZp1+ddn6nYOKpkFMmZdn602Y8rkP2SyJ+gBW/WAmoKWZL5gFQlgRALfuaCCSZyR0fn j7YKzpdcp9lt+I/tT7OSekZAFnw1edl0Q5xBiOKS6y8GlZS1y6UtK2NC5vh2KUZtkrrw sdP7N48r+vhI1GR+Jrtp7KSWQosKv4gRC4grwSBL5XPLnFwFIYcZ5Ui4TVBRuQF4X6P2 pFFYiwLdFta5AQbqEP3k83NP4sn9AdiMuRpPAG1yTiv/Em/siuH8KpRaWkp66Due27CT VsAQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1725896358; x=1726501158; 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=gI3EWry1HeKkrariixrdSUNjJ5pjPrLgpmN89IajSBE=; b=WFopeI4GEaSNlzfyYSGUnVXVn+UKGODRgY9hfXRFjLm5DrAd+NBTb4dQoEI2ewsxDL nMk/11M9aFJcTubrYeOL5fhXBRX5iC3+6YBSDh76EIEAfwTSJdoHRMu5ZRQiDK0iKz1Z crhkh+0jK0mhswyiF+me6NIsjFU8zabZBwMg9zywBeLzGXtjIdCJ+15RRQac3/UGNr5t I8ZnnIm0VBWOJPONrNhBCPOXkcaRZcRl5AvswUfQhZKAYGfxHT8UZuOuwoJBZEXGfPfT 90l0+ky3atET0ZNRSfjP3iwyW0WQn2u7HalI3JCX49mpKTWhwHjnTC1OA4U6pUymxLSL N0PA== X-Gm-Message-State: AOJu0Yw2bn0UT++nFIpLGFVyAHOROVoyh+hg36GsvZba9Ky5KtXBwKGE tqWUq4ujn1ZWNGDYwOJ8zqmLwPjE+sbfNelNA6xinlIpc6lQE9ah+FgDLiBY+xQ= X-Google-Smtp-Source: AGHT+IE9XPZXajcl+NEQcJ7P0Jannlu1V5w4PEQDba0+5qseJi/FCOGsmbFLhX7q9rPCx5Jh2uuGmQ== X-Received: by 2002:a5d:6284:0:b0:374:cb28:b3f8 with SMTP id ffacd0b85a97d-378a89fd611mr24756f8f.1.1725896357418; Mon, 09 Sep 2024 08:39:17 -0700 (PDT) Received: from toaster.baylibre.com ([2a01:e0a:3c5:5fb1:788a:4542:ae86:67f4]) by smtp.googlemail.com with ESMTPSA id ffacd0b85a97d-3789564af1asm6305145f8f.18.2024.09.09.08.39.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 09 Sep 2024 08:39:16 -0700 (PDT) From: Jerome Brunet Subject: [PATCH 0/3] hwmon: pmbus: add tps25990 efuse support Date: Mon, 09 Sep 2024 17:39:02 +0200 Message-Id: <20240909-tps25990-v1-0-39b37e43e795@baylibre.com> Precedence: bulk X-Mailing-List: linux-hwmon@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-B4-Tracking: v=1; b=H4sIAJYW32YC/6tWKk4tykwtVrJSqFYqSi3LLM7MzwNyDHUUlJIzE vPSU3UzU4B8JSMDIxMDSwNL3ZKCYiNTS0sDXWOTZIPktDSjpFQDMyWg8oKi1LTMCrBR0bG1tQB 8TA00WgAAAA== To: Jean Delvare , Guenter Roeck , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Jerome Brunet , Jonathan Corbet , Delphine CC Chiu Cc: linux-hwmon@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-doc@vger.kernel.org, linux-i2c@vger.kernel.org X-Mailer: b4 0.14.1 X-Developer-Signature: v=1; a=openpgp-sha256; l=1410; i=jbrunet@baylibre.com; h=from:subject:message-id; bh=tR8kO6PuFrwBBIuqy1jmykEHT6GN8EHwvvkRzwZMc8c=; b=owEBbQKS/ZANAwAKAeb8Dxw38tqFAcsmYgBm3xagS7BwL8tqMu7GRBfQetYcJy9MwFpJJwkY3 4En3g/50yaJAjMEAAEKAB0WIQT04VmuGPP1bV8btxvm/A8cN/LahQUCZt8WoAAKCRDm/A8cN/La hcosD/0UO/DTTtUYHOqQv1Mjr4Rhs6b89CikgPS2UZm6E2AtU1DS+9gj9rz+5nfJfHdulRZfmdO 0bOPkzrh2ehmTiLO4b9ciE9euq26sERQ4+Fn5Ttf65rAReiLYRKhjoETIXS4wpr4meySZDh5Ngk wL3/EhJIiy3Ze5cYX/B6Q4qeQebsQOHf0Eo3USEBkFJaID21y21+WqifLFry++D9mSFh/QO84qv JaKjYcr5PYAXN9k/pINqW6TdZEu+1IaxwBkQE232Cir5lHySg8YKtfCXNxlKQD0PLIbA0XU2ekf w9JZpkpU8XjG7NY9g0AmcJPUGx7l39Q0EF8SSVeUYOxN4MNrUlOpIwk35s4rABH8eQNfiI0LGON 0rCxvAK6ar9UzDK2FIbzWarLMTXlNjTXQ7xECRvLaj8YWHoSqFkjFZBSbll8aNGiRS1Ru/ZBced akj2OpTXZzqeE7kwHfLG24YfDOA8wY0JnsSKkfueFnDoBugUphFN1i+OWiV+mOT18wykgVBQH+9 B1W2USFSi/jHgNQ3pq/ExntCFWvRWzIuh9X7ys95z9UUjaSrjTPb3t5sA02d7jF8N0WQNrAEut/ 9JfxDit+Bx6lZSjwjEhXAsel3Vdjj6SNfLZraN2GgJ5dmYAnakan3pQP/XBzcutn3aRkUCHBqu0 PDbFCtiddoSqnGw== X-Developer-Key: i=jbrunet@baylibre.com; a=openpgp; fpr=F29F26CF27BAE1A9719AE6BDC3C92AAF3E60AED9 This patchset adds initial support for the Texas Instruments TPS25990 eFuse. The TPS25990 is an integrated, high-current circuit protection and power management device. TPS25895 may be stacked on the TPS25990 for higher currents. This patchset provides basic telemetry support for the device. On boot, the device is write protected. Limits can be changed in sysfs after removing the write protection, through debugfs. Limits will be restored to the default value device on startup, unless saved to NVM. Writing the NVM is not supported by the driver at the moment. --- Jerome Brunet (3): dt-bindings: hwmon: pmbus: add ti tps25990 documentation hwmon: (pmbus/core) add POWER_GOOD signal limits support hwmon: (pmbus/tps25990): add initial support .../bindings/hwmon/pmbus/ti,tps25990.yaml | 73 ++++ Documentation/hwmon/tps25990.rst | 141 ++++++ drivers/hwmon/pmbus/Kconfig | 17 + drivers/hwmon/pmbus/Makefile | 1 + drivers/hwmon/pmbus/pmbus.h | 3 + drivers/hwmon/pmbus/pmbus_core.c | 6 + drivers/hwmon/pmbus/tps25990.c | 474 +++++++++++++++++++++ 7 files changed, 715 insertions(+) --- base-commit: d22bd451d5606411895ef55cb105277e4f4f6e54 change-id: 20240909-tps25990-34c0cff2be06 Best regards,