Can not controll GPIO from Kernel Space
Hello i wanted to use the GPIOLib to control my pin manualy. so i added this in my device tree.
&usart3 {
pinctrl-names = "default", "sleep", "idle";
pinctrl-0 = <&usart3_pins_c>;
pinctrl-1 = <&usart3_sleep_pins_c>;
pinctrl-2 = <&usart3_idle_pins_c>;
uart-has-rtscts;
status = "ok";
ethernet {
compatible = "st,stm32_usart_net";
local-mac-address = [ A0 B0 C0 D0 E0 F0 ];
pinctrl-names = "default";
rts-gpios = <&gpioa 11 GPIO_ACTIVE_LOW>;
cts-gpios = <&gpioa 12 GPIO_ACTIVE_LOW>;
};
};
and in my code i wanted to change the pin state like that:
rtsGpio = devm_gpiod_get(&serdev->dev, "rts-gpios", GPIOD_OUT_HIGH);
ssleep(1);
gpiod_set_value(rtsGpio, 1);
but when i look at it the pin is not changing the status. and i get this log message:
gpiod_set_value: invalid GPIO (errorpointer)
