mirror of
https://git.openwrt.org/openwrt/openwrt.git
synced 2024-10-19 05:58:53 +02:00
c5fbd49d3f
These patches support the tps23861 PoE controller found on a number of managed switches. The TPS23861 is an I2C-based quad IEEE 802.3at (PoE+) Power-over-Ethernet PSE controller. It's also found on some Realtek based switches, where we expect the bulk of the users to reside. Signed-off-by: Alexandru Gagniuc <mr.nuke.me@gmail.com> [Disable driver in generic/config-5.10] Signed-off-by: Sander Vanheule <sander@svanheule.net>
30 lines
1.0 KiB
Diff
30 lines
1.0 KiB
Diff
From 3d61a7b3a714eb3ef1777e3c576576aca2b85365 Mon Sep 17 00:00:00 2001
|
|
From: Robert Marko <robert.marko@sartura.hr>
|
|
Date: Thu, 10 Jun 2021 00:07:26 +0200
|
|
Subject: [PATCH 2/4] hwmon: (tps23861) define regmap max register
|
|
|
|
Define the max register address the device supports.
|
|
This allows reading the whole register space via
|
|
regmap debugfs, without it only register 0x0 is visible.
|
|
|
|
This was forgotten in the original driver commit.
|
|
|
|
Fixes: fff7b8ab2255 ("hwmon: add Texas Instruments TPS23861 driver")
|
|
Signed-off-by: Robert Marko <robert.marko@sartura.hr>
|
|
Link: https://lore.kernel.org/r/20210609220728.499879-1-robert.marko@sartura.hr
|
|
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
|
|
---
|
|
drivers/hwmon/tps23861.c | 1 +
|
|
1 file changed, 1 insertion(+)
|
|
|
|
--- a/drivers/hwmon/tps23861.c
|
|
+++ b/drivers/hwmon/tps23861.c
|
|
@@ -117,6 +117,7 @@ struct tps23861_data {
|
|
static struct regmap_config tps23861_regmap_config = {
|
|
.reg_bits = 8,
|
|
.val_bits = 8,
|
|
+ .max_register = 0x6f,
|
|
};
|
|
|
|
static int tps23861_read_temp(struct tps23861_data *data, long *val)
|