From: Mark Rutland <mark.rutland@arm.com>
To: kongxinwei <kong.kongxinwei@hisilicon.com>
Cc: "rui.zhuang@intel.com" <rui.zhuang@intel.com>,
"edubezval@gmail.com" <edubezval@gmail.com>,
"linux-pm@vger.kernel.org" <linux-pm@vger.kernel.org>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
"linux-arm-kernel@lists.infradead.org"
<linux-arm-kernel@lists.infradead.org>,
"linuxarm@huawei.com" <linuxarm@huawei.com>,
"devicetree@vger.kernel.org" <devicetree@vger.kernel.org>,
"liguozhu@hisilicon.com" <liguozhu@hisilicon.com>,
"xuwei5@hisilicon.com" <xuwei5@hisilicon.com>
Subject: Re: [PATCH 3/3] dt-bindings: Document the hi6220 thermal sensor bindings
Date: Thu, 19 Mar 2015 14:08:29 +0000 [thread overview]
Message-ID: <20150319140829.GA25967@leverpostej> (raw)
In-Reply-To: <1426751849-10604-4-git-send-email-kong.kongxinwei@hisilicon.com>
On Thu, Mar 19, 2015 at 07:57:29AM +0000, kongxinwei wrote:
> This adds documentation of device tree bindings for the
> thermal sensor controller of hi6220 SoC.
Please place the patches adding binding docs _before_ any patcheds
introducing code or dts files using them.
>
> Signed-off-by: Leo Yan <leo.yan@linaro.org>
> Signed-off-by: kongxinwei <kong.kongxinwei@hisilicon.com>
> ---
> .../bindings/thermal/hisilicon-thermal.txt | 51 ++++++++++++++++++++++
> 1 file changed, 51 insertions(+)
> create mode 100644 Documentation/devicetree/bindings/thermal/hisilicon-thermal.txt
>
> diff --git a/Documentation/devicetree/bindings/thermal/hisilicon-thermal.txt b/Documentation/devicetree/bindings/thermal/hisilicon-thermal.txt
> new file mode 100644
> index 0000000..b75c48e
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/thermal/hisilicon-thermal.txt
> @@ -0,0 +1,51 @@
> +* Hisilicon Thermal
> +
> +This driver is for hi6220 SoC which contain 4 thermal sensor.
> +
> + 1. sensor 0: local sensor;
> + 2. sensor 1: remote sensor for ACPU cluster 1;
> + 3. sensor 2: remote sensor for ACPU cluster 2;
> + 4. sensor 3: remote sensor for GPU.
> +
> +Every sensor use one child node to represent it, so thermal sensor include
> +parent node and four child node. The parent node describe common feature and
> +child node describe private feature for thermal sensor;
> +
> +** Required properties :
> +
> +- compatible : "hisilicon,tsensor";
> +- reg : address range of the thermal sensor registers;
Is there jsut the one block?
> +- interrupt : Standard way to define interrupt numbr;
Describe what the interrupt logically is from the PoV of this device. We
all know what an interrupt is in abstract.
> +- clock-names : Should be "thermal_clk".
What is the clock input actually called on the data sheet?
Is this the only clock input?
No regulators or other inputs we need to describe?
> + See: Documentation/devicetree/bindings/resource-names.txt;
Drop this, it's irrelevant.
> +- clocks : Phandle of the clock used by the thermal sensor.
Define this in terms of clock-names.
> + See: Documentation/devicetree/bindings/clock/clock-bindingm.txt
Drop this. This is pointless, exepcially given the typo.
> +- #thermal-sensor-cells : Should be 1. See ./thermal.txt for a description;
Define what the permitted values are. This is useless as-is.
> +
> +** Required properties for child nodes :
> +
> +- hisilicon,tsensor-id : the index of thermal senor;
As with #thermal-sensor-cells, this description is incomplete.
> +- hisilicon,tsensor-thres-temp : the interrupt threshold temperature of
> + thermal senor;
> +- hisilicon,tsensor-reset-temp : the reset temperature of the hardware SoC;
NAK. These do not belong on the sensor.
> +- hisilicon,tsensor-bind-irq : systerm interrupt binding thermal sensor;
NAK. I've tried a few times, but I still can't figure out what this is
intended to mean. I don't see what this could possibly mean that would
be reasonable to describe.
Mark.
> +
> +Example :
> +
> + tsensor: tsensor@0,f7030700 {
> + compatible = "hisilicon,tsensor";
> + reg = <0x0 0xf7030700 0x0 0x1000>;
> + interrupts = <0 7 0x4>;
> + clocks = <&clock_sys HI6220_TSENSOR_CLK>;
> + clock-names = "thermal_clk";
> + #thermal-sensor-cells = <1>;
> +
> + local_sensor {
> + hisilicon,tsensor-id = <0>;
> + hisilicon,tsensor-lag-value = <10>;
> + hisilicon,tsensor-thres-temp = <35000>;
> + hisilicon,tsensor-reset-temp = <100000>;
> + hisilicon,tsensor-bind-irq;
> + }
> + .......
> + }
> --
> 1.9.1
>
>
> --
> To unsubscribe from this list: send the line "unsubscribe devicetree" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
>
next prev parent reply other threads:[~2015-03-19 14:08 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-03-19 7:57 [PATCH 0/3] 96boards: add thermal senor support to hikey board kongxinwei
2015-03-19 7:57 ` [PATCH 1/3] thermal: hisilicon: add new hisilicon thermal sensor driver kongxinwei
2015-03-19 14:17 ` Mark Rutland
2015-03-20 6:06 ` Leo Yan
2015-03-20 11:24 ` Mark Rutland
2015-03-20 14:53 ` Leo Yan
2015-03-20 15:55 ` Mark Rutland
2015-03-23 4:46 ` Leo Yan
2015-03-23 8:30 ` kongxinwei
2015-03-20 15:27 ` Xinwei Kong
2015-03-20 7:37 ` kongxinwei
2015-03-19 7:57 ` [PATCH 2/3] dts: hi6220: enable thermal sensor for hisilicon SoC kongxinwei
2015-03-19 7:57 ` [PATCH 3/3] dt-bindings: Document the hi6220 thermal sensor bindings kongxinwei
2015-03-19 14:08 ` Mark Rutland [this message]
2015-03-19 13:59 ` [PATCH 0/3] 96boards: add thermal senor support to hikey board Mark Rutland
2015-03-20 3:10 ` kongxinwei
2015-03-20 6:13 ` Leo Yan
2015-03-20 7:41 ` kongxinwei
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20150319140829.GA25967@leverpostej \
--to=mark.rutland@arm.com \
--cc=devicetree@vger.kernel.org \
--cc=edubezval@gmail.com \
--cc=kong.kongxinwei@hisilicon.com \
--cc=liguozhu@hisilicon.com \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-pm@vger.kernel.org \
--cc=linuxarm@huawei.com \
--cc=rui.zhuang@intel.com \
--cc=xuwei5@hisilicon.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).