Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp226352imu; Tue, 27 Nov 2018 11:26:21 -0800 (PST) X-Google-Smtp-Source: AFSGD/XEHTpwJEscRjth+SOJ0HwliapqJExexPVSB1Q2bDoD581fGnc1RDyqogoiaiaYT1IZmBC0 X-Received: by 2002:a63:3d03:: with SMTP id k3mr30358561pga.191.1543346781710; Tue, 27 Nov 2018 11:26:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543346781; cv=none; d=google.com; s=arc-20160816; b=O1Cyh92LaIiFbbfWAEInV4bftD07TXRueGSNkWNl/ftGZFqasmnFjj0Fm6thG778OF 42FaupIxQTY2qp9PeFfoHNvPE5f9EoFYYH32bCaWWxARMgWK/RgP+DmmFTXR4J3wybgE yS1M7ulSvKU8Phbmu9IGXbsPbeu06A0j7ID835v6HMPSBPSkYRKUXCAr0sKSkmfS2b8W 4jQj92hVvDIuoHmbB467Ja57aAM7D6Y6DzZxt1koY8+WjZDnw8dgByKHq/z0Qm5TWeNZ WnkYk1gKRt4nYIA+J36CVLq2OgCdGEtE9hZclBEyLuHBoe3nA1ZF8uiGFS3wSCWGh+Z1 JqXg== 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=bDtNstNo/ih1kG006IdZCiKXJDG4jGEi/v6510V+8Mc=; b=sni1aCdsip1Vt7Tpm3I4VN06VOXwCKhs5p6uIIsUhKbsjqlmq1Cb+0IJ7Y8LJTc8yc IsowdRqeg3vpq3pEfkri6ydB5p2LgHFajJqu0FKHexg3Sy5bB1yyO1u12vdad6kIvr3P E8xY9O5MDX4CWuvLGyKJu0075dtElvWDrkcM5F0/PIChHntzVgZg3a79vGyBO8HMPneu WAz7iwAdnD095C/JhWJi2uz48bHpcyxt2+AV+6npWq+6ukiBHyB0sKCGOXRrhsfuskji sSBx++3voaGeBYGDWy3U03bTbLdAf/X+AtVeG5ZRL+jz8H5xPEu1xmLmgttE5NLrNTBf f6HQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=QU0ppiTr; 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 1si5119293plb.103.2018.11.27.11.26.06; Tue, 27 Nov 2018 11:26:21 -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=QU0ppiTr; 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 S1731064AbeK1D1s (ORCPT + 99 others); Tue, 27 Nov 2018 22:27:48 -0500 Received: from mail-wm1-f67.google.com ([209.85.128.67]:52469 "EHLO mail-wm1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731050AbeK1D1r (ORCPT ); Tue, 27 Nov 2018 22:27:47 -0500 Received: by mail-wm1-f67.google.com with SMTP id r11-v6so22383343wmb.2 for ; Tue, 27 Nov 2018 08:29:20 -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=bDtNstNo/ih1kG006IdZCiKXJDG4jGEi/v6510V+8Mc=; b=QU0ppiTrR+cTy9+lTxcFHJYCSZu2MlMTLCidEjbNicvBUaqqZnArQb1pbRvJVvQd1S BnVlz3FKipeFHB5W0xcrRSN4+dbPA772t8HvCJhvvJmP/JfnHfKh3ce87+Idz6tNsX4K TPw8toBGn6b5HrLgIGz6L/xEgy3kEtC5Tynnk= 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=bDtNstNo/ih1kG006IdZCiKXJDG4jGEi/v6510V+8Mc=; b=e8v9TC23lcvMos64cxGD8BaqCskbhw1IGsDAUSxiUUWbgsuHF3PxmYLEqoUJOJUYnC Vyzz3EqEq+OKsrlp+/ttbD6kycz0JEyN7x9788dE2TckJo8pbu8OciLM45Rwa0NaAHSy H90j1bgj6s9Jx5h01QwrwPwiP8gOGBl0J8GzNRg8SnVVmHhKzrskNFVN+0EnzY4d7Cc/ bgig8zQuFku2gix7y03nDRSpSygNEZ8XZ8yAX+eF8MEaXr0DaGd6OH4oB9CxH/K47OU9 JrLNqYCyAfdATitTQSctI5d6iqf9SIi6fLn0JKVkFNH/GEpxSzC7/ba+gnvc3hD78U/Y JDfg== X-Gm-Message-State: AA+aEWYa0Dm9FhSvkOUl2KoQfBkWI4NVKtkMPaItqawV3c2karkATjmX 3qcaW6Eo3fYteIQNsl4zGfYRikzRGtE= X-Received: by 2002:a1c:47:: with SMTP id 68mr11746929wma.89.1543336159659; Tue, 27 Nov 2018 08:29:19 -0800 (PST) Received: from localhost ([49.248.92.105]) by smtp.gmail.com with ESMTPSA id p6sm3000745wrx.50.2018.11.27.08.29.17 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 27 Nov 2018 08:29:18 -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, khasim.mohammed@linaro.org, Daniel Lezcano , devicetree@vger.kernel.org, linux-pm@vger.kernel.org, linux-soc@vger.kernel.org Subject: [PATCH v3 0/4] thermal: tsens: Add support for QCS404 platform Date: Tue, 27 Nov 2018 21:59:03 +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 v2: - Fix a conversion error in the get_temp routine the caused negative temperature readings (Reported by Khasim) Changes since v1: - Change p1 and p2 to be fixed-size arrays - Refactor DT entries to be sorted by address, Thanks Vinod - Added Acks 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-common.c | 2 +- drivers/thermal/qcom/tsens-v1.c | 196 +++++++++++++++ drivers/thermal/qcom/tsens.c | 3 + drivers/thermal/qcom/tsens.h | 3 +- 7 files changed, 432 insertions(+), 3 deletions(-) create mode 100644 drivers/thermal/qcom/tsens-v1.c -- 2.17.1