I am trying to configure a wifi card on my Jetson TK1 using the mainline kernel. I realized that by default the GPIO 191 (WF_EN) is disable, which provokes the card to be disabled. I manage to fix this using sysfs, however I would like to modify the jetson-tk1 device tree to have a cleaner fix.
Checking on internet I found that there is a propertie that should do the job (gpio-output-high) however it doesn’t seem to work on mainline… I would be really thankful if anyone could put me an example of how to modify the default state of a GPIO using the device tree…
This is the dts that I am using, I tried adding the code that you told to the tegra124 gpio: gpio@6000d000 section at tegra124.dtsi but it doesn’t look to work. Also I cannot find any example on the main tree, would you mind to help me a litlebit more? btw I am working with Linux 5.1.1
EDIT: After check the code I would day that this elements are only available on android line but they are not implemented on the mainline kernel. Is there any other way to configure the default GPIO state???
For future reference in case anyone find this post. There is already a standard mechanism to set GPIOS initial status on linux mainline. By adding an element gpio-hog to the device tree it is possible to configure the GPIO as in/out high/out low. This is the patch that finally I used to solve the problem with the wifi cards.