From patchwork Thu Mar 4 18:04:14 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Matthias Kaehlcke X-Patchwork-Id: 392791 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=-18.8 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_CR_TRAILER, INCLUDES_PATCH, MAILING_LIST_MULTI, SPF_HELO_NONE, SPF_PASS, URIBL_BLOCKED, USER_AGENT_GIT 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 60B71C4332E for ; Thu, 4 Mar 2021 18:06:37 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 3AFA464F62 for ; Thu, 4 Mar 2021 18:06:37 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232939AbhCDSGF (ORCPT ); Thu, 4 Mar 2021 13:06:05 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52844 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232926AbhCDSFo (ORCPT ); Thu, 4 Mar 2021 13:05:44 -0500 Received: from mail-pj1-x102d.google.com (mail-pj1-x102d.google.com [IPv6:2607:f8b0:4864:20::102d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 67906C0613D9 for ; Thu, 4 Mar 2021 10:04:30 -0800 (PST) Received: by mail-pj1-x102d.google.com with SMTP id s23so7637907pji.1 for ; Thu, 04 Mar 2021 10:04:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=7NL7Y/1snwKGBiV/s0r4gaXgxf3olaiDdxdhFVYX9Hk=; b=MMCreVH+kcPeiQC0v5Sf+NUgzZepGQS7mPYJpHPOYsWFNrtE7WTBQhwLBcab5Hf8Tg H5Oh0LJgY6fz7wkAJN9eIaLer8U7WXkersF8uATP+NNv8ZS86QRSLTyoOzAaJqYSjvmx 6tj3WMonYL4QDtlwU9+rCEzd+wM3pCgQXaDMo= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=7NL7Y/1snwKGBiV/s0r4gaXgxf3olaiDdxdhFVYX9Hk=; b=MiD26u7ZJy4rOnV1Ggf0mwI3VLfXVCoaiGV99bxgKSWAPSNb/JHwcEhvkYZmq9vgTS v2x1DKs7f7vLBXBHT1WTaEYPnee7Oc9w8J01AvwqxPLMXtNt6+GQSWrilcRjW/o+rDNB V5Z9jOG2nApa2pWWz0SSFm40wJBasvDen/2mhcgr5PoCXZ7ybnq5ZdKooTZBTZZzTSiw zNWM3iUN4KN9WHgz5/ZkKNf782FU+OX8cqKA5TCCvcpX0mRmKcUXYmwIIhQPMMevh3K4 efMekpjQjq2uWOLkI/WTvgdEMsZDsKr95PZuEwYO/+/KRaeTbzGpoR9h6YzwCdHS9dyH c/2w== X-Gm-Message-State: AOAM533xZQKMw94HK9oqNpn1nwGL6HqHEOG89bizI0qwtSNbCrGJBdm3 +xc3RmYhPPAPO2VnBt4C0qPz9A== X-Google-Smtp-Source: ABdhPJzM9tJ/NPdmkUEQUMkwwpvYOohTbrotYFCkxpiThMe4UHc4EGDnYHfMaZE0tABhBYhN+XxhMA== X-Received: by 2002:a17:90a:bc06:: with SMTP id w6mr5648346pjr.44.1614881069998; Thu, 04 Mar 2021 10:04:29 -0800 (PST) Received: from localhost ([2620:15c:202:1:69fe:a9f8:ca53:af2b]) by smtp.gmail.com with UTF8SMTPSA id b22sm89045pfo.23.2021.03.04.10.04.27 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 04 Mar 2021 10:04:29 -0800 (PST) From: Matthias Kaehlcke To: Andy Gross , Bjorn Andersson , Rob Herring Cc: Douglas Anderson , devicetree@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, Matthias Kaehlcke Subject: [PATCH 3/4] arm64: dts: qcom: sc7180: pompom: Disable charger thermal zone for rev1 and rev2 Date: Thu, 4 Mar 2021 10:04:14 -0800 Message-Id: <20210304100341.3.I4138c3edee23d1efa637eef51e841d9d2e266659@changeid> X-Mailer: git-send-email 2.30.1.766.gb4fecdf3b7-goog In-Reply-To: <20210304180415.1531430-1-mka@chromium.org> References: <20210304180415.1531430-1-mka@chromium.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org Pompom rev1 and rev2 are stuffed with a 47k NTC as thermistor for the charger temperature which currently isn't supported by the PM6150 ADC driver. Disable the charger thermal zone to avoid the use of bogus temperature values. Signed-off-by: Matthias Kaehlcke --- arch/arm64/boot/dts/qcom/sc7180-trogdor-pompom-r1.dts | 9 +++++++++ arch/arm64/boot/dts/qcom/sc7180-trogdor-pompom-r2.dts | 9 +++++++++ 2 files changed, 18 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sc7180-trogdor-pompom-r1.dts b/arch/arm64/boot/dts/qcom/sc7180-trogdor-pompom-r1.dts index e720e7bd0d70..bc6574e446a9 100644 --- a/arch/arm64/boot/dts/qcom/sc7180-trogdor-pompom-r1.dts +++ b/arch/arm64/boot/dts/qcom/sc7180-trogdor-pompom-r1.dts @@ -14,6 +14,15 @@ / { compatible = "google,pompom-rev1", "qcom,sc7180"; }; +/* + * Pompom rev1 is stuffed with a 47k NTC as charger thermistor which currently + * is not supported by the PM6150 ADC driver. Disable the charger thermal zone + * to avoid using bogus temperature values. + */ +&charger_thermal { + status = "disabled"; +}; + &pp3300_hub { /* pp3300_l7c is used to power the USB hub */ /delete-property/regulator-always-on; diff --git a/arch/arm64/boot/dts/qcom/sc7180-trogdor-pompom-r2.dts b/arch/arm64/boot/dts/qcom/sc7180-trogdor-pompom-r2.dts index 2b2bd906321d..779c90ed35e4 100644 --- a/arch/arm64/boot/dts/qcom/sc7180-trogdor-pompom-r2.dts +++ b/arch/arm64/boot/dts/qcom/sc7180-trogdor-pompom-r2.dts @@ -14,6 +14,15 @@ / { compatible = "google,pompom-rev2", "qcom,sc7180"; }; +/* + * Pompom rev2 is stuffed with a 47k NTC as charger thermistor which currently + * is not supported by the PM6150 ADC driver. Disable the charger thermal zone + * to avoid using bogus temperature values. + */ +&charger_thermal { + status = "disabled"; +}; + &keyboard_controller { function-row-physmap = < MATRIX_KEY(0x00, 0x02, 0) /* T1 */