Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

mfd: qnap-mcu: Add driver data for TS133 variant

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>

authored by

Heiko Stuebner and committed by
Lee Jones
a2127727 321c8fa2

+9
+9
drivers/mfd/qnap-mcu.c
··· 316 316 return NOTIFY_DONE; 317 317 } 318 318 319 + static const struct qnap_mcu_variant qnap_ts133_mcu = { 320 + .baud_rate = 115200, 321 + .num_drives = 1, 322 + .fan_pwm_min = 51, /* Specified in original model.conf */ 323 + .fan_pwm_max = 255, 324 + .usb_led = false, 325 + }; 326 + 319 327 static const struct qnap_mcu_variant qnap_ts233_mcu = { 320 328 .baud_rate = 115200, 321 329 .num_drives = 2, ··· 405 397 } 406 398 407 399 static const struct of_device_id qnap_mcu_dt_ids[] = { 400 + { .compatible = "qnap,ts133-mcu", .data = &qnap_ts133_mcu }, 408 401 { .compatible = "qnap,ts233-mcu", .data = &qnap_ts233_mcu }, 409 402 { .compatible = "qnap,ts433-mcu", .data = &qnap_ts433_mcu }, 410 403 { /* sentinel */ }