How to get pin to mode 6 on beagle bone black

Hans Bentum jwbentum44 at gmail.com
Wed Jan 22 07:54:52 UTC 2020


>
> Hello Manuel,
>
> Thanks a lot for your help. I am able to read the pin 8_16 in mode 6 by
> the pru program now.
> I had to merge the overlay to turn the pru on and to put the pin in mode 6
> into the same overlay to
> get it working. (Maybe you want to publish your other ovelay to enable the
> pruss also to keep it separate).
>
> But for now I use the following overlay:
>
> /dts-v1/;
> /plugin/;
> / {
>
> compatible="ti,am335x-bone-black","ti,am335x-bone","ti,am33xx";
>                 fragment at 0 {
>                    target-path="/ocp";
>                    __overlay__ {
>                    pruss at 4a300000 {
>                          compatible = "ti,pruss-v2";
>                          reg = <0x4a300000 0x080000>;
>                          interrupt-parent = <&intc>;
>                          interrupts = <20 21 22 23 24 25 26 27>;
>                          status = "okay";
>                          pinctrl-names = "default";
>                         pinctrl-0 = <&pru_pru_pins>;
>                     };
>                   };
> };
>
>                 fragment at 1 {
>                   target = <&am33xx_pinmux>;
>                   __overlay__ {
>                         pru_pru_pins: pinmux_pru_pru_pins {
>                         pinctrl-single,pins = <
>                           0x38 0x26 /* Pin 8_16 in gpmc_ad14 mode 6 */
>                       >;
>                     };
>                   };
>                 };
> };
>
> The test assembly program I published in the first post works now.
>
> Thanks,
>
> Hans
>
>


More information about the freebsd-arm mailing list