From patchwork Sun May 7 20:12:19 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Matti_Lehtim=C3=A4ki?= X-Patchwork-Id: 13233914 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 30C80C77B75 for ; Sun, 7 May 2023 20:13:49 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231161AbjEGUNT (ORCPT ); Sun, 7 May 2023 16:13:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59754 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231654AbjEGUMr (ORCPT ); Sun, 7 May 2023 16:12:47 -0400 Received: from mail-lj1-x235.google.com (mail-lj1-x235.google.com [IPv6:2a00:1450:4864:20::235]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 499F711574; Sun, 7 May 2023 13:12:46 -0700 (PDT) Received: by mail-lj1-x235.google.com with SMTP id 38308e7fff4ca-2ac82912a59so39509111fa.3; Sun, 07 May 2023 13:12:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1683490364; x=1686082364; 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=e7CHae7+5m8beN7f9XP5eWdtzHxIDO1y+j4SXyxtt94=; b=G9jzurHa8nNyZP2gEZHRkO3F5n8K1pbneMPhhhBgPM0RzaaxtKaJuevqGi+oz9fdqZ 8t5lpO+fG4+wGKNwv2ZDYbgcs5Dnfqm3EhDctmWtXUPEjSgX/h3X3nAOshz8YDnaJUKS VqPzBvAGycNrvLvyQboGuxCEErmcrmmE7zT7W6fCS4VF7vBnjsozlTA/xIMbQnYK0BR3 JGHPhuxv/FZJz5moI4s8fYxVUGsfVEY1RxZD1suXVodyb9toNfweuvYv162tUV0ds7b7 vr7uAK8b69ZS4OKVhZXywEYHP9XbIHbYCVMvYLjS3ca/GDKMMs4Sr49PkW3af86vTIR0 t0Pg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1683490364; x=1686082364; 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=e7CHae7+5m8beN7f9XP5eWdtzHxIDO1y+j4SXyxtt94=; b=DZyM3uYfZM7xaekB7ovoxLmx8tduFkoj/gY/4WZabY49TFlFndHhXuQZZ7aSoRAGAk Rp/2GoZlhNE/aBACUnxQIJciHnWHjR5j3WTj2nQR+IZrLSlApRQ3Sm1m68fmSTShqbU2 WXJTj0G30BZKG0NcAREThxElwXhfhk7bt5vX6m5bsfm+EeWcvx6hhPOCvUXcmnc/Rojz +zgJAx+gcs59Qj8jI6mDes25qQ4kyKlM5XvpNwFfbnsGR/d7Wpb37ejNgkNt/ZmsxLAl qGNH17goJgCzjEh2dxg3Vy55eyjnKI+tBAH3KBEnPg4lxCX49yR1YtVkiwXj3lP15gTA d48w== X-Gm-Message-State: AC+VfDz/nOQvcsTGqt7rMiXgbgQ97VCkYZPzniZEl90myNFCxY0VWhvD heg51MdFXC5LCgQxmmcd6m02efNBmvBXXg== X-Google-Smtp-Source: ACHHUZ49SJUulchUIZqSSFMF1cC/vP6zZTyDx/WNK7A5YU0Nw9wVWfd2jeHsu0x4qdXxHac9cEc5WQ== X-Received: by 2002:a2e:91c4:0:b0:2a8:cedd:f371 with SMTP id u4-20020a2e91c4000000b002a8ceddf371mr2550138ljg.15.1683490364515; Sun, 07 May 2023 13:12:44 -0700 (PDT) Received: from i-vetokaappi.home.lan (dsl-hkibng42-56733b-36.dhcp.inet.fi. [86.115.59.36]) by smtp.gmail.com with ESMTPSA id m19-20020a2e9113000000b00293d7c95df1sm918031ljg.78.2023.05.07.13.12.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 07 May 2023 13:12:44 -0700 (PDT) From: =?utf-8?q?Matti_Lehtim=C3=A4ki?= To: linux-arm-msm@vger.kernel.org Cc: ~postmarketos/upstreaming@lists.sr.ht, phone-devel@vger.kernel.org, =?utf-8?q?Matti_Lehtim=C3=A4ki?= , Andy Gross , Bjorn Andersson , Konrad Dybcio , Srinivas Kandagatla , Rob Herring , Krzysztof Kozlowski , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 1/6] dt-bindings: nvmem: qfprom: Add compatible for MSM8226 Date: Sun, 7 May 2023 23:12:19 +0300 Message-Id: <20230507201225.89694-2-matti.lehtimaki@gmail.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230507201225.89694-1-matti.lehtimaki@gmail.com> References: <20230507201225.89694-1-matti.lehtimaki@gmail.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org Document QFPROM compatible for MSM8226. Signed-off-by: Matti Lehtimäki Reviewed-by: Luca Weiss Reviewed-by: Krzysztof Kozlowski --- Documentation/devicetree/bindings/nvmem/qcom,qfprom.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/nvmem/qcom,qfprom.yaml b/Documentation/devicetree/bindings/nvmem/qcom,qfprom.yaml index 2173fe82317d..0baf7819ab46 100644 --- a/Documentation/devicetree/bindings/nvmem/qcom,qfprom.yaml +++ b/Documentation/devicetree/bindings/nvmem/qcom,qfprom.yaml @@ -20,6 +20,7 @@ properties: - qcom,apq8084-qfprom - qcom,ipq8064-qfprom - qcom,ipq8074-qfprom + - qcom,msm8226-qfprom - qcom,msm8916-qfprom - qcom,msm8974-qfprom - qcom,msm8976-qfprom From patchwork Sun May 7 20:12:20 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Matti_Lehtim=C3=A4ki?= X-Patchwork-Id: 13233915 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 5DC0EC7EE2D for ; Sun, 7 May 2023 20:13:50 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231830AbjEGUNT (ORCPT ); Sun, 7 May 2023 16:13:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59780 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231779AbjEGUMt (ORCPT ); Sun, 7 May 2023 16:12:49 -0400 Received: from mail-lj1-x22d.google.com (mail-lj1-x22d.google.com [IPv6:2a00:1450:4864:20::22d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8A536269E; Sun, 7 May 2023 13:12:48 -0700 (PDT) Received: by mail-lj1-x22d.google.com with SMTP id 38308e7fff4ca-2ac7f53ae44so42079191fa.2; Sun, 07 May 2023 13:12:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1683490368; x=1686082368; 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=u/R0mcMEc4aDzL1o3/ffY+gvjMVy2s/XzSb/ewVs8KA=; b=YpM7hBEFyBTH1OzGuI8HvkqRRif/GRjZT4iyn1FB+9IlZbTZIKihsnvQ5FkUq5z1Rm YxBd9Qg/E2z7tWNfMn0uCgVg7pjpOEdm51RIewcZMyOpxkoNN8+RBbtgTfAeDjkzqc2k YPsK1zFrMDupwWzujT4Q/rnJsfzTTQJSj7W4MWrpxQx12nkJ0TVQ2tZf9pI5ZtdcvilS cZGtkagTR7ZWCW2cs5zc5fAIp0dY332YsrcFKLuU1yyHNQ7EyHi07L31f2n8WAkOm7k4 ZAVEhZg9GyEqk7Ln/iIXSxk9P8DtPMw8sT8ii5F1sEsp9pCJdxvGdCqWK4a9NcT+vXFn t6YQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1683490368; x=1686082368; 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=u/R0mcMEc4aDzL1o3/ffY+gvjMVy2s/XzSb/ewVs8KA=; b=U1FSCWWyS86gsVu+8SrKlLep7h6g0TlQKn+VIT6nSrc7iPyz9983VArLuvtZsHF0Ag rzxXbcdBcIBQtSD+arl0UD3jNNpJ/zJ4cF1n/th5t2XTiISxWPW1Fbptkw2cr7a6kdbX nYqEBUJWqZPQBdG/oNAKFNeSy7sBd3+TE/KhkNEEviIlJH62N64zKn+VEuahcnva6Ito jF996G+47aXQz9w2YyZNAss3HG005O2lBEvy17cXnVhWWg/hAgdHFZWRSTeBYNGjgQ8W SCzAF2Nir7O6tkJ/dG0cXQZA1rk40NRJ0NXLcyY3Ne7wm+PPGud84NqtUEsfU8fB/JUe 5Tjg== X-Gm-Message-State: AC+VfDzH7zgPVjaUlfadB1t4D+Li3K3F0S+AbcHOkF4usB2Mm+rGl2oj OTeGbg6CSEYFOBmmVuGhTbC4YywLcI5+4A== X-Google-Smtp-Source: ACHHUZ49xXc3HaaMyxKl35IFOfvDlyfYwQYLqBLs1FR+e0+Pn4An2xGjUvBVn6uedHyyT0ETATCBuA== X-Received: by 2002:a2e:9902:0:b0:2a7:a616:c39 with SMTP id v2-20020a2e9902000000b002a7a6160c39mr2020087lji.48.1683490367988; Sun, 07 May 2023 13:12:47 -0700 (PDT) Received: from i-vetokaappi.home.lan (dsl-hkibng42-56733b-36.dhcp.inet.fi. [86.115.59.36]) by smtp.gmail.com with ESMTPSA id m19-20020a2e9113000000b00293d7c95df1sm918031ljg.78.2023.05.07.13.12.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 07 May 2023 13:12:47 -0700 (PDT) From: =?utf-8?q?Matti_Lehtim=C3=A4ki?= To: linux-arm-msm@vger.kernel.org Cc: ~postmarketos/upstreaming@lists.sr.ht, phone-devel@vger.kernel.org, =?utf-8?q?Matti_Lehtim=C3=A4ki?= , Amit Kucheria , Thara Gopinath , Andy Gross , Bjorn Andersson , Konrad Dybcio , "Rafael J. Wysocki" , Daniel Lezcano , Zhang Rui , Rob Herring , Krzysztof Kozlowski , linux-pm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 2/6] dt-bindings: thermal: tsens: Add compatible for MSM8226 Date: Sun, 7 May 2023 23:12:20 +0300 Message-Id: <20230507201225.89694-3-matti.lehtimaki@gmail.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230507201225.89694-1-matti.lehtimaki@gmail.com> References: <20230507201225.89694-1-matti.lehtimaki@gmail.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org Qualcomm MSM8226 has tsens v0.1 block. Signed-off-by: Matti Lehtimäki Reviewed-by: Luca Weiss Reviewed-by: Krzysztof Kozlowski --- Documentation/devicetree/bindings/thermal/qcom-tsens.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/thermal/qcom-tsens.yaml b/Documentation/devicetree/bindings/thermal/qcom-tsens.yaml index 926e9c51c93c..d6b2957d5137 100644 --- a/Documentation/devicetree/bindings/thermal/qcom-tsens.yaml +++ b/Documentation/devicetree/bindings/thermal/qcom-tsens.yaml @@ -29,6 +29,7 @@ properties: items: - enum: - qcom,mdm9607-tsens + - qcom,msm8226-tsens - qcom,msm8916-tsens - qcom,msm8939-tsens - qcom,msm8974-tsens From patchwork Sun May 7 20:12:21 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Matti_Lehtim=C3=A4ki?= X-Patchwork-Id: 13233916 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 C0B36C7EE30 for ; Sun, 7 May 2023 20:13:50 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231851AbjEGUNU (ORCPT ); Sun, 7 May 2023 16:13:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59806 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231791AbjEGUMx (ORCPT ); Sun, 7 May 2023 16:12:53 -0400 Received: from mail-lj1-x232.google.com (mail-lj1-x232.google.com [IPv6:2a00:1450:4864:20::232]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3678E9EDE; Sun, 7 May 2023 13:12:52 -0700 (PDT) Received: by mail-lj1-x232.google.com with SMTP id 38308e7fff4ca-2ac88d9edf3so30592031fa.0; Sun, 07 May 2023 13:12:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1683490370; x=1686082370; 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=pCrDWBMl4hp0qteih67nrdBeByN0/6V+auuAerq2y3I=; b=lXyF+mWYZ/lclt94np36RrvdvzVK+xZ/Y8pF/WReS3A+yVrnqIxIj0dRM2PhWWVbOP VDik2MrWVnSGdeIbKwH+Z5+jD3GQe4cODADYjICM3P9MqTINQaAcDuEw4Xfg9AJSlUXO VLvPe7MG2ZiL+yJ5IrpqCJbbvJnjh39nhAfQzst8hy7Zwh2zGFUDt6ewzEmu3dkn6Izk d/Oz6Jv6KFfpVkkdiNOSR+/euulOeC3W7GSW3FJcBDd6Z898tRjCgtqOG+h53Jeb9TBx ild4P+AF5IX5DluvMv9HFyzDHMLuFBSh1ifomVtb4Ea0Swp/ZsO/csagoLmfh21m2pN9 OkHA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1683490370; x=1686082370; 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=pCrDWBMl4hp0qteih67nrdBeByN0/6V+auuAerq2y3I=; b=Q9jUaGPYmuT5cnfYwZWZBsGB7I2iQdC51GJo+sVZCQ0LCwq8yEbM6Qr8ObXAoe1Vy7 mTNdkJvjBZeBYa/S8aYa8n4+LhdwcqlPPeKhDydilVot/karnOWvNAhBWG1zfszGBMxY e1etzkSSPWKuNS+PFG6Pm2ptXbMFtNt7fpmlEc/cJuFlNA11XBkFpRvBwjuaW1QQRiQh OdqUENnMrRNNSPbvEckpP3luOHhC+0vj66NL1gI/eutyuzothlw1YI0ipO69EN61UHNa 17vYLPhGc7KDEPmE69nYdls4mvk7uw937XDe4/qPm/2WEK259nAEVWaDFB53BHPVf9HY gIPw== X-Gm-Message-State: AC+VfDwwUtvjWDkFtGbjWJOHW1pBX9XLEZS5QsNqmt6OYRk350x28zlH ylnJWNVmSs2DG9ahFjiLvJn4l54G8+iQJQ== X-Google-Smtp-Source: ACHHUZ4a5ixUlJacIqpdc93Y2jU4S98+GrQO7eiSd1Yo5KmaW4TSqUkOzCIYB4DTKP/IIWKpxA8fCA== X-Received: by 2002:a2e:818c:0:b0:2ad:1b99:beb6 with SMTP id e12-20020a2e818c000000b002ad1b99beb6mr1296280ljg.34.1683490370147; Sun, 07 May 2023 13:12:50 -0700 (PDT) Received: from i-vetokaappi.home.lan (dsl-hkibng42-56733b-36.dhcp.inet.fi. [86.115.59.36]) by smtp.gmail.com with ESMTPSA id m19-20020a2e9113000000b00293d7c95df1sm918031ljg.78.2023.05.07.13.12.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 07 May 2023 13:12:49 -0700 (PDT) From: =?utf-8?q?Matti_Lehtim=C3=A4ki?= To: linux-arm-msm@vger.kernel.org Cc: ~postmarketos/upstreaming@lists.sr.ht, phone-devel@vger.kernel.org, =?utf-8?q?Matti_Lehtim=C3=A4ki?= , Andy Gross , Bjorn Andersson , Konrad Dybcio , Amit Kucheria , Thara Gopinath , "Rafael J. Wysocki" , Daniel Lezcano , Zhang Rui , linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 3/6] thermal/drivers/qcom/tsens-v0_1: Add support for MSM8226 Date: Sun, 7 May 2023 23:12:21 +0300 Message-Id: <20230507201225.89694-4-matti.lehtimaki@gmail.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230507201225.89694-1-matti.lehtimaki@gmail.com> References: <20230507201225.89694-1-matti.lehtimaki@gmail.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org The MSM8226 TSENS IP has 6 thermal sensors in a TSENS v0.1 block. The thermal sensors use non-standard slope values. Signed-off-by: Matti Lehtimäki Reviewed-by: Luca Weiss Reviewed-by: Dmitry Baryshkov --- drivers/thermal/qcom/tsens-v0_1.c | 27 ++++++++++++++++++++++++++- drivers/thermal/qcom/tsens.c | 3 +++ drivers/thermal/qcom/tsens.h | 2 +- 3 files changed, 30 insertions(+), 2 deletions(-) diff --git a/drivers/thermal/qcom/tsens-v0_1.c b/drivers/thermal/qcom/tsens-v0_1.c index e89c6f39a3ae..ad57ab94546b 100644 --- a/drivers/thermal/qcom/tsens-v0_1.c +++ b/drivers/thermal/qcom/tsens-v0_1.c @@ -243,6 +243,18 @@ static int calibrate_8974(struct tsens_priv *priv) return 0; } +static int __init init_8226(struct tsens_priv *priv) +{ + priv->sensor[0].slope = 2901; + priv->sensor[1].slope = 2846; + priv->sensor[2].slope = 3038; + priv->sensor[3].slope = 2955; + priv->sensor[4].slope = 2901; + priv->sensor[5].slope = 2846; + + return init_common(priv); +} + static int __init init_8939(struct tsens_priv *priv) { priv->sensor[0].slope = 2911; priv->sensor[1].slope = 2789; @@ -258,7 +270,7 @@ static int __init init_8939(struct tsens_priv *priv) { return init_common(priv); } -/* v0.1: 8916, 8939, 8974, 9607 */ +/* v0.1: 8226, 8916, 8939, 8974, 9607 */ static struct tsens_features tsens_v0_1_feat = { .ver_major = VER_0_1, @@ -313,6 +325,19 @@ static const struct tsens_ops ops_v0_1 = { .get_temp = get_temp_common, }; +static const struct tsens_ops ops_8226 = { + .init = init_8226, + .calibrate = tsens_calibrate_common, + .get_temp = get_temp_common, +}; + +struct tsens_plat_data data_8226 = { + .num_sensors = 6, + .ops = &ops_8226, + .feat = &tsens_v0_1_feat, + .fields = tsens_v0_1_regfields, +}; + static const struct tsens_ops ops_8916 = { .init = init_common, .calibrate = calibrate_8916, diff --git a/drivers/thermal/qcom/tsens.c b/drivers/thermal/qcom/tsens.c index 8020ead2794e..eb33a8bf0488 100644 --- a/drivers/thermal/qcom/tsens.c +++ b/drivers/thermal/qcom/tsens.c @@ -1095,6 +1095,9 @@ static const struct of_device_id tsens_table[] = { }, { .compatible = "qcom,mdm9607-tsens", .data = &data_9607, + }, { + .compatible = "qcom,msm8226-tsens", + .data = &data_8226, }, { .compatible = "qcom,msm8916-tsens", .data = &data_8916, diff --git a/drivers/thermal/qcom/tsens.h b/drivers/thermal/qcom/tsens.h index dba9cd38f637..433eba370998 100644 --- a/drivers/thermal/qcom/tsens.h +++ b/drivers/thermal/qcom/tsens.h @@ -635,7 +635,7 @@ int get_temp_common(const struct tsens_sensor *s, int *temp); extern struct tsens_plat_data data_8960; /* TSENS v0.1 targets */ -extern struct tsens_plat_data data_8916, data_8939, data_8974, data_9607; +extern struct tsens_plat_data data_8226, data_8916, data_8939, data_8974, data_9607; /* TSENS v1 targets */ extern struct tsens_plat_data data_tsens_v1, data_8976, data_8956; From patchwork Sun May 7 20:12:22 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Matti_Lehtim=C3=A4ki?= X-Patchwork-Id: 13233917 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 0EAA3C7EE37 for ; Sun, 7 May 2023 20:13:51 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231892AbjEGUNV (ORCPT ); Sun, 7 May 2023 16:13:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59836 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231833AbjEGUMz (ORCPT ); Sun, 7 May 2023 16:12:55 -0400 Received: from mail-lj1-x22e.google.com (mail-lj1-x22e.google.com [IPv6:2a00:1450:4864:20::22e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D8B239EDE; Sun, 7 May 2023 13:12:53 -0700 (PDT) Received: by mail-lj1-x22e.google.com with SMTP id 38308e7fff4ca-2ac733b813fso42086901fa.1; Sun, 07 May 2023 13:12:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1683490372; x=1686082372; 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=6u8P14mQesgF/yS3lyxCvRvfSHt2uYAAYsCYWXmPYYc=; b=MSGi+cYfomUIPfoyJijMI0SpN3TLmSe5LhNzWjotVvq5Bomi27gj9OaDX+hQ5gaKNq PDFHCs2Gs+CHEjZkys6Ml1HcEs1SU63F5YHPS/ya8iZ77M/34wdrhgFcrUA6BMsGFJQ5 xgKn0geyABzuGBjAY85/vqf3ltcvfWoX1naS33VPsvrQo5i4zS50m3t7b+fyOru0QFlM qfgxl//f6FwRZ/5ywtYnkMGD8kwJqVCr/qEfBJaXtNntqwslFjb2MHyDSnBpoyIaSZ4T BrcN4Ty+shvPnDs80RQpPugxVTHbqdnjJb73Nlhz2HEhYcfK9VjeDRqSFos5YIajNQXH vZFw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1683490372; x=1686082372; 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=6u8P14mQesgF/yS3lyxCvRvfSHt2uYAAYsCYWXmPYYc=; b=ewasgpbhRCIQDKPbLyc5c9oQUESVaJ6d+h4fDLI7PMDZZANlFtJHDi6Sh3Auz2xdT9 KORFWESFD+TXT0h4c7UP1FaMbISGQFo7oJ4yzTSbOMIzRJLuO4+i5jRYooHEz10WKqgB G932XT+kwfUpRHrZklFYvwOEoLSLlW/14DTw+urbga1M/ylUGW5mXbIrp2fXOh81D8E0 fuMztKYPybdS0i+tQSmdgW3ro+qE/N1ilnWSauEw6vxR0wFM+xvFf62GLkBp84o4b9zQ hzpFOMzTuh1nXvcnWX9NNW9WA+oaal2OslQtv/KIRCR8V6O7nXkxXIxsCGsvd5wG8czi 8y6Q== X-Gm-Message-State: AC+VfDy0DrUC4dJuMULCZ0ZMpICDG9TBKIDAqi6d7T+M8vN+RYkVSq+4 dW9F2//AKQohVCwTxWqDPliUGLnAlNCIDw== X-Google-Smtp-Source: ACHHUZ5v4FpjtvLYbOWiaQd6OYDc7MCvhD/ZSjkVMStTZQF1la/IT8BUj03tbvnYbHdBbI+N66XQ7A== X-Received: by 2002:a2e:b010:0:b0:2a7:b1db:7f42 with SMTP id y16-20020a2eb010000000b002a7b1db7f42mr2011601ljk.49.1683490372123; Sun, 07 May 2023 13:12:52 -0700 (PDT) Received: from i-vetokaappi.home.lan (dsl-hkibng42-56733b-36.dhcp.inet.fi. [86.115.59.36]) by smtp.gmail.com with ESMTPSA id m19-20020a2e9113000000b00293d7c95df1sm918031ljg.78.2023.05.07.13.12.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 07 May 2023 13:12:51 -0700 (PDT) From: =?utf-8?q?Matti_Lehtim=C3=A4ki?= To: linux-arm-msm@vger.kernel.org Cc: ~postmarketos/upstreaming@lists.sr.ht, phone-devel@vger.kernel.org, =?utf-8?q?Matti_Lehtim=C3=A4ki?= , Andy Gross , Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 4/6] ARM: dts: msm8226: Add qfprom node Date: Sun, 7 May 2023 23:12:22 +0300 Message-Id: <20230507201225.89694-5-matti.lehtimaki@gmail.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230507201225.89694-1-matti.lehtimaki@gmail.com> References: <20230507201225.89694-1-matti.lehtimaki@gmail.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org Add missing QFPROM definition for MSM8226 SoC. Signed-off-by: Matti Lehtimäki Reviewed-by: Luca Weiss Reviewed-by: Dmitry Baryshkov --- arch/arm/boot/dts/qcom-msm8226.dtsi | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/arch/arm/boot/dts/qcom-msm8226.dtsi b/arch/arm/boot/dts/qcom-msm8226.dtsi index c373081bc21b..c34b8f3139ae 100644 --- a/arch/arm/boot/dts/qcom-msm8226.dtsi +++ b/arch/arm/boot/dts/qcom-msm8226.dtsi @@ -505,6 +505,13 @@ restart@fc4ab000 { reg = <0xfc4ab000 0x4>; }; + qfprom: qfprom@fc4bc000 { + compatible = "qcom,msm8226-qfprom", "qcom,qfprom"; + reg = <0xfc4bc000 0x1000>; + #address-cells = <1>; + #size-cells = <1>; + }; + spmi_bus: spmi@fc4cf000 { compatible = "qcom,spmi-pmic-arb"; reg-names = "core", "intr", "cnfg"; From patchwork Sun May 7 20:12:23 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Matti_Lehtim=C3=A4ki?= X-Patchwork-Id: 13233918 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 41691C7EE43 for ; Sun, 7 May 2023 20:13:51 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231879AbjEGUNV (ORCPT ); Sun, 7 May 2023 16:13:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59856 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231844AbjEGUM5 (ORCPT ); Sun, 7 May 2023 16:12:57 -0400 Received: from mail-lj1-x231.google.com (mail-lj1-x231.google.com [IPv6:2a00:1450:4864:20::231]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 12D8911574; Sun, 7 May 2023 13:12:56 -0700 (PDT) Received: by mail-lj1-x231.google.com with SMTP id 38308e7fff4ca-2ac7462d9f1so42901901fa.2; Sun, 07 May 2023 13:12:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1683490374; x=1686082374; 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=e8I28e7y8DJIf9u5FBClsICPJaLiy43IFsBoaVHZx9g=; b=oAzMQtYgXWrLJsvcTWJGIC+RaWCOUkWHAIAwmfRo/MuEfu/HtjDsk5Y1HRkWsmg55t 28uZ0HUd60Fiylp2uIOJiHzr4b3XNgjBQz+G+O7KxVQWwt9kMQHsserO4z2/6mnNO4eK fvi7Aa0BXBV2lgK+TmKmsZwM6Zjbrluds1LHk0pSehdBwhSF+Cfutjg9tUsv77I2SBsJ cWpR3HR2VoYnbY52kF7jdEyF/gmN65PSJJXHXUN6oxTe6Axrcsgtxay9RDSA4J/owZgV rls4ZYWn8Hwd92C2mOpviT+592DF5OTlxiTf6kUrrfUotK4822jhJyLQbYO3UQ0y9j6u O0mQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1683490374; x=1686082374; 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=e8I28e7y8DJIf9u5FBClsICPJaLiy43IFsBoaVHZx9g=; b=RujJT3Im0EBmwdYW05A0D8BFEdjl691jPIl5L8sEWbIeqICG4UifZBSHOSS3vHlZOu QrtyEfVi5Aq51iTFUEAcPnErniRJl1sLKQxcPmDvL93tJkzd+arbknu9I/dpbk3imY+0 Q3dIaJi87CVOcRH4BO4/GFQ5l3mli92R9fDJ9A9hv/AVPFK7CO2fETpYjggqKGwj2h/X El+ux4UgbR0mY7mLBRMmJmVfgPm1wSNcutwstQAMYZrh9t5mFn6IecNYgIZgHdyTJW3e 6DKe4GktOPlscTcRnzjn3990h8GA9p5aGj+7Ah+5ZSJ1jMyKUuaHPjODPGz0JhXJpplA TPdw== X-Gm-Message-State: AC+VfDx7SkS0gIzcWcDp9LthNyS393wDxOcTb08mo0kN5bKjtxOt5AnL cxUQo1E5qRn6pl6x5t+1EInsU849+p2+/w== X-Google-Smtp-Source: ACHHUZ4I9mnyZUeIfFQtOIkjIOBMjt3n6aUeDRXJSPfy9d/OT8PL8i0gtaiK8PnoOKeWoxK/L63JxQ== X-Received: by 2002:a05:651c:110:b0:2a7:9b39:eff8 with SMTP id a16-20020a05651c011000b002a79b39eff8mr2291646ljb.6.1683490374249; Sun, 07 May 2023 13:12:54 -0700 (PDT) Received: from i-vetokaappi.home.lan (dsl-hkibng42-56733b-36.dhcp.inet.fi. [86.115.59.36]) by smtp.gmail.com with ESMTPSA id m19-20020a2e9113000000b00293d7c95df1sm918031ljg.78.2023.05.07.13.12.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 07 May 2023 13:12:53 -0700 (PDT) From: =?utf-8?q?Matti_Lehtim=C3=A4ki?= To: linux-arm-msm@vger.kernel.org Cc: ~postmarketos/upstreaming@lists.sr.ht, phone-devel@vger.kernel.org, =?utf-8?q?Matti_Lehtim=C3=A4ki?= , Andy Gross , Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 5/6] ARM: dts: msm8226: Add tsens node and related nvmem cells Date: Sun, 7 May 2023 23:12:23 +0300 Message-Id: <20230507201225.89694-6-matti.lehtimaki@gmail.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230507201225.89694-1-matti.lehtimaki@gmail.com> References: <20230507201225.89694-1-matti.lehtimaki@gmail.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org Specify pre-parsed per-sensor calibration nvmem cells in the qfprom device node rather than parsing the whole data blob in the driver. Signed-off-by: Matti Lehtimäki Reviewed-by: Luca Weiss Reviewed-by: Dmitry Baryshkov --- arch/arm/boot/dts/qcom-msm8226.dtsi | 113 ++++++++++++++++++++++++++++ 1 file changed, 113 insertions(+) diff --git a/arch/arm/boot/dts/qcom-msm8226.dtsi b/arch/arm/boot/dts/qcom-msm8226.dtsi index c34b8f3139ae..a0c3d25eea65 100644 --- a/arch/arm/boot/dts/qcom-msm8226.dtsi +++ b/arch/arm/boot/dts/qcom-msm8226.dtsi @@ -500,6 +500,34 @@ data-pins { }; }; + tsens: thermal-sensor@fc4a9000 { + compatible = "qcom,msm8226-tsens", "qcom,tsens-v0_1"; + reg = <0xfc4a9000 0x1000>, /* TM */ + <0xfc4a8000 0x1000>; /* SROT */ + nvmem-cells = <&tsens_mode>, + <&tsens_base1>, <&tsens_base2>, + <&tsens_s0_p1>, <&tsens_s0_p2>, + <&tsens_s1_p1>, <&tsens_s1_p2>, + <&tsens_s2_p1>, <&tsens_s2_p2>, + <&tsens_s3_p1>, <&tsens_s3_p2>, + <&tsens_s4_p1>, <&tsens_s4_p2>, + <&tsens_s5_p1>, <&tsens_s5_p2>, + <&tsens_s6_p1>, <&tsens_s6_p2>; + nvmem-cell-names = "mode", + "base1", "base2", + "s0_p1", "s0_p2", + "s1_p1", "s1_p2", + "s2_p1", "s2_p2", + "s3_p1", "s3_p2", + "s4_p1", "s4_p2", + "s5_p1", "s5_p2", + "s6_p1", "s6_p2"; + #qcom,sensors = <6>; + interrupts = ; + interrupt-names = "uplow"; + #thermal-sensor-cells = <1>; + }; + restart@fc4ab000 { compatible = "qcom,pshold"; reg = <0xfc4ab000 0x4>; @@ -510,6 +538,91 @@ qfprom: qfprom@fc4bc000 { reg = <0xfc4bc000 0x1000>; #address-cells = <1>; #size-cells = <1>; + + tsens_base1: base1@1c1 { + reg = <0x1c1 0x2>; + bits = <5 8>; + }; + + tsens_s0_p1: s0-p1@1c2 { + reg = <0x1c2 0x2>; + bits = <5 6>; + }; + + tsens_s1_p1: s1-p1@1c4 { + reg = <0x1c4 0x1>; + bits = <0 6>; + }; + + tsens_s2_p1: s2-p1@1c4 { + reg = <0x1c4 0x2>; + bits = <6 6>; + }; + + tsens_s3_p1: s3-p1@1c5 { + reg = <0x1c5 0x2>; + bits = <4 6>; + }; + + tsens_s4_p1: s4-p1@1c6 { + reg = <0x1c6 0x1>; + bits = <2 6>; + }; + + tsens_s5_p1: s5-p1@1c7 { + reg = <0x1c7 0x1>; + bits = <0 6>; + }; + + tsens_s6_p1: s6-p1@1ca { + reg = <0x1ca 0x2>; + bits = <4 6>; + }; + + tsens_base2: base2@1cc { + reg = <0x1cc 0x1>; + bits = <0 8>; + }; + + tsens_s0_p2: s0-p2@1cd { + reg = <0x1cd 0x1>; + bits = <0 6>; + }; + + tsens_s1_p2: s1-p2@1cd { + reg = <0x1cd 0x2>; + bits = <6 6>; + }; + + tsens_s2_p2: s2-p2@1ce { + reg = <0x1ce 0x2>; + bits = <4 6>; + }; + + tsens_s3_p2: s3-p2@1cf { + reg = <0x1cf 0x1>; + bits = <2 6>; + }; + + tsens_s4_p2: s4-p2@446 { + reg = <0x446 0x2>; + bits = <4 6>; + }; + + tsens_s5_p2: s5-p2@447 { + reg = <0x447 0x1>; + bits = <2 6>; + }; + + tsens_s6_p2: s6-p2@44e { + reg = <0x44e 0x1>; + bits = <1 6>; + }; + + tsens_mode: mode@44f { + reg = <0x44f 0x1>; + bits = <5 3>; + }; }; spmi_bus: spmi@fc4cf000 { From patchwork Sun May 7 20:12:24 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Matti_Lehtim=C3=A4ki?= X-Patchwork-Id: 13233919 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 92BCAC77B75 for ; Sun, 7 May 2023 20:13:51 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231918AbjEGUNW (ORCPT ); Sun, 7 May 2023 16:13:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59882 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231857AbjEGUM7 (ORCPT ); Sun, 7 May 2023 16:12:59 -0400 Received: from mail-lj1-x22c.google.com (mail-lj1-x22c.google.com [IPv6:2a00:1450:4864:20::22c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D21BD26AF; Sun, 7 May 2023 13:12:57 -0700 (PDT) Received: by mail-lj1-x22c.google.com with SMTP id 38308e7fff4ca-2ac80ed7f26so41166011fa.1; Sun, 07 May 2023 13:12:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1683490376; x=1686082376; 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=xRKM8LIUCNvoyKZPDIYQU6c99R0Qprh6pzqLDekWHaM=; b=Yf7agK590WDNiZi69lpTfJZFr8ng/CBE3R+PI6ZWj8ykd9CrLwNA7cntOY6QVvOepZ YWYv2xMXpSHHH4aQZa5eoZXyiIkO0klkM2b8dkHIzXMt690892x3C1w7mmvpC/39sgeY csplhp0gqPYZ7nfU28STpyNdIyxdHnQ/ahpemKsRR4s3+U8cJ97FZc9qnQO4gTbVrzDs 2pQTiwtEXAqQ8Uea0Z8dDuKuC/8IMRaTFKETqohvv6qwlv+RKaM1GLz1A7CE9sFMq7Xw UeHKbGx+9luzL3TFUc/N1zZtrOXq/jUyN9xzEo9h9uZacxnuqFeYV5b94LtYGxLrUXPf +ksA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1683490376; x=1686082376; 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=xRKM8LIUCNvoyKZPDIYQU6c99R0Qprh6pzqLDekWHaM=; b=AaOsQAg7sFB27wSFnrZYKp5H0vrk8SyJHg7vR4nrbRc6r7/BujG7L45fPlUXG2299W BOVJxOb8qBbmku4NjuVNRLP8rXtlSQx3laiTc5dduKmWgwfMarxKiyziYG1o1QSafws8 shlV6UcVwYsaKq4dcnygrh/K4nhvDioCjglVgwzaXei0spwJ7TphcKL/w28WJ/z5FiVm gTAmwG0s+qbxUmY141gigS+3r5L8gd9NXJJxlfcT4oBR8XeAlRfm71VPPpns5xZt3hva AFF6RnGWm9kjKvUBU6UYFBiaW7DsFkUfF2hlamLJ9MXAqD2y9QsZxDps8xxGNUiXaInF WogQ== X-Gm-Message-State: AC+VfDykHcqsMxxs5Iv01X6cbe4f7vWIcv2f5Zu8p3cfeQuULPkVe5zi uamRiY1wvD6HXQ1m+5L/vzb1K0OP+px07A== X-Google-Smtp-Source: ACHHUZ5X037Neowba5GMOWBVl/ydyXVTH9e/vEz5t2YrJxYhE71mDwsMp4d5sm2cQpRxhzs6O4cDtQ== X-Received: by 2002:a2e:9c13:0:b0:2ad:814c:6ad5 with SMTP id s19-20020a2e9c13000000b002ad814c6ad5mr984789lji.46.1683490376204; Sun, 07 May 2023 13:12:56 -0700 (PDT) Received: from i-vetokaappi.home.lan (dsl-hkibng42-56733b-36.dhcp.inet.fi. [86.115.59.36]) by smtp.gmail.com with ESMTPSA id m19-20020a2e9113000000b00293d7c95df1sm918031ljg.78.2023.05.07.13.12.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 07 May 2023 13:12:55 -0700 (PDT) From: =?utf-8?q?Matti_Lehtim=C3=A4ki?= To: linux-arm-msm@vger.kernel.org Cc: ~postmarketos/upstreaming@lists.sr.ht, phone-devel@vger.kernel.org, =?utf-8?q?Matti_Lehtim=C3=A4ki?= , Andy Gross , Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 6/6] ARM: dts: msm8226: Add thermal zones node Date: Sun, 7 May 2023 23:12:24 +0300 Message-Id: <20230507201225.89694-7-matti.lehtimaki@gmail.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230507201225.89694-1-matti.lehtimaki@gmail.com> References: <20230507201225.89694-1-matti.lehtimaki@gmail.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org Add thermal zones present on MSM8226 SoC. Signed-off-by: Matti Lehtimäki Reviewed-by: Dmitry Baryshkov --- arch/arm/boot/dts/qcom-msm8226.dtsi | 44 +++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) diff --git a/arch/arm/boot/dts/qcom-msm8226.dtsi b/arch/arm/boot/dts/qcom-msm8226.dtsi index a0c3d25eea65..f68556b15183 100644 --- a/arch/arm/boot/dts/qcom-msm8226.dtsi +++ b/arch/arm/boot/dts/qcom-msm8226.dtsi @@ -752,6 +752,50 @@ smd-edge { }; }; + thermal-zones { + cpu0-thermal { + polling-delay-passive = <250>; + polling-delay = <1000>; + + thermal-sensors = <&tsens 5>; + + trips { + cpu_alert0: trip0 { + temperature = <75000>; + hysteresis = <2000>; + type = "passive"; + }; + + cpu_crit0: trip1 { + temperature = <110000>; + hysteresis = <2000>; + type = "critical"; + }; + }; + }; + + cpu1-thermal { + polling-delay-passive = <250>; + polling-delay = <1000>; + + thermal-sensors = <&tsens 2>; + + trips { + cpu_alert1: trip0 { + temperature = <75000>; + hysteresis = <2000>; + type = "passive"; + }; + + cpu_crit1: trip1 { + temperature = <110000>; + hysteresis = <2000>; + type = "critical"; + }; + }; + }; + }; + timer { compatible = "arm,armv7-timer"; interrupts =