Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3192451imu; Fri, 23 Nov 2018 23:46:05 -0800 (PST) X-Google-Smtp-Source: AFSGD/VOBDfbfle4+8H1ylBtBcsHsbqjPQ/k7XY13w3z4qHqng/1YPkq9v2PDSipZTf0dlngVeOM X-Received: by 2002:a63:b81a:: with SMTP id p26mr17392407pge.433.1543045565785; Fri, 23 Nov 2018 23:46:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543045565; cv=none; d=google.com; s=arc-20160816; b=YZBk2DFhYamELHxKwzKZwA0x1ShKIRRZqAOsJjBm8FKvEdWPmHxh4isDt12T23ClJb ynsTKH7wFRdThBa0nEFqfc/+R7hk0QWgDPglbkKCakWMCQ1NOqwKTgP2Rk3nKN2Wpzzq VsrHLGMp+u6s+G7ODKSpNRfIpqNsRSLGGSRXRpIybCZzVNrR7HScPxjvIDyCcPqLis9v SwXZaqGFD8jsGVpqEwoFUb5XIWsdLe2aTHw6iEPlKW5IRMumqM8LwJbNEkZnY0fqb+YL OYFZNlwVsiXF+27d5/oXv9+CaFse5RQSOMkR+f2i+/N7eBMHqqECQhCix+xIXuTQACbP V3rg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=87dZb+9jEcoiev0n2CALEMFgjSHtgBJlbdWqSwTcOxA=; b=nQ66IsfFB6Sn/Tp1YHaAOjbzcBi+QqAFSjIhu2yJ13c9/OdntPiecbcKJx+t938GOv A/gEiSD0NuXPPQSzL6d363Ldu6kCLH/oxO4griAWau71lECyjhNZnfQxsCWJMe2A/vJ9 aoldAusCZNXAj0GXwveO2OY2UYM46qX8plyQQXLzpcZgV9pS7QC4WJhQKEVBIhTrCByt MTv1Sbb7cDOEKTJPEH1iLXqqnvNNKAViGE21CMFbbya5R+I/wxLH7qWoBiC66OsPf1Ka lEmgMw2CqkoaTdk/ViPIdOr7WoEFEV39y/EB23M3vLiZuhi46vAYz2Ifkz2ef1CE2C5i ec0g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@googlemail.com header.s=20161025 header.b=O2Vjty5u; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=googlemail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t74si45517193pgc.150.2018.11.23.23.45.51; Fri, 23 Nov 2018 23:46:05 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@googlemail.com header.s=20161025 header.b=O2Vjty5u; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=googlemail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2392422AbeKWIrU (ORCPT + 99 others); Fri, 23 Nov 2018 03:47:20 -0500 Received: from mail-ot1-f65.google.com ([209.85.210.65]:35226 "EHLO mail-ot1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730054AbeKWIrU (ORCPT ); Fri, 23 Nov 2018 03:47:20 -0500 Received: by mail-ot1-f65.google.com with SMTP id 81so9154419otj.2; Thu, 22 Nov 2018 14:05:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=87dZb+9jEcoiev0n2CALEMFgjSHtgBJlbdWqSwTcOxA=; b=O2Vjty5uGDQGeuR+y4citPzMCzHq8veUhIZgR0KfUSA2KJcm0imFBi9MuMzQQrKYiZ QGCVSlNkaD+Wrfbm03HrzBMIp384tOknQRkLwbsq8OeUUSx5NJonl5AOd4cK1wYvzJ15 8XNe18JqvyLBZDgfskCdW8SAybbsMlJvyyHw/PqxRRxngYn8rdiiRImDDNhZSTS2feS0 zv06UQwbfeG3hfH3094RCLDAZR77yQr0V5POcHocEej/3b5AS/OQyBBGNEUODwkEIS8U PQJQOg6QjqCNi50KNjffmUtCM7miC6cAcb5MAsC/KRHww6HstOLhEqJsC7yM7cd6nq21 TUsA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=87dZb+9jEcoiev0n2CALEMFgjSHtgBJlbdWqSwTcOxA=; b=VS7CjX8i2DeqINOsY7Fl5GwWDZAkgSbbK3Hyuj2JbE+kSsschIhrOvkS5gcp9dL9dF lYASt+iLkwAaryVqUMKh9TTQAAx7zByK5c2JQQKgAJfhP/dXLO+zq/0VzExXg2lfiYzO QEm0lAdhUWWhLgsKebfwl7WQKEJe8OminlZy02bwPt6Bs7rI8hf0ST48y7muOAJA4QYS AS23RhgxCJ9JSgEJFOpgWFo+xEfuDSxCg76BB+m/8Fud8m0ly8NFbM/CvOL5f8l1oIP+ K2+H6rjuJoczh1mnCN6zTDbzhj6a34AvZRX9D1WHpDSa1ms+pMKYQc2QuzjHDg1n8r0t gBkA== X-Gm-Message-State: AA+aEWbZT37BuMsDInaD95A9d4FmXGP2Jk36U7SjWPE4/Zpm514p7Rj0 D2OmzYoKUvLVfcxSWrmeQ80ADnmA2bplmcrq0Zk= X-Received: by 2002:a9d:715d:: with SMTP id y29mr7561869otj.148.1542924359389; Thu, 22 Nov 2018 14:05:59 -0800 (PST) MIME-Version: 1.0 References: <20181121111922.1277-1-narmstrong@baylibre.com> <5e87ffda-4a38-f45b-00c4-6b73dc721656@baylibre.com> In-Reply-To: <5e87ffda-4a38-f45b-00c4-6b73dc721656@baylibre.com> From: Martin Blumenstingl Date: Thu, 22 Nov 2018 23:05:48 +0100 Message-ID: Subject: Re: [PATCH] clk: meson: Fix GXL HDMI PLL fractional bits width To: Neil Armstrong Cc: jbrunet@baylibre.com, linux-amlogic@lists.infradead.org, linux-kernel@vger.kernel.org, linux-clk@vger.kernel.org, linux-arm-kernel@lists.infradead.org Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Neil, On Thu, Nov 22, 2018 at 9:26 AM Neil Armstrong wrote: > > Hi Martin, > > On 21/11/2018 22:53, Martin Blumenstingl wrote: > > Hi Neil, > > > > On Wed, Nov 21, 2018 at 12:19 PM Neil Armstrong wrote: > >> > >> The GXL Documentation specifies 12 bits for the Fractional bit field, > >> bit the last bits have a different purpose that we cannot handle right > >> now, so update the bitwidth to have correct fractional calculations. > > I assume you have more accurate documentation than what's available publicly: > > - the S805 datasheet doesn't have any documentation for this register at all > > - the S905 datasheet states that HHI_HDMI_PLL_CNTL2[11:0] are DIV_FRAC > > - the S905X and S912 datasheets state that SDMNC_POWER is at > > HHI_HDMI_PLL_CNTL2[6:0], SDMNC_ULMS is at HHI_HDMI_PLL_CNTL2[9:7] and > > SSC_DEP_SEL is at HHI_HDMI_PLL_CNTL2[13:10] > > - the S905X and S912 datasheets state that HHI_HDMI_PLL_CNTL1[11:0] are DIV_FRAC > > On S905, the HHI_HDMI_PLL_CNTL2 is at address 0xc9 << 2, but on S905X/S905D/S912 the > equivalent register at same address is named HHI_HDMI_PLL_CNTL1. > > They changed the numbering of registers between these 2 SoCs, but the register > content and addresses are similar for m/n/frac/reset. I totally missed that - thanks for the explanation! > > > > can you confirm that the public S905X and S912 documentation is wrong > > and that the .frac field is really part of HHI_HDMI_PLL_CNTL2 instead > > of HHI_HDMI_PLL_CNTL1? > > Is is part of HHI_HDMI_PLL_CNTL1 but at address of S905 HHI_HDMI_PLL_CNTL2. > > When jerome pushed the PLL support earlier, he added a comment. > I simply forgot to put it back when I added back the GXL HDMI PLL DCO. I'm curious: do you know whether the fractional divider field on Meson8b is 10 or 12 bits wide? if you can add a short note about the naming confusion to the patch description when applying the patch: Acked-by: Martin Blumenstingl Regards Martin