Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UNTESTED brightness control for the keyboard backlight #2

Open
wants to merge 1 commit into
base: asahi-keyboard
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 15 additions & 1 deletion arch/arm64/boot/dts/apple/t8103-j293.dts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@

/dts-v1/;

#include <dt-bindings/leds/common.h>

#include "t8103.dtsi"

/ {
Expand All @@ -20,7 +22,7 @@
};

soc {
pwm@235044000 {
fpwm0: pwm@235044000 {
compatible = "apple,t8103-fpwm";
reg = <0x2 0x35044000 0x0 0x4000>;
clocks = <&clk24>;
Expand All @@ -43,6 +45,18 @@
};
};

leds {
compatible = "pwm-leds";

kbd-backlight {
label = "kbd_backlight";
function = LED_FUNCTION_KBD_BACKLIGHT;
color = <LED_COLOR_ID_WHITE>;
pwms = <&fpwm0 1000000>;
max-brightness = <255>;
};
};

memory@800000000 {
device_type = "memory";
reg = <0x8 0 0x2 0>; /* To be filled by loader */
Expand Down