PRU Overlay Problem
Nicola Mingotti
nmingotti at gmail.com
Tue Aug 28 09:25:31 UTC 2018
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 at 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 at 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 at 0 {
> target-path = "/ocp";
>
> __overlay__ {
> pruss: 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>;
> //target-path = "/ocp/l4_wkup at 44c00000/scm at 210000/pinmux at 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
--------------------------
More information about the freebsd-arm
mailing list