[prev in list] [next in list] [prev in thread] [next in thread]
List: freebsd-arm
Subject: Re: PRU Overlay Problem
From: Nicola Mingotti <nmingotti () gmail ! com>
Date: 2018-08-28 9:25:25
Message-ID: c2716557-a2f2-f752-ff23-3e0fffa99d42 () gmail ! com
[Download RAW message or body]
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
--------------------------
_______________________________________________
freebsd-arm@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-arm
To unsubscribe, send any mail to "freebsd-arm-unsubscribe@freebsd.org"
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic