Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp1914912pxb; Mon, 22 Feb 2021 14:37:27 -0800 (PST) X-Google-Smtp-Source: ABdhPJwbxoMwHCnaiBl12xta6X1mkcQcwEYcVhljy160hTELGaJix9iSUlCF+uUe10j+S3ADbsFk X-Received: by 2002:aa7:c843:: with SMTP id g3mr25091944edt.228.1614033447228; Mon, 22 Feb 2021 14:37:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614033447; cv=none; d=google.com; s=arc-20160816; b=ROrewEKGkIvG5D6UIcpyy1DiuOcoPF9cXKcpvx1AkGL+9TnueuwnebweBhcA7EpN6V BPssB8J6yHM5a79bWGCGfdXbgHpgzmgB1YQM3CIiunzZVFALguqCz7FyhsbjxQ3PHHYR KnBwCbUTkHghnBrPQwAqSXyNHz9NxMTE/m4LvIiCRbZo4PHeWyHZz1ZWQfDSzj4/KAJr y0G7pZdLD4TpC7aw0mDRns1P/6368YWXrXnmPsZSAvh2OR3RxdwzbjrPAtBeOa5zChbA jGDdcnF2MTmmKqLb31XEZ1o3gSq6Vo3g4rFpwSuUP8Lozvfd8pbxx3OKYRBWdp3YTiS1 zpUQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=e8a3846E0ppuChgajqq6GqK732eDl4suadOZfr+AkLI=; b=MIuQPfpwuKe1boUhX1c0/NqO7ctvGKGgAnm1kmbqpKy4JnLSKVk6Y10sheqDHuYv0t OSKfp46e8dM1ge1PUvC4ZCITuB/wu6gmvM0/uAz+3Ix/TCfGkeoPt4+ahXqB9G+X7FPt 1R+i3/GsY3JC1LvE5qofmx+b9MWYX3ZSHoW5RZKljHLgKTF7w7BWe2P4LZnn5Qy/l2K3 UR8QWEbxQoIW41xwbkpfNc9wI/MgCTJhR225pib77Apv1GCbPGoUxO0GGngVZpo/7IoV be36KTVwNJNlGMlNN4DHaYQ7mv+eKlVNJi5CgJTf2K9bJqaloQoTp8HHFS9fjXalXTqQ MsZw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=R9w1xbhC; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id c11si4526106edy.0.2021.02.22.14.37.04; Mon, 22 Feb 2021 14:37:27 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=R9w1xbhC; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230224AbhBVUjb (ORCPT + 99 others); Mon, 22 Feb 2021 15:39:31 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54180 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230498AbhBVUja (ORCPT ); Mon, 22 Feb 2021 15:39:30 -0500 Received: from mail-pj1-x1029.google.com (mail-pj1-x1029.google.com [IPv6:2607:f8b0:4864:20::1029]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C40FEC061786 for ; Mon, 22 Feb 2021 12:38:49 -0800 (PST) Received: by mail-pj1-x1029.google.com with SMTP id o6so349319pjf.5 for ; Mon, 22 Feb 2021 12:38:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=e8a3846E0ppuChgajqq6GqK732eDl4suadOZfr+AkLI=; b=R9w1xbhC8wrsZPkjcO7Vlel821Nrbv0TvVKR89+MVfxvhAcrLKt1pXrOCwfFPnMCry HMQ7s6XAfVIr+gQTdW7ltsPSPYwq31UwrPo0fm+B39wBYF85128dgNwN/ogPwKByK7la mEsrHMLqtMO0gSVaVtvaUPXl3CwYomPZMY+80= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=e8a3846E0ppuChgajqq6GqK732eDl4suadOZfr+AkLI=; b=okBCurTf/q0Z/zOB/4bUIaBX/HCOQzbQcgd2qe3nsaDfP6VWRIPTbzAeZV8ur3s1J0 57OTn7Fk1dkWiYz+fLTEKLulQuxhCcd2bPEdR8hfFbSYnrbTnYtL3TKrt76y+SSEmYqC /NAgQY3GiLbu5sJaX6yuNaI8l0eRFj4PQPADMkoUdVrSMdkTeSlepqxMKj+967D2FDq1 0NGAlBqPeQR24aT8AJvD8JvFNqtO4yKjOOgsrhmMYdYOKjBaw1gqvGPLYpGvWwI3qtih z7GBbqlFs5Czj1beuqp2d+LiYKwPmc7d4iXMEYBU4vjR8nbYphThHNckWtRRa4so1YKJ aeqA== X-Gm-Message-State: AOAM530pmfaIujH6nqg1lZ7fsCwaZ2aJhQ5TgYJ20DUAxw32eB2dyG5p q4Goh9izA76yK87eOJnNty44XQ== X-Received: by 2002:a17:902:7447:b029:e3:dbc0:bc5b with SMTP id e7-20020a1709027447b02900e3dbc0bc5bmr12084436plt.48.1614026328982; Mon, 22 Feb 2021 12:38:48 -0800 (PST) Received: from localhost ([2620:15c:202:1:61bd:1a6e:a387:22f0]) by smtp.gmail.com with UTF8SMTPSA id d26sm3534257pfq.175.2021.02.22.12.38.47 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 22 Feb 2021 12:38:47 -0800 (PST) Date: Mon, 22 Feb 2021 12:38:46 -0800 From: Matthias Kaehlcke To: Stephen Boyd Cc: Andy Gross , Bjorn Andersson , Rob Herring , linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, Douglas Anderson , devicetree@vger.kernel.org Subject: Re: [PATCH 3/3] arm64: dts: qcom: sc7180: Delete charger thermal zone and ADC channel for lazor <= rev3 Message-ID: References: <20210219181032.1.I23e12818c4a841ba9c37c60b3ba8cfeeb048285f@changeid> <20210219181032.3.Ia4c1022191d09fe8c56a16486b77796b83ffcae4@changeid> <161402520418.1254594.7435679604383921403@swboyd.mtv.corp.google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <161402520418.1254594.7435679604383921403@swboyd.mtv.corp.google.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Feb 22, 2021 at 12:20:04PM -0800, Stephen Boyd wrote: > Quoting Matthias Kaehlcke (2021-02-19 18:10:59) > > Lazor rev3 and older are stuffed with a 47k NTC as thermistor for > > the charger temperature which currently isn't supported by the > > PM6150 ADC driver. Delete the charger thermal zone and ADC channel > > to avoid the use of bogus temperature values. > > > > Signed-off-by: Matthias Kaehlcke > > --- > > > > arch/arm64/boot/dts/qcom/sc7180-trogdor-lazor-r0.dts | 9 +++++++++ > > arch/arm64/boot/dts/qcom/sc7180-trogdor-lazor-r1.dts | 9 +++++++++ > > arch/arm64/boot/dts/qcom/sc7180-trogdor-lazor-r3.dts | 9 +++++++++ > > 3 files changed, 27 insertions(+) > > > > diff --git a/arch/arm64/boot/dts/qcom/sc7180-trogdor-lazor-r0.dts b/arch/arm64/boot/dts/qcom/sc7180-trogdor-lazor-r0.dts > > index 30e3e769d2b4..0974dbd424e1 100644 > > --- a/arch/arm64/boot/dts/qcom/sc7180-trogdor-lazor-r0.dts > > +++ b/arch/arm64/boot/dts/qcom/sc7180-trogdor-lazor-r0.dts > > @@ -14,6 +14,15 @@ / { > > compatible = "google,lazor-rev0", "qcom,sc7180"; > > }; > > > > +/* > > + * rev <= 3 are stuffed with a 47k NTC as charger thermistor which is currently > > + * not supported by the PM6150 ADC driver. Delete the thermal zone and ADC > > + * channel to avoid the use of bogus temperature values. > > + */ > > +/delete-node/ &charger_thermal; > > +/delete-node/ &pm6150_adc_charger_thm; > > +/delete-node/ &pm6150_adc_tm_charger_thm; > > Can we disable pm6150_adc_tm instead on <= rev3 boards? It would be the > same number of lines, but is simpler to reason about disabled nodes vs. > deleted nodes usually. For Lazor theoretically this could be done since it doesn't use other ADC channels, however it won't work for other trogdor devices that will be upstreamed eventually. Some of these boards have the same problem, however they have other thermistors connected to the ADC. One could argue that it's preferable to do things in a uniform way, but I'm open to do it either way for Lazor.