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: 178866 Delivered-To: patch@linaro.org Received: by 2002:a92:38d5:0:0:0:0:0 with SMTP id g82csp2433368ilf; Fri, 8 Nov 2019 01:55:50 -0800 (PST) X-Google-Smtp-Source: APXvYqwL8IASDTmV3v5eOyqaz0u6e8evnq/HSPO51+1syuWz77ljUclJ+lMLsY/9QdfdheK1vfXT X-Received: by 2002:aa7:c694:: with SMTP id n20mr9117699edq.87.1573206950501; Fri, 08 Nov 2019 01:55:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1573206950; cv=none; d=google.com; s=arc-20160816; b=H2HlcsXbzyhLhbdezhEGBs0Jbl6ozGV9YBq9vcq6g6J3GwAI8H9AILBrbHqBHxk9Bq AV0Rf41XsQzfsxUWclgOuZi7ktC/zdPi0dfsWdFUkbCuKCgK7IcquA7OfpOCHjQ+OMy8 ZkSSjfsDgfV8d0k0U5nj8sYtxkT7sV+1ntFjPaiwXmMEE4uyO8CCIBexqQp2hbRF6PN4 Sdnk9LBYQJgeaYwtlRhWC6UWhc3JshqP5utImx4P3/BBqfx61nvQSEPRcGYYsryPAOTM cGrJIedRMu/ywdB/RVKFR0FyLi536JpTvmwG7gtFdtc9QyzNY9wha0ANfpZaMLThKAEe zNKw== 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=spYWTHjb7/MYzsI9bYPcwS26fEghILksNMY9w8ImjM0=; b=efzji8sJiQ/QfYpGJaRNeUXzwyuP+188+exfmDo4oUUT15vvudAScuj6Njg+5Vh/Ve WMw4WyE5qGACUx04W2GapHuFeA8wnKPrfK8U4w3RWi8nGNq36uCF7Rd4XPAYjShIqR43 Wq3naUZLany10QvRLcv11ykof2TQledmdYeNq0xNlYBvUNxr+e5JOYxjfQKoZRiyoToM 8tK8UyXX9sFnnOur2slSqaZZ2Vbhqg6fsgL0IGVM+4k3T+UPNM9nQKaeU3tuYFJShCvV yqRzenbVG/kIxtotqjYDMTcTOks+wm+iw0jsENEVWKNeIgxEc1A/5z8gfMmgeYbzrXch AH4Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ZXIzhvrb; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-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 v1si3336205edm.285.2019.11.08.01.55.50; Fri, 08 Nov 2019 01:55:50 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of devicetree-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=ZXIzhvrb; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-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 S1730719AbfKHJzt (ORCPT + 8 others); Fri, 8 Nov 2019 04:55:49 -0500 Received: from mail-il1-f194.google.com ([209.85.166.194]:39939 "EHLO mail-il1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730069AbfKHJzt (ORCPT ); Fri, 8 Nov 2019 04:55:49 -0500 Received: by mail-il1-f194.google.com with SMTP id d83so4606363ilk.7 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=JLKe4Cl5u2ZOpoIkC+wtl0RNzklVpcIbTFm9U77lruyaeOoIJ+J73Uy1dYsb/nOZJ4 EM4OfBW1A1RJAdJ6A7X6jT3R1Db9z4MFt8gctm/6raVL4vS8de7lOrYblqkRn831TQ1e 3CimRZp1XbL0y/sBbmOgtFwJZDRZyEt1uZhoS+4o2109UU/kYevxLTW+E/BdrRj0Z7wV BKZJCVNKF09kF7+z6+S+jXFuanYBhLHsLVQ2djVzYyP1Thqk8MzhVTtsxCvKvlE4zBVd qPeL44y5bCRIFIGseNUrP3aQkv9x4hTUnDks3hcLEdFpgQs2MEAD0ML4fWAvsgrVhsUD SmUQ== X-Gm-Message-State: APjAAAVSlRJovzjUZ6Q1QxMPf38XVznuVWAkiQwSUTqu7wu2z962Girr bcgColIwNPjO8DwxRAnP4cJJ/ongO10mBw== 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: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@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 -- 1.7.9.5 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"; + }; + + ...... + };