From owner-freebsd-arm@freebsd.org Sun May 17 19:14:23 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 95F082F19BD for ; Sun, 17 May 2020 19:14:23 +0000 (UTC) (envelope-from thomas-bsd@skibo.net) Received: from egyptian.birch.relay.mailchannels.net (egyptian.birch.relay.mailchannels.net [23.83.209.56]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 49QBf61MXHz4nH2 for ; Sun, 17 May 2020 19:14:21 +0000 (UTC) (envelope-from thomas-bsd@skibo.net) X-Sender-Id: dreamhost|x-authsender|thomas-bsd@skibo.net Received: from relay.mailchannels.net (localhost [127.0.0.1]) by relay.mailchannels.net (Postfix) with ESMTP id 14842180B87 for ; Sun, 17 May 2020 19:14:20 +0000 (UTC) Received: from pdx1-sub0-mail-a88.g.dreamhost.com (100-96-12-34.trex.outbound.svc.cluster.local [100.96.12.34]) (Authenticated sender: dreamhost) by relay.mailchannels.net (Postfix) with ESMTPA id 59633180ECC for ; Sun, 17 May 2020 19:14:19 +0000 (UTC) X-Sender-Id: dreamhost|x-authsender|thomas-bsd@skibo.net Received: from pdx1-sub0-mail-a88.g.dreamhost.com (pop.dreamhost.com [64.90.62.162]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384) by 0.0.0.0:2500 (trex/5.18.8); Sun, 17 May 2020 19:14:19 +0000 X-MC-Relay: Neutral X-MailChannels-SenderId: dreamhost|x-authsender|thomas-bsd@skibo.net X-MailChannels-Auth-Id: dreamhost X-Occur-Wipe: 318493db69c0d45b_1589742859748_1405267136 X-MC-Loop-Signature: 1589742859748:481238900 X-MC-Ingress-Time: 1589742859748 Received: from pdx1-sub0-mail-a88.g.dreamhost.com (localhost [127.0.0.1]) by pdx1-sub0-mail-a88.g.dreamhost.com (Postfix) with ESMTP id 175D0B2386 for ; Sun, 17 May 2020 12:14:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=skibo.net; h=date:from:to :subject:message-id:references:mime-version:content-type :in-reply-to; s=skibo.net; bh=LX6x/RVlOWD1TWscOTj0cDzmS3g=; b=Z/ czB4NOfDhSxC+usaqlefDlPVOOcXFZqlyBGB7mp1WfbNJI0gNgjuNDFP1IO0XcBu /EO7zYtruOwVypWYVwIZl4OqQ1dyS1jzl6jZH8PgsUeve7QKnp6XBgWTenYQvMd0 mbmAnTALVjJX4Uv7ZwzeU2QQy9+iaqvb8G9EISbqg= Received: from piedmont (c-67-180-59-81.hsd1.ca.comcast.net [67.180.59.81]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: thomas-bsd@skibo.net) by pdx1-sub0-mail-a88.g.dreamhost.com (Postfix) with ESMTPSA id BD152B238A for ; Sun, 17 May 2020 12:14:18 -0700 (PDT) Date: Sun, 17 May 2020 12:14:16 -0700 X-DH-BACKEND: pdx1-sub0-mail-a88 From: Thomas Skibo To: freebsd-arm@freebsd.org Subject: Re: need help w/ Cora-Z7, XC7Z007S Zynq board Message-ID: <20200517191416.GA1194@piedmont> References: <20200516221344.GH4213@funkthat.com> <20200517063853.GI4213@funkthat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200517063853.GI4213@funkthat.com> X-VR-OUT-STATUS: OK X-VR-OUT-SCORE: 0 X-VR-OUT-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgeduhedruddtfedgudeffecutefuodetggdotefrodftvfcurfhrohhfihhlvgemucggtfgfnhhsuhgsshgtrhhisggvpdfftffgtefojffquffvnecuuegrihhlohhuthemuceftddtnecunecujfgurhepfffhvffukfhfgggtuggjsehttdertddttddvnecuhfhrohhmpefvhhhomhgrshcuufhkihgsohcuoehthhhomhgrshdqsghsugesshhkihgsohdrnhgvtheqnecuggftrfgrthhtvghrnhepheegieekkefggfeifeelgedutedtleelffekffekteefteeigfdvudfhgedutdejnecuffhomhgrihhnpehfrhgvvggsshgurdhorhhgnecukfhppeeijedrudektddrheelrdekudenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhhouggvpehsmhhtphdphhgvlhhopehpihgvughmohhnthdpihhnvghtpeeijedrudektddrheelrdekuddprhgvthhurhhnqdhprghthhepvfhhohhmrghsucfukhhisghouceothhhohhmrghsqdgsshgusehskhhisghordhnvghtqedpmhgrihhlfhhrohhmpehthhhomhgrshdqsghsugesshhkihgsohdrnhgvthdpnhhrtghpthhtohepfhhrvggvsghsugdqrghrmhesfhhrvggvsghsugdrohhrgh X-Rspamd-Queue-Id: 49QBf61MXHz4nH2 X-Spamd-Bar: / Authentication-Results: mx1.freebsd.org; dkim=pass header.d=skibo.net header.s=skibo.net header.b=Z/ czB4N; dmarc=none; spf=pass (mx1.freebsd.org: domain of thomas-bsd@skibo.net designates 23.83.209.56 as permitted sender) smtp.mailfrom=thomas-bsd@skibo.net X-Spamd-Result: default: False [-0.96 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; ARC_NA(0.00)[]; RCVD_COUNT_FIVE(0.00)[6]; R_DKIM_ALLOW(-0.20)[skibo.net:s=skibo.net]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; R_SPF_ALLOW(-0.20)[+ip4:23.83.208.1/20]; MIME_GOOD(-0.10)[text/plain]; TO_DN_NONE(0.00)[]; PREVIOUSLY_DELIVERED(0.00)[freebsd-arm@freebsd.org]; RCPT_COUNT_ONE(0.00)[1]; RECEIVED_SPAMHAUS_PBL(0.00)[67.180.59.81:received]; DMARC_NA(0.00)[skibo.net]; DKIM_TRACE(0.00)[skibo.net:+]; NEURAL_HAM_SHORT(-0.96)[-0.964]; RCVD_IN_DNSWL_NONE(0.00)[23.83.209.56:from]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; RCVD_TLS_LAST(0.00)[]; ASN(0.00)[asn:36483, ipnet:23.83.208.0/21, country:CA]; MID_RHS_NOT_FQDN(0.50)[]; RWL_MAILSPIKE_POSSIBLE(0.00)[23.83.209.56:from] 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 19:14:23 -0000 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. > > -- > John-Mark Gurney Voice: +1 415 225 5579 > > "All that I will do, has been done, All that I have, has not." > _______________________________________________ > 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" > 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. --Thomas -- ===== Thomas Skibo thomas-bsd@skibo.net