From patchwork Thu Nov 3 07:09:04 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Manivannan Sadhasivam X-Patchwork-Id: 13029623 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 43D06C433FE for ; Thu, 3 Nov 2022 07:10:17 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230370AbiKCHKP (ORCPT ); Thu, 3 Nov 2022 03:10:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45162 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230525AbiKCHJ7 (ORCPT ); Thu, 3 Nov 2022 03:09:59 -0400 Received: from mail-pf1-x42d.google.com (mail-pf1-x42d.google.com [IPv6:2607:f8b0:4864:20::42d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F1A4F6374 for ; Thu, 3 Nov 2022 00:09:57 -0700 (PDT) Received: by mail-pf1-x42d.google.com with SMTP id 130so835822pfu.8 for ; Thu, 03 Nov 2022 00:09:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=JthYgOPJ8wLY+kJmpPo6YRkYw++3oIBC9/8kQpa43wk=; b=oqa2VR9xM7LgVSNeC59MrGPOve0uvlM/fYcJg4WIl+XyrrmYrNORIBh0taFvj7UFIH /izDRvXpS7JYP8andHnU7pV2PSKeLlDucZzPBloaRZ1/NFKMrVCSysRxRcmJ582IHFHg jUAUtquqZkHh1PrfSinyLc/L17ETX98Zf5WB440e5zfby9z+mkSwgDn1IzQfEXtt3tbE hDx9UY8UVQdNAuH+rtlF46qViU+fiXrteEQBE5WfxZXAx4xMR6AmbyXfY9tWmuP2tWI5 8Xyxd/0zzSsE7jhYyI+uiphql2CRxUcCa/eb9twN6rXwS5QCdtjkR2WmUvoC8/zQbjsR oh5g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=JthYgOPJ8wLY+kJmpPo6YRkYw++3oIBC9/8kQpa43wk=; b=XSCcx39hIRRqFD0n1cncp01wieEkRAGo/NTohiayjXkgzKoAHlE0HvKYQbq7AIEpvK HvKx94VCd/UtBo0u0nkVwDZdyJw50f09Ixw4vZOBzd88kJD1255mLAAemulUpJAkDfoy q+T6vo6RzlP/gXW9LgKZ0Qy/JJkG4kJ/GFuRQXgaXwWsPdRtYVbWRANzOGz2BCBbEWKM k32MVC3f3ucnAknJ7rNmBWspOAY+mNRsW7y8gQ23rEdoBZMkFvUBZ/BjnfoEoGZETE5y xN36yx7VQva//lJi3HZMOBfHk1jzk0xUu7XrB9IN2lC5B6jBmMsYtx8WPqoFK+ZfrYWC yuOg== X-Gm-Message-State: ACrzQf0N2QY2DUIuMgVdL/6EJmCJlVYMV8OWPJDCuvqGmTEkYNqWMoIc ORYN9yQVstKLyB2XTO1P/Zo1 X-Google-Smtp-Source: AMsMyM6cUWZGog+Q3n/SQktIYFBOMxAyQ0e5FfsXA2Ts0Vfp96sI51AJBJh1v2hEToxAkBP4nZowGA== X-Received: by 2002:a05:6a00:1253:b0:56d:8742:a9ff with SMTP id u19-20020a056a00125300b0056d8742a9ffmr18618778pfi.5.1667459397638; Thu, 03 Nov 2022 00:09:57 -0700 (PDT) Received: from localhost.localdomain ([117.193.208.64]) by smtp.gmail.com with ESMTPSA id s9-20020a170903214900b00186748fe6ccsm9451244ple.214.2022.11.03.00.09.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 03 Nov 2022 00:09:56 -0700 (PDT) From: Manivannan Sadhasivam To: andersson@kernel.org Cc: konrad.dybcio@somainline.org, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, johan+linaro@kernel.org, quic_jprakash@quicinc.com, linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, steev@kali.org, Manivannan Sadhasivam , Krzysztof Kozlowski Subject: [PATCH v3 05/12] arm64: dts: qcom: sc8280xp-pmics: Add PMK8280 ADC7 block Date: Thu, 3 Nov 2022 12:39:04 +0530 Message-Id: <20221103070911.20019-6-manivannan.sadhasivam@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20221103070911.20019-1-manivannan.sadhasivam@linaro.org> References: <20221103070911.20019-1-manivannan.sadhasivam@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org Add support for ADC7 block available in PMK8280 for reading the temperature via the AMUX pins. Reviewed-by: Krzysztof Kozlowski Reviewed-by: Konrad Dybcio Signed-off-by: Manivannan Sadhasivam --- arch/arm64/boot/dts/qcom/sc8280xp-pmics.dtsi | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sc8280xp-pmics.dtsi b/arch/arm64/boot/dts/qcom/sc8280xp-pmics.dtsi index 4a3464f5e6e9..b1cdde2f7861 100644 --- a/arch/arm64/boot/dts/qcom/sc8280xp-pmics.dtsi +++ b/arch/arm64/boot/dts/qcom/sc8280xp-pmics.dtsi @@ -75,6 +75,16 @@ pmk8280_pon_resin: resin { status = "disabled"; }; }; + + pmk8280_vadc: adc@3100 { + compatible = "qcom,spmi-adc7"; + reg = <0x3100>; + interrupts = <0x0 0x31 0x0 IRQ_TYPE_EDGE_RISING>; + #address-cells = <1>; + #size-cells = <0>; + #io-channel-cells = <1>; + status = "disabled"; + }; }; pmc8280_1: pmic@1 {