Hi Robert,

I am encountering the same problem. I am using the same tutorial for the 
PRU with the poster. So I used the same overlay. I am using 4.4.9-ti-rt-r26 
in Ubuntu.
Whenever I added the above device tree overlay in the cape manager, only 
the GPIO works. My PRU code should just be blinking P9_11 (mode 7) and 
P9_27 (mode 5 or pr1_pru0_pru_r30_5).
I also have to export first the GPIO and set the direction through the 
command line before the GPIO works.

So What I did is I added the code below at the bootom of 
am335x-boneblack-overlay.dts and recompile using your DTC-builder.
&am33xx_pinmux {
    gpio_pins: gpio_pins {         // The GPIO pins
             pinctrl-single,pins = <
                0x070 0x07   // P9_11 MODE7 GPIO output pull‐down
                0x074 0x27   // P9_13 MODE7 GPIO input pull‐down
             >; 
          };
pru_cape_bone_pins: pru_cape_bone_pins {
pinctrl-single,pins = <
0x1a4 0x05   // P9_27 pr1_pru0_pru_r30_5, Mode5 output pull‐down
            0x19c 0x26   // P9_28 pr1_pru0_pru_r31_3, Mode6 input pull‐down
>;
};
};



&ocp {
helper {
             compatible = "gpio-pinmux-helper"; 
             status = "okay"; 
             pinctrl-names = "default";
             pinctrl-0 = <&gpio_pins>;
          };
 
};

&pruss {
        pinctrl-names = "default";
   pinctrl-0 = <&pru_cape_bone_pins>;
};



Now the PRU GPO works but the GPIO does not work even if I export and set 
direction. So I decided to separate the PRU GPI/GPO overlay and the GPIO 
overlay but then this could cause some problems with my planned 
application. Is there a way to activate the GPIO with the PRU in the 
am335x-boneblack-overlay.dts?


Thanks.



Kister

On Monday, April 4, 2016 at 10:55:45 PM UTC+8, RobertCNelson wrote:
>
>
>
> On Mon, Apr 4, 2016 at 9:51 AM, Xsentius <[email protected] 
> <javascript:>> wrote:
>
>> Oh, that is a very precious information, I really appreciate it. 
>>
>> So is there a way to see updates? Do you recommend me to go back to 3.8, 
>> if it is stable?
>>
>
> Correctly set them in the overlay and don't worry about it..
>
> Regards,
>
> -- 
> Robert Nelson
> https://rcn-ee.com/
>

-- 
For more options, visit http://beagleboard.org/discuss
--- 
You received this message because you are subscribed to the Google Groups 
"BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/beagleboard/e644594a-05e4-455f-90e7-64bd8e26d2fd%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to