arm64: dts: librem5-devkit: Make LED use PWM

We can use PWM instead of just GPIO allowing us to control brightness.

Signed-off-by: Guido Günther <agx@sigxcpu.org>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
This commit is contained in:
Guido Günther 2022-10-09 14:26:54 +02:00 committed by Shawn Guo
parent 8065fc937f
commit 29ecef8ece

View File

@ -61,14 +61,12 @@
};
leds {
compatible = "gpio-leds";
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_gpio_leds>;
compatible = "pwm-leds";
led1 {
label = "LED 1";
gpios = <&gpio1 13 GPIO_ACTIVE_HIGH>;
default-state = "off";
max-brightness = <248>;
pwms = <&pwm2 0 50000 0>;
};
};
@ -615,9 +613,9 @@
>;
};
pinctrl_gpio_leds: gpioledgrp {
pinctrl_pwm_led: pwmledgrp {
fsl,pins = <
MX8MQ_IOMUXC_GPIO1_IO13_GPIO1_IO13 0x16
MX8MQ_IOMUXC_GPIO1_IO13_PWM2_OUT 0x16
>;
};
@ -920,6 +918,12 @@
status = "okay";
};
&pwm2 {
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_pwm_led>;
status = "okay";
};
&snvs_pwrkey {
status = "okay";
};