]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
mfd: qnap-mcu: Add driver data for TS133 variant
authorHeiko Stuebner <heiko@sntech.de>
Sun, 4 Jan 2026 17:33:10 +0000 (18:33 +0100)
committerLee Jones <lee@kernel.org>
Thu, 22 Jan 2026 14:23:32 +0000 (14:23 +0000)
Add the TS133 compatible and affiliated driver data to qnap-mcu.
The TS133 is mostly similar to the TS233/TS433, except only having
one drive and no USB-LED.

The fan pwm-limits from the vendor-configuration also are the same
as for the TS233/TS433 variants.

Signed-off-by: Heiko Stuebner <heiko@sntech.de>
Link: https://patch.msgid.link/20260104173310.2685852-3-heiko@sntech.de
Signed-off-by: Lee Jones <lee@kernel.org>
drivers/mfd/qnap-mcu.c

index f81c69f222545c4039ab6843db8968b0c08c1e7f..8de974ddac3e72adf3aaeae9c29c78cf9af29919 100644 (file)
@@ -316,6 +316,14 @@ static int qnap_mcu_power_off(struct sys_off_data *data)
        return NOTIFY_DONE;
 }
 
+static const struct qnap_mcu_variant qnap_ts133_mcu = {
+       .baud_rate = 115200,
+       .num_drives = 1,
+       .fan_pwm_min = 51,  /* Specified in original model.conf */
+       .fan_pwm_max = 255,
+       .usb_led = false,
+};
+
 static const struct qnap_mcu_variant qnap_ts233_mcu = {
        .baud_rate = 115200,
        .num_drives = 2,
@@ -397,6 +405,7 @@ static int qnap_mcu_probe(struct serdev_device *serdev)
 }
 
 static const struct of_device_id qnap_mcu_dt_ids[] = {
+       { .compatible = "qnap,ts133-mcu", .data = &qnap_ts133_mcu },
        { .compatible = "qnap,ts233-mcu", .data = &qnap_ts233_mcu },
        { .compatible = "qnap,ts433-mcu", .data = &qnap_ts433_mcu },
        { /* sentinel */ }