Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp3460966pxb; Mon, 4 Apr 2022 17:43:06 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwQ5RuWEM8HwhRbV1QWYJlL+TVOLNSpbiIcCQYLndKGyMDFe4sr7+qNnMpIxJWPQzdpvkEC X-Received: by 2002:a17:90a:8996:b0:1ca:be37:1d3f with SMTP id v22-20020a17090a899600b001cabe371d3fmr1022730pjn.194.1649119386005; Mon, 04 Apr 2022 17:43:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649119386; cv=none; d=google.com; s=arc-20160816; b=yKDAfyD6QQ4Rfkub3y/ITgp7GBn2KTtIengBJxY2/jBhCJYRGrZFUgptHn7X5u04fW D+HySD+zrLIYPxIlQf6hPNhq3SQOAHDuZ+0lujDt4Cce8yabiQ19lw2RjPrho2z+BrEV Jqqyf2uzS3JNJQ+ATplrLWzhpZFAIi+8QiDSf4wQmRPL7gLM8NFf3LQReX0Vj4issK3Q TWZg4voscca8lT/lTCOxUctuKvbFd73J5ladNAz3AH2lUBO/m6J6FGRAHq/4qzzI3s1h HHy3gG3hnVj5UdO0FqQfV/xGqAGHlOs+YvjwPYTs0zgpPmhz0w1HpDpri95viiQ18TDw aL8g== 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 :organization:from:references:cc:to:content-language:subject :user-agent:mime-version:date:message-id:dkim-signature; bh=Fchq955hbINLxP1mfvpxKWtqMLR29zfsjFGO0tToAUc=; b=L4xUSlvSE09VNHIkaTXqeDFgrdxoauJoURpdBzUHnH5DVb35hseCNBc3r+z7GRo9QG yZraHTJqldrqZt2sG6s8rEVESz2S0xwj4y1rwFx20D+iOVejgF1Pwo39YtNue8bDgShc MiP7+yz1Q3r4MonZpi5CHSz2AflTbPwIE/UOiAsfeUu1yUXj3tkhNohcqBqG+Edc0+9w 1XOx3rzdNasthPNOCv6FdhDbm8Va8QpTnxmi16iwQsnwMtacunVkkgN3zHrcc9oWPLZ1 b2087d+xN9ks4i10h6ibDv2+cZ+GD5QZ3wt2FxnIdaT1NoHZZfr42+GoJ/gCBb9ho3mQ Haiw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20210112.gappssmtp.com header.s=20210112 header.b=3kCbDAxr; 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 Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id b4-20020a170902e94400b00153b2d16479si10978193pll.129.2022.04.04.17.43.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Apr 2022 17:43:05 -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=@baylibre-com.20210112.gappssmtp.com header.s=20210112 header.b=3kCbDAxr; 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 Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id C0EC39D065; Mon, 4 Apr 2022 16:56:18 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1353440AbiDDIDJ (ORCPT + 99 others); Mon, 4 Apr 2022 04:03:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39576 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1377899AbiDDIDC (ORCPT ); Mon, 4 Apr 2022 04:03:02 -0400 Received: from mail-wr1-x42c.google.com (mail-wr1-x42c.google.com [IPv6:2a00:1450:4864:20::42c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A5AE12FE47 for ; Mon, 4 Apr 2022 01:01:06 -0700 (PDT) Received: by mail-wr1-x42c.google.com with SMTP id d29so7090724wra.10 for ; Mon, 04 Apr 2022 01:01:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20210112.gappssmtp.com; s=20210112; h=message-id:date:mime-version:user-agent:subject:content-language:to :cc:references:from:organization:in-reply-to :content-transfer-encoding; bh=Fchq955hbINLxP1mfvpxKWtqMLR29zfsjFGO0tToAUc=; b=3kCbDAxruWLN43MM2kRlB4Gp+rcWnHK1FlJNINZdCpVw9O5zlIrvIad52lO+tYJzIv xj/VH2a9SXY4/53T7yF8x/p7TtX18Bp58ouR6Kdphjc6OA6aInZhSIF0wklOprZfgjUu VolqyD+gBeRHMN09uVqYaH66HnemWGcVyJEYLFGPITL55dtYt9JToehywBwKCZQuqCsE J1yyv5mCGH8MYKKl1f0b4p9sfBv+tGrbyFjSgfI3sxlWUeA2bqi9VnTcrVsbBdu0HSNy CzhPFlKxpyqM+POwVHH3QqjZnJWklwkNbKm2mzmB9Fep3r2kanhWq0rH6oREg8YmblkW CVdw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent:subject :content-language:to:cc:references:from:organization:in-reply-to :content-transfer-encoding; bh=Fchq955hbINLxP1mfvpxKWtqMLR29zfsjFGO0tToAUc=; b=0nmE05+64pn9/sI70gMowrLglKNLA+gHeGuElu+gGMP3c5AIQWoAe1y1m8nv/2/Ty1 mXjrLGZgya4gxaqwqYnVG7APi3pCmZrgiWm57xHr2XKyiXCfFLKrZxI41W4ZMiWxe4Wg R1Hj2mTp3yWdhDXWKoTvgel2zKhS75RJ6Ly1IpSU9qevD2WdKHLl3MMdHsiFs+9QVIa6 S0STX2pN51YHNzWXpGgXU1TQN9yrMNSLzZwTgic2QXTpSBS4QmsUE5h4GsRKp0y+Ou/y R/bnrNz8s2jzDHRNs2llY5FqapnGQaLVPaT5dKuAsEWTETPsLnta2fXAoVa2bcchgGv7 t1Ww== X-Gm-Message-State: AOAM532bPy977h1sgWwZ7QFnIcB5cu14Uhz1S7HiJiwAjxSuhmzf4y0c 9tXlP178Ac3fZxzhCNYj3PQu/g== X-Received: by 2002:a05:6000:156e:b0:206:1205:166c with SMTP id 14-20020a056000156e00b002061205166cmr2588330wrz.37.1649059264921; Mon, 04 Apr 2022 01:01:04 -0700 (PDT) Received: from ?IPV6:2001:861:44c0:66c0:1add:1b28:2457:eb46? ([2001:861:44c0:66c0:1add:1b28:2457:eb46]) by smtp.gmail.com with ESMTPSA id l3-20020a1ced03000000b0038ce57d28a1sm8563313wmh.26.2022.04.04.01.01.03 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 04 Apr 2022 01:01:04 -0700 (PDT) Message-ID: <8986ec34-616b-d497-29d1-6f7896c26e37@baylibre.com> Date: Mon, 4 Apr 2022 10:01:03 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.5.0 Subject: Re: [PATCH 0/3] Ensure Low period of SCL is correct Content-Language: en-US To: 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, Vyacheslav Bocharov References: <20220326102229.421718-1-tanure@linux.com> <7hee2lu82n.fsf@baylibre.com> From: Neil Armstrong Organization: Baylibre In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.5 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,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 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. Neil > > Thanks > Lucas