From owner-freebsd-arm@freebsd.org Tue Aug 28 08:40:05 2018 Return-Path: Delivered-To: freebsd-arm@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 359BC10846BF for ; Tue, 28 Aug 2018 08:40:05 +0000 (UTC) (envelope-from freebsdnewbie@freenet.de) Received: from mout2.freenet.de (mout2.freenet.de [IPv6:2001:748:100:40::2:4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "*.freenet.de", Issuer "TeleSec ServerPass Class 2 CA" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id CC1CD79C6B for ; Tue, 28 Aug 2018 08:40:04 +0000 (UTC) (envelope-from freebsdnewbie@freenet.de) Received: from [195.4.92.163] (helo=mjail0.freenet.de) by mout2.freenet.de with esmtpa (ID freebsdnewbie@freenet.de) (port 25) (Exim 4.90_1 #2) id 1fuZXe-0007PG-ER; Tue, 28 Aug 2018 10:40:02 +0200 Received: from [::1] (port=50932 helo=mjail0.freenet.de) by mjail0.freenet.de with esmtpa (ID freebsdnewbie@freenet.de) (Exim 4.90_1 #2) id 1fuZXe-0006Fg-8E; Tue, 28 Aug 2018 10:40:02 +0200 Received: from sub6.freenet.de ([195.4.92.125]:45506) by mjail0.freenet.de with esmtpa (ID freebsdnewbie@freenet.de) (Exim 4.90_1 #2) id 1fuZV2-00024L-Cf; Tue, 28 Aug 2018 10:37:20 +0200 Received: from p4fd9f621.dip0.t-ipconnect.de ([79.217.246.33]:64236 helo=nextcloud) by sub6.freenet.de with esmtpsa (ID freebsdnewbie@freenet.de) (TLSv1.2:ECDHE-RSA-AES128-GCM-SHA256:128) (port 587) (Exim 4.90_1 #2) id 1fuZV2-0001kI-FZ; Tue, 28 Aug 2018 10:37:20 +0200 From: Manuel =?utf-8?b?U3TDvGhu?= To: freebsd-arm@freebsd.org, Nicola Mingotti Subject: Re: PRU Overlay Problem In-Reply-To: Message-ID: <20180828083719.Horde.UjXvypZvQtQt0b5qYhO7jVB@nextcloud.fritz.box> User-Agent: Horde Application Framework 5 Date: Tue, 28 Aug 2018 08:37:19 +0000 Content-Type: text/plain; charset=utf-8 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Originated-At: 79.217.246.33!64236 X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.27 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 28 Aug 2018 08:40:05 -0000 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