From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.7 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 8A53AC433EF for ; Wed, 8 Sep 2021 15:45:45 +0000 (UTC) Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id A4C1B6113A for ; Wed, 8 Sep 2021 15:45:44 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org A4C1B6113A Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=lists.denx.de Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 425D9833C2; Wed, 8 Sep 2021 17:45:42 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="f9xd9EuS"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 27887800C1; Wed, 8 Sep 2021 17:45:40 +0200 (CEST) Received: from mail-lj1-x22c.google.com (mail-lj1-x22c.google.com [IPv6:2a00:1450:4864:20::22c]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 26AE48337C for ; Wed, 8 Sep 2021 17:45:37 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=heiko.thiery@gmail.com Received: by mail-lj1-x22c.google.com with SMTP id s3so4251224ljp.11 for ; Wed, 08 Sep 2021 08:45:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=lenGZekJoCf/GU/FChrXQtqA4VxArddDpwDHFxlQeck=; b=f9xd9EuSUZmrdbY65jcHWxuNNt6iiazta/K0egkUeV7njcqhrcuQAuRkg1kmmnOgxC AbjdmigzWKUrYJLd6sxLt3xztm9jhvfUMi6XPRa862Txckfjp1trI+dPr6HVRDo048Yu ciypLzAqwBaEEtbQObAHOyJtWMwBWIjwD3FuMjSSv82reXJl6Kt9szwkERPegpKTGddY K05WGKc+clGX1E7E2Ba7reVkqndrzE3moTKo7ovlZcoI8zgyyfthcGsZnPw39hmWgFLD 1XYIPAVM7cWb1DZw0zxkWnIm2diSeZR9n2YNQI7WclP8eGT2l5hsLSUFJELxwNvuqaMw nA2A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=lenGZekJoCf/GU/FChrXQtqA4VxArddDpwDHFxlQeck=; b=N4ab+WunbIY/wn1oymQWPo6H5I/bCzLGkSrradZYHQpPB+nj7aDZUXbDO6r7JB3bBN qyYGLLeLWiMt22A5Q7HGj4h83M79T0/zWhFCbVl4woSY/VN63fxilM9o+Ds0BE2AZcxd i0aggNfSZub5O/Jxrr6KbBE4vNXW6NuoQSs3aX5frXEq5InDt7HE0xJBVE6Bq7i3n1pS 5d0G5HTccCuNBPyeaSxg0nsEBI06M3x2Z0VEcDWcTnGPl1MSNfL5HAyHHZI05wDsBpp6 7nJBtqhuOaBa9kmDlHcdWbov0d4q8YSDLFQ9emtUvHjntCtUFfUo8ufxL5rQLd67/R9j pPHw== X-Gm-Message-State: AOAM532ceg0vvS97FcZ1e2+ECoEWwKbW4W98jHp603rFS/1pqBY2o9W6 RtbY9DDp6mBEVnPXacb82TN+RdDq5NPjDo/DgjAcdJRHtu8= X-Google-Smtp-Source: ABdhPJxkFQJGrIPQ3FdVQR4+OArCM5o3ByElDsybtlsTtFGfvaVowIr7Z1eZwTYQitVfENkOFS8y58U7mY8Zq4QQyxc= X-Received: by 2002:a2e:6e06:: with SMTP id j6mr3345710ljc.382.1631115936318; Wed, 08 Sep 2021 08:45:36 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Heiko Thiery Date: Wed, 8 Sep 2021 17:45:25 +0200 Message-ID: Subject: Re: imx: imx8mq: mxc_get_clock for MXC_I2C_CLK is missing To: u-boot@lists.denx.de, Peng Fan Cc: Fabio Estevam , Michael Walle Content-Type: text/plain; charset="UTF-8" X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.34 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.2 at phobos.denx.de X-Virus-Status: Clean Hi, Am Mi., 8. Sept. 2021 um 16:07 Uhr schrieb Heiko Thiery : > > Hi, > > Am Mi., 8. Sept. 2021 um 15:08 Uhr schrieb Heiko Thiery > : > > > > Hi Peng, > > > > I faced an issue with the I2C bus speed in SPL for the imx8mq. I > > figured out that the bus frequency is set to about 1MHz. While digging > > into that I found that the clk ID for the I2C is not returned for the > > imx8mq correctly. > > > > Can you confirm that this is missing here. > > > > This is what I added and now it looks better. > > Just measured the frequency and it is still not ok. It changed from > 1MHz to 400kHZ. But expected is 100KHz. Hi. I think now I understand that the SPL configures the I2C to 100kHz and after that U-Boot will configure the 400kHz frequency due to the dts configuration. I will measure the SPL vs U-Boot frequencies tomorrow. I will confirm that after that. -- Heiko