xref: /freebsd/sys/contrib/device-tree/Bindings/mfd/khadas,mcu.yaml (revision 7ef62cebc2f965b0f640263e179276928885e33d)
1c66ec88fSEmmanuel Vadot# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2c66ec88fSEmmanuel Vadot%YAML 1.2
3c66ec88fSEmmanuel Vadot---
4c66ec88fSEmmanuel Vadot$id: http://devicetree.org/schemas/mfd/khadas,mcu.yaml#
5c66ec88fSEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml#
6c66ec88fSEmmanuel Vadot
7*7ef62cebSEmmanuel Vadottitle: Khadas on-board Microcontroller
8c66ec88fSEmmanuel Vadot
9c66ec88fSEmmanuel Vadotmaintainers:
10b97ee269SEmmanuel Vadot  - Neil Armstrong <neil.armstrong@linaro.org>
11c66ec88fSEmmanuel Vadot
12c66ec88fSEmmanuel Vadotdescription: |
13c66ec88fSEmmanuel Vadot  Khadas embeds a microcontroller on their VIM and Edge boards adding some
14c66ec88fSEmmanuel Vadot  system feature as PWM Fan control (for VIM2 rev14 or VIM3), User memory
15c66ec88fSEmmanuel Vadot  storage, IR/Key resume control, system power LED control and more.
16c66ec88fSEmmanuel Vadot
17c66ec88fSEmmanuel Vadotproperties:
18c66ec88fSEmmanuel Vadot  compatible:
19c66ec88fSEmmanuel Vadot    enum:
20c66ec88fSEmmanuel Vadot      - khadas,mcu # MCU revision is discoverable
21c66ec88fSEmmanuel Vadot
22c66ec88fSEmmanuel Vadot  "#cooling-cells": # Only needed for boards having FAN control feature
23c66ec88fSEmmanuel Vadot    const: 2
24c66ec88fSEmmanuel Vadot
25c66ec88fSEmmanuel Vadot  reg:
26c66ec88fSEmmanuel Vadot    maxItems: 1
27c66ec88fSEmmanuel Vadot
28c66ec88fSEmmanuel Vadotrequired:
29c66ec88fSEmmanuel Vadot  - compatible
30c66ec88fSEmmanuel Vadot  - reg
31c66ec88fSEmmanuel Vadot
32c66ec88fSEmmanuel VadotadditionalProperties: false
33c66ec88fSEmmanuel Vadot
34c66ec88fSEmmanuel Vadotexamples:
35c66ec88fSEmmanuel Vadot  - |
36c66ec88fSEmmanuel Vadot    i2c {
37c66ec88fSEmmanuel Vadot      #address-cells = <1>;
38c66ec88fSEmmanuel Vadot      #size-cells = <0>;
39c66ec88fSEmmanuel Vadot      khadas_mcu: system-controller@18 {
40c66ec88fSEmmanuel Vadot        compatible = "khadas,mcu";
41c66ec88fSEmmanuel Vadot        reg = <0x18>;
42c66ec88fSEmmanuel Vadot        #cooling-cells = <2>;
43c66ec88fSEmmanuel Vadot      };
44c66ec88fSEmmanuel Vadot    };
45