xref: /linux/Documentation/devicetree/bindings/hwmon/zyxel,nsa320-mcu.yaml (revision 9611c0ce215a66770ccbe5c126bf57ba8c31bcad)
1# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2%YAML 1.2
3---
4$id: http://devicetree.org/schemas/hwmon/zyxel,nsa320-mcu.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: ZyXEL NSA320 MCU
8
9maintainers:
10  - Adam Baker <linux@baker-net.org.uk>
11  - Guenter Roeck <linux@roeck-us.net>
12
13description:
14  The ZyXEL NSA320 uses a dedicated microcontroller to manage system-critical
15  functions like fan speed and power monitoring. It is connected to the SoC
16  via a GPIO-based serial protocol.
17
18properties:
19  compatible:
20    const: zyxel,nsa320-mcu
21
22  data-gpios:
23    maxItems: 1
24    description: GPIO pin connected to the data line on the MCU.
25
26  clk-gpios:
27    maxItems: 1
28    description: GPIO pin connected to the clock line on the MCU.
29
30  act-gpios:
31    maxItems: 1
32    description: GPIO pin connected to the active line on the MCU.
33
34required:
35  - compatible
36  - data-gpios
37  - clk-gpios
38  - act-gpios
39
40additionalProperties: false
41
42examples:
43  - |
44    #include <dt-bindings/gpio/gpio.h>
45
46    hwmon {
47        compatible = "zyxel,nsa320-mcu";
48        pinctrl-0 = <&pmx_mcu_data &pmx_mcu_clk &pmx_mcu_act>;
49        pinctrl-names = "default";
50
51        data-gpios = <&gpio0 14 GPIO_ACTIVE_HIGH>;
52        clk-gpios = <&gpio0 16 GPIO_ACTIVE_HIGH>;
53        act-gpios = <&gpio0 17 GPIO_ACTIVE_LOW>;
54    };
55