From owner-freebsd-arm@freebsd.org Thu Dec 19 11:56:46 2019 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 BB60C1DE016 for ; Thu, 19 Dec 2019 11:56:46 +0000 (UTC) (envelope-from manu@bidouilliste.com) Received: from mail.blih.net (mail.blih.net [212.83.177.182]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mail.blih.net", Issuer "mail.blih.net" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 47dr2P6gdQz4bJY for ; Thu, 19 Dec 2019 11:56:45 +0000 (UTC) (envelope-from manu@bidouilliste.com) Received: from mail.blih.net (mail.blih.net [212.83.177.182]) by mail.blih.net (OpenSMTPD) with ESMTP id bd0411cf; Thu, 19 Dec 2019 12:56:44 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=bidouilliste.com; h=date :from:to:cc:subject:message-id:in-reply-to:references :mime-version:content-type:content-transfer-encoding; s=mail; bh=pLbz67L6IpuRb8w2RuBaokzcrxA=; b=F9L0aGsQ22sJcAE8B027xHrsy21u wmN2RINVvOVKt0RyHlkRZH04HmUJ4opUsCinDxWk0fiDoNnvuWMxE6jZfNXVxptR 8eDcy28tqMf37aNbMA3YkoKdCUCpWNKaw5IrPNftHwaNRFz7SqpQtENZ0ezlaOhQ /x8+5OPDmlMdju4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=bidouilliste.com; h=date :from:to:cc:subject:message-id:in-reply-to:references :mime-version:content-type:content-transfer-encoding; q=dns; s= mail; b=d9hn0Hbr/or91vGLQterN+EEc5HlykmRkFVZ8B9j6Rif4OX3zVqubVqN mFwRZXska38bUCT/U+6TXwZOQ3GqXRinMA9gF2Tm3W3zm1RSJUe5zoOAEwn73/lt f+ba8+NDGxpljbzm2gznaq5o/EvMnUu6Z2jX9u/viQvEzy9hAyc= Received: from sonic.home.blih.net (ip-9.net-89-3-105.rev.numericable.fr [89.3.105.9]) by mail.blih.net (OpenSMTPD) with ESMTPSA id 8689569b TLS version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO; Thu, 19 Dec 2019 12:56:44 +0100 (CET) Date: Thu, 19 Dec 2019 12:56:44 +0100 From: Emmanuel Vadot To: Gary Otten Cc: freebsd-arm@freebsd.org Subject: Re: SPI support for A64-OLinuXino board Allwinner A64 processor Message-Id: <20191219125644.aa0bd2b74ee04536500151c8@bidouilliste.com> In-Reply-To: References: X-Mailer: Sylpheed 3.7.0 (GTK+ 2.24.32; amd64-portbld-freebsd13.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: 47dr2P6gdQz4bJY X-Spamd-Bar: - Authentication-Results: mx1.freebsd.org; dkim=pass header.d=bidouilliste.com header.s=mail header.b=F9L0aGsQ; dmarc=none; spf=pass (mx1.freebsd.org: domain of manu@bidouilliste.com designates 212.83.177.182 as permitted sender) smtp.mailfrom=manu@bidouilliste.com X-Spamd-Result: default: False [-1.39 / 15.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; R_DKIM_ALLOW(-0.20)[bidouilliste.com:s=mail]; NEURAL_HAM_MEDIUM(-0.97)[-0.971,0]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+ip4:212.83.177.182/32:c]; MV_CASE(0.50)[]; MIME_GOOD(-0.10)[text/plain]; DMARC_NA(0.00)[bidouilliste.com]; NEURAL_HAM_LONG(-0.89)[-0.891,0]; TO_MATCH_ENVRCPT_SOME(0.00)[]; DKIM_TRACE(0.00)[bidouilliste.com:+]; RCPT_COUNT_TWO(0.00)[2]; FREEMAIL_TO(0.00)[gmail.com]; RCVD_NO_TLS_LAST(0.10)[]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; IP_SCORE(0.37)[ip: (-0.56), ipnet: 212.83.160.0/19(2.40), asn: 12876(0.02), country: FR(-0.00)]; ASN(0.00)[asn:12876, ipnet:212.83.160.0/19, country:FR]; MID_RHS_MATCH_FROM(0.00)[]; RCVD_COUNT_TWO(0.00)[2] X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 19 Dec 2019 11:56:46 -0000 On Wed, 18 Dec 2019 20:07:35 -0500 Gary Otten wrote: > Is there SPI support for this board/processor and what steps would I take > to implement a working SPI interface? The correct address and pins a for > the SPI interface appear in the sun50i-a64.dtsi include file for the > default overlay sun50-a64-olinuxino.dts . What do I need to put in the > loader.conf file to get the driver to load and for the spi devices to > appear in /dev and be usable? > _______________________________________________ > 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" Just kldload aw_spi (it might have been loaded automatically via devmatch). For accessing spi device you need an overlay to add a dts node with freebsd-spigen compatible, you can have a look at sys/dts/arm/overlays/spigen-rpi2.dtso for how to do that. -- Emmanuel Vadot