Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp4619imu; Mon, 26 Nov 2018 07:14:57 -0800 (PST) X-Google-Smtp-Source: AFSGD/XtN4om6vjmWRA+d8o+c82EPiG+oyfxgs0m/FaiM6hLyFcPM7cnKPYi3pGakEK24y57h2ZR X-Received: by 2002:a63:334a:: with SMTP id z71mr25414975pgz.400.1543245297104; Mon, 26 Nov 2018 07:14:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543245297; cv=none; d=google.com; s=arc-20160816; b=ldPL/BkVWhrMKR/M3Fx2dtc71f4J5A1BVQhn2pPFrSQLi/TNImKfgbkTVqD7v2Vb97 CxOMczCBDS2D39W9fFSrYEARkCQgiJrIuNzZHtnTDjxq9kB5Xv3GMo3DE0WRi4HhA69Y Jl4d6nU5z7+NsIJrCSECOReRxwl+Q8EOEBBJLyGE3vzwe6fjLxW+RjP87e4hUGYbVTXS bQBzkFlGGGk5yf/vEtgnc08F+Uns9RdF9ibhknEoNKBsBg4+S7TDjmddZv6bZkx5gTgE xESOEwOpR3YAJbmoIhy4OMfPOwtFZIUkM3Zxrrtgu4yZRKkPPJ3Z9Y+p2cAYzgaJZp3s VQWw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:organization:autocrypt:openpgp:from:references:cc:to :subject:dkim-signature; bh=nsuM/ME2oK8iArRxQ/xtoP4eOlCwhyxAU8gzQf6UTs4=; b=aUR3mbRBZpPUm2RtU4rktvE68sckAwCp61+q4R0W1B+Ozj07rP2zbATJA3SY5VL2t/ lmCYFdWUxXYVkVDld4u+yRzXiNXd3patUGUk5KcK5JbgqxL7J3uto1b361xJOQQf0iXI VOYhPOHMPNPHK6t0s1vGL/vcYTUHi+UtBW/N5Apd+v5RP2dGWoah1shGSwgM6pOqLuRD +34jhS246znnwA11tzsPeIkGNtgM8c54dL4X5E2Dss/DaR95spPGXqilChkcbsc74MAC sjzgIfBmB0Y+w2TU5F2lpQBAluKDyMiGuBpQL7L9LK+tH9Fxdl49Y6Clr30bdneD7z+Q BjZQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=su68d3Lh; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h5si598911plk.373.2018.11.26.07.14.20; Mon, 26 Nov 2018 07:14:57 -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=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=su68d3Lh; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726567AbeK0CHx (ORCPT + 99 others); Mon, 26 Nov 2018 21:07:53 -0500 Received: from mail-wm1-f65.google.com ([209.85.128.65]:34827 "EHLO mail-wm1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726230AbeK0CHx (ORCPT ); Mon, 26 Nov 2018 21:07:53 -0500 Received: by mail-wm1-f65.google.com with SMTP id c126so18813953wmh.0 for ; Mon, 26 Nov 2018 07:13:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=subject:to:cc:references:from:openpgp:autocrypt:organization :message-id:date:user-agent:mime-version:in-reply-to :content-language:content-transfer-encoding; bh=nsuM/ME2oK8iArRxQ/xtoP4eOlCwhyxAU8gzQf6UTs4=; b=su68d3Lh9GFqKg0iAahvzsC3oPhL9cIdUyfvZ5xhN3I/FkDjzk7Lxo0qhfX/7LfFMA pSdzThIS3k2r29Vrewg5v4EkfSwS6k63XKKt1XtLu59TxYQJOJgrqEO9KbecZ0mI+wnY w3ABlY2v9nuKt9KgvYvrK3g/0LsSowW/HAeY3/VdlPXnX3ybgZqeesH6EyfzTn1LnSo6 QInGDzVETEtrPxWy1B87gl0nCwR7NW/wzrk7wjwkI4MCpadWM7Kcw3beKCQr6hj7NE8V WPtG6uA7QeSEcXXSENtCycou7A2SVFcef/hmVe2UdtWxFF0bayIYsmdLMJ9aop66fPwm iNYA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:openpgp:autocrypt :organization:message-id:date:user-agent:mime-version:in-reply-to :content-language:content-transfer-encoding; bh=nsuM/ME2oK8iArRxQ/xtoP4eOlCwhyxAU8gzQf6UTs4=; b=efiRXo/C7J10JzGcUYDeygRH1pi6XtBzewbCPrNNcEhqAu/8yV+qZk8sxZ8ZRcabw6 ElTMjEyYbcENCDa+ZCwY05sdOTDV37H2nH1YQJimaxtZY6X4ouAyqBh2xKqfCvkDHJ8B Me1RNQe1oJGTVEEvkYHWnT6tDSZOmB1ItTiSeNIhF3JfuR8cv4eLSNHvByKXnrTtC/BG q9+oVoqb5ayhx5l5Z+IrOYALM40rrgd8bX+UQOWbeXeO3xCpPtkE7JDPv4jQ1x5NznDK vXfM42yIxXaT7JrN88DHAIm8XadjzjR/+ZQuNUCJDU7b7B1bQ9tIe9VV8ex4f6JRqyNK nGGw== X-Gm-Message-State: AA+aEWY0rck8ziGSDfMFIjqXiPhuGhszaunZam0PtcWKLSNNHRwGTtyn mj6cTtRZcDvKDzsppglP6GY9Lw== X-Received: by 2002:a1c:cec1:: with SMTP id e184mr16668641wmg.75.1543245206448; Mon, 26 Nov 2018 07:13:26 -0800 (PST) Received: from [10.1.2.12] (lmontsouris-657-1-212-31.w90-63.abo.wanadoo.fr. [90.63.244.31]) by smtp.gmail.com with ESMTPSA id d8sm607007wrw.70.2018.11.26.07.13.25 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 26 Nov 2018 07:13:25 -0800 (PST) Subject: Re: [PATCH] clk: meson: Fix GXL HDMI PLL fractional bits width To: Martin Blumenstingl 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 References: <20181121111922.1277-1-narmstrong@baylibre.com> <5e87ffda-4a38-f45b-00c4-6b73dc721656@baylibre.com> From: Neil Armstrong Openpgp: preference=signencrypt Autocrypt: addr=narmstrong@baylibre.com; prefer-encrypt=mutual; keydata= xsBNBE1ZBs8BCAD78xVLsXPwV/2qQx2FaO/7mhWL0Qodw8UcQJnkrWmgTFRobtTWxuRx8WWP GTjuhvbleoQ5Cxjr+v+1ARGCH46MxFP5DwauzPekwJUD5QKZlaw/bURTLmS2id5wWi3lqVH4 BVF2WzvGyyeV1o4RTCYDnZ9VLLylJ9bneEaIs/7cjCEbipGGFlfIML3sfqnIvMAxIMZrvcl9 qPV2k+KQ7q+aXavU5W+yLNn7QtXUB530Zlk/d2ETgzQ5FLYYnUDAaRl+8JUTjc0CNOTpCeik 80TZcE6f8M76Xa6yU8VcNko94Ck7iB4vj70q76P/J7kt98hklrr85/3NU3oti3nrIHmHABEB AAHNKE5laWwgQXJtc3Ryb25nIDxuYXJtc3Ryb25nQGJheWxpYnJlLmNvbT7CwHsEEwEKACUC GyMGCwkIBwMCBhUIAgkKCwQWAgMBAh4BAheABQJXDO2CAhkBAAoJEBaat7Gkz/iubGIH/iyk RqvgB62oKOFlgOTYCMkYpm2aAOZZLf6VKHKc7DoVwuUkjHfIRXdslbrxi4pk5VKU6ZP9AKsN NtMZntB8WrBTtkAZfZbTF7850uwd3eU5cN/7N1Q6g0JQihE7w4GlIkEpQ8vwSg5W7hkx3yQ6 2YzrUZh/b7QThXbNZ7xOeSEms014QXazx8+txR7jrGF3dYxBsCkotO/8DNtZ1R+aUvRfpKg5 ZgABTC0LmAQnuUUf2PHcKFAHZo5KrdO+tyfL+LgTUXIXkK+tenkLsAJ0cagz1EZ5gntuheLD YJuzS4zN+1Asmb9kVKxhjSQOcIh6g2tw7vaYJgL/OzJtZi6JlIXOwE0ETVkGzwEIALyKDN/O GURaHBVzwjgYq+ZtifvekdrSNl8TIDH8g1xicBYpQTbPn6bbSZbdvfeQPNCcD4/EhXZuhQXM coJsQQQnO4vwVULmPGgtGf8PVc7dxKOeta+qUh6+SRh3vIcAUFHDT3f/Zdspz+e2E0hPV2hi SvICLk11qO6cyJE13zeNFoeY3ggrKY+IzbFomIZY4yG6xI99NIPEVE9lNBXBKIlewIyVlkOa YvJWSV+p5gdJXOvScNN1epm5YHmf9aE2ZjnqZGoMMtsyw18YoX9BqMFInxqYQQ3j/HpVgTSv mo5ea5qQDDUaCsaTf8UeDcwYOtgI8iL4oHcsGtUXoUk33HEAEQEAAcLAXwQYAQIACQUCTVkG zwIbDAAKCRAWmrexpM/4rrXiB/sGbkQ6itMrAIfnM7IbRuiSZS1unlySUVYu3SD6YBYnNi3G 5EpbwfBNuT3H8//rVvtOFK4OD8cRYkxXRQmTvqa33eDIHu/zr1HMKErm+2SD6PO9umRef8V8 2o2oaCLvf4WeIssFjwB0b6a12opuRP7yo3E3gTCSKmbUuLv1CtxKQF+fUV1cVaTPMyT25Od+ RC1K+iOR0F54oUJvJeq7fUzbn/KdlhA8XPGzwGRy4zcsPWvwnXgfe5tk680fEKZVwOZKIEuJ C3v+/yZpQzDvGYJvbyix0lHnrCzq43WefRHI5XTTQbM0WUIBIcGmq38+OgUsMYu4NzLu7uZF Acmp6h8g Organization: Baylibre Message-ID: Date: Mon, 26 Nov 2018 16:13:24 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.2.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Martin, On 22/11/2018 23:05, Martin Blumenstingl wrote: > 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 I'll add back the comments about the register shift and i'll apply it for a next PR. Thanks, Neil > > > Regards > Martin >