# WP7603 GPIO Missing Binding

**URL:** <https://mangoh.discourse.group/t/wp7603-gpio-missing-binding/1049>\
**Category:** mangOH Red\
**Created:** [January 2, 2018, 3:42pm UTC](https://mangoh.discourse.group/t/wp7603-gpio-missing-binding/1049 "2018-01-02T15:42:25Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![drewwestrick](https://sea2.discourse-cdn.com/flex016/user_avatar/mangoh.discourse.group/drewwestrick/32/270_2.png) [@drewwestrick](https://mangoh.discourse.group/u/drewwestrick)\
**Post date:** [January 2, 2018, 3:42pm UTC](https://mangoh.discourse.group/t/wp7603-gpio-missing-binding/1049/1 "2018-01-02T15:42:25Z")

</div>

I’m having an issue getting GPIO23 (WP\_GPIO\_2) to bind properly to my application. When I run at+wiocfg? I get the following:

> +WIOCFG: 2,0,0,0,1,0,0  
> +WIOCFG: 7,0,0,0,1,0,0  
> +WIOCFG: 8,0,0,0,1,0,0  
> +WIOCFG: 13,0,0,0,1,0,0  
> +WIOCFG: 21,0,0,0,1,0,0  
> +WIOCFG: 22,0,0,0,1,0,0  
> +WIOCFG: 23,16,1,0,0,0,0  
> +WIOCFG: 24,0,0,0,1,0,0  
> +WIOCFG: 25,0,0,0,1,0,0  
> +WIOCFG: 32,0,0,0,1,0,0  
> +WIOCFG: 33,0,0,0,1,0,0  
> +WIOCFG: 35,0,0,0,1,0,0  
> +WIOCFG: 42,0,0,0,1,0,0

.adef:

> bindings:  
> {  
> uartCAN.uartCAN.le\_avdata → avcService.le\_avdata  
> uartCAN.uartCAN.le\_gpio23 → gpioService.le\_gpio23  
> }

.cdef

> requires:  
> {  
> device:  
> {  
> [rw] /dev/ttyHS0 /dev/uart  
> }  
> api:  
> {  
> le\_avdata.api  
> le\_gpio23 = le\_gpio.api  
> }  
> }

When I run the application I get the following error:

> Missing binding: uartCAN.uartCAN.le\_gpio23 → .le\_gpio23

---

<div class="post-metadata">

**Author:** ![dfrey](https://sea2.discourse-cdn.com/flex016/user_avatar/mangoh.discourse.group/dfrey/32/303_2.png) [@dfrey](https://mangoh.discourse.group/u/dfrey)\
**Post date:** [January 2, 2018, 6:19pm UTC](https://mangoh.discourse.group/t/wp7603-gpio-missing-binding/1049/2 "2018-01-02T18:19:46Z")

</div>

That’s the IOT0 reset GPIO. The iot\_slot kernel module takes that GPIO. You can safely comment out the line in the SDEF file that references that kernel module if you want to manage the IoT card yourself.

---

<div class="post-metadata">

**Author:** ![drewwestrick](https://sea2.discourse-cdn.com/flex016/user_avatar/mangoh.discourse.group/drewwestrick/32/270_2.png) [@drewwestrick](https://mangoh.discourse.group/u/drewwestrick)\
**Post date:** [January 2, 2018, 6:42pm UTC](https://mangoh.discourse.group/t/wp7603-gpio-missing-binding/1049/3 "2018-01-02T18:42:17Z")

</div>

I could be wrong here but the signal I’m trying to control is WP\_GPIO\_2 (WP\_GPIO\_2\_lvl actually via the Raspberry Pi header). It looks like it is connected via the MangOH Red schematic to GPIO23. I don’t see anywhere on the schematic where WP\_GPIO\_2 goes to the IOT0 reset line.

 ![Capture](https://us1.discourse-cdn.com/flex016/uploads/mangoh/original/1X/83017c6bc0ee9a6d42f91bdfa8b7e93607917dce.PNG)

---

<div class="post-metadata">

**Author:** ![dfrey](https://sea2.discourse-cdn.com/flex016/user_avatar/mangoh.discourse.group/dfrey/32/303_2.png) [@dfrey](https://mangoh.discourse.group/u/dfrey)\
**Post date:** [January 2, 2018, 6:55pm UTC](https://mangoh.discourse.group/t/wp7603-gpio-missing-binding/1049/4 "2018-01-02T18:55:18Z")

</div>

Sorry about the confusion. Disregard my previous message. Does changing the adef line to `uartCAN.uartCAN.le_gpio23 -> <root>.le_gpio23` make any difference?

---

<div class="post-metadata">

**Author:** ![drewwestrick](https://sea2.discourse-cdn.com/flex016/user_avatar/mangoh.discourse.group/drewwestrick/32/270_2.png) [@drewwestrick](https://mangoh.discourse.group/u/drewwestrick)\
**Post date:** [January 2, 2018, 8:03pm UTC](https://mangoh.discourse.group/t/wp7603-gpio-missing-binding/1049/5 "2018-01-02T20:03:06Z")

</div>

I get a compile error if I put \<\> anywhere in the cdef.

> error: Invalid character ‘\<’ in file path.

A good way to replicate this problem is to run the gpioCf3Demo samples app. This application also fails to run / bind properly on a WP7603. My gut feeling is that the GPIO is not configured properly for the 7603 at an AT or /sys level.

> <https://github.com/legatoproject/legato-af/tree/master/apps/sample/gpioCf3Demo>
>
> //github.com/legatoproject/legato-af/tree/master/apps/sample/gpioCf3Demo

---

<div class="post-metadata">

**Author:** ![dfrey](https://sea2.discourse-cdn.com/flex016/user_avatar/mangoh.discourse.group/dfrey/32/303_2.png) [@dfrey](https://mangoh.discourse.group/u/dfrey)\
**Post date:** [January 2, 2018, 9:20pm UTC](https://mangoh.discourse.group/t/wp7603-gpio-missing-binding/1049/6 "2018-01-02T21:20:05Z")

</div>

> I get a compile error if I put \<\> anywhere in the cdef.

Did you mean adef? I suggested changing the adef.

---

<div class="post-metadata">

**Author:** ![nilsarve](https://avatars.discourse-cdn.com/v4/letter/n/e36b37/32.png) [@nilsarve](https://mangoh.discourse.group/u/nilsarve)\
**Post date:** [January 4, 2018, 8:21am UTC](https://mangoh.discourse.group/t/wp7603-gpio-missing-binding/1049/7 "2018-01-04T08:21:08Z")

</div>

> [@drewwestrick](#):
>
> uartCAN.uartCAN.le\_gpio23 -\> gpioService.le\_gpio23

What if you change this to  
uartCAN.uartCAN.le\_gpio23 → gpioService.le\_gpio **Pin** 23?

---

<div class="post-metadata">

**Author:** ![drewwestrick](https://sea2.discourse-cdn.com/flex016/user_avatar/mangoh.discourse.group/drewwestrick/32/270_2.png) [@drewwestrick](https://mangoh.discourse.group/u/drewwestrick)\
**Post date:** [January 17, 2018, 9:35pm UTC](https://mangoh.discourse.group/t/wp7603-gpio-missing-binding/1049/8 "2018-01-17T21:35:08Z")

</div>

Sorry for the late reply on this.

Adding **Pin** did the trick.

I also found that I must have changed that pin earlier via the AT+WIOCFG command. Once I changed the pin assignment back to 16 (application) things started working.
