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=-5.8 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=no 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 BE55DC433DB for ; Wed, 24 Feb 2021 16:56:07 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 76BA864F04 for ; Wed, 24 Feb 2021 16:56:07 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235756AbhBXQ4H (ORCPT ); Wed, 24 Feb 2021 11:56:07 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58712 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235870AbhBXQzS (ORCPT ); Wed, 24 Feb 2021 11:55:18 -0500 Received: from mail-pg1-x52f.google.com (mail-pg1-x52f.google.com [IPv6:2607:f8b0:4864:20::52f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 34032C061574 for ; Wed, 24 Feb 2021 08:54:35 -0800 (PST) Received: by mail-pg1-x52f.google.com with SMTP id h4so1802416pgf.13 for ; Wed, 24 Feb 2021 08:54:35 -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=mmfyPvStXtF7u0Xac1+SfPR3u7qpBmzf5YppFvZBp6k=; b=jINqzVOtmNNzWHggNZ5Bcv10X2UhcxYKwtp7nqEj2Xqu/T7lRFz85XuEcxyL741K0V 0hbsSgsY6SKIxcHqzYcGQEb8fxhuLqGEZSkCOmwlzXtzaFiOhlx70adyqo7FYUwELk6r Yfo3Qt/Lgc+pQ33eDKD8fjZfsG6rPB/wkaIUo= 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=mmfyPvStXtF7u0Xac1+SfPR3u7qpBmzf5YppFvZBp6k=; b=S5OUg5tZN9ThTHopIA9No+plm+OzmrON7/i5zVHsNeedQkv08l+y7Yk/TD2WYMSneI MdFPh1XS8aGQSGl6UiBFFtSrgBGX4o8Sg0TqsQ5m/DT+R39c5IyACrJrYaO95+F8NCjk 1XZuKGTj9ql1eg1CSb8ysvfGkM4ItJCI7zG616L2CXEGSNM/e9waSNwcPISeQJswnnMy slCS1XY8daNwD5j8LkqBO2g0RhnwSaPkmSxo5uKtBbSJ8a7mB3q/Exo32Fw7SPjl+VGB 6UUw6r8A2pnHbhm3PyIPLC+qVLgS2CnQ/7jgca24/pC91ec002nz1DewnhVKglLkFvCF n/Yw== X-Gm-Message-State: AOAM533KA+ujA52jSWFx2JZeLutoQaKaYV9qXqQ5IJka71mT8OODgclV JX1plxzzw0fWXF3m/1BMYH5aIHb6t2zlug== X-Google-Smtp-Source: ABdhPJyaV2heBCie+AEicWXVBCE1Unoh7KiztvFLYltPpJsjq0Q7+hHKPCZdRigJeDE/wxKC/GYfow== X-Received: by 2002:a65:4508:: with SMTP id n8mr26645153pgq.294.1614185674794; Wed, 24 Feb 2021 08:54:34 -0800 (PST) Received: from localhost ([2620:15c:202:1:9f5:1448:883f:b01]) by smtp.gmail.com with UTF8SMTPSA id v3sm3199593pff.217.2021.02.24.08.54.33 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 24 Feb 2021 08:54:34 -0800 (PST) Date: Wed, 24 Feb 2021 08:54:32 -0800 From: Matthias Kaehlcke To: Dmitry Baryshkov Cc: Andy Gross , Bjorn Andersson , Rob Herring , "open list:DRM DRIVER FOR MSM ADRENO GPU" , open list , Douglas Anderson , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" 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> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org On Tue, Feb 23, 2021 at 02:12:30PM +0300, Dmitry Baryshkov wrote: > Hi, > > On Sat, 20 Feb 2021 at 05:13, Matthias Kaehlcke wrote: > > > > 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. > > Should we just expand the adc/adc-tm drivers with additional calibration tables? Generally that seems desirable, I'm not sure about the process, I guess someone with access to a climate chamber would have to create these tables? I think it would also require an extension of the DT bindings, currently the ADC driver assumes that a 100k NTC is connected, something in the DT would have to indicate the thermistor type. We want to remove the bogus temperatures from the system now, if support for 47k NTCs is added at some point we can consider changing the DT again.