We use cookies to provide our visitors with an optimal site experience. View our privacy notice and cookie notice to learn more about how we use cookies and how to manage your settings. By proceeding on our website you consent to the use of cookies.
dtb (binary) is the file that important from the device tree and that I have to upgrade my imx7d-pico
imx7d-pico it is originally made for android things (deprecated) and therefore google has the dts and dtsi files for me to build the dtb. Right? (Question 01)
Question 02:
What is the best way for me to build this dtb?
@RobertCNelson Hi,
I stay trying blink led in debian/imx7d-pico using libgpiod v1.4. I can blink gpio-led using gpioset 1 6=1 (and, in python3 application). But I can’t blink led in GPIO6_IO14 (pin number 40). How can I blink led in GPIO6_IO14 (imx7d-pico/carrier board) using gpioset (libgpiod) command ?
Hi @neuberfran , Looking at your posted device tree file, you have not defined GPIO6_IO14. You need to define it as a GPIO for gpioset to actually physically toggle the output.
Tks,
Ok,
I know how to generate the new *.dtb file,
using the makeconfig command, etc. But I need your help to include GPIO6_IO14 in my *.dts file and/or in *.h file.
@RobertCNelson Yes. I made this setup in November and it worked. With sysfs. I configured gpio-led and gpio40. But for libgpiod it’s a different story. You don’t need to make these changes. So much so, that the gpio-led is flashing nowadays
is the same as gpio-led, you need to make sure the pinmux is set and enabled by something… You just don’t need the gpio-led for full control…
I personally find gpio-led is better then libgpiod in final applications… As you can specify a boot-up condition/etc… Where-as libgpiod application “must” be active to have pin output control, and as soon as you stop libgpiod or the application the pin goes back to it’s default state.
The GPIO6_IO14 It is already registered in this *.h file above. I need to know how to locate it within one of the five gpiochip blocks and then command(I guess)
I need help to change files (DTB) inside 5.6.17-armv7-lpae-x14.1-dtbs.tar.gz file.
Because As you can see in the pictures below, there is a folder called POINT above the level where the files in the folder are. Very difficult. already tried something
This photo below (important) is from 12/jan/2021. To get to it I made the changes (As you have asked now, that is, using NXP’s pinmux and I managed to flash the board’s led and gpios using SYSFS
On that day, if I tried to use the gpioset (from libgpiod) commands, I would get that the pins are in use.
Yesterday: I change imx7d-pico.dtsi file (besides, of course, removing the changes made with pinmux: gpio-led, gpio40, gpio38, gpio16): &i2c1 { @@ -393,6 +393,15 @@ &wdog1 { };
I can make the 4 LEDs blink on Yocto using the gpioset command. But the read value (gpioget) never changes, it is always = 1
Using the command: tar --create --gzip --file …/5.6.19-armv7-lpae-x23-dtbs.tar.gz ./*
I generated a new dtbs.tar.gz (with the same DTB put on Yocto) but the only blinking led is the gpio-led. In the latter case, I’m talking about debian10/imx7d-pico/5.6.x
Hi @neuberfran, looking at your screenshot, gpio40 is an output… Did you convert it to an input before calling gpioget???
This thread has gone on for quite a long time. What is your goal for this project @neuberfran ? Are you just trying on learn libgpiod* or do you have a project in mind? (* i don’t personally use libgpiod in any projects, i still recommend gpio-led/etc…)
@RobertCNelson Neither today nor then have I tried to convert the pin to input. Because it’s blink led. i think
I am preparing this board to use RPmsg. Send messages from A7 to M4. And, in the future, make something like the TAG robot from toradex and/or control BLDC/PMSM motors using FOC/pwm/RTOS type zephyr
SYSFS will be deprecated
I want to switch to libgpiod. I even have the issue below to transpose libgpiod v1.4.1 to v1.6:
**
About the fact that GPIO6_IO14 still doesn’t blink on debian10 I have a photo now that demonstrates the error. One of the DTB is still from January and not from July/2021.
Ignore the kernel.org SYSFS depreciation entry, it will never be depreciated as there is tons of push back, as libgpiod is not even close to properly replacing it.