Become a leader in the IoT community!
Join our community of embedded and IoT practitioners to contribute experience, learn new skills and collaborate with other developers with complementary skillsets.
Join our community of embedded and IoT practitioners to contribute experience, learn new skills and collaborate with other developers with complementary skillsets.
How you guys deal with the Device Tree file? Now I understand device tree syntax quite a bit I still don’t get how I can write my own
for example mapping all the 16 gpio pins of a stm32 in my own `app.overlay`
will look something like this
/ {;
gpio_1: gpio_1 {
compatible = “gpio-keys”;
gpios =
label = ” GPIO no 1″;
};
};
/ {
zephyr,user {
pa0-gpios = <&gpioa 0 GPIO_ACTIVE_HIGH>;
pa1-gpios = <&gpioa 1 GPIO_ACTIVE_HIGH>;
};
};
I did it like this
you will need to add a compatible
it is working without that
I don’t know how
but to make this work i have to keep this convention `name-gpios`
its basically superimposing on the existing GPIO
think so
I am trying now to read the device tree documentation of zephyr
CONTRIBUTE TO THIS THREAD