Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp2675792imu; Mon, 19 Nov 2018 04:27:44 -0800 (PST) X-Google-Smtp-Source: AJdET5dZTlunAa1aZXXSdmUXrVLaG+/oxQhaCAvIVdhVRkeIUz1J6yEf6gCIokBDuGsLO3UN2bUJ X-Received: by 2002:a63:4815:: with SMTP id v21mr19795806pga.308.1542630464621; Mon, 19 Nov 2018 04:27:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542630464; cv=none; d=google.com; s=arc-20160816; b=kLl0uFowHhLFSTTnT7M250S4TAhlouuV2Ca/Cx657Z45bEjzM1KCFGotYHrQA7CJnP CzBmPsRzJ0MHcubyiDCQFgwx5c7NGLIHd2/pQ/fR7DqZCyHaWroxH+cvx6FlvkqMcQbB 2HBrxIeUFaEZ4zEqFb/drItcwG5v8ghuPuJIlAMaX3xTvhsy8v+jFkJ27F6hbqIKFlcW /Com16RxLHd5jn79iSH3SETOWkgk84Ve550bEg36MKW+bwfEu1zsDTZozE7ydDCSQJbj BM2st0uU/PMGmnse/lfKH6jPql1KAB3PldHeXUYVwni7dTwg3HCnh6xH18FvtgQ+yLR7 aHxA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature; bh=xesRda5rimx9wq9yHaz1ffHav24Xt7nvxc3sWfUisE8=; b=I3yvf4BqkfcKIyPTDxgZLSOYologM7yKBDUS28Zvvdco4JBmuvh9XT2HhK6Tvbt9Vl QWxDFIpkpkBvOz1/wRz21gdXmKIHN6oWH5Ft2vrQMbgTXeCRWruZUs5gMC26F91c/4O1 aW3RO3SEV6EUFDjUE7TxAJP5grQht7xNlvlUQWyS5BuWjMl83+EF96/tQHn7Mw5z+KN2 1ozFEE6SIglH9q1W+1OYjKI3t1z29ch+ILrVhy190R0oIjM6axZVE9K6j3xZsPGaE9AH blCoaIGc0iMpzwk5eh66o9Dklz5xIv4wufz/woJ1egjEt2Q69GtZicYcFiG0QCFuYazf d82g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=TWVfKpy6; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-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. [209.132.180.67]) by mx.google.com with ESMTP id gn7si20944585plb.321.2018.11.19.04.27.30; Mon, 19 Nov 2018 04:27:44 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=TWVfKpy6; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-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 S1728804AbeKSWtG (ORCPT + 99 others); Mon, 19 Nov 2018 17:49:06 -0500 Received: from mail-wm1-f66.google.com ([209.85.128.66]:55223 "EHLO mail-wm1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728772AbeKSWtF (ORCPT ); Mon, 19 Nov 2018 17:49:05 -0500 Received: by mail-wm1-f66.google.com with SMTP id r63-v6so5138462wma.4 for ; Mon, 19 Nov 2018 04:25:36 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=xesRda5rimx9wq9yHaz1ffHav24Xt7nvxc3sWfUisE8=; b=TWVfKpy6pgfIlB74YTGVavAeGXe4pHa9FohBZE3fVexN12ckCZMGagl7f1mH8OKO1a w1yGPOuSBCMv0DigOVom8fcbhvbDYcYZ6eC4ceCbq2faUvvDa0BAA2ikY7dP8/BioW7E U4GmFgay+UuvoM2ys8maUm8NlCZRwHwuO1Q/4= 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; bh=xesRda5rimx9wq9yHaz1ffHav24Xt7nvxc3sWfUisE8=; b=JWl19NGVcHJRNuCt3J4vvfh94HgvFC22E8kU6hOJT930WXyuyN0wuFI/Pvd1dknof+ poSq9Q3ZDKlwKiF80knsZF5nOk5JhqxPG8OXCXu0t4gwn9rKgJ20CJIzTNsmIgEVV5Tt 9cCcOwuQhAFEHUTxaP3Kvd2W9lVVLfYKhw22z5a5z1IZktsSeb3oLvDd/uPUIfpKjjuX emRMHwe/uu39wR3CGgKFCgIz4AyxIQt6tWI1gNXaVkvppCxljl+H2ZBp9x0j0RlcsqLj mjJzeInDgS3Qa2fXQY9uh2ABmyOxeRfe1+P7+626GPZ4obnQ0ajKsCR8n2ieIhs2pc25 beHQ== X-Gm-Message-State: AGRZ1gJ6lysgM1BJYsQa47yhywc+P0q6X7jeidIusINtW+Illl4bHYZH YpVwVIxlMQ36Reny++txuNYAj0dA3O8= X-Received: by 2002:a1c:400b:: with SMTP id n11mr7196654wma.85.1542630335727; Mon, 19 Nov 2018 04:25:35 -0800 (PST) Received: from localhost ([49.248.195.80]) by smtp.gmail.com with ESMTPSA id d5sm4075397wrx.22.2018.11.19.04.25.33 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 19 Nov 2018 04:25:34 -0800 (PST) From: Amit Kucheria To: linux-kernel@vger.kernel.org Cc: linux-arm-msm@vger.kernel.org, bjorn.andersson@linaro.org, edubezval@gmail.com, andy.gross@linaro.org, vkoul@kernel.org, Daniel Lezcano , devicetree@vger.kernel.org, linux-pm@vger.kernel.org, linux-soc@vger.kernel.org Subject: [PATCH v2 0/4] thermal: tsens: Add support for QCS404 platform Date: Mon, 19 Nov 2018 17:55:18 +0530 Message-Id: X-Mailer: git-send-email 2.17.1 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add support for the Qualcomm QCS404 platform that contains v1 of the TSENS IP. Introduce a fallback binding to handle "v1" functionality. These patches have been tested on top of 4.20-rc3 + various qcs404-related DT patches now in Andy's ci-next branch[1]. Changes since v1: - Change p1 and p2 to be fixed-size arrays - Refactor DT entries to be sorted by address, Thanks Vinod - Added Acks [1] https://git.kernel.org/pub/scm/linux/kernel/git/agross/linux.git/log/?h=ci-next Amit Kucheria (4): dt: thermal: tsens: Add bindings for qcs404 drivers: thermal: tsens: Add generic support for TSENS v1 IP arm64: dts: qcom: qcs404: Add tsens controller arm64: dts: qcom: qcs404: Add thermal zones for each sensor .../bindings/thermal/qcom-tsens.txt | 3 + arch/arm64/boot/dts/qcom/qcs404.dtsi | 226 ++++++++++++++++++ drivers/thermal/qcom/Makefile | 2 +- drivers/thermal/qcom/tsens-v1.c | 196 +++++++++++++++ drivers/thermal/qcom/tsens.c | 3 + drivers/thermal/qcom/tsens.h | 2 +- 6 files changed, 430 insertions(+), 2 deletions(-) create mode 100644 drivers/thermal/qcom/tsens-v1.c -- 2.17.1