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=-6.8 required=3.0 tests=DKIM_SIGNED,DKIM_VALID, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS autolearn=unavailable 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 C5050C2BBE2 for ; Wed, 4 Dec 2019 08:43:20 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 90411206DF for ; Wed, 4 Dec 2019 08:43:20 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=verdurent-com.20150623.gappssmtp.com header.i=@verdurent-com.20150623.gappssmtp.com header.b="ozY/oy0L" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727316AbfLDInT (ORCPT ); Wed, 4 Dec 2019 03:43:19 -0500 Received: from mail-vs1-f65.google.com ([209.85.217.65]:42587 "EHLO mail-vs1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726599AbfLDInT (ORCPT ); Wed, 4 Dec 2019 03:43:19 -0500 Received: by mail-vs1-f65.google.com with SMTP id y13so4307624vsd.9 for ; Wed, 04 Dec 2019 00:43:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=verdurent-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=+SZ9v7OkVrvJ6QaeG0oUf8yqDKkUw0TZlHMsxgTeAUg=; b=ozY/oy0LhPGAUReBjMed9tUWjdzGs68C98eMHleym7NGLw8mo6pEaKKTLUZRQlU3wM +2W9d3lE1B7K/VuDG4b06EE35ZprZsnEbnH+7MJU3sX1xgP1UBM9zxaVXY+3tyipy47e 05R1f3cM8PLGhyXRKl9aPrapV8tcWSrLv8spXMyuXDx3rRb/UP2b9Qon7i2pDqAFVMC7 q1T3/mgZWgR6MSBodZk5NOE6AL2VT8wrgq+PvXEsS0QV++4L/IHPuWjvfkd9ZponSZsW b+cjKPBB8iCGMrq9wPVv9zEF5gccNe6DUV9D5QEGixoQ5b1JV7QSFwBdNxsVX1P/N6YA Kg0Q== 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=+SZ9v7OkVrvJ6QaeG0oUf8yqDKkUw0TZlHMsxgTeAUg=; b=BmY3HEv0ZTJ7uleSvyMmcpQxAinUEfprxpsgcaC2n/4003bz4fviTyJuiC7gwTUZMI OV08vsJB3Dhgj0DtgiOEUfeInwftOVGcM/jnTJ4riwB1WZk8DrgPIxcuiVZJRuTtAFj6 yNB0UCRXcsMssQOCs1SDy6gu78vTgmF2C513lw/PFSi5W/A32RFSyyOk+tammCBmvjBq J4frOPtAticthNal9LiZ81ec0oD9SiDO/6lKbL0/p5EGeIgokdAXfFAjXyajQBD6P4a8 xSP8zaTdMAy7za35jqIcnMGoEE7i9R8RwKBgTG9LGTYQDyqyDu1cZj2VeezYB1atl/4C 7Bkg== X-Gm-Message-State: APjAAAUUAogs79o7s1va5A5jQlpA4KSkz7awjSa0jeTPzvs6qqAnaplk 6evkpsBTBRIjPYqgry1VeKN9n7Zc09V4WuVwLqKFNg== X-Google-Smtp-Source: APXvYqx74HU73kauUE3SN4x1GqN1piIReRrm6swkZnGHfssEu+YGONU15Um7fno0NFMP5mtYDaI+4iR27mqk+Wu+ryU= X-Received: by 2002:a67:f496:: with SMTP id o22mr879529vsn.9.1575448997829; Wed, 04 Dec 2019 00:43:17 -0800 (PST) MIME-Version: 1.0 References: <20191030182132.25763-1-f.fainelli@gmail.com> <20191030182132.25763-5-f.fainelli@gmail.com> In-Reply-To: <20191030182132.25763-5-f.fainelli@gmail.com> From: Amit Kucheria Date: Wed, 4 Dec 2019 14:13:06 +0530 Message-ID: Subject: Re: [PATCH 4/6] thermal: brcmstb_thermal: Add 16nm process thermal parameters To: Florian Fainelli Cc: LKML , Markus Mayer , "maintainer:BROADCOM STB AVS TMON DRIVER" , Zhang Rui , Eduardo Valentin , Daniel Lezcano , Rob Herring , Mark Rutland , "open list:BROADCOM STB AVS TMON DRIVER" , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , "moderated list:BROADCOM BCM7XXX ARM ARCHITECTURE" 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 On Wed, Oct 30, 2019 at 11:52 PM Florian Fainelli wrote: > > Match the 7216 compatible string in order to derive the correct 16nm > process thermal parameters to obtain correct readings. > > Signed-off-by: Florian Fainelli Reviewed-by: Amit Kucheria > --- > drivers/thermal/broadcom/brcmstb_thermal.c | 6 ++++++ > 1 file changed, 6 insertions(+) > > diff --git a/drivers/thermal/broadcom/brcmstb_thermal.c b/drivers/thermal/broadcom/brcmstb_thermal.c > index 2ad4eeb79f9c..41d4a142707c 100644 > --- a/drivers/thermal/broadcom/brcmstb_thermal.c > +++ b/drivers/thermal/broadcom/brcmstb_thermal.c > @@ -283,12 +283,18 @@ static const struct thermal_zone_of_device_ops of_ops = { > .set_trips = brcmstb_set_trips, > }; > > +static const struct brcmstb_thermal_params brcmstb_16nm_params = { > + .offset = 457829, > + .mult = 557, > +}; > + > static const struct brcmstb_thermal_params brcmstb_28nm_params = { > .offset = 410040, > .mult = 487, > }; > > static const struct of_device_id brcmstb_thermal_id_table[] = { > + { .compatible = "brcm,avs-tmon-bcm7216", .data = &brcmstb_16nm_params }, > { .compatible = "brcm,avs-tmon", .data = &brcmstb_28nm_params }, > {}, > }; > -- > 2.17.1 >