From owner-freebsd-arm@freebsd.org Sun May 17 23:08:08 2020 Return-Path: Delivered-To: freebsd-arm@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 230E22F8D99 for ; Sun, 17 May 2020 23:08:08 +0000 (UTC) (envelope-from jmg@gold.funkthat.com) Received: from gold.funkthat.com (gold.funkthat.com [IPv6:2001:470:800b::2]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "gate2.funkthat.com", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 49QHqq0ML2z3bj5 for ; Sun, 17 May 2020 23:08:06 +0000 (UTC) (envelope-from jmg@gold.funkthat.com) Received: from gold.funkthat.com (localhost [127.0.0.1]) by gold.funkthat.com (8.15.2/8.15.2) with ESMTPS id 04HN84DD080697 (version=TLSv1.2 cipher=DHE-RSA-AES128-GCM-SHA256 bits=128 verify=NO); Sun, 17 May 2020 16:08:04 -0700 (PDT) (envelope-from jmg@gold.funkthat.com) Received: (from jmg@localhost) by gold.funkthat.com (8.15.2/8.15.2/Submit) id 04HN84Lj080696; Sun, 17 May 2020 16:08:04 -0700 (PDT) (envelope-from jmg) Date: Sun, 17 May 2020 16:08:04 -0700 From: John-Mark Gurney To: Thomas Skibo Cc: freebsd-arm@freebsd.org Subject: Re: need help w/ Cora-Z7, XC7Z007S Zynq board Message-ID: <20200517230804.GJ4213@funkthat.com> Mail-Followup-To: Thomas Skibo , freebsd-arm@freebsd.org References: <20200516221344.GH4213@funkthat.com> <20200517063853.GI4213@funkthat.com> <20200517191416.GA1194@piedmont> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200517191416.GA1194@piedmont> X-Operating-System: FreeBSD 11.3-STABLE amd64 X-PGP-Fingerprint: D87A 235F FB71 1F3F 55B7 ED9B D5FF 5A51 C0AC 3D65 X-Files: The truth is out there X-URL: https://www.funkthat.com/ X-Resume: https://www.funkthat.com/~jmg/resume.html X-TipJar: bitcoin:13Qmb6AeTgQecazTWph4XasEsP7nGRbAPE X-to-the-FBI-CIA-and-NSA: HI! HOW YA DOIN? can i haz chizburger? User-Agent: Mutt/1.6.1 (2016-04-27) X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.4.3 (gold.funkthat.com [127.0.0.1]); Sun, 17 May 2020 16:08:04 -0700 (PDT) X-Rspamd-Queue-Id: 49QHqq0ML2z3bj5 X-Spamd-Bar: + Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=none (mx1.freebsd.org: domain of jmg@gold.funkthat.com has no SPF policy when checking 2001:470:800b::2) smtp.mailfrom=jmg@gold.funkthat.com X-Spamd-Result: default: False [1.54 / 15.00]; RCVD_TLS_ALL(0.00)[]; ARC_NA(0.00)[]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; NEURAL_SPAM_SHORT(0.34)[0.340]; MIME_GOOD(-0.10)[text/plain]; DMARC_NA(0.00)[funkthat.com]; AUTH_NA(1.00)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCPT_COUNT_TWO(0.00)[2]; R_SPF_NA(0.00)[no SPF record]; FORGED_SENDER(0.30)[jmg@funkthat.com,jmg@gold.funkthat.com]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; RCVD_COUNT_TWO(0.00)[2]; MID_RHS_MATCH_FROM(0.00)[]; FROM_NEQ_ENVFROM(0.00)[jmg@funkthat.com,jmg@gold.funkthat.com]; ASN(0.00)[asn:6939, ipnet:2001:470::/32, country:US] X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.33 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 17 May 2020 23:08:08 -0000 Thomas Skibo wrote this message on Sun, May 17, 2020 at 12:14 -0700: > On Sat, May 16, 2020 at 11:38:53PM -0700, John-Mark Gurney wrote: > > > > After a bit of digging, I think I have found the solution. It looks > > like slcr is suppose to be set to the frequency of the ps clk, which > > is 50 MHz, and then the global_timer is suppose to be set to half the > > CPU clock frequency, which on this board is, I believe, 650 MHz, so > > using the following in the dts made things work: > > &slcr { > > clock-frequency = <50000000>; > > }; > > > > &global_timer { > > clock-frequency = <325000000>; > > }; > > > > ping times look good sane (after I realized that wifi has a tad slower), > > and I've been running ntpd for over 20 minutes, and it hasn't bombed > > out yet, and the offset/jitter look good. > > sysctl hw.zynq will tell you the ARM PLL frequency. It is probably set > to 1300 Mhz so 325 Mhz is the correct global timer frequency. Yep, it is: hw.zynq.arm_pll_frequency: 1300000000 Thanks for confirming this. The above also makes the host USB port work as well (enough that it probes and detects USB devices)... Btw, do you have a guide or anything written up for using the PL under FreeBSD? I've read most of the stuff you've written on both the wiki and your web page, but didn't see anything specific on it. Thanks for your help. -- John-Mark Gurney Voice: +1 415 225 5579 "All that I will do, has been done, All that I have, has not."