xref: /linux/Documentation/devicetree/bindings/pwm/apple,s5l-fpwm.yaml (revision db4a3f0fbedb0398f77b9047e8b8bb2b49f355bb)
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,t8112-fpwm
21          - apple,t6000-fpwm
22          - apple,t6020-fpwm
23      - const: apple,s5l-fpwm
24
25  reg:
26    maxItems: 1
27
28  clocks:
29    maxItems: 1
30
31  power-domains:
32    maxItems: 1
33
34  "#pwm-cells":
35    const: 2
36
37required:
38  - compatible
39  - reg
40  - clocks
41
42additionalProperties: false
43
44examples:
45  - |
46    pwm@235044000 {
47      compatible = "apple,t8103-fpwm", "apple,s5l-fpwm";
48      reg = <0x35044000 0x4000>;
49      power-domains = <&ps_fpwm1>;
50      clocks = <&clkref>;
51      #pwm-cells = <2>;
52    };
53