Date: Tue, 28 Aug 2018 08:37:19 +0000 From: Manuel =?utf-8?b?U3TDvGhu?= <freebsdnewbie@freenet.de> To: freebsd-arm@freebsd.org, Nicola Mingotti <nmingotti@gmail.com> Subject: Re: PRU Overlay Problem Message-ID: <20180828083719.Horde.UjXvypZvQtQt0b5qYhO7jVB@nextcloud.fritz.box> In-Reply-To: <b4d68340-d6e8-87bf-b711-0ca5883503db@gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20180828083719.Horde.UjXvypZvQtQt0b5qYhO7jVB>
