From patchwork Fri Nov 8 09:54:30 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "(Exiting) Baolin Wang" X-Patchwork-Id: 11234483 X-Patchwork-Delegate: eduardo.valentin@ti.com Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 96F2B13BD for ; Fri, 8 Nov 2019 09:55:53 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 75A2921D7B for ; Fri, 8 Nov 2019 09:55:53 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="ZXIzhvrb" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731435AbfKHJzv (ORCPT ); Fri, 8 Nov 2019 04:55:51 -0500 Received: from mail-il1-f194.google.com ([209.85.166.194]:37575 "EHLO mail-il1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731373AbfKHJzv (ORCPT ); Fri, 8 Nov 2019 04:55:51 -0500 Received: by mail-il1-f194.google.com with SMTP id s5so4611888iln.4 for ; Fri, 08 Nov 2019 01:55:49 -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=spYWTHjb7/MYzsI9bYPcwS26fEghILksNMY9w8ImjM0=; b=ZXIzhvrbd4xxyWux72pPsvlPW99KePyYAt/Ja3nYluiduO6c00vIX+TC0Hp44xFrFf gOsQXi3l6l2Ok3XLfAtQopP3BCRIyDFf/tiJLz8G5Qi9hRXrPW7Q1KipED8u0TFo/YFT 6NcNpaRUi/NWOsLPT+U6r9d/QWrdh+i8ABP33IeTi1UuxB+2JJNIV97wZauPsBGAYSw9 DcrGud7Lk+STyaH/zkeCIEpzEmoier69vvVaRkpdG5CLs3sPcjZJbDh6dwWDm+KEdJEf 2KZWnkhgIcoBXlWVkCdHA0d6uWAfurQma5kglDFOlhDHyIa/MMZoqsHOJeEIeDRfF6oY iSpA== 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=spYWTHjb7/MYzsI9bYPcwS26fEghILksNMY9w8ImjM0=; b=fQR665jFAGjzmHhU4peVH4iP5AGUpQaUO1dZI0A3qAXdkuW3NIkZF+/njqPtGrXWNv d66TeU7afRLUPZR0ebGj2Bz9D4D/9P+22Q+xz5o9voBi50mNERhvHV0R5f+keNA8J6BT 6yEe28xrgmGyR+xcnuOvR+ZpaSgRcmGj27m59qwmwUJzV0vz8UmmQRm1HBsiU7Vo8YaH BV94+Ml7I3rGw10/M75eEnwM7qba9RHnQ0g6fKs9stvmOnRBYTcRiaQnJOhaOjRpGmzf tt5bIdqg1X6bqRSZboQeAC3Git2xLaG979KB+4WBMybilSuPeDUdJyWWKbXm+CQ36ly2 DPEg== X-Gm-Message-State: APjAAAWvR5Y4Vn93herYKlCzpQAJoBO1SuRLwQVuYEMVR/R8gWJWt1B/ Or3mMmUeLGWn2KInCOOQRr3CbQ== X-Google-Smtp-Source: APXvYqxARYtwBC201uyHdNNTlDXaPFI6/906RtwY8BQdnP0JJkgmWvxjTofTB7u4fR8W6vOkU5NcSg== X-Received: by 2002:a17:90a:2a41:: with SMTP id d1mr12471267pjg.87.1573206948601; Fri, 08 Nov 2019 01:55:48 -0800 (PST) Received: from baolinwangubtpc.spreadtrum.com ([117.18.48.82]) by smtp.gmail.com with ESMTPSA id v14sm5019009pfe.94.2019.11.08.01.55.44 (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 08 Nov 2019 01:55:47 -0800 (PST) From: Baolin Wang To: rui.zhang@intel.com, edubezval@gmail.com, daniel.lezcano@linaro.org, amit.kucheria@verdurent.com, robh+dt@kernel.org, mark.rutland@arm.com Cc: orsonzhai@gmail.com, baolin.wang@linaro.org, baolin.wang7@gmail.com, freeman.liu@unisoc.com, zhang.lyra@gmail.com, linux-pm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 1/2] dt-bindings: thermal: sprd: Add the Spreadtrum thermal documentation Date: Fri, 8 Nov 2019 17:54:30 +0800 Message-Id: <0a6b113010ad772a633b9cfeeb280dc41f17b951.1573206815.git.baolin.wang@linaro.org> X-Mailer: git-send-email 1.7.9.5 Sender: linux-pm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org From: Freeman Liu Add the Spreadtrum thermal documentation. Signed-off-by: Freeman Liu Signed-off-by: Baolin Wang --- .../devicetree/bindings/thermal/sprd-thermal.txt | 41 ++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 Documentation/devicetree/bindings/thermal/sprd-thermal.txt diff --git a/Documentation/devicetree/bindings/thermal/sprd-thermal.txt b/Documentation/devicetree/bindings/thermal/sprd-thermal.txt new file mode 100644 index 0000000..a9da7f4 --- /dev/null +++ b/Documentation/devicetree/bindings/thermal/sprd-thermal.txt @@ -0,0 +1,41 @@ +* Spreadtrum thermal sensor controller bindings + +Required properties: +- compatible : Should be "sprd,ums512-thermal" +- reg: Address range of the thermal registers +- clock-names: "enable" for thermal module enable clock. +- clocks: Should contain a clock specifier for each entry in clock-names. +- nvmem-cells: A phandle to the calibration data provided by a nvmem device. +- nvmem-cell-names: Should be "thm_sign_cal" and "thm_ratio_cal". +- #thermal-sensor-cells: Should be 1. See ./thermal.txt for a description. + +Child nodes properties: +- reg: Specify the sensor id. +- nvmem-cells: A phandle to the calibration data provided by a nvmem device. +- nvmem-cell-names: Should be "sen_delta_cal". + +Example: + + ap_thm0: thermal@32200000 { + compatible = "sprd,ums512-thermal"; + reg = <0 0x32200000 0 0x10000>; + clock-names = "enable"; + clocks = <&aonapb_gate CLK_THM0_EB>; + #thermal-sensor-cells = <1>; + nvmem-cells = <&thm0_sign>, <&thm0_ratio>; + nvmem-cell-names = "thm_sign_cal", "thm_ratio_cal"; + + prometheus0-sensor@0{ + reg = <0>; + nvmem-cells = <&thm0_sen0>; + nvmem-cell-names = "sen_delta_cal"; + }; + + ank1-sensor@1{ + reg = <1>; + nvmem-cells = <&thm0_sen1>; + nvmem-cell-names = "sen_delta_cal"; + }; + + ...... + };