* [PATCH 0/2] qnap-mcu: add ts233 support
@ 2025-07-30 17:34 Heiko Stuebner
2025-07-30 17:34 ` [PATCH 1/2] dt-bindings: mfd: qnap,ts433-mcu: add qnap,ts233-mcu compatible Heiko Stuebner
` (2 more replies)
0 siblings, 3 replies; 5+ messages in thread
From: Heiko Stuebner @ 2025-07-30 17:34 UTC (permalink / raw)
To: lee; +Cc: robh, krzk+dt, conor+dt, heiko, devicetree, linux-kernel
For a better return on all the investigating I did into that MCU,
I got myself a 2nd device - the 2-bay TS233 this time.
Add the necessary driver-data and compatible for it to the MCU.
Heiko Stuebner (2):
dt-bindings: mfd: qnap,ts433-mcu: add qnap,ts233-mcu compatible
mfd: qnap-mcu: add driver data for ts233 variant
.../devicetree/bindings/mfd/qnap,ts433-mcu.yaml | 1 +
drivers/mfd/qnap-mcu.c | 9 +++++++++
2 files changed, 10 insertions(+)
--
2.47.2
^ permalink raw reply [flat|nested] 5+ messages in thread
* [PATCH 1/2] dt-bindings: mfd: qnap,ts433-mcu: add qnap,ts233-mcu compatible
2025-07-30 17:34 [PATCH 0/2] qnap-mcu: add ts233 support Heiko Stuebner
@ 2025-07-30 17:34 ` Heiko Stuebner
2025-07-31 0:19 ` Rob Herring (Arm)
2025-07-30 17:34 ` [PATCH 2/2] mfd: qnap-mcu: add driver data for ts233 variant Heiko Stuebner
2025-07-31 13:46 ` [PATCH 0/2] qnap-mcu: add ts233 support Lee Jones
2 siblings, 1 reply; 5+ messages in thread
From: Heiko Stuebner @ 2025-07-30 17:34 UTC (permalink / raw)
To: lee; +Cc: robh, krzk+dt, conor+dt, heiko, devicetree, linux-kernel
The same MCU is used on other devices of the series with a slightly
different set of features, like the number of LEDs.
Add a compatible for the MCU used in the TS233 variant.
Signed-off-by: Heiko Stuebner <heiko@sntech.de>
---
Documentation/devicetree/bindings/mfd/qnap,ts433-mcu.yaml | 1 +
1 file changed, 1 insertion(+)
diff --git a/Documentation/devicetree/bindings/mfd/qnap,ts433-mcu.yaml b/Documentation/devicetree/bindings/mfd/qnap,ts433-mcu.yaml
index 877078ac172f..fe9e06cfb933 100644
--- a/Documentation/devicetree/bindings/mfd/qnap,ts433-mcu.yaml
+++ b/Documentation/devicetree/bindings/mfd/qnap,ts433-mcu.yaml
@@ -16,6 +16,7 @@ description:
properties:
compatible:
enum:
+ - qnap,ts233-mcu
- qnap,ts433-mcu
patternProperties:
--
2.47.2
^ permalink raw reply related [flat|nested] 5+ messages in thread
* [PATCH 2/2] mfd: qnap-mcu: add driver data for ts233 variant
2025-07-30 17:34 [PATCH 0/2] qnap-mcu: add ts233 support Heiko Stuebner
2025-07-30 17:34 ` [PATCH 1/2] dt-bindings: mfd: qnap,ts433-mcu: add qnap,ts233-mcu compatible Heiko Stuebner
@ 2025-07-30 17:34 ` Heiko Stuebner
2025-07-31 13:46 ` [PATCH 0/2] qnap-mcu: add ts233 support Lee Jones
2 siblings, 0 replies; 5+ messages in thread
From: Heiko Stuebner @ 2025-07-30 17:34 UTC (permalink / raw)
To: lee; +Cc: robh, krzk+dt, conor+dt, heiko, devicetree, linux-kernel
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>
---
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
^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: [PATCH 1/2] dt-bindings: mfd: qnap,ts433-mcu: add qnap,ts233-mcu compatible
2025-07-30 17:34 ` [PATCH 1/2] dt-bindings: mfd: qnap,ts433-mcu: add qnap,ts233-mcu compatible Heiko Stuebner
@ 2025-07-31 0:19 ` Rob Herring (Arm)
0 siblings, 0 replies; 5+ messages in thread
From: Rob Herring (Arm) @ 2025-07-31 0:19 UTC (permalink / raw)
To: Heiko Stuebner; +Cc: conor+dt, krzk+dt, devicetree, lee, linux-kernel
On Wed, 30 Jul 2025 19:34:22 +0200, Heiko Stuebner wrote:
> The same MCU is used on other devices of the series with a slightly
> different set of features, like the number of LEDs.
>
> Add a compatible for the MCU used in the TS233 variant.
>
> Signed-off-by: Heiko Stuebner <heiko@sntech.de>
> ---
> Documentation/devicetree/bindings/mfd/qnap,ts433-mcu.yaml | 1 +
> 1 file changed, 1 insertion(+)
>
Acked-by: Rob Herring (Arm) <robh@kernel.org>
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH 0/2] qnap-mcu: add ts233 support
2025-07-30 17:34 [PATCH 0/2] qnap-mcu: add ts233 support Heiko Stuebner
2025-07-30 17:34 ` [PATCH 1/2] dt-bindings: mfd: qnap,ts433-mcu: add qnap,ts233-mcu compatible Heiko Stuebner
2025-07-30 17:34 ` [PATCH 2/2] mfd: qnap-mcu: add driver data for ts233 variant Heiko Stuebner
@ 2025-07-31 13:46 ` Lee Jones
2 siblings, 0 replies; 5+ messages in thread
From: Lee Jones @ 2025-07-31 13:46 UTC (permalink / raw)
To: lee, Heiko Stuebner; +Cc: robh, krzk+dt, conor+dt, devicetree, linux-kernel
On Wed, 30 Jul 2025 19:34:21 +0200, Heiko Stuebner wrote:
> For a better return on all the investigating I did into that MCU,
> I got myself a 2nd device - the 2-bay TS233 this time.
>
> Add the necessary driver-data and compatible for it to the MCU.
>
> Heiko Stuebner (2):
> dt-bindings: mfd: qnap,ts433-mcu: add qnap,ts233-mcu compatible
> mfd: qnap-mcu: add driver data for ts233 variant
>
> [...]
Applied, thanks!
[1/2] dt-bindings: mfd: qnap,ts433-mcu: add qnap,ts233-mcu compatible
commit: 38dc76168a92a1e8fb28a901607ac24c4778141c
[2/2] mfd: qnap-mcu: add driver data for ts233 variant
commit: 5f1edbae853329b8a6e637fed0f7202727aec545
--
Lee Jones [李琼斯]
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2025-07-31 13:46 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-07-30 17:34 [PATCH 0/2] qnap-mcu: add ts233 support Heiko Stuebner
2025-07-30 17:34 ` [PATCH 1/2] dt-bindings: mfd: qnap,ts433-mcu: add qnap,ts233-mcu compatible Heiko Stuebner
2025-07-31 0:19 ` Rob Herring (Arm)
2025-07-30 17:34 ` [PATCH 2/2] mfd: qnap-mcu: add driver data for ts233 variant Heiko Stuebner
2025-07-31 13:46 ` [PATCH 0/2] qnap-mcu: add ts233 support Lee Jones
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox