Date: Wed, 22 Jan 2020 08:54:38 +0100 From: Hans Bentum <jwbentum44@gmail.com> To: "freebsd-arm@freebsd.org" <freebsd-arm@freebsd.org>, =?UTF-8?Q?Manuel_St=C3=BChn?= <freebsdnewbie@freenet.de> Subject: Re: How to get pin to mode 6 on beagle bone black Message-ID: <CAH4pBpPp06u8e0JtBWWzcQbr2WRhoSmS5d2hpC=NrgzCu1P15A@mail.gmail.com> In-Reply-To: <20200120212547.aa3a36c31b90d4438250c367@freenet.de> References: <CAH4pBpP2oC-8Vjm5AFMuQopZ-6DvQG_suX5yknv6nYTkLe8yPQ@mail.gmail.com> <20200115220647.1958e8639dc718e714775fed@freenet.de> <CAH4pBpMKktrPFYcK2y0zECQJFKUiOmvv5pbBcQ2ooqycuvHqHQ@mail.gmail.com> <20200116213411.ba213b01885d2108c9ace7a5@freenet.de> <CAH4pBpMck41ie2K_r11sU87XvC1K0BtgYPHoRjmJHfjMUWcWCw@mail.gmail.com> <20200120212547.aa3a36c31b90d4438250c367@freenet.de>
next in thread | previous in thread | raw e-mail | index | archive | help
> > 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@0 { > target-path="/ocp"; > __overlay__ { > pruss@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@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 > >
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAH4pBpPp06u8e0JtBWWzcQbr2WRhoSmS5d2hpC=NrgzCu1P15A>