Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp5301271imm; Tue, 16 Oct 2018 08:13:34 -0700 (PDT) X-Google-Smtp-Source: ACcGV62TcEeNddyhDRoxb1XtDLHFpgWn6j/NqV4S0QbDqMcQaTukT2WX5RntVHMiHtw63qM6FdTa X-Received: by 2002:a62:6643:: with SMTP id a64-v6mr22360783pfc.202.1539702814434; Tue, 16 Oct 2018 08:13:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1539702814; cv=none; d=google.com; s=arc-20160816; b=jm8ZuquWS1Kc5gjhZq529C4RjwkNShksBu90Dwqe/jjKkIs8JQTIAT3wwDjOGCws4A YeF1hsObC3oORsaJ4i6OZwBxj6sEOpKnxD9yKe3XPjXnAo2yZtzLYaAcrqF1gz1BPzPv GcJCbxSWKiTqWIP71wn7ChmHFmUFzt7t1BkmN53cbimvBzvzc6Xk/7XEqLBDYgrOxszs Blty6guReVE+IRQSwJe7E+mxXbDYklbjzT+OR8lsk1ve89SOPkb2qWW1FtpH3OLnznhT 0lZiyMufnurJe41mfTfnqEOlTRTagPZ+Eab8WwbyoBIzUpak/OytxLQ41fdt++ofXWl9 RiGA== 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=2qEtXmUxVTj0qrcV0MWJrLFly0loDRHJM4eipkUrHl0=; b=BLiBOk3cSTVL3zTtmr2C/MOfI9BOlPIiZMPOGWPH0pKao0h0F0uFUFkf2wtTq0WTB+ bJWwDDVevwASxlZaEFS8o6/OhP+p4j8x56zqf46G8tDPDuu0ft5h3wYfbr7aBjjluGx8 4BCXFMiaGHqi7Avqdh8kD0qe7iZE2XbivYeD4/1FUe3M1JEsWRCybedjNvKYO/TWW+Qv /Gl/8EYK2JFodiXhGpAYgGDfQuVew7HpcYJkCf1b1MiiLRVfOn6/3RLmKVeJTaNiiNGs AqwLIErjzBkUizXOZPWJnxfNd/eGsh/ZGjrDTtsRo5ZrJLLHXmP/20qG4YVfyu+7YNJ9 wQfg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@broadcom.com header.s=google header.b=dEUVybXF; 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 g12-v6si13478589pla.403.2018.10.16.08.13.18; Tue, 16 Oct 2018 08:13:34 -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=dEUVybXF; 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 S1727481AbeJPXC1 (ORCPT + 99 others); Tue, 16 Oct 2018 19:02:27 -0400 Received: from mail-pl1-f196.google.com ([209.85.214.196]:32981 "EHLO mail-pl1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727165AbeJPXC1 (ORCPT ); Tue, 16 Oct 2018 19:02:27 -0400 Received: by mail-pl1-f196.google.com with SMTP id s4-v6so11187406plp.0 for ; Tue, 16 Oct 2018 08:11:33 -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=2qEtXmUxVTj0qrcV0MWJrLFly0loDRHJM4eipkUrHl0=; b=dEUVybXF5fCQ9DYFxmmDBaXmW9YfWgMK0b3WSdSk81igreKpGfutR3iCqZeVteNpNn tBKc6M2sFGq/88J8B1/fhQ6TxFuHt/5J2xkbl1sD9W1SFlgLwxUPUz+xqtLM6Rj+QSdg mio/F3RdnzkHxho9imZMEvgMqgL8bmOmyuQ+k= 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=2qEtXmUxVTj0qrcV0MWJrLFly0loDRHJM4eipkUrHl0=; b=teeV8ReTqiwcCt3xX5gvFvC9h/ZulS00HN4kbmFYzzQd8srz+SlajM8uM3l2zJUNhT 6mXKajmB9F3Q71ugazR+WZgZkfhaUAaFj0TnPRFmwRGCh4xIgiCKO180I2Cu/5P6/VTw XEHp4y/JNo3SIhFXuX5Nk2jYC0lZfRx9WQQ+3GVIrxFLIXFMIPwC6jQ66/0H3N8O/5aX UczStrj+X2RtIlM249GnamtUH0Dp9t2xF+7voyIJJN+WKuybzxgvNn9+2WkurD0aqr/E 4CLJM2ZMRT0l3mkYwuIn2sCGkLHxaSnePuYQlQnOucDx6i8kreVgihXrMmUdlBmekWY3 cj1w== X-Gm-Message-State: ABuFfojVLtR+8GWZ57RNMPLsjK4f5pDW7GywY9WBhrtAKWIay8TqD+1z WmSvx9jQWOb4l+4ZrOAftuqMZw== X-Received: by 2002:a17:902:b03:: with SMTP id 3-v6mr21868007plq.141.1539702692690; Tue, 16 Oct 2018 08:11:32 -0700 (PDT) Received: from mannams-OptiPlex-7010.dhcp.broadcom.net ([192.19.234.250]) by smtp.gmail.com with ESMTPSA id i29-v6sm24227122pfj.82.2018.10.16.08.11.29 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 16 Oct 2018 08:11:31 -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 v5 0/3] Stingray thermal driver support Date: Tue, 16 Oct 2018 20:41:17 +0530 Message-Id: <1539702680-3746-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 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 | 138 +++++++++++++++++++++ 6 files changed, 344 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