Swap pinctrl_led_r and pinctrl_led_g pinctrl Assignments
&pwm3 {
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_led_g>;
status = "okay";
};
&pwm4 {
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_led_r>;
status = "okay";
};
This should say:
&pwm3 {
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_led_r>;
status = "okay";
};
&pwm4 {
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_led_g>;
status = "okay";
};
Red is on pwm3, green is on pwm4.
Strangely enough, it is correct in this section of the device tree: https://source.puri.sm/Librem5/linux-next/-/blob/pureos/amber-phone/arch/arm64/boot/dts/freescale/imx8mq-librem5.dtsi#L766
But somehow got mixed up in the pinctrl assignment