Received: by 2002:ac0:950c:0:0:0:0:0 with SMTP id f12csp2568814imc; Tue, 12 Mar 2019 17:32:21 -0700 (PDT) X-Google-Smtp-Source: APXvYqyZAmh5Ex35BU1UvS6kbIVOn/kE4O8pDEQCUaNH2+1JXwJEj3GpgMAPYgpzDgK2j+xxGm6C X-Received: by 2002:aa7:8d43:: with SMTP id s3mr6092838pfe.118.1552437141281; Tue, 12 Mar 2019 17:32:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1552437141; cv=none; d=google.com; s=arc-20160816; b=CEOJaCAnE9thE1nGtOFGnT1mj/ya1+EC88jexGJ0jrI8OcaElgmU8bQ2C+WJ7vhDnx 6SN+rxcGhD488RqE6knzdx0USbCKMMZFk8bCcwl0Ll21xkCdfCAZXFeRYAV9W82F9r9D 1Bb+O/c2m6rgrWpD5kgHewvbwqWvlZf4YQDft0mO9HHCuJBhccmetU7f22kWBbZ+oxQT BAr8eOWl5C7d/XeR+pCIwhDxwgZ+og4Wk1Bx2OfO/JXAHHwTm1AXjeVp6mdhQIJq7xIW GEjrvY6JWJmvWBh3WQPINPFzVSabawlfu7aDR4KVDwc9LnRNXL9XbgsMRmLqQfKkonMl TXMQ== 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=yKg+nARTdtsm7x8t8Xjwu4alcYJjw3luItz1ZtmLJWc=; b=IotAptXnmM5Cc6j2KfO5cs9NxO6q2VBnp4WJkDg48RK3FeywfAOQkfY/J0Lc9CTsJx znVodEVBN1mf82RByt+vI2vjaan5K6kS32V+UQ09WrrFDuDm0Uy45+/88XjbVObz3L0B +ydYq2a3jkd+QK/7rulvz4vKW/ePS6MksOd2u1omLry0T0T323zfItRy9MZ1sh/PIt91 /v8AQso1FT5yn2f5dz5Uqut+HDfkiadNRkbZn4/NQeiMG68A7wyNCjIGzs03fjZ3CMOa bLcrIoczsuCtkz0exBk+U/zGVBCwNpXhfC+Xe3u8Z0KvPDhi6uA4jRnaiNbFPy4yQqb6 803Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=LFPnUqqO; 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=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w8si8623816pgl.587.2019.03.12.17.32.04; Tue, 12 Mar 2019 17:32:21 -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=@gmail.com header.s=20161025 header.b=LFPnUqqO; 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=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726564AbfCMAbd (ORCPT + 99 others); Tue, 12 Mar 2019 20:31:33 -0400 Received: from mail-wm1-f65.google.com ([209.85.128.65]:56100 "EHLO mail-wm1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726269AbfCMAbd (ORCPT ); Tue, 12 Mar 2019 20:31:33 -0400 Received: by mail-wm1-f65.google.com with SMTP id 4so109065wmf.5; Tue, 12 Mar 2019 17:31:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=yKg+nARTdtsm7x8t8Xjwu4alcYJjw3luItz1ZtmLJWc=; b=LFPnUqqOKOq0XufiLgweF4Dm2YGpJj6u+ZQaoWS2nD1RxL0KQZktWgH3iZ8Cs2JooC ivefOfIdpSfTsEQ326PUeNda7AkHEEmC/qZFMX+bwj6xfz9X5W0BNK/o/eOpdhiB5Rzz An42GI35hN1oa2nsIVaGqTW7KatU5Wq+L3/1cbM2hMqhyze8yd/fN0Ezi2qnC+UwrUpH m9i51caOvN6Pv7k5wc0D42kiNI/QuPmQbcswKAi/L8sP25gVe1Xj3Q+6OFgq9uHCAv8v fXkR8IytLXQ9089Hf/668z6ANvqheTcRs8yH6nZX/aYDxoueLWR94m1EJqFhscUQ7CkU 3ftg== 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=yKg+nARTdtsm7x8t8Xjwu4alcYJjw3luItz1ZtmLJWc=; b=Ww8Xl4sx5D4iKIuLGHEZM3h9LRJ9ag7sM/WzqnhOlwj8Q2LPywcdZsZquo9oCE34xn aFpzxiH3TmvxIEhfeREkfNPEiPkLoFkC815Bz55D65RM9oWYSbsbAoxZokn1AtBoTPXQ lqzmULqSWqvJkeyviHkT6Mx+7va9JIY9ZklfC3zYecLYMa78nw6yLrN1tI/A/P6ov9Ct zGs9ZCcYaNEnqyX1IReUHnOfo5/16K/wgrlQo3SpOsCMHiGnKkeVnoDz8RNJNL3v+PjX 0DlOITfe44MTE5l45bXX/QZlBNMea/YObK2TslPO7fymG/sSMZhZ8ToyZyqmobSS0yO8 yerA== X-Gm-Message-State: APjAAAUNI7xEWGbjvAERIDXvTKZOruVcVuBSgHTNewV71r7CPa8Yy0z6 zysJVdGqH0cTyJtZ2M/Dg75Xq1otUEVhIZpJE84= X-Received: by 2002:a1c:44:: with SMTP id 65mr212870wma.127.1552437091074; Tue, 12 Mar 2019 17:31:31 -0700 (PDT) MIME-Version: 1.0 References: <20190311213124.29325-1-angus@akkea.ca> <9f25fb1a0acb35539dcd802502c49058@www.akkea.ca> In-Reply-To: <9f25fb1a0acb35539dcd802502c49058@www.akkea.ca> From: Andrey Smirnov Date: Tue, 12 Mar 2019 17:31:19 -0700 Message-ID: Subject: Re: [PATCH] arm64: dts: fsl: imx8mq: enable the thermal management unit (TMU) To: Angus Ainslie Cc: Mark Rutland , Rob Herring , Shawn Guo , Fabio Estevam , Sascha Hauer , Lucas Stach , Abel Vesa , daniel.baluta@nxp.com, agx@sigxcpu.org, dl-linux-imx , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , linux-kernel 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 Tue, Mar 12, 2019 at 1:19 PM Angus Ainslie wrote: > > Hi Andrey, > > On 2019-03-11 19:35, Andrey Smirnov wrote: > > On Mon, Mar 11, 2019 at 2:35 PM Angus Ainslie (Purism) > > wrote: > >> > >> These are the TMU nodes from the NXP vendor kernel > >> > > > > Hey Angus, > > > > TMU block supports multiple thermal zones and vendor kernel doesn't > > really account for that (see below). Latest version of the driver in > > thermal tree now actually supports that feature (mulit-sensor), so I > > think the code in DT should reflect that as well. I recently submitted > > a series adding HWMON integration for TMU > > (https://lore.kernel.org/lkml/20190222200508.26325-1-andrew.smirnov@gmail.com/T/#u) > > I tried applying those to linux-next. They don't apply very cleanly > there so I gave up. > > > and this is my take on this patch: > > > > https://github.com/ndreys/linux/commit/09931e3d60af0a74377307b433db97da1be31570 > > > > All of the code there is up for grabs, if you feel like using it. > > > > I followed that and I have a version that works with linux-next that > does not include the GPU > and VPU parts. > > I also tested a version with the GPU and VPU parts and it "works" but > creates 2 useless > paths in /sys/class/thermal . > > Should I wait for your changes to get into linux-next or resubmit a > version that works with the current one ? > You don't really need my changes for multi sensor support, only the patch Fabio pointed to. You can send the patch sans GPU and VPU nodes to get it in sooner or you can wait until multi-sensor support patch trickles down to get all in in a single patch. All options are fine by me, so it's up to you and Shawn I'd say. Thanks, Andrey Smirnov