From patchwork Thu Sep 23 15:04:40 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bjorn Andersson X-Patchwork-Id: 514542 Delivered-To: patch@linaro.org Received: by 2002:a17:906:f46:0:0:0:0 with SMTP id h6csp340488ejj; Thu, 23 Sep 2021 08:07:04 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxlwtQKs9KWYTaAQ/zYqpBcthoqlGr0gX9Uug1kwtLJ+E9hhI2rjkSImH4QV3SZvm9SHOqK X-Received: by 2002:a50:f145:: with SMTP id z5mr6087430edl.4.1632409446161; Thu, 23 Sep 2021 08:04:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632409446; cv=none; d=google.com; s=arc-20160816; b=PV/MMx98hvQCtI4MTsM1dfOVFVAYguep1TiXQynGpDrwN9wH/oxkp3WPqbCwOcr4tr QtWGn8YiqY7PgQmEJIquCVx7nquvZ9kLeeRmR3ECDhY4wgQKdeIpSbQLbQ+UJI05KWm6 RI/hjnmAp5Op/XmsSJ4WMX6/QNCEFmzislhkKLNCm6+7/skbBrXaykzvBAwxyhxGUd1F /jIUXrgUK/k0j+/ttLfIouR/AXjj0RXFBk1T62+bdo/g6GkuDZgkx2ot3LORQkrzn1AI dFqAuDXq6P/tqg09HFjGcy8i57lzfrxOAPjzOh8FLszSb5P7jUbfaucMEe/Wd56G+DYe tUJg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=n99BUgoHnMCoEPxOhcp9LGegqDHiYuqfxJkhhRVvExs=; b=U0oYcNBLR7FaiHlzdbFviMXu1kPBvDNGM1Mzbcce5klToyMDnsprkUCEa2nTHQwt7t w1KXlA/MRa64gdKdGYHNcPuBOV3qpZmH09FpckYWi3K0OUgB4I77zwq9n+cDPT7jiukI NImsiUsBaO8PcidnH4fP/FHu23l/dq2xXLZvHaWu3aqCvFbxyyjqfVsxPS52BmC3li/1 dRScKeuXZEREpRFzJ4uSMm/802u7R3fzG17HF9sz3FuVR3q7a9AaxWIYcK37ZFw89+Z/ TxcpMEWxmIsvMBY5TKik1dMzH5E8q36Qx2d705c5ab8pYVYQnXWdeKzDQhUT6dqeC4M6 hTiQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=UTPrb+fi; spf=pass (google.com: domain of devicetree-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y14si6588508edo.391.2021.09.23.08.04.05; Thu, 23 Sep 2021 08:04:06 -0700 (PDT) Received-SPF: pass (google.com: domain of devicetree-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=@linaro.org header.s=google header.b=UTPrb+fi; spf=pass (google.com: domain of devicetree-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241904AbhIWPFg (ORCPT + 7 others); Thu, 23 Sep 2021 11:05:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56368 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241870AbhIWPFf (ORCPT ); Thu, 23 Sep 2021 11:05:35 -0400 Received: from mail-ot1-x329.google.com (mail-ot1-x329.google.com [IPv6:2607:f8b0:4864:20::329]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3F7E1C061756 for ; Thu, 23 Sep 2021 08:04:04 -0700 (PDT) Received: by mail-ot1-x329.google.com with SMTP id g62-20020a9d2dc4000000b0054752cfbc59so3201947otb.1 for ; Thu, 23 Sep 2021 08:04:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=n99BUgoHnMCoEPxOhcp9LGegqDHiYuqfxJkhhRVvExs=; b=UTPrb+fiXjsf5mEl41UjIo1i3V3rhi3Z60Zm0dr+pCW/ysLFmtAiRlHYJT/VkE4W00 jzhiytM2R2I6boM967PGJemYBW/U98w7W0E+0xSM5wUWHTp7o+YIWX6mfpUnMkVoUGmg 6Q1yuMtq30crpVPM2zb0e1xGg5vmumw0EiK7tKzNBc3EdGaG/TQv96axydwVo/frVUhH utPCHtwWw5Git42T+3ZLKcAsFue6r6Mivx0kn/YepjXftgtnCm+8bj+TZPOASiLhnCdl /q3HdMyJtokd8cNi87F3mAoVC6ab3sNddTYEceEMs6WhGwjyHz14MJpE2KfODwezbrdj wHVA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=n99BUgoHnMCoEPxOhcp9LGegqDHiYuqfxJkhhRVvExs=; b=TUoqWtV3p3+FaIGuCAVHG2zcVWx39UerDssdLdQ+sbLWZ2DLXwFH7FEhs7cYCuPHtk TTgxVBvht/7TyyQCrDo2BMdGKmuTeQQnXdwKZcEYmtCqYR96L6XQ4Xj2OXRgm8QOLX6m tWLuianlYkWaIDSApsMwPjqSSfVEHc1Fu5JlZL1YG0a3817rXRXJlI+vWB3XnHgdx7dB rv4h0lytoGX5vDGA6gVyFdRBvPNYw8MDvcbkw7Zs3UnwVlg0LJtcA/sluuJ+yUIgOnKs /uS8OslMEccX7n8MJXynYqah/QE9Orppcw5opw4vnEDu2i4+WmODiRio8dGAuShcCrJm XRlg== X-Gm-Message-State: AOAM532JjTtJuFyyie0P9aPn+w5cKgQNYQ9wcsuL8HahOzuZLibWwzxV MquxyyJurx+O+lzgNOvIUPMOAg== X-Received: by 2002:a05:6830:1f11:: with SMTP id u17mr525356otg.151.1632409443530; Thu, 23 Sep 2021 08:04:03 -0700 (PDT) Received: from localhost.localdomain (104-57-184-186.lightspeed.austtx.sbcglobal.net. [104.57.184.186]) by smtp.gmail.com with ESMTPSA id a11sm1329657oiw.36.2021.09.23.08.04.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 23 Sep 2021 08:04:02 -0700 (PDT) From: Bjorn Andersson To: Andy Gross , Bjorn Andersson , Rob Herring Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Daniel Lezcano , Thara Gopinath Subject: [PATCH] arm64: dts: qcom: sdm845: mtp: Add vadc channels Date: Thu, 23 Sep 2021 08:04:40 -0700 Message-Id: <20210923150440.2726049-1-bjorn.andersson@linaro.org> X-Mailer: git-send-email 2.29.2 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Downstream defines four ADC channels related to thermal sensors external to the PM8998 and two channels for internal voltage measurements. Add these to the upstream SDM845 MTP as well. Signed-off-by: Bjorn Andersson --- arch/arm64/boot/dts/qcom/sdm845-mtp.dts | 34 +++++++++++++++++++++++++ 1 file changed, 34 insertions(+) -- 2.29.2 diff --git a/arch/arm64/boot/dts/qcom/sdm845-mtp.dts b/arch/arm64/boot/dts/qcom/sdm845-mtp.dts index 52dd7a858231..28a2f5d46db7 100644 --- a/arch/arm64/boot/dts/qcom/sdm845-mtp.dts +++ b/arch/arm64/boot/dts/qcom/sdm845-mtp.dts @@ -10,6 +10,8 @@ #include #include #include "sdm845.dtsi" +#include "pm8998.dtsi" +#include "pmi8998.dtsi" / { model = "Qualcomm Technologies, Inc. SDM845 MTP"; @@ -469,6 +471,38 @@ &mss_pil { firmware-name = "qcom/sdm845/mba.mbn", "qcom/sdm845/modem.mbn"; }; +&pm8998_adc { + adc-chan@4c { + reg = ; + label = "xo_therm"; + }; + + adc-chan@4d { + reg = ; + label = "msm_therm"; + }; + + adc-chan@4f { + reg = ; + label = "pa_therm1"; + }; + + adc-chan@51 { + reg = ; + label = "quiet_therm"; + }; + + adc-chan@83 { + reg = ; + label = "vph_pwr"; + }; + + adc-chan@85 { + reg = ; + label = "vcoin"; + }; +}; + &qupv3_id_1 { status = "okay"; };