Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp2181197imm; Thu, 27 Sep 2018 08:39:10 -0700 (PDT) X-Google-Smtp-Source: ACcGV61hfwmI7/j02CaPbnpGr+lLvmQ6rVzUXFc2ZSOunw3C8MHWdVCIisXY6rmzCYInak6dbpev X-Received: by 2002:a63:5a0d:: with SMTP id o13-v6mr10900917pgb.267.1538062750546; Thu, 27 Sep 2018 08:39:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1538062750; cv=none; d=google.com; s=arc-20160816; b=w/AO12Q/MGgndrr4xUKjOj4ln/B2sPY6D5pijSsw7ID5Y6gqLeHMOqHSkokc6bAaNt kS7Ejv5oEhMIdawIvmgNHAWGXDgP8H3Bj4zoewT/XsCLXcDxlQ8e359F0VTr0FKDWHSS WWgXgalOEskNKpL7O/YJmyTkzYgUEHHnqM8+Cm5RZGKqO6E1m6HXzReduiekl7iAM2oJ aLfGI0mAjFCHWdqE14sAqgZTQJT2SKqvVjhpAXoU6VjFmhbQb+QtVHZ6O4NzKGWaHOe3 2sK79N8iQ61tleo81uLMhPRhRzWBmM/4EbU2obKwMy9HeCjVg9O5tSwkUqLYYwkWeJB7 iJ9g== 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=XpfyjubRxpOYF9FoHU3Q/FOSQSTcdzPQQk+DYSE2m9A=; b=hBz/YW/t41bkk/AOI3Vu1k7h1L2JFPNHKaMMF0zaUWZPpOyfD15tg5/TekQKVmiGD2 cDI5Osf1wel1AWEm8znX+/zKn+x8x6pbGY+MXpM9D/+iKwccj6tSRtiXRWTACJKc77d2 x0y3iF9RDXr4GCUOMY7puKBWs/nY5kDaer9t+c9NWKHFsbRW/e89wVi0TaoCj0Yrwzq0 k86OTc4aGhsxZL5g2FeRAnMem45qD0MPQ5za7Oz71fTpFCdbP67H9dtaJ1Fqh0Q6cGhG skUjgxWOlq/petJPc+NYUm37BPGn0Hp2H+fIcS7ShHTXhv/LkyMRwj44xkl7MMNy7Afs p/cg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@broadcom.com header.s=google header.b=EbUTSBxp; 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 l14-v6si2214580pgi.34.2018.09.27.08.38.53; Thu, 27 Sep 2018 08:39:10 -0700 (PDT) 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=EbUTSBxp; 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 S1727870AbeI0Vzw (ORCPT + 99 others); Thu, 27 Sep 2018 17:55:52 -0400 Received: from mail-wr1-f68.google.com ([209.85.221.68]:42781 "EHLO mail-wr1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727426AbeI0Vzw (ORCPT ); Thu, 27 Sep 2018 17:55:52 -0400 Received: by mail-wr1-f68.google.com with SMTP id b11-v6so3108101wru.9 for ; Thu, 27 Sep 2018 08:37:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=broadcom.com; s=google; h=from:to:cc:subject:date:message-id; bh=XpfyjubRxpOYF9FoHU3Q/FOSQSTcdzPQQk+DYSE2m9A=; b=EbUTSBxplPAQOoBLzAeb3XjdHKzRiGUCaGnJTsn4GLxmoWB9SNRk0CgJ3NkVyJkY+i hYuYkAx+2gOteJVWfX/0rWWo/iqGIyeukE02Yr4YwlrAI2KCRk+k1C1vdtI28CeL7POs bdGZ/UtCEZ42Aza8m2CwyjGKK+Ajv/nAfo+Aw= 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=XpfyjubRxpOYF9FoHU3Q/FOSQSTcdzPQQk+DYSE2m9A=; b=DLQxDTk+ehLh36mfv80spqkPb0+Wno/10c6llWl3A+xw7qpuqbUtFJnyngKcVshzYa aUH9L/LYdzdgWTYy7JZJ/ty6sBu5Jl32ye+8G6swrPNZ8D4yPPefbz5+GYRxv3mj3mbk RhI7M95wUXR8y7BGfEP3PAnRhCO20nuVQ8MaZGeluGwDR1HS4AJNQjkiK6XhGuwqrCbV wFLQ2198yvQSJ0gMowyU/7d8Hv8C7S78nDk+DiEW+pZvCkx0sTOm3UJqdJ91zxHKkawk hARc8EYBCK3Tsgfa5Fqq0PtDKCTjmTIQDWZ7H7MoX0ogiUTnJY1XoP/jBB+pLew+pdG3 3JKg== X-Gm-Message-State: ABuFfoh1g+6ATrZugcPSo8N+IfRwnq5iObxJab44zfkEJWZGOhy6lwZ3 1FvIxDNItxdRVQqNpUM92egtgIxaIcM= X-Received: by 2002:adf:f802:: with SMTP id s2-v6mr5530747wrp.172.1538062621959; Thu, 27 Sep 2018 08:37:01 -0700 (PDT) Received: from mannams-OptiPlex-7010.dhcp.broadcom.net ([192.19.234.250]) by smtp.gmail.com with ESMTPSA id p11-v6sm2520033wrd.74.2018.09.27.08.36.56 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 27 Sep 2018 08:37:00 -0700 (PDT) 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 v4 0/3] Stingray thermal driver support Date: Thu, 27 Sep 2018 21:06:40 +0530 Message-Id: <1538062603-7490-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 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 arm64: dts: stingray: Add Stingray Thermal DT support. thermal: broadcom: Add Stingray thermal driver .../bindings/thermal/brcm,sr-thermal.txt | 25 +++ .../arm64/boot/dts/broadcom/stingray/stingray.dtsi | 14 ++ drivers/thermal/Kconfig | 3 +- drivers/thermal/broadcom/Kconfig | 9 + drivers/thermal/broadcom/Makefile | 1 + drivers/thermal/broadcom/sr-thermal.c | 203 +++++++++++++++++++++ 6 files changed, 254 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