1# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
2%YAML 1.2
3---
4$id: http://devicetree.org/schemas/pwm/apple,s5l-fpwm.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: Apple FPWM controller
8
9maintainers:
10  - asahi@lists.linux.dev
11  - Sasha Finkelstein <fnkl.kernel@gmail.com>
12
13description: PWM controller used for keyboard backlight on ARM Macs
14
15properties:
16  compatible:
17    items:
18      - enum:
19          - apple,t8103-fpwm
20          - apple,t6000-fpwm
21          - apple,t8112-fpwm
22      - const: apple,s5l-fpwm
23
24  reg:
25    maxItems: 1
26
27  clocks:
28    maxItems: 1
29
30  power-domains:
31    maxItems: 1
32
33  "#pwm-cells":
34    const: 2
35
36required:
37  - compatible
38  - reg
39  - clocks
40
41additionalProperties: false
42
43examples:
44  - |
45    pwm@235044000 {
46      compatible = "apple,t8103-fpwm", "apple,s5l-fpwm";
47      reg = <0x35044000 0x4000>;
48      power-domains = <&ps_fpwm1>;
49      clocks = <&clkref>;
50      #pwm-cells = <2>;
51    };
52