All of lore.kernel.org
 help / color / mirror / Atom feed
From: Guenter Roeck <linux@roeck-us.net>
To: lm-sensors@vger.kernel.org
Subject: Re: [lm-sensors] Parallella board temperature sensing
Date: Sat, 06 Jun 2015 15:05:40 +0000	[thread overview]
Message-ID: <55730C44.9060202@roeck-us.net> (raw)
In-Reply-To: <CAJ3iQcr8cSEB_vYYR2_0H-Am0wYstQvtfzHJcVgMsdcWzFn=VA@mail.gmail.com>

On 06/06/2015 08:01 AM, Guenter Roeck wrote:
> On 06/06/2015 07:51 AM, Gergely Imreh wrote:
>> Hi,
>>
>> I was checking out what would it take to support lm-sensors on the
>> Parallella board[1]. It's an interesting little board with a dual core
>> Xilinx ARM Cortex-A9, an FPGA, and a 16-core Epiphany co-processor.
>> It's Xilinx XADC sensor used for temperature/voltage sensing does not
>> seem to be anywhere on the lm-sensors supported device list. Currently
>> users seem to monitor it through reading the device data directly from
>> the /sys entries and doing the necessary scaling and conversion (as it
>> was discussed on the Parallella forums, bash script included[2])
>>
>> In a nutshell, the data is accessible through
>> /sys/bus/iio/devices/iio:device0/in_temp0_{raw,offset,scale} files.
>> There are also 8 voltage readings there that could be extracted.
>>
>
> If it is supported through iio, it should be possible use the iio->hwmon
> bridge.
>

Here is an example devicetree entry, used to configure a max1139 as
hwmon device.

		max1139: voltage-sensor@35 {
	                compatible = "maxim,max1139";
                         reg = <0x35>;
                         vcc-supply = <&reg_3p3v>;
                         vref-supply = <&reg_3p3v>;
                         #io-channel-cells = <1>;
                 };

...

	max1139@35 {
                 compatible = "iio-hwmon";

                 io-channels = <&max1139 0>, <&max1139 1>, <&max1139 2>,
                         <&max1139 3>, <&max1139 4>, <&max1139 5>,
                         <&max1139 6>, <&max1139 7>, <&max1139 8>,
                         <&max1139 9>, <&max1139 10>, <&max1139 11>;
         };

Guenter


_______________________________________________
lm-sensors mailing list
lm-sensors@lm-sensors.org
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors

  parent reply	other threads:[~2015-06-06 15:05 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-06-06 14:51 [lm-sensors] Parallella board temperature sensing Gergely Imreh
2015-06-06 15:01 ` Guenter Roeck
2015-06-06 15:05 ` Guenter Roeck [this message]
2015-06-06 15:28 ` Gergely Imreh
2015-06-06 16:55 ` Guenter Roeck
2015-06-07  5:44 ` Gergely Imreh

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=55730C44.9060202@roeck-us.net \
    --to=linux@roeck-us.net \
    --cc=lm-sensors@vger.kernel.org \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.