Skip to content

Commit b15999c

Browse files
Sasha Finkelsteinmarcan
authored andcommitted
arm64: dts: apple: t600x: Add PWM controller
Adds PWM controller and keyboard backlight bindings for M1 Pro/Max MacBook Pros Signed-off-by: Sasha Finkelstein <[email protected]> Acked-by: Hector Martin <[email protected]> Signed-off-by: Hector Martin <[email protected]>
1 parent 348981c commit b15999c

File tree

2 files changed

+27
-0
lines changed

2 files changed

+27
-0
lines changed

arch/arm64/boot/dts/apple/t600x-die0.dtsi

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,15 @@
7171
power-domains = <&ps_sio_cpu>;
7272
};
7373

74+
fpwm0: pwm@39b030000 {
75+
compatible = "apple,t6000-fpwm", "apple,s5l-fpwm";
76+
reg = <0x3 0x9b030000 0x0 0x4000>;
77+
power-domains = <&ps_fpwm0>;
78+
clocks = <&clkref>;
79+
#pwm-cells = <2>;
80+
status = "disabled";
81+
};
82+
7483
i2c0: i2c@39b040000 {
7584
compatible = "apple,t6000-i2c", "apple,i2c";
7685
reg = <0x3 0x9b040000 0x0 0x4000>;

arch/arm64/boot/dts/apple/t600x-j314-j316.dtsi

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@
99
* Copyright The Asahi Linux Contributors
1010
*/
1111

12+
#include <dt-bindings/leds/common.h>
13+
1214
/ {
1315
aliases {
1416
serial0 = &serial0;
@@ -34,6 +36,18 @@
3436
device_type = "memory";
3537
reg = <0x100 0 0x2 0>; /* To be filled by loader */
3638
};
39+
40+
led-controller {
41+
compatible = "pwm-leds";
42+
led-0 {
43+
pwms = <&fpwm0 0 40000>;
44+
label = "kbd_backlight";
45+
function = LED_FUNCTION_KBD_BACKLIGHT;
46+
color = <LED_COLOR_ID_WHITE>;
47+
max-brightness = <255>;
48+
default-state = "keep";
49+
};
50+
};
3751
};
3852

3953
&serial0 {
@@ -101,3 +115,7 @@
101115
wp-inverted;
102116
};
103117
};
118+
119+
&fpwm0 {
120+
status = "okay";
121+
};

0 commit comments

Comments
 (0)