Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 17 May 2020 16:08:04 -0700
From:      John-Mark Gurney <jmg@funkthat.com>
To:        Thomas Skibo <thomas-bsd@skibo.net>
Cc:        freebsd-arm@freebsd.org
Subject:   Re: need help w/ Cora-Z7, XC7Z007S Zynq board
Message-ID:  <20200517230804.GJ4213@funkthat.com>
In-Reply-To: <20200517191416.GA1194@piedmont>
References:  <20200516221344.GH4213@funkthat.com> <20200517063853.GI4213@funkthat.com> <20200517191416.GA1194@piedmont>

next in thread | previous in thread | raw e-mail | index | archive | help
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."



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20200517230804.GJ4213>