Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp3514506pxb; Mon, 4 Apr 2022 19:29:07 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw0x0W+f4TrZy5LUuNECzgI3k3i1+1TakTpNjRS67bgmWSv90JWvxNSIkbwJGtm7OFcrE3U X-Received: by 2002:a17:902:da90:b0:154:1510:acc7 with SMTP id j16-20020a170902da9000b001541510acc7mr1140333plx.103.1649125747727; Mon, 04 Apr 2022 19:29:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649125747; cv=none; d=google.com; s=arc-20160816; b=QQkdw/CcVnCE0owDVvm46pqN74s5Ux7Gz3LGjCa2wloxVlxVo3qNmc4ESu1vaF06dX YU6mTvgx9X5ngG0x/Lpa0JWf+3FvEKPkq8LEqq3PIoysFw2vhQ21xgfw1aPCqgLoz4Bk sxR0Np+Q+3TQq1Mv4gq9EOQh1u05N7R5NE27Jr42YLw1H6pku/WgkvKPSMDE7Rnz4xnm /3nzyfwsLFY5Z95na9QYD/SBb0blBRVKHM8acxUQQ7Aik1SPk1gPM+trqN0hktxgzxfi /LPgLRSzIiUXmiae2DjNP+kEIg8BYpMLAU/6pM4ajnwBABxt06Bs6wv/sJIKyD9MYuPC t2MQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=e4rEEW1CHNAO9Rw05pMKLdvrOaRjn2nB0lWvqsJB/YE=; b=fwQyIbaMD6Lmxe86aT8lyDJSBj1MqfKBNKSP2qkuTwODdxLtDHplPmcqH/AoVQRQUm HazUoceeHFKtY+DR30QdcATGQ/siN/xLIqcGpwUC15rWThA41oxnqb3gjg/sdmaa/VIq eN9vrH3a2ipSUPopYbyM6cg0qCnT2LniaFVDpUd2VRg7snWwH1RXKrEkUt3AhDmufQgG arYCm/Cl6hAebiggtDcF7SwXO2E8ep3jblCRZTt+ei049HP9LmImwX6Bt8TCHJOrydEM fSTt00KCo/+UUIxgfNNy0KJfjc936EZj4fzMGLM0/vEsOKrOnbWFUXTwYe5wK1DJYJsI H62w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lexina.in header.s=dkim header.b=AGxfBeyU; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=REJECT dis=NONE) header.from=lexina.in Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id z20-20020a631914000000b003816043eea1si11864485pgl.150.2022.04.04.19.29.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Apr 2022 19:29:07 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@lexina.in header.s=dkim header.b=AGxfBeyU; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=REJECT dis=NONE) header.from=lexina.in Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 84D595675D; Mon, 4 Apr 2022 17:52:01 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1381523AbiDDWI2 (ORCPT + 99 others); Mon, 4 Apr 2022 18:08:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60234 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1379761AbiDDSCX (ORCPT ); Mon, 4 Apr 2022 14:02:23 -0400 Received: from mx.msync.work (mx.msync.work [51.91.38.21]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 45D3B369EA for ; Mon, 4 Apr 2022 11:00:26 -0700 (PDT) Received: from [127.0.0.1] (localhost [127.0.0.1]) by localhost (Mailerdaemon) with ESMTPSA id CC3A73B01F; Mon, 4 Apr 2022 18:00:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=lexina.in; s=dkim; t=1649095223; h=from:subject:date:message-id:to:cc:mime-version:content-type: content-transfer-encoding:content-language:in-reply-to:references; bh=e4rEEW1CHNAO9Rw05pMKLdvrOaRjn2nB0lWvqsJB/YE=; b=AGxfBeyUsX2CJvgiIWm9xFYwWlrarsTY0GIWhYZj3CYvlEOgR/Gnws76052KycThOR4h14 wuwBMur/eJ80gpveFSKQ7w1BktIOziBXSN3lkTYY1RiqxaSubjGpKDzcTL9bWxxGne/dZ5 N0J4K+Zrf/lJzIQqlmNDohShl1c6I2+EveF4ikgLmfWrAUpJ4ktvniMl9PJwY30VEqI/zf lUEJctuhA3h2WDs3q2rJ+nyu5x/Iaz9KjCxUg+G0YW5/8uc3I099BtVMke8n5hKlRloAtk Rd0cThQGLCujPT7NYNy0lcv+3Hz7Rt+ZE/W2C5hFk5wb9rDU5BTH8+9ooAIlwA== Message-ID: Date: Mon, 4 Apr 2022 21:00:20 +0300 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.7.0 Subject: Re: [PATCH 0/3] Ensure Low period of SCL is correct Content-Language: ru To: Neil Armstrong , tanure@linux.com, Kevin Hilman Cc: Jerome Brunet , Martin Blumenstingl , linux-i2c@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-amlogic@lists.infradead.org, linux-kernel@vger.kernel.org References: <20220326102229.421718-1-tanure@linux.com> <7hee2lu82n.fsf@baylibre.com> <8986ec34-616b-d497-29d1-6f7896c26e37@baylibre.com> From: Vyacheslav In-Reply-To: <8986ec34-616b-d497-29d1-6f7896c26e37@baylibre.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Last-TLS-Session-Version: TLSv1.3 X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,NICE_REPLY_A,RDNS_NONE,SPF_HELO_NONE, T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 04.04.2022 11:01, Neil Armstrong wrote: > Hi, > > On 29/03/2022 00:31, Lucas Tanure wrote: >> On Mon, 28 Mar 2022, 21:37 Kevin Hilman, wrote: >>> >>> Hi Lucas, >>> >>> Lucas Tanure writes: >>> >>>> The default duty cycle of 33% is less than the required >>>> by the I2C specs for the LOW period of the SCL clock. >>>> >>>> So, for 100Khz or less, use 50%H/50%L duty cycle, and >>>> for the clock above 100Khz, use 40%H/60%L duty cycle. >>>> That ensures the low period of SCL is always more than >>>> the minimum required by the specs at any given frequency. >>> >>> Thanks for the fixes! >>> >>> This is going to affect all SoCs, so ould you please summarize how your >>> changes were tested, and on which SoCs & boards? >>> >>> Thanks, >>> >>> Kevin >> >> Hi, >> >> I only tested against the vim3 board, measured the bus with a Saleae >> logic pro 16. >> The measurements were with 100k, 400k, and a few in-between frequencies. > > Thanks, it's a great addition to have ! > >> >> Is that enough? > > A test on GXL/GXM (VIM1 or VIM2) & GXBB (Odroid-C2) devices is lacking > before we > can merge this. > > If I find some time, I'll have a try, but everyone is welcome testing > this serie > and report if it still works fine for them. > > Vyacheslav, do you think you can test on your JetHub devices ? it would > validate GXL & AXG. It builds ok on 5.17. JetHub H1/D1 has only rtc clock (pcf8563) and 1-wire controller (ds2482) on i2c bus. I did't see any difference with or without patches. all works at first look. Vyacheslav