Jump to content

Tzuhsuan

Tinker Engineer
  • Content Count

    1
  • Joined

  • Last visited

Community Reputation

0 Neutral
  1. We use the gpio-leds module to control the led and keep them not light as default. In fsl-imx8mq-phanbell.dts: gpio-leds { compatible = "gpio-leds"; led1 { gpios = <&gpio3 21 GPIO_ACTIVE_HIGH>; linux,default-trigger="none"; }; led2 { gpios = <&gpio4 29 GPIO_ACTIVE_HIGH>; linux,default-trigger="none"; }; led3 { gpios = <&gpio4 28 GPIO_ACTIVE_HIGH>; linux,default-trigger="none"; }; }; (led gpio is low active) Because the gpios have been registered by gpio leds module, you cannot use gpio library to register them again. Please control them by the nodes in /sys/class/leds/.
×
×
  • Create New...