Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp6213121yba; Thu, 11 Apr 2019 14:39:49 -0700 (PDT) X-Google-Smtp-Source: APXvYqzyO7cpOBX4ybqd0Jc21k3wdh10AovifQacTqhK3TdN+AW6ttGjRU/WLOQRMpeW0xEY6DTd X-Received: by 2002:a63:af0a:: with SMTP id w10mr25779491pge.67.1555018789470; Thu, 11 Apr 2019 14:39:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1555018789; cv=none; d=google.com; s=arc-20160816; b=pcx1z+1hqN7BnREvAxf/EgvAYBmzlHvhFvFQ3SRW2zvyAGzFG4hG/mT89m5y6aFFis LR9IuXkEhWur9b9mL7Web1RIBuoJHMj5eOsI8ElYLtuCnu2iXMTKoPdskVFQuRInVzkn 0dG7JsqmtVStUz4qjhNQw4vZHS9Sma71IDnNsM0Wn5fBjjjiNR7bD0EjcHH1gjvLweM9 o1yV/CEwL1hucPsNgSM1xk49RN/jkKYShviw5EDv/srAy1kld8+jQyYW1Rhn50RmpaLG oE3zyR5Iz1x2SEg4OXMtRMk7yuHX9K9BZUdr4avlAxa77zOwyBWtPEJgS3LDjObI69GT 7hjA== 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=c/Eaat6mJaApPXTKW9fxNSQtMRxRCGIGBY0z0WTwZsY=; b=SYnHJAqR0JIrCL+X3ODTif7SwXjolpOt/WTuPGjYe0P3zlmwdLqotJpkg129epey8Q NSg1hK8O8sCYpl2oXHKZKviNwYvH59AD5mNzoxe2ZrTe30hsZNguQSlKMzZfdhAmOdGK kifTN34yTQEdZ7Uk0IIwkMQ56SHG1Fzl7NHRqmo7hzAqCAPoGNKLZ44XqbiEZATJnSp2 ZIpQgrTrIDQrOY7+6lU+ZrmnkiMfR327wJGGoCFlclSM3iQyYF5LPA95IQ0WufzYeqAG K0bOGF4TX1tYz0rhQPTFQLxVP/CHAWgJef8qVLZwgVkcV1nok9a7vmRLAQ3VurV81IzO RHYw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@googlemail.com header.s=20161025 header.b=TvaDwhxf; 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 k12si34222011pgo.429.2019.04.11.14.39.33; Thu, 11 Apr 2019 14:39:49 -0700 (PDT) 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=TvaDwhxf; 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 S1726997AbfDKViz (ORCPT + 99 others); Thu, 11 Apr 2019 17:38:55 -0400 Received: from mail-oi1-f196.google.com ([209.85.167.196]:36821 "EHLO mail-oi1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726655AbfDKViz (ORCPT ); Thu, 11 Apr 2019 17:38:55 -0400 Received: by mail-oi1-f196.google.com with SMTP id l203so6261946oia.3; Thu, 11 Apr 2019 14:38:55 -0700 (PDT) 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=c/Eaat6mJaApPXTKW9fxNSQtMRxRCGIGBY0z0WTwZsY=; b=TvaDwhxfg26dt8H/AyPFMVm1oubn9ub7EVmMtB+QXJr+GfKype/hsuV1znFc5ueAUg XNSe5y9xoMLQ21nUKsuVikIHiMtsr+ZA1aoNrhWiAILFzu0LT6UGrb/jIVQfFa65SpYU R1OI79488ZvcxCSU0wYM4tA8tLETlnz6zhLMWghea0PWRlBx/SzlO/8TjNFXqKAaMhDK by7GY5b9rNGKSqal9xQk98TnVcSMUWdCTyQ2nMSOw+Y6szke6WlY/ZWWD3TFDvgg+TEf zA1aXbnfvOBaMHltAHsjvzs68MNyQLyYTztaRv4G7gesBJ71JXtet+ex5ahay4550GQ4 2UTw== 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=c/Eaat6mJaApPXTKW9fxNSQtMRxRCGIGBY0z0WTwZsY=; b=LJuoyVt+hB6+Km7ljcrV4QH8nnYZ3ym94CBX6Re2hvDIFzbvyOTKmWSNQsxtcPZtxT kvpiVNoPtPd3uzZOhoEvPbt/rBoQqdtowlZzqIHma+gdQxuEZKntRBb7FVTcLsit6NMD qQ9cVsJ/nCoqj78gCNS7N/WtgJWttymyZnJ5a/HkNVbIs3cR0yJFQGDOEWNs+ROfO2HM Uewgmlg6ykP6lb3lAEFcK2nWZM/3e1k71WKQvObuo4E0Kyy6hZKeYaGmJBggysebCkf6 GQeVTm6yTKihtpTdpPMPJ/mrST0VPMiLh1cgjOl1WuPq5HFP2gkKGAqba6w+kk3bx6+q 1K9A== X-Gm-Message-State: APjAAAU0vFJJj8wxVgK1+tzI9HsWnOgBP48RXPp4mQno/tNK11MPKZoC xRRxJzgIP4B4O/8sCyryBwZdt3Vq3wUZZjOhccE= X-Received: by 2002:aca:4482:: with SMTP id r124mr8219082oia.39.1555018734440; Thu, 11 Apr 2019 14:38:54 -0700 (PDT) MIME-Version: 1.0 References: <20190411084537.30299-1-glaroque@baylibre.com> <20190411084537.30299-3-glaroque@baylibre.com> In-Reply-To: <20190411084537.30299-3-glaroque@baylibre.com> From: Martin Blumenstingl Date: Thu, 11 Apr 2019 23:38:43 +0200 Message-ID: Subject: Re: [PATCH 2/2] clk: meson-g12a: Add Temperature Sensor clock To: Guillaume La Roque Cc: jbrunet@baylibre.com, Neil Armstrong , khilman@baylibre.com, linux-amlogic@lists.infradead.org, linux-clk@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.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 Guillaume, On Thu, Apr 11, 2019 at 10:46 AM Guillaume La Roque wrote: > > Add TS clock used by two temperature sensor thank you for working on this! > Signed-off-by: Guillaume La Roque > --- > drivers/clk/meson/g12a.c | 31 +++++++++++++++++++++++++++++++ > drivers/clk/meson/g12a.h | 3 ++- > 2 files changed, 33 insertions(+), 1 deletion(-) > > diff --git a/drivers/clk/meson/g12a.c b/drivers/clk/meson/g12a.c > index 3a3134976534..e6d2af6ee8ea 100644 > --- a/drivers/clk/meson/g12a.c > +++ b/drivers/clk/meson/g12a.c > @@ -2335,6 +2335,33 @@ static struct clk_regmap g12a_mali = { > }, > }; > > +static struct clk_regmap g12a_ts_div = { > + .data = &(struct clk_regmap_div_data){ > + .offset = HHI_TS_CLK_CNTL, > + .shift = 0, > + .width = 7, buildroot_openlinux_kernel_4.9_fbdev_20180706 uses ".width = 8". That matches with the public S922X datasheet from hardkernel which states that HHI_TS_CLK_CNTL[7:0] is "ts_clk clk_div" Martin