From owner-freebsd-arm@freebsd.org Mon Mar 12 00:45:01 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 735C2F35AC0 for ; Mon, 12 Mar 2018 00:45:01 +0000 (UTC) (envelope-from shamim.shahriar@gmail.com) Received: from mail-wm0-x235.google.com (mail-wm0-x235.google.com [IPv6:2a00:1450:400c:c09::235]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id C927B873CC for ; Mon, 12 Mar 2018 00:45:00 +0000 (UTC) (envelope-from shamim.shahriar@gmail.com) Received: by mail-wm0-x235.google.com with SMTP id x7so12983939wmc.0 for ; Sun, 11 Mar 2018 17:45:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=to:from:subject:message-id:date:user-agent:mime-version; bh=z6MagZ0mszxGWDgHmJtKdJnce+laiUtF8e6qtCDcRKw=; b=OykkXDuQooin6YkwYwVnlCOPnFke3lbxhKq6fgmCEQflX9JixOOXzyYYDs1Is3MBMR bUnjK4/ZzPxekIhCOYxwlAlf17rdddOITwbwC5Qe7LohRExi3KZOD0e/TLhVUldZcw9U LXAx+qtYSEfPUWjd9DS0I5XXKxy7NJECmse57lfJPa+Xz9chasOpMGF1GAqVrpQsUwNj 1LYFe8IS7VKmFsu6hXl+ocWzQqwlPbonA8CqZhzZY1vz3k9dHxKdl8wCwZQhu1xMhwrQ 2rx6rpNw4wsVKWEBjO5FsTpjWpcu+Uanb3M8UUu/NeUcEK/AxVUoXwcDvS/VmO9t+y+S mkzQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:to:from:subject:message-id:date:user-agent :mime-version; bh=z6MagZ0mszxGWDgHmJtKdJnce+laiUtF8e6qtCDcRKw=; b=Spfsp2wKUNwqou2u/F9nCoAcxc8fqpA0b72aufF/maNP/R0lEC07UFrKdCc8cJHn2p ST6ip4s+zIwZcMatPGpQ/MnFlGMLsgn/1M8AjbkWnCm9rLH8f304igFSA7raqeKlANdL 601QuI/dXwY6pgHJvn4xW3Ye9Ov92sw/0vegB/LEwnLZnlXryHIQcWJpvJiyTf/J0jAO mGexuZSN+CYDUAX4OFq9s1Q3TtK2shotwSqki3hPpiAYu80Bbl6pDSHnqsOi2wwD34DQ Uhdl8j21dGntIG1F4UmzR43Tx10LTmb8Ed0OGOll1VMeHSjKAH9z9PG5eWXISl+F6nER LWog== X-Gm-Message-State: AElRT7Hi+5y7gC3pG7M7r1Lj9PQ27TPoA0lxrmellKG4xs8KL7c1/UGN y55MP1AA0ZZuPBER3i8cr4eL X-Google-Smtp-Source: AG47ELuKF2cD67jf4AWuBO8Bi9Masqlom34OOKaqm6Kc7RzWGt82Rd5x/MoP9+gxNadHybglxcaaag== X-Received: by 10.28.230.68 with SMTP id d65mr4446484wmh.13.1520815499366; Sun, 11 Mar 2018 17:44:59 -0700 (PDT) Received: from osk.homenet ([90.204.30.212]) by smtp.googlemail.com with ESMTPSA id k11sm3148420wrk.41.2018.03.11.17.44.58 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 11 Mar 2018 17:44:58 -0700 (PDT) To: freebsd-arm@freebsd.org From: Shamim Shahriar Subject: PPS or /dev/ppsN on Raspberry Pi 3 Message-ID: <819975e8-56a8-677b-e5f5-003ff2091553@gmail.com> Date: Mon, 12 Mar 2018 00:44:57 +0000 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:45.0) Gecko/20100101 Thunderbird/45.5.1 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Content-Filtered-By: Mailman/MimeDel 2.1.25 X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 12 Mar 2018 00:45:01 -0000 Good evening everyone. Objective: get a GPS module work with Raspberry Pi 3 and FreeBSD v12-CURRENT (it has been indicated on several sites that the earlier versions of FreeBSD do not play well with Pi3), and get a /dev/pps0 so I can get the PPS from gpio 18 and time from a usb serial converter. I have the hardware and they are all plugged in exactly as they should. if I replace the pi with a Pi-B then it all works exactly as they should, but with Pi3 it is proving to be more challenging. I had been trying various things in the Kernel to get the /dev/pps0 (and also /dev/pps1, which I am enabling in case I get to use another module) which has not created even once so far. IAll the documentation I have come across refers to rPi up to model 2, and nothing on 3. As far as I can gather, I need to put options PPS_SYNC in the kernel configuration, which I did. There are also instructions on adding pps lines to the various dtb files that goes into the /boot/msdos folder -- but Rasperry Pi3 /does not/ have the /boot/msdos, it has efi, and my understanding is that the content of the efi is actually pulled from the github (no source available, only the final binaries to put in there). I tried to put those on rpi2.dts, didn't work. here are the relevant lines from the file. Please note, I want to PPS, one on gpio18 the other on gpio 23/ rpi_ft5406 { compatible = "rpi,rpi-ft5406"; status = "okay"; }; pps@0 { compatible = "pps-gpio"; gpios = <&gpio 18 0>; status = "okay"; }; pps@1 { compatible = "pps-gpio"; gpios = <&gpio 23 0>; status = "okay"; }; leds { compatible = "gpio-leds"; my understanding is, whatever dtb file is being used on RPi3, these are downloaded from github (https://github.com/raspberrypi/firmware/tree/master/boot) and there is no way of modifying them as they are all binary files. Would appreciate if someone could please confirm that for me. Would appreciate if someone could please point me to the correct direction as I seem to be going around very blindly and not seeing the possible solution to the problem. Best regards