Welcome, Guest

Author Topic: dts modification to uartf disables gpio-leds  (Read 1021 times)

vinczo

  • Newbie
  • *
  • Posts: 19
  • Karma: +2/-0
dts modification to uartf disables gpio-leds
« on: August 03, 2017, 04:27:52 PM »
Hi,

I'm enabling the second uart in the dts file OLINUIXNO-RT5350F.dts by doing this modification:
BEFORE
Code: [Select]
gpio {
ralink,group="jtag","rgmii","mdio","led","uartf";
ralink,function="gpio";
};
AFTER
Code: [Select]
gpio {
ralink,group="jtag","rgmii","mdio","led";
ralink,function="gpio";
};
uartf{
ralink,group="uartf";
ralink,function="gpio uartf";
};

And it works...
However, it seems that I cannot use gpio-leds driver with the uartf pins anymore.

Any explanation? reason? solution?
Thank you!
« Last Edit: August 08, 2017, 01:01:36 PM by vinczo »

vinczo

  • Newbie
  • *
  • Posts: 19
  • Karma: +2/-0
Re: dts modification to uartf disables gpio-leds
« Reply #1 on: August 08, 2017, 11:05:30 AM »
Note that I need to desactivate gpio7 which belongs to uartf in order for the other gpio-leds to work.
Code: [Select]
leds {                         
    compatible = "gpio-leds";   
    //led_red {                 
    //  label = "red";         
    //  gpios = <&gpio0 7 1>;   
    //};                       
    led_blue {                 
        label = "blue";         
        gpios = <&gpio1 1 1>;   
    };                         
    led_green {                 
        label = "green";       
        gpios = <&gpio1 2 1>;   
    };                         
}