From patchwork Sun May 7 20:12:18 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: 9010 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp1743212vqo; Sun, 7 May 2023 13:20:55 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ77W75w8jchJ0RIYNQk51shV+2gi6LIaiX4Vd4Nq2Gpt2dhUsuyGjRzEng37zuzZi6TAz3z X-Received: by 2002:a17:90a:31c6:b0:24d:ec21:b83c with SMTP id j6-20020a17090a31c600b0024dec21b83cmr7845185pjf.16.1683490855009; Sun, 07 May 2023 13:20:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683490854; cv=none; d=google.com; s=arc-20160816; b=xPQ+jw94b63kxk75Ojsf1aX5U5nY+xnRYTn42NhJE4stVylL6KeCwwxuFGbMoYYGUN 9uVm6j3Hl/bZzSSQBLH8/wEMyYpjuXiBEq8/5x1SLbqzcfKJlO52sbkxXCt7MWt4Teu+ wRDZ25fecjvk5PXiONXHzhxRKChIam0Z7XXsWp2vbaKU5UKBXCSFLmxx3AfzBEACzC3l XmbAeDoX9MZbQ5mvzSusQNuxDGga/WLucga4FNebyZnsLvI6HrApAiqVrUilkL1jVih5 HYTYEDYtbxlMp0eV6q+hcjVlIG/fDT29/iRJbD7aeJJ7/B8Lw7e4PZwNIorbN9QUes/b v/KA== 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=ZkTrjWn9MXIx9ar7sdUfBpNB62vFCZeO4ohEw8FEUIo=; b=o4nFGSRi+CHKqBQHgcnB1GK/mdPDJfEmdJVTi4+WXC3V4Z+m0HXZlxDRSq0WOkHcmx r+575ya7hFKXwuPiTFRQynwaDGaT1w1JWwRiYPQ9UcYas2KueZ3k1hfzge/8+UTEFU7w j1ksAlZVMtKE5E0GIq71erw3WxmavD1RBRRIMBBDRJcXzBkO7mT9wK+hfZlqkzb7K5sb 77SesDZJ+IDdb9I/AsJ8Z8M5iQaZRAb9idYsxPttRGIiBlftTeX1M305vFjXXFLPZYod +E4a44gKAg5BfJuz+coVIWEfLsKIYp4i1Enr/+0484M654oVE/ncNUfupjL16JpaIIu8 OQNA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=VdixB5Nj; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id t24-20020a17090a449800b00230a8355ff1si10802456pjg.181.2023.05.07.13.20.31; Sun, 07 May 2023 13:20:54 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=VdixB5Nj; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231738AbjEGUMo (ORCPT + 99 others); Sun, 7 May 2023 16:12:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59712 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231654AbjEGUMn (ORCPT ); Sun, 7 May 2023 16:12:43 -0400 Received: from mail-lj1-x22a.google.com (mail-lj1-x22a.google.com [IPv6:2a00:1450:4864:20::22a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EFD9A269E; Sun, 7 May 2023 13:12:41 -0700 (PDT) Received: by mail-lj1-x22a.google.com with SMTP id 38308e7fff4ca-2ac89e6a5a1so30151711fa.0; Sun, 07 May 2023 13:12:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1683490361; x=1686082361; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=ZkTrjWn9MXIx9ar7sdUfBpNB62vFCZeO4ohEw8FEUIo=; b=VdixB5NjZcMvRHt8b1EKbYy8A/KU5sq5dWqBZLGQVLGcq751KXhSInQRhGRPNGy3DV nPlinNKv6AdF5FV4ecOTfUlwQdgO2CLTD21rtkRdPyZpr7cedoJsDJT6Cj4TGNvTjizm N2rUkMWqurGp2u7mpazlcLYHsBwDK02vFctv+trdUjqSXbyZbbnulNbd1ekFN1qoNBAO 0z2A0b/te1uVJctzUQTvZyEBiGL4WEsQsFWK1A6q5oWGPyt7sPBrLyYvXpXZcqd/jjfD JyUrVLrcIwQ2D1RxbeKgyUrukWH9h5NRxfh5un5DL5rQsHyKnPzdFCW2b+TPEcTLfdeM a89g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1683490361; x=1686082361; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=ZkTrjWn9MXIx9ar7sdUfBpNB62vFCZeO4ohEw8FEUIo=; b=FUZHQoY89EmvfMkHlVuXnuerKilwrX1BAB7dL5RgHnkx9/+uTOgsGfglTgLgFzA8vJ Hp/N4Mt2tPukfqFINqjhEHdoub6puRlnzJYZbY2F2rLucqZVDqTW+thxEqjhmc+fL6yU iBMsJqPFX/e/caPIEOOLlaxaZErHDsb8u9CnPe179oFBmSuPEg2phqiU6XVr9jiWDGjh voYuEt/+GxGMcNrdLEj1ywP3OqNdJkm+eDGYUDM9HBqARWlHCDN5pv9rEhZ49ToVHWjV K9kpIRRhfoxSnVH9SR7VWVaNuDxLHI4bo1fBsCRN2RNOHu+AYH3z9qSFpzAeF8zrAJIb bolw== X-Gm-Message-State: AC+VfDw2fIBK9K5kobmsSjri4Q3SecGZeykHGyjHaC5O+zVf7ggdgruQ KZVxSN5Dx44X7/UjegxWUkoktPDhbDk= X-Received: by 2002:a05:651c:1044:b0:2a8:c858:fb9 with SMTP id x4-20020a05651c104400b002a8c8580fb9mr2289679ljm.29.1683490361330; Sun, 07 May 2023 13:12:41 -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.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 07 May 2023 13:12:40 -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 , devicetree@vger.kernel.org, Konrad Dybcio , linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org, Srinivas Kandagatla , Zhang Rui Subject: [PATCH 0/6] Enable MSM8226 TSENS support Date: Sun, 7 May 2023 23:12:18 +0300 Message-Id: <20230507201225.89694-1-matti.lehtimaki@gmail.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1765268107111951198?= X-GMAIL-MSGID: =?utf-8?q?1765268107111951198?= Add support for tsens in MSM8226. Add qfprom compatible for MSM8226. Add device tree nodes for qfprom, tsens and thermal zones for MSM8226. Matti Lehtimäki (6): dt-bindings: nvmem: qfprom: Add compatible for MSM8226 dt-bindings: thermal: tsens: Add compatible for MSM8226 thermal/drivers/qcom/tsens-v0_1: Add support for MSM8226 ARM: dts: msm8226: Add qfprom node ARM: dts: msm8226: Add tsens node and related nvmem cells ARM: dts: msm8226: Add thermal zones node .../bindings/nvmem/qcom,qfprom.yaml | 1 + .../bindings/thermal/qcom-tsens.yaml | 1 + arch/arm/boot/dts/qcom-msm8226.dtsi | 164 ++++++++++++++++++ drivers/thermal/qcom/tsens-v0_1.c | 27 ++- drivers/thermal/qcom/tsens.c | 3 + drivers/thermal/qcom/tsens.h | 2 +- 6 files changed, 196 insertions(+), 2 deletions(-) Reviewed-by: Luca Weiss Reviewed-by: Luca Weiss Reviewed-by: Luca Weiss