Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp872224rwd; Thu, 18 May 2023 05:15:32 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7/KNgto3rLliWMNpKWk11HECTot9qac9WMHUmiyd97CbqONdpEIBZxUjwCC7XiaRS+TJCY X-Received: by 2002:a17:902:bb95:b0:1ab:675:3e31 with SMTP id m21-20020a170902bb9500b001ab06753e31mr2170392pls.37.1684412132458; Thu, 18 May 2023 05:15:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684412132; cv=none; d=google.com; s=arc-20160816; b=0tpsLBnfkta15WVAPujWJg36hBvJez8GUBeECXc0ClUEB0fqZdAeZqXJPt4dV6rj0e shDk71IzeQLTHwn870NbAK1GFhdskXrWbYlEv4Ga4UmDCWZl9PUtvYs8pyd1hSkeuZsJ VomnSLp+YIp+IHoZqi0NNonU8jjHlXYayxcu4WsIzooTNMjCQXOy3XLxjHqfo2by/cOA rBJWaVgEw01sFnMwCSaFCfrKuWYE1UHQG+tY+pMbuDStlRokWC2U/t7NKeF/DhsULH10 7NsIoXClBxy/dj456t9WsgtUr+28F6oNOf1xY1copSiYf1xb80QzCkVGfbANoYLZODc/ hAaw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=mBVrcck5s6OuGtzh+rhmsWfcN2VuaI9gIbet+WEeIh0=; b=ScK6ZVzqFAq2bh5W6xk8KNWSWB/sZveORCSlbE8sQXxWhF77SJy2UAMLetTfWbPi0M kGulakvi9V50jCfN9wFCGFdNEO2XueSqIbnwNW0hGXERpl8lzH/W7ZtDokQMQnIo7IXU kaIVAEMffJlexFCO5ozkPnFodXgo4wsBBs/pb0BIVDoaF8yBMt0XP2h9EYwhdEhR7xWb +h5xMXnFtbh1HbDLoY5K7K1vULlnYizaFz4GSCkkIojbux7a32rXIP0HZUe+j3/PjF4b jRWCVMC/tGihSC+V4Q6JvE/+hPRayFKjbg5I+o19A12m2FYEJvVjePDaaCfO7iz1FOK6 77XA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=IBDQjG8w; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id b7-20020a170903228700b001ab08e28e01si1200336plh.361.2023.05.18.05.15.16; Thu, 18 May 2023 05:15:32 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=IBDQjG8w; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230242AbjERLws (ORCPT + 99 others); Thu, 18 May 2023 07:52:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45940 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230255AbjERLwr (ORCPT ); Thu, 18 May 2023 07:52:47 -0400 Received: from mail-yb1-xb31.google.com (mail-yb1-xb31.google.com [IPv6:2607:f8b0:4864:20::b31]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F3592C0 for ; Thu, 18 May 2023 04:52:38 -0700 (PDT) Received: by mail-yb1-xb31.google.com with SMTP id 3f1490d57ef6-ba827a34ba8so2745855276.0 for ; Thu, 18 May 2023 04:52:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; t=1684410758; x=1687002758; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=mBVrcck5s6OuGtzh+rhmsWfcN2VuaI9gIbet+WEeIh0=; b=IBDQjG8w9HEylhywOl9vA5UIZfMIJ+hgwPjUGH9uO2EPPc35MaAWOzPXbLXGzuGgF5 rnmZ/vwuvY9uQanydicMziFTcVFah8uNnePp6rPNZxtDUGKcGoQbrFF5qXACHrR37bHc dF4lF06QhJ95zo/CznbKZS48Iv+Fh7kS3DbhI= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1684410758; x=1687002758; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=mBVrcck5s6OuGtzh+rhmsWfcN2VuaI9gIbet+WEeIh0=; b=GlSL2cXELCo0Kka2j6S8Gg3jbP+ncny7pcqA4uhhJqmeMgwx2eUOJA1+L6WBNQWrIw +VKXkObJQdDrbwinzetk7BjkCiwLl9zLzwtH1qNQzSeKg45IqcaqcHTXwm0QW5/PnkqV RBQPev3udILzi+3y3BTLaTEQf9fL54+yoq3eeb1ZRwUnhXOeu55YOt+0akP/ZzrfhjYl 9HzL31gIKhKtQd00PbM73/BXMktkfF0hhODqTNH0ibUbPodVvF6o6TxXXkGek4Be0Ska rDEkVXZcE7O0qu1zs6qZA5RKDFvK3+NhVPlsDcv/J8frUmPtrebGjdSE6m+1bpkgYpGp D2xg== X-Gm-Message-State: AC+VfDy970PdTbZyvYQCTjxOUj9MNevIAhonT8n5sbeRcR0MKg59Nf2X fg4gyhgEg+Bcgghc0sWZjsQWW6azXzlvEAMOMkbOOg== X-Received: by 2002:a25:e70f:0:b0:b9e:3bea:ebd2 with SMTP id e15-20020a25e70f000000b00b9e3beaebd2mr944887ybh.31.1684410758177; Thu, 18 May 2023 04:52:38 -0700 (PDT) MIME-Version: 1.0 References: <20230515235713.232939-1-aford173@gmail.com> <20230515235713.232939-3-aford173@gmail.com> In-Reply-To: <20230515235713.232939-3-aford173@gmail.com> From: Jagan Teki Date: Thu, 18 May 2023 17:22:26 +0530 Message-ID: Subject: Re: [PATCH V6 2/6] drm: bridge: samsung-dsim: Fix PMS Calculator on imx8m[mnp] To: Adam Ford Cc: dri-devel@lists.freedesktop.org, aford@beaconembedded.com, Lucas Stach , Chen-Yu Tsai , Frieder Schrempf , Andrzej Hajda , Neil Armstrong , Robert Foss , Laurent Pinchart , Jonas Karlman , Jernej Skrabec , David Airlie , Daniel Vetter , Inki Dae , Marek Szyprowski , Marek Vasut , linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham 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 On Tue, May 16, 2023 at 5:27=E2=80=AFAM Adam Ford wrot= e: > > According to Table 13-45 of the i.MX8M Mini Reference Manual, the min > and max values for M and the frequency range for the VCO_out > calculator were incorrect. This information was contradicted in other > parts of the mini, nano and plus manuals. After reaching out to my > NXP Rep, when confronting him about discrepencies in the Nano manual, > he responded with: > "Yes it is definitely wrong, the one that is part > of the NOTE in MIPI_DPHY_M_PLLPMS register table against PMS_P, > PMS_M and PMS_S is not correct. I will report this to Doc team, > the one customer should be take into account is the Table 13-40 > DPHY PLL Parameters and the Note above." > > These updated values also match what is used in the NXP downstream > kernel. > > To fix this, make new variables to hold the min and max values of m > and the minimum value of VCO_out, and update the PMS calculator to > use these new variables instead of using hard-coded values to keep > the backwards compatibility with other parts using this driver. > > Fixes: 4d562c70c4dc ("drm: bridge: samsung-dsim: Add i.MX8M Mini/Nano sup= port") > Signed-off-by: Adam Ford > Reviewed-by: Lucas Stach > Tested-by: Chen-Yu Tsai > Tested-by: Frieder Schrempf > Reviewed-by: Frieder Schrempf > --- Reviewed-by: Jagan Teki Tested-by: Jagan Teki # imx8mm-icore