Skip to content

Commit 63d0303

Browse files
WhatAmISupposedToPutHeremarcan
authored andcommitted
dt-bindings: pwm: Add Apple PWM controller
Apple SoCs such as the M1 contain a PWM controller used among other things to control the keyboard backlight. Signed-off-by: Sasha Finkelstein <[email protected]>
1 parent 457391b commit 63d0303

1 file changed

Lines changed: 51 additions & 0 deletions

File tree

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
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+
7+
title: Apple FPWM controller
8+
9+
maintainers:
10+
11+
- Sasha Finkelstein <[email protected]>
12+
13+
description: PWM controller used for keyboard backlight on ARM Macs
14+
15+
properties:
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+
36+
required:
37+
- compatible
38+
- reg
39+
- clocks
40+
41+
additionalProperties: false
42+
43+
examples:
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+
};

0 commit comments

Comments
 (0)