Re: Please suggest proper format for DT properties.

2015-09-22 Thread Arnd Bergmann
On Tuesday 22 September 2015 08:08:25 Guenter Roeck wrote: > > I would strongly prefer Option 1 or 2 over option 3. > > Between 1 and 2, I'd probably go for 1. Another option might > > be to have a subnode per sensor: > > > > nct7802@2a { > > compatible = "nuvoton,nct7802"; > > re

Re: Please suggest proper format for DT properties.

2015-09-22 Thread Guenter Roeck
On 09/22/2015 01:36 AM, Arnd Bergmann wrote: On Saturday 19 September 2015 01:36:43 Constantine Shulyupin wrote: I am designing DT support for a hwmon chip. It has some sensors, each of them can be: - "disabled" - "thermal diode" - "thermistor" - "voltage" Four possible options for DT

Re: Please suggest proper format for DT properties.

2015-09-22 Thread Arnd Bergmann
On Saturday 19 September 2015 01:36:43 Constantine Shulyupin wrote: > > I am designing DT support for a hwmon chip. > It has some sensors, each of them can be: > - "disabled" > - "thermal diode" > - "thermistor" > - "voltage" > > Four possible options for DT properties format. > > Option 1:

Re: Please suggest proper format for DT properties.

2015-09-21 Thread Rob Herring
On Mon, Sep 21, 2015 at 2:24 PM, Constantine Shulyupin wrote: > On Mon, Sep 21, 2015 at 4:51 AM, Rob Herring wrote: >> On Fri, Sep 18, 2015 at 5:36 PM, Constantine Shulyupin >> wrote: >>> Hi, >>> >>> I am designing DT support for a hwmon chip. >>> It has some sensors, each of them can be: >>> -

Re: Please suggest proper format for DT properties.

2015-09-21 Thread Constantine Shulyupin
On Mon, Sep 21, 2015 at 4:51 AM, Rob Herring wrote: > On Fri, Sep 18, 2015 at 5:36 PM, Constantine Shulyupin > wrote: >> Hi, >> >> I am designing DT support for a hwmon chip. >> It has some sensors, each of them can be: >> - "disabled" >> - "thermal diode" >> - "thermistor" >> - "voltage" >>

Re: Please suggest proper format for DT properties.

2015-09-20 Thread Rob Herring
On Fri, Sep 18, 2015 at 5:36 PM, Constantine Shulyupin wrote: > Hi, > > I am designing DT support for a hwmon chip. > It has some sensors, each of them can be: > - "disabled" > - "thermal diode" > - "thermistor" > - "voltage" > > Four possible options for DT properties format. > > Option 1: Se

Please suggest proper format for DT properties.

2015-09-18 Thread Constantine Shulyupin
ad of the existing value is performed. Example nct7802 node: nct7802 { compatible = "nuvoton,nct7802"; reg = <0x2a>; nct7802,reg-init = <0 0x21 0 0x01 > // START = 1 <0 0x22 0x03 0x02>; // RTD1_MD = 2 }; Please suggest p