Introduce Synology Microp driver
Subsystems (4)
v6 cover Introduce Synology Microp driver
Synology uses a microcontroller in their NAS devices connected to a serial port to control certain LEDs, fan speeds, a beeper, to handle proper shutdown and restart, buttons and fan failures.
This patch series depends on the rust led abstraction [1] and the rust serdev abstraction [2].
This is only a initial version of the driver able to control LEDs. The following rust abstractions would be required, to implement the remaining features:
- hwmon (include/linux/hwmon.h)
- input (include/linux/input.h)
- sysoff handler + hardware protection shutdown (include/linux/reboot.h)
[1] https://lore.kernel.org/rust-for-linux/[email protected]/
[2] https://lore.kernel.org/rust-for-linux/[email protected]/
---
Changes in v6:
- moved devicetree bindings patch at the end of the set
- remove several patches
- move of id table from model.rs to synology_microp.rs
- remove the model! macro
- use if blocks in devicetree schema to narrow down the
fan-failure-gpios property
- add multiple devicetree examples to test if blocks
- Link to v5: https://lore.kernel.org/r/[email protected]
Changes in v5:
- add esata led support
- use different compatible for each model
- add visibility modifier to of_device_table macro
- fix match data missing when using PRP0001
- Link to v4: https://lore.kernel.org/r/[email protected]
Changes in v4:
- convert to monolithic driver and moved it into drivers/platform
- removed mfd rust abstraction
- moved dt-bindings to embedded-controller
- Link to v3: https://lore.kernel.org/r/[email protected]
Changes in v3:
- remove default n from Kconfig entry, as n is the default already.
- select RUST_SERIAL_DEV_BUS_ABSTRACTIONS in Kconfig
- add mfd rust abstraction
- split core and led parts into their own driver. It should now be considered a
MFD device.
- split led part of dt binding into its own file
- Link to v2: https://lore.kernel.org/r/[email protected]
Changes in v2:
- fix missing tabs in MAINTAINERS file
- remove word binding from patch subject
- add missing signed-off-by
- add missing help entry in Kconfig
- add missing spdx license headers
- remove no-check{,-cpu}-fan properties from the dt-bindings and replace
them with the check_fan module parameter
- use patternProperties for leds in dt-bindings
- license dt-binding as GPL-2.0-only OR BSD-2-Clause
- move driver from staging tree into mfd tree and mark it as work in
progress inside Kconfig
- only register alert and usb led if fwnode is present
- Link to v1: https://lore.kernel.org/r/[email protected]
---
Markus Probst (2):
platform: Add initial synology microp driver
dt-bindings: embedded-controller: Add synology microp devices
.../synology,ds923p-microp.yaml | 112 +++++++++ MAINTAINERS | 6 + drivers/platform/Kconfig | 2 + drivers/platform/Makefile | 1 + drivers/platform/synology_microp/Kconfig | 13 + drivers/platform/synology_microp/Makefile | 3 + drivers/platform/synology_microp/TODO | 7 + drivers/platform/synology_microp/command.rs | 55 ++++ drivers/platform/synology_microp/led.rs | 276 +++++++++++++++++++++ drivers/platform/synology_microp/model.rs | 49 ++++ .../platform/synology_microp/synology_microp.rs | 109 ++++++++ 11 files changed, 633 insertions(+)
---
base-commit: b6c7d19951061de1be08fb8f5714e630b24bcc1c
change-id: 20260306-synology_microp_initial-0f7dac7b7496
prerequisite-change-id: 20251217-rust_serdev-ee5481e9085c:v3
prerequisite-patch-id: 52b17274481cc770c257d8f95335293eca32a2c5
prerequisite-patch-id: eec47e5051640d08bcd34a9670b98804449cad52
prerequisite-patch-id: f24b68c71c3f69371e8ac0251efca0a023b31cc4
prerequisite-patch-id: 3dfc1f7e5ecd3e0dd65d676aeb16f55260847b25
prerequisite-change-id: 20251114-rust_leds-a959f7c2f7f9:v13
prerequisite-patch-id: 818700f22dcb9676157c985f82762d7c607b861e
prerequisite-patch-id: b15ffa7d95d9260151bfb116b259c4473f721c82
prerequisite-patch-id: 8c47e0d107530f577a1be0b79f8ee791f95d3cbe
PATCH v6 1/2 platform: Add initial synology microp driver
Add a initial synology microp driver, written in Rust.
The driver targets a microcontroller found in Synology NAS devices. It currently only supports controlling of the power led, status led, alert led and usb led. Other components such as fan control or handling on-device buttons will be added once the required rust abstractions are there.
This driver can be used both on arm and x86, thus it goes into the root directory of drivers/platform.
Tested successfully on a Synology DS923+.
--- MAINTAINERS | 5 + drivers/platform/Kconfig | 2 + drivers/platform/Makefile | 1 + drivers/platform/synology_microp/Kconfig | 13 + drivers/platform/synology_microp/Makefile | 3 + drivers/platform/synology_microp/TODO | 7 + drivers/platform/synology_microp/command.rs | 55 ++++ drivers/platform/synology_microp/led.rs | 276 +++++++++++++++++++++ drivers/platform/synology_microp/model.rs | 49 ++++ .../platform/synology_microp/synology_microp.rs | 109 ++++++++ 10 files changed, 520 insertions(+)
MAINTAINERS +5 -0
@@ -25554,6 +25554,11 @@ F: drivers/dma-buf/sync_* F: include/linux/sync_file.h F: include/uapi/linux/sync_file.h +SYNOLOGY MICROP DRIVER +M: Markus Probst <[email protected]> +S: Maintained +F: drivers/platform/synology_microp/ + SYNOPSYS ARC ARCHITECTURE M: Vineet Gupta <[email protected]> L: [email protected]
drivers/platform/Kconfig +2 -0
@@ -22,3 +22,5 @@ source "drivers/platform/arm64/Kconfig" source "drivers/platform/raspberrypi/Kconfig" source "drivers/platform/wmi/Kconfig" + +source "drivers/platform/synology_microp/Kconfig"
drivers/platform/Makefile +1 -0
@@ -15,3 +15,4 @@ obj-$(CONFIG_SURFACE_PLATFORMS) += surface/ obj-$(CONFIG_ARM64_PLATFORM_DEVICES) += arm64/ obj-$(CONFIG_BCM2835_VCHIQ) += raspberrypi/ obj-$(CONFIG_ACPI_WMI) += wmi/ +obj-$(CONFIG_SYNOLOGY_MICROP) += synology_microp/
drivers/platform/synology_microp/Kconfig new file +13 -0
@@ -0,0 +1,13 @@ +# SPDX-License-Identifier: GPL-2.0 + +config SYNOLOGY_MICROP + tristate "Synology Microp driver" + depends on LEDS_CLASS && LEDS_CLASS_MULTICOLOR + depends on RUST_SERIAL_DEV_BUS_ABSTRACTIONS + help + Enable support for the MCU found in Synology NAS devices. + + This is needed to properly shutdown and reboot the device, as well as + additional functionality like fan and LED control. + + This driver is work in progress and may not be fully functional.
drivers/platform/synology_microp/Makefile new file +3 -0
@@ -0,0 +1,3 @@ +# SPDX-License-Identifier: GPL-2.0 + +obj-y += synology_microp.o
drivers/platform/synology_microp/TODO new file +7 -0
@@ -0,0 +1,7 @@ +TODO: +- add missing components: + - handle on-device buttons (Power, Factory reset, "USB Copy") + - handle fan failure + - beeper + - fan speed control + - correctly perform device power-off and restart on Synology devices
drivers/platform/synology_microp/command.rs new file +55 -0
55 lines not on this page · raw message
drivers/platform/synology_microp/led.rs new file +276 -0
276 lines not on this page · raw message
drivers/platform/synology_microp/model.rs new file +49 -0
49 lines not on this page · raw message
drivers/platform/synology_microp/synology_microp.rs new file +109 -0
109 lines not on this page · raw message
Signature · 1 line
2.52.0
PATCH v6 2/2 dt-bindings: embedded-controller: Add synology microp devices
In reply to Markus ProbstAdd the Synology Microp devicetree bindings. Those devices are microcontrollers found on Synology NAS devices. They are connected to a serial port on the host device.
Those devices are used to control certain LEDs, fan speeds, a beeper, to handle buttons, fan failures and to properly shutdown and reboot the device.
This includes the following compatible ids:
- synology,ds923p-microp
- synology,ds918p-microp
- synology,ds214play-microp
- synology,ds225p-microp
- synology,ds425p-microp
- synology,ds710p-microp
- synology,ds1010p-microp
- synology,ds723p-microp
- synology,ds1522p-microp
- synology,rs422p-microp
- synology,ds725p-microp
- synology,ds118-microp
- synology,ds124-microp
- synology,ds223-microp
- synology,ds223j-microp
- synology,ds1823xsp-microp
- synology,rs822p-microp
- synology,rs1221p-microp
- synology,rs1221rpp-microp
- synology,ds925p-microp
- synology,ds1525p-microp
- synology,ds1825p-microp
--- .../synology,ds923p-microp.yaml | 112 +++++++++++++++++++++ MAINTAINERS | 1 + 2 files changed, 113 insertions(+)
Documentation/devicetree/bindings/embedded-controller/synology,ds923p-microp.yaml new file +112 -0
@@ -0,0 +1,112 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/embedded-controller/synology,ds923p-microp.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Synology NAS on-board Microcontroller + +maintainers: + - Markus Probst <[email protected]> + +description: | + Synology Microp is a microcontroller found in Synology NAS devices. + It is connected to a serial port on the host device. + + It is necessary to properly shutdown and reboot the NAS device and + provides additional functionality such as led control, fan speed control, + a beeper and buttons on the NAS device. + +properties: + compatible: + enum: + - synology,ds923p-microp + - synology,ds918p-microp + - synology,ds214play-microp + - synology,ds225p-microp + - synology,ds425p-microp + - synology,ds710p-microp + - synology,ds1010p-microp + - synology,ds723p-microp + - synology,ds1522p-microp + - synology,rs422p-microp + - synology,ds725p-microp + - synology,ds118-microp + - synology,ds124-microp + - synology,ds223-microp + - synology,ds223j-microp + - synology,ds1823xsp-microp + - synology,rs822p-microp + - synology,rs1221p-microp + - synology,rs1221rpp-microp + - synology,ds925p-microp + - synology,ds1525p-microp + - synology,ds1825p-microp + + fan-failure-gpios: + description: GPIOs needed to determine which fans stopped working on a fan failure event. + minItems: 2 + maxItems: 3 + +required: + - compatible + +allOf: + - if: + properties: + compatible: + contains: + enum: + - synology,ds214play-microp + - synology,ds225p-microp + - synology,ds710p-microp + - synology,ds723p-microp + - synology,ds725p-microp + - synology,ds118-microp + - synology,ds124-microp + - synology,ds223-microp + - synology,ds223j-microp + - synology,ds1823xsp-microp + - synology,rs822p-microp + - synology,rs1221p-microp + - synology,rs1221rpp-microp + - synology,ds1825p-microp + then: + properties: + fan-failure-gpios: false + else: + required: + - fan-failure-gpios + +additionalProperties: false + +examples: + - | + #include <dt-bindings/leds/common.h> + #include <dt-bindings/gpio/gpio.h> + + embedded-controller { + compatible = "synology,ds923p-microp"; + + fan-failure-gpios = <&gpio 68 GPIO_ACTIVE_HIGH>, <&gpio 69 GPIO_ACTIVE_HIGH>; + }; + + - | + #include <dt-bindings/leds/common.h> + #include <dt-bindings/gpio/gpio.h> + + embedded-controller { + compatible = "synology,ds723p-microp"; + }; + + - | + #include <dt-bindings/leds/common.h> + #include <dt-bindings/gpio/gpio.h> + + embedded-controller { + compatible = "synology,rs422p-microp"; + + fan-failure-gpios = <&gpio 68 GPIO_ACTIVE_HIGH>, + <&gpio 69 GPIO_ACTIVE_HIGH>, + <&gpio 40 GPIO_ACTIVE_HIGH>; + };
MAINTAINERS +1 -0
@@ -25557,6 +25557,7 @@ F: include/uapi/linux/sync_file.h SYNOLOGY MICROP DRIVER M: Markus Probst <[email protected]> S: Maintained +F: Documentation/devicetree/bindings/embedded-controller/synology,ds923p-microp.yaml F: drivers/platform/synology_microp/ SYNOPSYS ARC ARCHITECTURE
Signature · 1 line
2.52.0
Re: [PATCH v6 2/2] dt-bindings: embedded-controller: Add synology microp devices
Quoted 23 lines · Markus Probst
Add the Synology Microp devicetree bindings. Those devices are microcontrollers found on Synology NAS devices. They are connected to a serial port on the host device.
Those devices are used to control certain LEDs, fan speeds, a beeper, to handle buttons, fan failures and to properly shutdown and reboot the device.
This includes the following compatible ids:
- synology,ds923p-microp
- synology,ds918p-microp
- synology,ds214play-microp
- synology,ds225p-microp
- synology,ds425p-microp
- synology,ds710p-microp
- synology,ds1010p-microp
- synology,ds723p-microp
- synology,ds1522p-microp
- synology,rs422p-microp
- synology,ds725p-microp
- synology,ds118-microp
- synology,ds124-microp
- synology,ds223-microp
Quoted 8 lines
- synology,ds223j-microp
- synology,ds1823xsp-microp
- synology,rs822p-microp
- synology,rs1221p-microp
- synology,rs1221rpp-microp
- synology,ds925p-microp
- synology,ds1525p-microp
- synology,ds1825p-microp
Drop, we see this in the diff.
Quoted 47 lines
Signed-off-by Markus Probst <[email protected]>--- .../synology,ds923p-microp.yaml | 112 +++++++++++++++++++++ MAINTAINERS | 1 + 2 files changed, 113 insertions(+)Documentation/devicetree/bindings/embedded-controller/synology,ds923p-microp.yaml new file +34
-0@@ -0,0 +1,112 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/embedded-controller/synology,ds923p-microp.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Synology NAS on-board Microcontroller + +maintainers: + - Markus Probst <[email protected]> + +description: | + Synology Microp is a microcontroller found in Synology NAS devices. + It is connected to a serial port on the host device. + + It is necessary to properly shutdown and reboot the NAS device and + provides additional functionality such as led control, fan speed control, + a beeper and buttons on the NAS device. + +properties: + compatible: + enum: + - synology,ds923p-microp + - synology,ds918p-microp + - synology,ds214play-microp + - synology,ds225p-microp + - synology,ds425p-microp + - synology,ds710p-microp + - synology,ds1010p-microp + - synology,ds723p-microp + - synology,ds1522p-microp + - synology,rs422p-microp + - synology,ds725p-microp + - synology,ds118-microp
Documentation/devicetree/bindings/embedded-controller/synology,ds923p-microp.yaml line 44
Quoted 10 lines
Documentation/devicetree/bindings/embedded-controller/synology,ds923p-microp.yaml new file +10
-0+ - synology,ds124-microp + - synology,ds223-microp + - synology,ds223j-microp + - synology,ds1823xsp-microp + - synology,rs822p-microp + - synology,rs1221p-microp + - synology,rs1221rpp-microp + - synology,ds925p-microp + - synology,ds1525p-microp + - synology,ds1825p-microp
So we already talked about this and you were told to use compatibility. Your driver clearly states several of these are compatible, so I am confused that I do not see it expressed here.
Quoted 37 lines
Documentation/devicetree/bindings/embedded-controller/synology,ds923p-microp.yaml new file +37
-0+ + fan-failure-gpios: + description: GPIOs needed to determine which fans stopped working on a fan failure event. + minItems: 2 + maxItems: 3 + +required: + - compatible + +allOf: + - if: + properties: + compatible: + contains: + enum: + - synology,ds214play-microp + - synology,ds225p-microp + - synology,ds710p-microp + - synology,ds723p-microp + - synology,ds725p-microp + - synology,ds118-microp + - synology,ds124-microp + - synology,ds223-microp + - synology,ds223j-microp + - synology,ds1823xsp-microp + - synology,rs822p-microp + - synology,rs1221p-microp + - synology,rs1221rpp-microp + - synology,ds1825p-microp + then: + properties: + fan-failure-gpios: false + else: + required: + - fan-failure-gpios + +additionalProperties: false
Documentation/devicetree/bindings/embedded-controller/synology,ds923p-microp.yaml line 91
Quoted 10 lines
Documentation/devicetree/bindings/embedded-controller/synology,ds923p-microp.yaml new file +10
-0+ +examples: + - | + #include <dt-bindings/leds/common.h> + #include <dt-bindings/gpio/gpio.h> + + embedded-controller { + compatible = "synology,ds923p-microp"; + + fan-failure-gpios = <&gpio 68 GPIO_ACTIVE_HIGH>, <&gpio 69 GPIO_ACTIVE_HIGH>;
Keep only one example, they are basically the same. Difference in one property does not need a new example.
Best regards,
Krzysztof
Re: [PATCH v6 2/2] dt-bindings: embedded-controller: Add synology microp devices
Quoted 33 lines · Krzysztof Kozlowski
Quoted 23 lines · Markus Probst
Add the Synology Microp devicetree bindings. Those devices are microcontrollers found on Synology NAS devices. They are connected to a serial port on the host device.
Those devices are used to control certain LEDs, fan speeds, a beeper, to handle buttons, fan failures and to properly shutdown and reboot the device.
This includes the following compatible ids:
- synology,ds923p-microp
- synology,ds918p-microp
- synology,ds214play-microp
- synology,ds225p-microp
- synology,ds425p-microp
- synology,ds710p-microp
- synology,ds1010p-microp
- synology,ds723p-microp
- synology,ds1522p-microp
- synology,rs422p-microp
- synology,ds725p-microp
- synology,ds118-microp
- synology,ds124-microp
- synology,ds223-micropQuoted 8 lines
- synology,ds223j-microp
- synology,ds1823xsp-microp
- synology,rs822p-microp
- synology,rs1221p-microp
- synology,rs1221rpp-microp
- synology,ds925p-microp
- synology,ds1525p-microp
- synology,ds1825p-microp
Quoted 1 line
Drop, we see this in the diff.
A prior review commit suggested I should add them [1]. So only synology,ds923p-microp in the Subject then?
[1]
https://lore.kernel.org/all/20260330-delicate-sassy-mayfly-ebcca7@quoll/
Quoted 54 lines
Quoted 54 lines
Signed-off-by Markus Probst <[email protected]>--- .../synology,ds923p-microp.yaml | 112 +++++++++++++++++++++ MAINTAINERS | 1 + 2 files changed, 113 insertions(+)Documentation/devicetree/bindings/embedded-controller/synology,ds923p-microp.yaml new file +40
-0@@ -0,0 +1,112 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/embedded-controller/synology,ds923p-microp.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Synology NAS on-board Microcontroller + +maintainers: + - Markus Probst <[email protected]> + +description: | + Synology Microp is a microcontroller found in Synology NAS devices. + It is connected to a serial port on the host device. + + It is necessary to properly shutdown and reboot the NAS device and + provides additional functionality such as led control, fan speed control, + a beeper and buttons on the NAS device. + +properties: + compatible: + enum: + - synology,ds923p-microp + - synology,ds918p-microp + - synology,ds214play-microp + - synology,ds225p-microp + - synology,ds425p-microp + - synology,ds710p-microp + - synology,ds1010p-microp + - synology,ds723p-microp + - synology,ds1522p-microp + - synology,rs422p-microp + - synology,ds725p-microp + - synology,ds118-microp + - synology,ds124-microp + - synology,ds223-microp + - synology,ds223j-microp + - synology,ds1823xsp-microp + - synology,rs822p-microp + - synology,rs1221p-microp
Quoted 8 lines
Documentation/devicetree/bindings/embedded-controller/synology,ds923p-microp.yaml line 44
Quoted 4 lines
Documentation/devicetree/bindings/embedded-controller/synology,ds923p-microp.yaml new file +4
-0+ - synology,rs1221rpp-microp + - synology,ds925p-microp + - synology,ds1525p-microp + - synology,ds1825p-micropSo we already talked about this and you were told to use compatibility. Your driver clearly states several of these are compatible, so I am confused that I do not see it expressed here.
The driver does not have all functionality implemented yet.
A few examples of differences not yet visible in the driver:
- synology,ds214play-microp is the only model in the current list to have an cpu fan
- 4 of the models are arm based and need a different shutdown behaviour
- different amount of fans (already present in the binding via fan- failure-gpios)
I could try to group them together, but Synology does not document the exact difference between them.
As Rob mentioned [2], I need to be able to handle unexpected differences without qurik properties.
[2]
https://lore.kernel.org/all/CAL_JsqJUVh1YnhmYYj4ara5BheaLOL1oayjtWNuPH53q1d4xXA@mail.gmail.com/
Quoted 43 lines
Quoted 43 lines
Documentation/devicetree/bindings/embedded-controller/synology,ds923p-microp.yaml new file +42
-0+ + fan-failure-gpios: + description: GPIOs needed to determine which fans stopped working on a fan failure event. + minItems: 2 + maxItems: 3 + +required: + - compatible + +allOf: + - if: + properties: + compatible: + contains: + enum: + - synology,ds214play-microp + - synology,ds225p-microp + - synology,ds710p-microp + - synology,ds723p-microp + - synology,ds725p-microp + - synology,ds118-microp + - synology,ds124-microp + - synology,ds223-microp + - synology,ds223j-microp + - synology,ds1823xsp-microp + - synology,rs822p-microp + - synology,rs1221p-microp + - synology,rs1221rpp-microp + - synology,ds1825p-microp + then: + properties: + fan-failure-gpios: false + else: + required: + - fan-failure-gpios + +additionalProperties: false + +examples: + - | + #include <dt-bindings/leds/common.h> + #include <dt-bindings/gpio/gpio.h>
Quoted 8 lines
Documentation/devicetree/bindings/embedded-controller/synology,ds923p-microp.yaml line 91
Quoted 5 lines
Documentation/devicetree/bindings/embedded-controller/synology,ds923p-microp.yaml new file +5
-0+ + embedded-controller { + compatible = "synology,ds923p-microp"; + + fan-failure-gpios = <&gpio 68 GPIO_ACTIVE_HIGH>, <&gpio 69 GPIO_ACTIVE_HIGH>;Keep only one example, they are basically the same. Difference in one property does not need a new example.
Ok, it seemed like a nice convenient way to automatically test the if blocks.
Thanks
- Markus Probst
Quoted 3 lines
Best regards,
Krzysztof
Re: [PATCH v6 2/2] dt-bindings: embedded-controller: Add synology microp devices
Quoted 34 lines · Markus Probst
Quoted 33 lines · Krzysztof Kozlowski
Quoted 31 lines · Markus Probst
Add the Synology Microp devicetree bindings. Those devices are microcontrollers found on Synology NAS devices. They are connected to a serial port on the host device.
Those devices are used to control certain LEDs, fan speeds, a beeper, to handle buttons, fan failures and to properly shutdown and reboot the device.
This includes the following compatible ids:
- synology,ds923p-microp
- synology,ds918p-microp
- synology,ds214play-microp
- synology,ds225p-microp
- synology,ds425p-microp
- synology,ds710p-microp
- synology,ds1010p-microp
- synology,ds723p-microp
- synology,ds1522p-microp
- synology,rs422p-microp
- synology,ds725p-microp
- synology,ds118-microp
- synology,ds124-microp
- synology,ds223-microp
- synology,ds223j-microp
- synology,ds1823xsp-microp
- synology,rs822p-microp
- synology,rs1221p-microp
- synology,rs1221rpp-microp
- synology,ds925p-microp
- synology,ds1525p-microp
- synology,ds1825p-microp
Quoted 3 lines
Quoted 1 line
Drop, we see this in the diff.
A prior review commit suggested I should add them [1]. So only synology,ds923p-microp in the Subject then?
I do not see how this list resolves my comment. Really, explain my how listing part of binding answers WHY they are not compatible?
Quoted 66 lines
[1]
https://lore.kernel.org/all/20260330-delicate-sassy-mayfly-ebcca7@quoll/Quoted 54 lines
Quoted 54 lines
Signed-off-by Markus Probst <[email protected]>--- .../synology,ds923p-microp.yaml | 112 +++++++++++++++++++++ MAINTAINERS | 1 + 2 files changed, 113 insertions(+)Documentation/devicetree/bindings/embedded-controller/synology,ds923p-microp.yaml new file +40
-0@@ -0,0 +1,112 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/embedded-controller/synology,ds923p-microp.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Synology NAS on-board Microcontroller + +maintainers: + - Markus Probst <[email protected]> + +description: | + Synology Microp is a microcontroller found in Synology NAS devices. + It is connected to a serial port on the host device. + + It is necessary to properly shutdown and reboot the NAS device and + provides additional functionality such as led control, fan speed control, + a beeper and buttons on the NAS device. + +properties: + compatible: + enum: + - synology,ds923p-microp + - synology,ds918p-microp + - synology,ds214play-microp + - synology,ds225p-microp + - synology,ds425p-microp + - synology,ds710p-microp + - synology,ds1010p-microp + - synology,ds723p-microp + - synology,ds1522p-microp + - synology,rs422p-microp + - synology,ds725p-microp + - synology,ds118-microp + - synology,ds124-microp + - synology,ds223-microp + - synology,ds223j-microp + - synology,ds1823xsp-microp + - synology,rs822p-microp + - synology,rs1221p-micropQuoted 8 lines
Documentation/devicetree/bindings/embedded-controller/synology,ds923p-microp.yaml line 44
Quoted 4 lines
Documentation/devicetree/bindings/embedded-controller/synology,ds923p-microp.yaml new file +4
-0+ - synology,rs1221rpp-microp + - synology,ds925p-microp + - synology,ds1525p-microp + - synology,ds1825p-micropSo we already talked about this and you were told to use compatibility. Your driver clearly states several of these are compatible, so I am confused that I do not see it expressed here.
Quoted 1 line
The driver does not have all functionality implemented yet.
Either this drivers works or not. If it works, explain me how they are not compatible.
Quoted 8 lines
A few examples of differences not yet visible in the driver:
- synology,ds214play-microp is the only model in the current list to have an cpu fan
- 4 of the models are arm based and need a different shutdown behaviour
- different amount of fans (already present in the binding via fan- failure-gpios)
Quoted 5 lines
I could try to group them together, but Synology does not document the exact difference between them.
As Rob mentioned [2], I need to be able to handle unexpected differences without qurik properties.
I did not object that.
Best regards,
Krzysztof
Re: [PATCH v6 2/2] dt-bindings: embedded-controller: Add synology microp devices
Quoted 35 lines · Krzysztof Kozlowski
Quoted 34 lines · Markus Probst
Quoted 33 lines · Krzysztof Kozlowski
Quoted 31 lines · Markus Probst
Add the Synology Microp devicetree bindings. Those devices are microcontrollers found on Synology NAS devices. They are connected to a serial port on the host device.
Those devices are used to control certain LEDs, fan speeds, a beeper, to handle buttons, fan failures and to properly shutdown and reboot the device.
This includes the following compatible ids:
- synology,ds923p-microp
- synology,ds918p-microp
- synology,ds214play-microp
- synology,ds225p-microp
- synology,ds425p-microp
- synology,ds710p-microp
- synology,ds1010p-microp
- synology,ds723p-microp
- synology,ds1522p-microp
- synology,rs422p-microp
- synology,ds725p-microp
- synology,ds118-microp
- synology,ds124-microp
- synology,ds223-microp
- synology,ds223j-microp
- synology,ds1823xsp-microp
- synology,rs822p-microp
- synology,rs1221p-microp
- synology,rs1221rpp-microp
- synology,ds925p-microp
- synology,ds1525p-microp
- synology,ds1825p-microp
Quoted 6 lines
Quoted 3 lines
Quoted 1 line
Drop, we see this in the diff.
A prior review commit suggested I should add them [1]. So only synology,ds923p-microp in the Subject then?
I do not see how this list resolves my comment. Really, explain my how listing part of binding answers WHY they are not compatible?
I might have misunderstood it then, my apologies for that.
Quoted 68 lines
Quoted 68 lines
[1]
https://lore.kernel.org/all/20260330-delicate-sassy-mayfly-ebcca7@quoll/Quoted 62 lines
Quoted 48 lines
Signed-off-by Markus Probst <[email protected]>--- .../synology,ds923p-microp.yaml | 112 +++++++++++++++++++++ MAINTAINERS | 1 + 2 files changed, 113 insertions(+)Documentation/devicetree/bindings/embedded-controller/synology,ds923p-microp.yaml new file +34
-0@@ -0,0 +1,112 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/embedded-controller/synology,ds923p-microp.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Synology NAS on-board Microcontroller + +maintainers: + - Markus Probst <[email protected]> + +description: | + Synology Microp is a microcontroller found in Synology NAS devices. + It is connected to a serial port on the host device. + + It is necessary to properly shutdown and reboot the NAS device and + provides additional functionality such as led control, fan speed control, + a beeper and buttons on the NAS device. + +properties: + compatible: + enum: + - synology,ds923p-microp + - synology,ds918p-microp + - synology,ds214play-microp + - synology,ds225p-microp + - synology,ds425p-microp + - synology,ds710p-microp + - synology,ds1010p-microp + - synology,ds723p-microp + - synology,ds1522p-microp + - synology,rs422p-microp + - synology,ds725p-microp + - synology,ds118-micropDocumentation/devicetree/bindings/embedded-controller/synology,ds923p-microp.yaml line 44
Quoted 10 lines
Documentation/devicetree/bindings/embedded-controller/synology,ds923p-microp.yaml new file +10
-0+ - synology,ds124-microp + - synology,ds223-microp + - synology,ds223j-microp + - synology,ds1823xsp-microp + - synology,rs822p-microp + - synology,rs1221p-microp + - synology,rs1221rpp-microp + - synology,ds925p-microp + - synology,ds1525p-microp + - synology,ds1825p-micropSo we already talked about this and you were told to use compatibility. Your driver clearly states several of these are compatible, so I am confused that I do not see it expressed here.
Quoted 4 lines
Quoted 1 line
The driver does not have all functionality implemented yet.
Either this drivers works or not. If it works, explain me how they are not compatible.
I will use my ds923+ as baseline here.
Known relevant differences that make them not compatible:
ds918p:
- no system current sensor
ds214play:
- has an cpu fan
- has only 1 fan
- no system current sensor
ds225p:
- has usb copy led and button
- has only 1 fan
- no system current sensor
ds415p:
- no system current sensor
ds710p:
- has esata led
- has only 1 fan
- no system current sensor
ds1010p:
- has alert led controlled via microp
- no system current sensor
ds723p
- has only 1 fan
ds725p:
- has only 1 fan
- no system current sensor
ds1522p: <no relevant known difference>
rs422p:
- power led is green
- has 3 fans
rs822p:
- power led is green
- supports fan rpm report via an adt7475 chip and therefore does not have gpios for fan failure
- no system current sensor
ds118, ds124, ds223j:
- different shutdown behaviour
- has only 1 fan
- no system current sensor
ds223:
- different shutdown behaviour
- has usb copy led and button
- has only 1 fan
- no system current sensor
rs1221p, rs1221rpp:
- power led is green
- supports fan rpm report via an adt7475 chip and therefore does not have gpios for fan failure
- no system current sensor
ds925p, ds1525p, ds1825p, ds1823xsp:
- supports fan rpm report via an adt7475 chip and therefore does not have gpios for fan failure
- no system current sensor
Thanks
- Markus Probst
Quoted 20 lines
Quoted 9 lines
A few examples of differences not yet visible in the driver:
- synology,ds214play-microp is the only model in the current list to have an cpu fan
- 4 of the models are arm based and need a different shutdown behaviour
- different amount of fans (already present in the binding via fan- failure-gpios)Quoted 5 lines
I could try to group them together, but Synology does not document the exact difference between them.
As Rob mentioned [2], I need to be able to handle unexpected differences without qurik properties.
I did not object that.
Best regards,
Krzysztof