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

Configure Feed

Select the types of activity you want to include in your feed.

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@sntech.de>
Link: https://lore.kernel.org/r/20250730173423.1878599-3-heiko@sntech.de
Signed-off-by: Lee Jones <lee@kernel.org>

authored by

Heiko Stuebner and committed by
Lee Jones
865417d5 9d602da0

+9
+9
drivers/mfd/qnap-mcu.c
··· 247 247 return NOTIFY_DONE; 248 248 } 249 249 250 + static const struct qnap_mcu_variant qnap_ts233_mcu = { 251 + .baud_rate = 115200, 252 + .num_drives = 2, 253 + .fan_pwm_min = 51, /* Specified in original model.conf */ 254 + .fan_pwm_max = 255, 255 + .usb_led = true, 256 + }; 257 + 250 258 static const struct qnap_mcu_variant qnap_ts433_mcu = { 251 259 .baud_rate = 115200, 252 260 .num_drives = 4, ··· 327 319 } 328 320 329 321 static const struct of_device_id qnap_mcu_dt_ids[] = { 322 + { .compatible = "qnap,ts233-mcu", .data = &qnap_ts233_mcu }, 330 323 { .compatible = "qnap,ts433-mcu", .data = &qnap_ts433_mcu }, 331 324 { /* sentinel */ } 332 325 };