From patchwork Wed Jan 11 10:14:09 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Baoyou Xie X-Patchwork-Id: 9509789 X-Patchwork-Delegate: eduardo.valentin@ti.com Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id A4E456075C for ; Wed, 11 Jan 2017 10:14:54 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 8CC02280D0 for ; Wed, 11 Jan 2017 10:14:54 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 7F839284B4; Wed, 11 Jan 2017 10:14:54 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 6FC23280D0 for ; Wed, 11 Jan 2017 10:14:53 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1760074AbdAKKOe (ORCPT ); Wed, 11 Jan 2017 05:14:34 -0500 Received: from mail-pg0-f48.google.com ([74.125.83.48]:33340 "EHLO mail-pg0-f48.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756615AbdAKKOc (ORCPT ); Wed, 11 Jan 2017 05:14:32 -0500 Received: by mail-pg0-f48.google.com with SMTP id 204so27089540pge.0 for ; Wed, 11 Jan 2017 02:14:31 -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=nEiKHBPkOGguSSo53p+NDcB0P0uKkQOGqybu2o7rouY=; b=YNEWph8s/qTTuEy/tfgDALPnGs/NFX5AELF1ibJ1ZAx2Xgi9GnYI+OOl/9rsqJnEK3 bMJJsgnQrsQHQimJMi478mp0X/LlimQ0iSs6YRxBUxTt+tD8qNOfNLiMmw02Pba5BO6q zWQ+KQyVYcO16V2xdIgkBsNj3p02SfCkx3SAU= 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=nEiKHBPkOGguSSo53p+NDcB0P0uKkQOGqybu2o7rouY=; b=YlmH8ERqcmeG1l3ueZH8Wagwpay/ISLNBIgYEWuR2PLW9olcXqU/230mVBjmXRbCCw 0QOW8f7YnnEbZSbQw56ORZmq7GbPGUi3sqnCAKqzzXsxgj0J68xrEpujikbUzwS+baVJ gYan6VWeMTTSEXBJFmlAnPNuYIDWlJKSDeyvMdzplglIJCDb3B5pT4abhAX49s5z4/Vj vtGratVBDJAJVM39eqqogqg6/Rxc9FnmBQlwvsM1+aPkG+KilRmTdpmwweK8cGCA1hXH E98XnQb3R5TQlOb7O/YE7mU2AMB+HWD6XnVI/kqoGHEnATEiQprPN2SlN5VNBJfaLns4 NNJg== X-Gm-Message-State: AIkVDXJ483TAsn5tg+0WqnfE/4urW6ytfxagPdgHoikYH3vwxeVI+ZBsGxY5vVaimTd/vpM5 X-Received: by 10.84.196.164 with SMTP id l33mr12155249pld.150.1484129671387; Wed, 11 Jan 2017 02:14:31 -0800 (PST) Received: from localhost.localdomain ([104.237.91.89]) by smtp.gmail.com with ESMTPSA id o24sm12360823pfj.78.2017.01.11.02.14.24 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 11 Jan 2017 02:14:30 -0800 (PST) From: Baoyou Xie To: rui.zhang@intel.com, edubezval@gmail.com, robh+dt@kernel.org, mark.rutland@arm.com, jun.nie@linaro.org Cc: linux-pm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, shawnguo@kernel.org, baoyou.xie@linaro.org, xie.baoyou@zte.com.cn, chen.chaokai@zte.com.cn, wang.qiang01@zte.com.cn Subject: [PATCH v2 1/3] dt: bindings: add documentation for zx2967 family thermal sensor Date: Wed, 11 Jan 2017 18:14:09 +0800 Message-Id: <1484129651-17531-1-git-send-email-baoyou.xie@linaro.org> X-Mailer: git-send-email 2.7.4 Sender: linux-pm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP This patch adds dt-binding documentation for zx2967 family thermal sensor. Signed-off-by: Baoyou Xie Reviewed-by: Shawn Guo --- .../devicetree/bindings/thermal/zx2967-thermal.txt | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 Documentation/devicetree/bindings/thermal/zx2967-thermal.txt diff --git a/Documentation/devicetree/bindings/thermal/zx2967-thermal.txt b/Documentation/devicetree/bindings/thermal/zx2967-thermal.txt new file mode 100644 index 0000000..86f941c --- /dev/null +++ b/Documentation/devicetree/bindings/thermal/zx2967-thermal.txt @@ -0,0 +1,21 @@ +* ZTE zx2967 family Thermal + +Required Properties: +- compatible: should be one of the following. + * zte,zx296718-thermal +- reg: physical base address of the controller and length of memory mapped + region. +- clocks : Pairs of phandle and specifier referencing the controller's clocks. +- clock-names: "gate" for the topcrm clock. + "pclk" for the apb clock. +- #thermal-sensor-cells: must be 0. + +Example: + + tempsensor: tempsensor@148a000 { + compatible = "zte,zx296718-thermal"; + reg = <0x0148a000 0x20>; + clocks = <&topcrm TEMPSENSOR_GATE>, <&audiocrm AUDIO_TS_PCLK>; + clock-names = "gate", "pclk"; + #thermal-sensor-cells = <0>; + };