[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20250730173423.1878599-3-heiko@sntech.de>
Date: Wed, 30 Jul 2025 19:34:23 +0200
From: Heiko Stuebner <heiko@...ech.de>
To: lee@...nel.org
Cc: robh@...nel.org,
krzk+dt@...nel.org,
conor+dt@...nel.org,
heiko@...ech.de,
devicetree@...r.kernel.org,
linux-kernel@...r.kernel.org
Subject: [PATCH 2/2] mfd: qnap-mcu: add driver data for ts233 variant
Add the TS233 compatible and affiliated driver data to qnap-mcu.
The TS233 is mostly similar to the TS433, except not having any of the
PCIe components, so there are only 2 drives.
The fan pwm-limits from the vendor-configuration also are the same
as for the ts433 variant.
Signed-off-by: Heiko Stuebner <heiko@...ech.de>
---
drivers/mfd/qnap-mcu.c | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/drivers/mfd/qnap-mcu.c b/drivers/mfd/qnap-mcu.c
index 223156b98b79..6ed020206e55 100644
--- a/drivers/mfd/qnap-mcu.c
+++ b/drivers/mfd/qnap-mcu.c
@@ -329,6 +329,14 @@ static int qnap_mcu_power_off(struct sys_off_data *data)
return NOTIFY_DONE;
}
+static const struct qnap_mcu_variant qnap_ts233_mcu = {
+ .baud_rate = 115200,
+ .num_drives = 2,
+ .fan_pwm_min = 51, /* Specified in original model.conf */
+ .fan_pwm_max = 255,
+ .usb_led = true,
+};
+
static const struct qnap_mcu_variant qnap_ts433_mcu = {
.baud_rate = 115200,
.num_drives = 4,
@@ -405,6 +413,7 @@ static int qnap_mcu_probe(struct serdev_device *serdev)
}
static const struct of_device_id qnap_mcu_dt_ids[] = {
+ { .compatible = "qnap,ts233-mcu", .data = &qnap_ts233_mcu },
{ .compatible = "qnap,ts433-mcu", .data = &qnap_ts433_mcu },
{ /* sentinel */ }
};
--
2.47.2
Powered by blists - more mailing lists