Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp607546imu; Thu, 3 Jan 2019 04:01:48 -0800 (PST) X-Google-Smtp-Source: ALg8bN62eQuXFJt0h5NqhqdFiqTgmqkYReQJR3k/iqo1jTvu+vh1fJt1H6RvI2S+D65Dt2AUmlsa X-Received: by 2002:a63:1c61:: with SMTP id c33mr43818903pgm.354.1546516908572; Thu, 03 Jan 2019 04:01:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1546516908; cv=none; d=google.com; s=arc-20160816; b=gJ+aWE5Ym6761ZlQX7OQU1TG16owofeWyRCPEIHfGyfd1PKZfuowI3EC+/zv6IY2qP Go8+C7lcB76VJ427Q+BhZclHSOm86pu6NJ7lHQJmp7f1t4Rdjmh/t1rVzzk61wy1TUsC QrGj+cxNfWc0kR1xG9/FENCLuJctA5JwPyPbmU2yyYyadoSMB+38kfz7L8OJr7q9BWHr 37L3nP3X7ZuoHQJadKTvGOnpTgvOTkf5Da5E1xb2uQnu7p2yN3AlknaVmzG1CoHo5bmA +5N8xDHKTGp6DDlAqIDS9AUqTS5hzslBTl6eQyytW4Yc5O6GbZbsrFih2iEdp9xy5FaH UoQA== 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=OENeZoKfZJsb/gIrBxN0ZEkZ+Q8TNlo3ohrEaRlf710=; b=ynVT1t5mvjtf0YPdiUVGFtdc6spvQFDtgiOLZHZy6mL0YVp3/sS0ELAt/RbOWEG2Vf OgBas0u/Dk9kaEm7pFeA53D/z68im1RJtaOLddsNXVSbxpdKIDsw2YcxfNtzJSFtVKgP HPt4WtDbblcLIt9MUHM9ryxl7rpYtRQlTYgazdIp/mIBeY++nSreUaNGBIoynzPcyFP0 EhrwjGrthDuPoi3ZnVIKpcPYvniKrN1UyQcTtqqHUMMsmZDmw8fkmkCO+VIEet6KenwQ aqa/OdmqV1Ob4C4aqf0PS1Nr634lRn8QdW8qx9D+I1hR1epYt5871+7QgTRHywCU19Fj Mz3Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@broadcom.com header.s=google header.b=CyI2N+OV; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=broadcom.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f18si30642544pgl.457.2019.01.03.04.01.30; Thu, 03 Jan 2019 04:01:48 -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=@broadcom.com header.s=google header.b=CyI2N+OV; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=broadcom.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730372AbfACIzv (ORCPT + 99 others); Thu, 3 Jan 2019 03:55:51 -0500 Received: from mail-pg1-f193.google.com ([209.85.215.193]:45353 "EHLO mail-pg1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726003AbfACIzv (ORCPT ); Thu, 3 Jan 2019 03:55:51 -0500 Received: by mail-pg1-f193.google.com with SMTP id y4so15717665pgc.12 for ; Thu, 03 Jan 2019 00:55:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=broadcom.com; s=google; h=from:to:cc:subject:date:message-id; bh=OENeZoKfZJsb/gIrBxN0ZEkZ+Q8TNlo3ohrEaRlf710=; b=CyI2N+OVjQi5uWlSQLVAgdyFsmvrhXGxYZqff+Ov0D5ZksF0ofN/iyDkSvekUMclc6 qL4J3rsfFGB1sSdA3zfCHWw7OrTdMRstE7883hzTkad7opSlHvykGhD4F8NZ4thNgNBf jzogYGm7+1splVBpJFQnQVMeUwaWJa1pV6PEs= 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=OENeZoKfZJsb/gIrBxN0ZEkZ+Q8TNlo3ohrEaRlf710=; b=Kb8Ig5vQmKneewsB4C93sfYcADmF4ttLhY5ClYqR909YWoqJRo0Q66JPnXxAkoTBSl OZXBV2j9JJhrw5GOMxuSi+ntZb4qX5+FQEyEwp0Zb/dqmuQ2tTJEVJU/7eA9C66mJ7m+ TBBNlE5m5/F0awXCRWxnXjDoYg0IuXAM1SJ61WBLuyPQZlOhTFuyDvahzEUceR1QMzRD 6YoL4UgXIUCwlAvZJqWPMmuk/eWUuuoK33CWjo3KE0mNEmyyBSyNQQQmAqnPsB8aygf/ bIPhca09osdjPh+4S6x+BOT74B1/TsPv6L6J1tHJMaG3uAc97AN9fWCnO6g36WRhcydQ H8oA== X-Gm-Message-State: AJcUukeWDLlM4VaY8OgYBMzSe8Sw3BvW32NwzXLE1rNXg580WO1BD31k tIgfAPOnIzAMr1rSC3xJ4yiBLw== X-Received: by 2002:a63:1b48:: with SMTP id b8mr16443274pgm.187.1546505748850; Thu, 03 Jan 2019 00:55:48 -0800 (PST) Received: from mannams-OptiPlex-7010.dhcp.broadcom.net ([192.19.234.250]) by smtp.gmail.com with ESMTPSA id s190sm78189727pfb.103.2019.01.03.00.55.45 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 03 Jan 2019 00:55:48 -0800 (PST) From: Srinath Mannam To: daniel.lezcano@linaro.org, Zhang Rui , Eduardo Valentin , Rob Herring , Mark Rutland Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, bcm-kernel-feedback-list@broadcom.com, Srinath Mannam Subject: [PATCH v6 0/3] Stingray thermal driver support Date: Thu, 3 Jan 2019 14:25:31 +0530 Message-Id: <1546505734-24527-1-git-send-email-srinath.mannam@broadcom.com> X-Mailer: git-send-email 2.7.4 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org These patches adds the stingray thermal driver and its corresponding DT nodes with documentation. Changes from v5 - Addressed Eduardo Valentin comments. Changes from v4 - Addressed Rob Herring comments on DT parameters and thermal driver architecture. - Removed brcm,max-crit-temp DT parameter - Changed driver to thermal sensor registration model. - Added trip DT properties. Changes from v3 - Addressed Daniel lezcano comments. - Elaborated commit description of thermal driver patch. - Added brcm,max-crit-temp DT parameter. Changes from v2: - All stingray TMON DT nodes are combine together into single. Temperature registers are combined into one mem resource. brcm,tmon-mask parameter has available TMONs mask value. - All available TMONs are initialized together in single instance of driver probe call. Changes from v1: - Fixed auto build sparce warning. Pramod Kumar (3): dt-bindings: thermal: Add binding document for SR thermal thermal: broadcom: Add Stingray thermal driver arm64: dts: stingray: Add Stingray Thermal DT support. .../bindings/thermal/brcm,sr-thermal.txt | 105 ++++++++++++++++++ .../arm64/boot/dts/broadcom/stingray/stingray.dtsi | 89 +++++++++++++++ drivers/thermal/Kconfig | 3 +- drivers/thermal/broadcom/Kconfig | 9 ++ drivers/thermal/broadcom/Makefile | 1 + drivers/thermal/broadcom/sr-thermal.c | 122 +++++++++++++++++++++ 6 files changed, 328 insertions(+), 1 deletion(-) create mode 100644 Documentation/devicetree/bindings/thermal/brcm,sr-thermal.txt create mode 100644 drivers/thermal/broadcom/sr-thermal.c -- 2.7.4