mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Naresh Solanki <naresh.solanki@9elements.com>
To: Guenter Roeck <linux@roeck-us.net>,
	Jean Delvare <jdelvare@suse.com>,
	krzysztof.kozlowski+dt@linaro.org
Cc: linux-hwmon@vger.kernel.org,
	Patrick Rudolph <patrick.rudolph@9elements.com>,
	Naresh Solanki <Naresh.Solanki@9elements.com>,
	linux-kernel@vger.kernel.org
Subject: [PATCH v3 2/3] hwmon: (pmbus) Add ON_OFF_CONFIG register bits
Date: Wed,  2 Aug 2023 21:31:52 +0200	[thread overview]
Message-ID: <20230802193155.2170935-2-Naresh.Solanki@9elements.com> (raw)
In-Reply-To: <20230802193155.2170935-1-Naresh.Solanki@9elements.com>

From: Patrick Rudolph <patrick.rudolph@9elements.com>

Add bits found in the ON_OFF_CONFIG register.

Signed-off-by: Patrick Rudolph <patrick.rudolph@9elements.com>
Signed-off-by: Naresh Solanki <Naresh.Solanki@9elements.com>
---
 drivers/hwmon/pmbus/pmbus.h | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/drivers/hwmon/pmbus/pmbus.h b/drivers/hwmon/pmbus/pmbus.h
index b0832a4c690d..7a28bac7f171 100644
--- a/drivers/hwmon/pmbus/pmbus.h
+++ b/drivers/hwmon/pmbus/pmbus.h
@@ -243,6 +243,15 @@ enum pmbus_regs {
  */
 #define PB_OPERATION_CONTROL_ON		BIT(7)
 
+/*
+ * ON_OFF_CONFIG
+ */
+#define PB_ON_OFF_CONFIG_POWERUP_CONTROL	BIT(4)
+#define PB_ON_OFF_CONFIG_OPERATION_REQ		BIT(3)
+#define PB_ON_OFF_CONFIG_EN_PIN_REQ		BIT(2)
+#define PB_ON_OFF_CONFIG_POLARITY_HIGH		BIT(1)
+#define PB_ON_OFF_CONFIG_TURN_OFF_FAST		BIT(0)
+
 /*
  * WRITE_PROTECT
  */
-- 
2.41.0


  reply	other threads:[~2023-08-02 19:32 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-08-02 19:31 [PATCH v3 1/3] dt-bindings: hwmon: Add Infineon TDA38640 Naresh Solanki
2023-08-02 19:31 ` Naresh Solanki [this message]
2023-08-12 12:31   ` [PATCH v3 2/3] hwmon: (pmbus) Add ON_OFF_CONFIG register bits Guenter Roeck
2023-08-02 19:31 ` [PATCH v3 3/3] hwmon: (pmbus/tda38640) Add workaround for bug in SVID mode Naresh Solanki
2023-08-12 12:33   ` Guenter Roeck
2023-08-08 11:46 ` [PATCH v3 1/3] dt-bindings: hwmon: Add Infineon TDA38640 Conor Dooley
2023-08-08 14:10   ` Guenter Roeck
2023-08-08 14:28     ` Conor Dooley
2023-08-11 16:00       ` Naresh Solanki
2023-08-14 19:32         ` Krzysztof Kozlowski
2023-08-16  8:51           ` Naresh Solanki
2023-08-18  9:22             ` Krzysztof Kozlowski
2023-08-22  9:02               ` Naresh Solanki
2023-08-22 13:17                 ` Guenter Roeck
2023-08-22 16:11                   ` Naresh Solanki
2023-08-22 16:50                     ` Guenter Roeck
2023-08-22 17:38                       ` Naresh Solanki
2023-08-29 14:10                         ` Naresh Solanki

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20230802193155.2170935-2-Naresh.Solanki@9elements.com \
    --to=naresh.solanki@9elements.com \
    --cc=jdelvare@suse.com \
    --cc=krzysztof.kozlowski+dt@linaro.org \
    --cc=linux-hwmon@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux@roeck-us.net \
    --cc=patrick.rudolph@9elements.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®