From patchwork Sat Jan 7 05:38:06 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Baoyou Xie X-Patchwork-Id: 9502831 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 AB6CE606B4 for ; Sat, 7 Jan 2017 05:39:09 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 9C13128068 for ; Sat, 7 Jan 2017 05:39:09 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 9006C28391; Sat, 7 Jan 2017 05:39:09 +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=-4.1 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_MED,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 6709428068 for ; Sat, 7 Jan 2017 05:39:08 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1cPjia-0005j0-Mo; Sat, 07 Jan 2017 05:39:04 +0000 Received: from mail-pf0-x233.google.com ([2607:f8b0:400e:c00::233]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1cPjiV-0005YX-P3 for linux-arm-kernel@lists.infradead.org; Sat, 07 Jan 2017 05:39:02 +0000 Received: by mail-pf0-x233.google.com with SMTP id d2so98128761pfd.0 for ; Fri, 06 Jan 2017 21:38:37 -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=XfZ876Xyr3KTjlR8eNhxTZ6ZXlff6ZgmMtQJkSYeesY=; b=fjPPrM9G9NIPnxPRWsrTC0AoUV41QV2VREa3+H+PFnaFY3qVIcGsEbqIRXGGU3A9Js 3BAsooPS8EHPk6AJ4TlSrcWywP0wTNNbJOgHnDkWFdtj9WLgQL8/3yOeCqpYgA80CcWE r3DNRdT5bLRHgkhWbPQAw3UdHxnk/+Q1+uVWQ= 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=XfZ876Xyr3KTjlR8eNhxTZ6ZXlff6ZgmMtQJkSYeesY=; b=b747Cl74TuturZHJxXso4Rl8UjsgzCOwnetYjye99xggyeIX6jBR1xDa9mcV2D/Dsb 58g9LJq7pDWx5VJa0nEA6TS+eOfdnzLpHURwFKWjOg3YnjnR4oj/QU8FS89eSHzNmkj2 a/I+ID4G8sr9KioJes6N4VZttHg4tjtkrdNe7XN/+KVQy3e/ixeflUjoCDSJpPIk5c5p YpHXSRQQxgRB7vZf/hi5cTU6eEXhZRJ5wpZ2Tp4sTybStfko/wEB9bwxVvA2euuQKic4 zp9w788r/Z902jTDqtRf3NzbBv/pTUWNLSGEMioAozinW2/QjzqwIdlospWyHdD7CkJ/ RJKg== X-Gm-Message-State: AIkVDXIfa1BK1MhjfXjRscUoG6u328gsiPmj6gqbjxjOAEL7hcWhq5Igyhoer34O7+noejdO X-Received: by 10.99.189.26 with SMTP id a26mr146733670pgf.67.1483767517363; Fri, 06 Jan 2017 21:38:37 -0800 (PST) Received: from localhost.localdomain ([104.237.91.53]) by smtp.gmail.com with ESMTPSA id r21sm20159514pfd.95.2017.01.06.21.38.24 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 06 Jan 2017 21:38:36 -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, gregkh@linuxfoundation.org, davem@davemloft.net, geert+renesas@glider.be, akpm@linux-foundation.org, mchehab@kernel.org, linux@roeck-us.net Subject: [PATCH v1 1/3] dt: bindings: add thermal device driver for zx2967 Date: Sat, 7 Jan 2017 13:38:06 +0800 Message-Id: <1483767488-19778-1-git-send-email-baoyou.xie@linaro.org> X-Mailer: git-send-email 2.7.4 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170106_213859_850876_E8578BC0 X-CRM114-Status: GOOD ( 11.54 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, linux-pm@vger.kernel.org, xie.baoyou@zte.com.cn, linux-kernel@vger.kernel.org, chen.chaokai@zte.com.cn, wang.qiang01@zte.com.cn, baoyou.xie@linaro.org, shawnguo@kernel.org, linux-arm-kernel@lists.infradead.org MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP This patch adds dt-binding documentation for zx2967 family thermal sensor. Signed-off-by: Baoyou Xie Acked-by: Rob Herring --- .../devicetree/bindings/thermal/zx2967-thermal.txt | 22 ++++++++++++++++++++++ 1 file changed, 22 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..2633964 --- /dev/null +++ b/Documentation/devicetree/bindings/thermal/zx2967-thermal.txt @@ -0,0 +1,22 @@ +* ZTE zx2967 family Thermal + +Required Properties: +- compatible: should be one of the following. + * zte,zx2967-thermal + * 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: "tempsensor_gate" for the topcrm clock. + "tempsensor_pclk" for the apb clock. +- #thermal-sensor-cells: must be 0. + +Example: + + tempsensor: tempsensor@148a000 { + compatible = "zte,zx2967-thermal"; + reg = <0x0148a000 0x20>; + clocks = <&topcrm TEMPSENSOR_GATE>, <&audiocrm AUDIO_TS_PCLK>; + clock-names = "tempsensor_gate", "tempsensor_pclk"; + #thermal-sensor-cells = <0>; + };