From owner-freebsd-hackers@freebsd.org Mon Aug 20 16:13:26 2018 Return-Path: Delivered-To: freebsd-hackers@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 146C510740C0; Mon, 20 Aug 2018 16:13:26 +0000 (UTC) (envelope-from gljennjohn@gmail.com) Received: from mail-wr1-x433.google.com (mail-wr1-x433.google.com [IPv6:2a00:1450:4864:20::433]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 7FB1C74CA2; Mon, 20 Aug 2018 16:13:25 +0000 (UTC) (envelope-from gljennjohn@gmail.com) Received: by mail-wr1-x433.google.com with SMTP id 20-v6so7478363wrb.12; Mon, 20 Aug 2018 09:13:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:in-reply-to:references:reply-to :mime-version:content-transfer-encoding; bh=EhIAyQi9LHZZPtsr7XHJC6XfyavYw2vT5mKQJMunLlY=; b=lneuZs+1G7Q9chxqt73PHcBKL2d8Me5p5AHJJ2u30Zsb+SbGpC+kwwZohod04DEIpH mtbV9+yxrP/0VTfUzoPrxqEhbu8SSARTnGXFp2wZbRV/TmOoviHnTG96YWVBdref6jkX gpDNBDERGK3jYKmPlosXvCbk3YZ/13ddYXXNffuxRcYSngM75Op60VMNL/58DlX6imYK hqtlf1JixgibVAcHWK898QPl1Pcne+Ym3Q3+aHzNu3DGeFwDgbT8stBca1CfQ3eMLBp0 7ciXxaBAdYpfN11Yr131sRqUrj6YYmgXS5YooXdPuqY0sJBkvhbp9dIWrtgYAvW9bRUq rFLA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:in-reply-to :references:reply-to:mime-version:content-transfer-encoding; bh=EhIAyQi9LHZZPtsr7XHJC6XfyavYw2vT5mKQJMunLlY=; b=ocWU2+pxazlVY8gBjkatiMBKU3OSRO5Y2WhHBhhtxQICwSJQFZb1A0nyG23VOq6bOV jLnKuVK3Y3hB+5pQQ2F5gBx6JxDe7YGBgMEYqFIhBhpZ16POcPaIwO2xLcK3I1ZmJ1hY a/+dXMrMnBtYg7FiZ0EBkAp/Qs5oodZvd25+XgECa1Db0Jjaqwb3Dlc2PqjI3AL266cp t7Y0l9jSrEYXx/cNFheBh96UEEojM/YXUc1ow9ZULtS2h3L4kHwhlHKwZLzYOiGFCORa 2GHnkHxOBWLvAWaWj6WMbEf81lmx3BYkYUD5F3KmdhA16hCeOI2TZWzqgiWg2RFvaWc/ Ef2w== X-Gm-Message-State: APzg51Dqxup3DuBO5LP+ib8+0/sRhxcHedseAtzV7ktd8aTkAq7HaHuH HxOjgS6rJOJVNkaqHtS6SLLaS3W0 X-Google-Smtp-Source: ANB0Vdbg8CMI1qWrwS7hxKfJrdKK03e28zbYVCrqJ+rIAGvcUR4lF7KMdm4E3hNJAgx5LrBWgMoy3A== X-Received: by 2002:adf:f7c4:: with SMTP id a4-v6mr5620416wrq.86.1534781604370; Mon, 20 Aug 2018 09:13:24 -0700 (PDT) Received: from ernst.home (p5B0234D5.dip0.t-ipconnect.de. [91.2.52.213]) by smtp.gmail.com with ESMTPSA id y128-v6sm12203wmy.26.2018.08.20.09.13.23 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 20 Aug 2018 09:13:23 -0700 (PDT) Date: Mon, 20 Aug 2018 18:13:22 +0200 From: Gary Jennejohn To: Mark Millard via freebsd-hackers Cc: Mark Millard , Daniel Braniss , Rajesh Kumar , freebsd-drivers@freebsd.org, Ian Lepore Subject: Re: Need a clarification regarding I2C bus frequency in FreeBSD Message-ID: <20180820181322.71607854@ernst.home> In-Reply-To: <35F2C250-B4CB-4C53-BF8F-43C338022E34@yahoo.com> References: <1534523216.27158.17.camel@freebsd.org> <1534702861.27158.36.camel@freebsd.org> <1534771095.27158.46.camel@freebsd.org> <35F2C250-B4CB-4C53-BF8F-43C338022E34@yahoo.com> Reply-To: gljennjohn@gmail.com X-Mailer: Claws Mail 3.16.0 (GTK+ 2.24.32; amd64-portbld-freebsd12.0) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.27 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 20 Aug 2018 16:13:26 -0000 On Mon, 20 Aug 2018 07:16:15 -0700 Mark Millard via freebsd-hackers wrote: > On 2018-Aug-20, at 6:18 AM, Ian Lepore wrote: > > > On Mon, 2018-08-20 at 11:13 +0300, Daniel Braniss wrote: > >> > >>> > >>> On 20 Aug 2018, at 09:49, Daniel Braniss wrote: > >>> > >>>> . . . > >>> > >>> hi, > >>> I have similar issues with the allwinner/twsi but I do have a Saleae Logic and here is a nice picture: > >> ah, maybe this is better: > >> https://cs.huji.ac.il/~danny/Screen%20Shot%202018-08-20%20at%2011.06.43.png > > . . . > > This has nothing to do with the twsi driver, this is about the ig4 > > driver (found in sys/dev/ichiic). > > > > That screenshot seems to show a bus running at 100KHz like it should > > (although the 62:38 duty cycle is a bit suspicious). > > Being a logic analyzer display, it my just be that the threshold > was off from the optimal value. The waveform shape is not really > visible. > > The logic analyzer output also shows a thick "rising" edge without the > uparrow symbol. My guess would be that is a rising/falling/rising > sequence that on the scale in use does not show space between edges. In > other words: a glitch on the leading edge side of the intended pulse. > This too might be tied to the threshold used vs . the actual signal > properties: no way to tell from what is shown. > I have two of these logic analyzers and they definitely do a major clean up of the signals displayed. Things like overshoot and ringing, which can be seen on an oscilloscope, do not appear on what the logic analyzer displays. I suspect the purpose of the trace was simply to show the 100KHz SCL. -- Gary Jennejohn