From owner-freebsd-arm@freebsd.org Sat Jan 5 14:48:22 2019 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 AD06B149D379 for ; Sat, 5 Jan 2019 14:48:22 +0000 (UTC) (envelope-from per@hedeland.org) Received: from outbound1p.ore.mailhop.org (outbound1p.ore.mailhop.org [54.149.210.130]) (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 6CD67854DF for ; Sat, 5 Jan 2019 14:48:20 +0000 (UTC) (envelope-from per@hedeland.org) ARC-Seal: i=1; a=rsa-sha256; t=1546698697; cv=none; d=outbound.mailhop.org; s=arc-outbound20181012; b=C1RNSRpFxY1ijWnGnXuC6KxQb6TRKPgG5ukCPdTIynXdk7qj+4ynvvHXCSu5bW0iJLgZtQU4Wgn0X nHfMY3n/NMVVNLL9u8jkpImcW56knwIUlsRnHSuA58cBEvnTvJYuBUSXlD6uyG/vIfA87ZlW406Dqp QbtdSWBwgFBmCFYTXuSfekTcibseFpIAQueD/haG8jNmeQ6m5Hz83gK62mmqiNRoWsuUJLJ8yCKRee U4W8SDIFiPmpEYjpHq4yM3ShS46XbP6lzIk2HXXF5GUc2vtJlvr+uItlSCYHOVxmV8SSu3hTLiQLRB PtC1HoKD7gDn36xS3ddxGgOgxA3yiZQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=outbound.mailhop.org; s=arc-outbound20181012; h=content-transfer-encoding:content-type:in-reply-to:mime-version:date: message-id:from:references:to:subject:dkim-signature:from; bh=mmpIJU2n6ihKHG0cpGpffjZZNROVAsCoJOGVuO9D39Q=; b=pV1r3/y/pdF1inIaCJpacGHYN7K1qFvPu/lu6nVZoN25YnLcCF53NGEdtV0qYoVnalyKuPTkWdOZf 4Vopi3vM9FvQAsUqh6+iMvmhFw8+Te2FljzD+/XZEIdfPGtrhy6DREahp3/F7mq1jov1h3CjbBM3XD y/IFvR02pMgwPHyFFPcdyNZEFt5ddZf9fLqd1oXXnPnJUykj9EvuIxZbppy/ljq18Wi9b00bis2NOL yz45R9AomhaafjOFSZkudeblPOgbVZX5E3Tb8U6g/oHoUM9kOLSs5045BQEgkvlnH4bxdMOCfe8cL3 WZZXH5AlJIejy/XKGM623KTDifAzSQQ== ARC-Authentication-Results: i=1; outbound3.ore.mailhop.org; spf=none smtp.mailfrom=hedeland.org smtp.remote-ip=81.228.152.101; dmarc=none header.from=hedeland.org; arc=none header.oldest-pass=0; DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=outbound.mailhop.org; s=dkim-high; h=content-transfer-encoding:content-type:in-reply-to:mime-version:date: message-id:from:references:to:subject:from; bh=mmpIJU2n6ihKHG0cpGpffjZZNROVAsCoJOGVuO9D39Q=; b=arXY5/8al42HFgXJzaibprR+eNeyj/uCGc+xJSAapFfeTxmFIclAgvK83GRhv8yBk1rLBpqLf8vFE ecujrI47LHSlAAg+Ih9ALMo81TPb3jLD/loDCIqiriAoCg+0sdVaviGr9fCDVNKFg7LxsUxHS129SB H00clPDoSOgGZCRfgr1ocvrNGpQlsz6ZKqeJlasY0OtV7jJjse9KxHC9hr0IV98tF6DKyBg9KKVC3c XEfp0i2oLxUA4WDbFZAM6ebDA+GHkjsx7Qa/8Iup7Q0bHiD/+c3niXzY96j47WBzmxYlPcl1bBS2Ba wVFyxmz+hbl+kBm5qEqBWNNY3/AmIcQ== X-MHO-RoutePath: cGVyaGVkZWxhbmQ= X-MHO-User: 99f3d959-10f6-11e9-a59a-7b143e15dabc X-Report-Abuse-To: https://support.duocircle.com/support/solutions/articles/5000540958-duocircle-standard-smtp-abuse-information X-Originating-IP: 81.228.152.101 X-Mail-Handler: DuoCircle Outbound SMTP Received: from hedeland.org (unknown [81.228.152.101]) by outbound3.ore.mailhop.org (Halon) with ESMTPSA id 99f3d959-10f6-11e9-a59a-7b143e15dabc; Sat, 05 Jan 2019 14:31:36 +0000 (UTC) Received: from pluto.hedeland.org (pluto.hedeland.org [10.1.1.5]) by tellus.hedeland.org (8.15.2/8.15.2) with ESMTPS id x05EW7Ij070954 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NO) for ; Sat, 5 Jan 2019 15:32:07 +0100 (CET) (envelope-from per@hedeland.org) Subject: Re: i2c on RPi Zero? To: freebsd-arm@freebsd.org References: <229e0d36-a07b-8551-9613-0bf5748352e7@hedeland.org> From: Per Hedeland Message-ID: Date: Sat, 5 Jan 2019 15:32:07 +0100 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:60.0) Gecko/20100101 Thunderbird/60.4.0 MIME-Version: 1.0 In-Reply-To: <229e0d36-a07b-8551-9613-0bf5748352e7@hedeland.org> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: 6CD67854DF X-Spamd-Bar: ---- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=outbound.mailhop.org header.s=dkim-high header.b=arXY5/8a X-Spamd-Result: default: False [-4.52 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; HAS_XOIP(0.00)[]; TO_DN_NONE(0.00)[]; RCVD_COUNT_THREE(0.00)[3]; DKIM_TRACE(0.00)[outbound.mailhop.org:+]; MX_GOOD(-0.01)[cached: hedeland.org]; NEURAL_HAM_SHORT(-0.97)[-0.973,0]; FROM_EQ_ENVFROM(0.00)[]; IP_SCORE(-1.24)[ipnet: 54.148.0.0/15(-4.86), asn: 16509(-1.25), country: US(-0.08)]; SUBJECT_ENDS_QUESTION(1.00)[]; ARC_ALLOW(-1.00)[i=1]; MIME_TRACE(0.00)[0:+]; MID_RHS_MATCH_FROM(0.00)[]; ASN(0.00)[asn:16509, ipnet:54.148.0.0/15, country:US]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; R_DKIM_ALLOW(-0.20)[outbound.mailhop.org:s=dkim-high]; RECEIVED_SPAMHAUS_PBL(0.00)[101.152.228.81.zen.spamhaus.org : 127.0.0.11]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-arm@freebsd.org]; DMARC_NA(0.00)[hedeland.org]; RCPT_COUNT_ONE(0.00)[1]; RCVD_IN_DNSWL_NONE(0.00)[130.210.149.54.list.dnswl.org : 127.0.20.0]; R_SPF_NA(0.00)[]; RCVD_TLS_ALL(0.00)[] 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: Sat, 05 Jan 2019 14:48:22 -0000 I did a bit more testing on the Zero to see if the FreeBSD version mattered: FreeBSD-12.0-STABLE-arm-armv6-RPI-B-20190103-r342709.img - still no luck. FreeBSD-11.2-STABLE-arm-armv6-RPI-B-20190103-r342709.img - works! (I.e. dmesg reports as below and /dev/iic{0,1} get created - I haven't tested actual usage beyond having 'i2c -s' report "no devices found".) I guess that the i2c support hasn't been removed intentionally, i.e. this seems to be a regression - or is there some additional config etc required to enable it with FreeBSD-12? The iic and iicbus drivers appear to be built into the kernel in both 11 and 12. (I haven't tested FreeBSD-12 on the Pi B, but I would guess that the result will be the same as on the Zero, since it seems the hardware is the same.) --Per Hedeland On 2019-01-05 12:56, Per Hedeland wrote: > Hi, > > Is i2c expected to work on Raspberry Pi Zero? I have FreeBSD running > just fine on it from FreeBSD-12.0-RELEASE-arm-armv6-RPI-B.img, but > there is no mention of iic at boot (dmesg), and no /dev/iic* - while > on a Pi B with > FreeBSD-11.0-STABLE-arm-armv6-RPI-B-20170105-r311441.img (sorry about > the different versions) I see: > > iichb0: mem 0x205000-0x20501f on simplebus0 > iicbus0: on iichb0 > iic0: on iicbus0 > iichb1: mem 0x804000-0x80401f on simplebus0 > iicbus1: on iichb1 > iic1: on iicbus1 > > Also "What works" on > https://wiki.freebsd.org/FreeBSD/arm/Raspberry%20Pi has just an > ominous question mark for i2c on Zero...:-) > > Any hints for debugging/testing would be appreciated. > > Thanks > > --Per Hedeland > _______________________________________________ > 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"