Date: Tue, 28 Aug 2018 11:25:25 +0200 From: Nicola Mingotti <nmingotti@gmail.com> To: =?UTF-8?Q?Manuel_St=c3=bchn?= <freebsdnewbie@freenet.de>, freebsd-arm@freebsd.org Subject: Re: PRU Overlay Problem Message-ID: <c2716557-a2f2-f752-ff23-3e0fffa99d42@gmail.com> In-Reply-To: <20180828083719.Horde.UjXvypZvQtQt0b5qYhO7jVB@nextcloud.fritz.box> References: <20180828083719.Horde.UjXvypZvQtQt0b5qYhO7jVB@nextcloud.fritz.box>
next in thread | previous in thread | raw e-mail | index | archive | help
Thank you Manuel ! your dts compiles & loads correctly, i also saw you are using a pin which seems free ... instead i mistook there, P9.28 (0x19c) is used by mcasp ;) ok, after pructl finish compiling i will try to run someting on the PRU. bye nicola On 08/28/18 10:37, Manuel Stühn wrote: > Nicola Mingotti – Tue, 28. August 2018 9:44 >> Also, i found this, in FreeBSD.11-1 decompiling the dtb i can see the pru >> definition: >> >> ------------------------------------------------------------------- >> #> cd /boot/dtb >> #> dtc -I dtb -O dts am335x-boneblack.dtb | less >> .... >> pruss@4A300000 { >> compatible = "ti,pruss-v2"; >> reg = <0x4a300000 0x80000>; >> interrupt-parent = <0x1>; >> interrupts = <0x14 0x15 0x16 0x17 0x18 0x19 >> 0x1a 0x1b>; >> }; >> ... >> ------------------------------------------------------------------- >> >> But, if i decompile the dtb in FreeBSD.12-ALPHA the only thing >> matching pru is >> --------------------------------- >> #> cd /boot/dtb >> #> dtc -I dtb -O dts am335x-boneblack.dtb | less >> .... >> pruss_ocp_gclk@530 { >> >> #clock-cells = <0x0>; >> compatible = >> "ti,mux-clock"; >> clocks = <0x1f 0x18>; >> reg = <0x530>; >> phandle = <0x20>; >> }; >> .... >> --------------------------------- >> >> Then, i guess the PRU description is nor present at the moment in >> FreeBSD-12-ALPHA >> >> Well, these are just my considerations, i may be totally wrong. Wild >> guesses. >> >> bye >> n. > I'd some access with this: > > # cat ti_pruss.dts > /dts-v1/; > /plugin/; > > /{ > compatible = "ti,am335x-bone-black", "ti,am335x-bone", "ti,am33xx"; > version = "0001"; > > fragment@0 { > target-path = "/ocp"; > > __overlay__ { > pruss: 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>; > //target-path = "/ocp/l4_wkup@44c00000/scm@210000/pinmux@800"; > __overlay__ { > > pru_pru_pins: pinmux_pru_pru_pins { > pinctrl-single,pins = < > 0x198 0x36 /* PRU0-2 */ > >; > }; > }; > }; > }; > > compiled with > # dtc -@ -I dts -O dtb ti_pruss.dts > /boot/dtb/overlays/ti_pruss.dtbo > > and attaching it via /boot/loader.conf on a recent CURRENT. > > -- > Manuel -- -------------------------- Dr. Nicola Mingotti R&D - Borghi Srl CTO - BondInsider --------------------------
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?c2716557-a2f2-f752-ff23-3e0fffa99d42>