From owner-freebsd-arm@freebsd.org Mon Dec 31 12:47:53 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 CBECB1432769 for ; Mon, 31 Dec 2018 12:47:53 +0000 (UTC) (envelope-from toshi@ruby.ocn.ne.jp) Received: from mfdf022.ocn.ad.jp (mfdf022.ocn.ad.jp [153.128.50.80]) by mx1.freebsd.org (Postfix) with ESMTP id 7406268173; Mon, 31 Dec 2018 12:47:52 +0000 (UTC) (envelope-from toshi@ruby.ocn.ne.jp) Received: from mogw2025.ocn.ad.jp (mogw2025.ocn.ad.jp [61.118.33.27]) by mfdf022.ocn.ad.jp (Postfix) with ESMTP id DA24A203666; Mon, 31 Dec 2018 21:47:43 +0900 (JST) Received: from mf-smf-unw004c3 (mf-smf-unw004c3.ocn.ad.jp [153.138.219.77]) by mogw2025.ocn.ad.jp (Postfix) with ESMTP id 63AEB440413; Mon, 31 Dec 2018 21:47:30 +0900 (JST) Received: from ocn-vc-mts-102c1.ocn.ad.jp ([153.153.66.81]) by mf-smf-unw004c3 with ESMTP id dwuKgug5EvEVfdwyggHSTm; Mon, 31 Dec 2018 21:47:30 +0900 Received: from smtp.ocn.ne.jp ([153.149.227.167]) by ocn-vc-mts-102c1.ocn.ad.jp with ESMTP id dwyggUTSM8o4xdwyggZrCG; Mon, 31 Dec 2018 21:47:30 +0900 Received: from localhost (p571097-ipngn200409sizuokaden.shizuoka.ocn.ne.jp [180.33.36.97]) by smtp.ocn.ne.jp (Postfix) with ESMTPA; Mon, 31 Dec 2018 21:47:30 +0900 (JST) Date: Mon, 31 Dec 2018 21:47:25 +0900 (JST) Message-Id: <20181231.214725.1482321641373486643.toshi@ruby.ocn.ne.jp> To: ian@freebsd.org Cc: freebsd-arm@freebsd.org Subject: Re: SPI start bit (9 bit) for BBB From: SAITOU Toshihide In-Reply-To: <1546226186.78877.97.camel@freebsd.org> References: <20181231.003356.1147810385398844555.toshi@ruby.ocn.ne.jp> <1546226186.78877.97.camel@freebsd.org> X-GPG-fingerprint: 34B3 0B6A 8520 F5B0 EBC7 69F6 C055 9F8A 0D49 F8FC X-Mailer: Mew version 6.8 on Emacs 26.1 Mime-Version: 1.0 Content-Type: Text/Plain; charset=iso-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable X-Rspamd-Queue-Id: 7406268173 X-Spamd-Bar: ++++ Authentication-Results: mx1.freebsd.org; spf=pass (mx1.freebsd.org: domain of toshi@ruby.ocn.ne.jp designates 153.128.50.80 as permitted sender) smtp.mailfrom=toshi@ruby.ocn.ne.jp X-Spamd-Result: default: False [4.89 / 15.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; RCVD_COUNT_FIVE(0.00)[6]; FROM_HAS_DN(0.00)[]; R_SPF_ALLOW(-0.20)[+ip4:153.128.50.0/24]; MV_CASE(0.50)[]; MIME_GOOD(-0.10)[text/plain]; TO_DN_NONE(0.00)[]; DMARC_NA(0.00)[ocn.ne.jp]; NEURAL_SPAM_MEDIUM(0.96)[0.955,0]; TO_MATCH_ENVRCPT_ALL(0.00)[]; NEURAL_SPAM_SHORT(0.78)[0.784,0]; MX_GOOD(-0.01)[cached: mfgw1.ocn.ad.jp]; RCPT_COUNT_TWO(0.00)[2]; MID_CONTAINS_FROM(1.00)[]; NEURAL_SPAM_LONG(0.99)[0.985,0]; RCVD_NO_TLS_LAST(0.10)[]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:4713, ipnet:153.128.0.0/11, country:JP]; IP_SCORE(0.87)[ip: (2.92), ipnet: 153.128.0.0/11(2.08), asn: 4713(-0.55), country: JP(-0.09)] 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: Mon, 31 Dec 2018 12:47:54 -0000 On Sun, 30 Dec 2018 20:16:26 -0700, Ian Lepore = wrote: > On Mon, 2018-12-31 at 00:33 +0900, SAITOU Toshihide wrote: >> In 3-line serial protcol, there is a type using additional 1-bit to >> specify command or data.=A0=A0The BBB can handle this, so I can use = >> with >> the following patch (unskillful and maybe side effects exist).=A0=A0= I >> hope this will attract someones interest to implement this and also >> SPI frequency and mode. >> > > Since you are already set up for testing spi on BBB, could you = > please > try the attached patch for handling bus speed and mode? If it works > I'll get it committed. > > -- Ian I confirm that the spi(8) command is functional on BBB now. spi -f spigen0.0 -s 1000000 -m 0 I wish that the start bit enable and polarity will be implemented in = the same way. -- SAITOU Toshihide