Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751680AbbKNTgA (ORCPT ); Sat, 14 Nov 2015 14:36:00 -0500 Received: from mail-wm0-f68.google.com ([74.125.82.68]:35353 "EHLO mail-wm0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751107AbbKNTf5 (ORCPT ); Sat, 14 Nov 2015 14:35:57 -0500 MIME-Version: 1.0 In-Reply-To: <20151112172658.GA27337@rob-hp-laptop> References: <1445891057-1554-1-git-send-email-const@makelinux.com> <20151112172658.GA27337@rob-hp-laptop> Date: Sat, 14 Nov 2015 21:35:55 +0200 X-Google-Sender-Auth: E-tniIb144ka8d-5EXMmvWh_jGw Message-ID: Subject: Re: [PATCH v8] Documentation: add Device tree bindings for hwmon/nct7802 From: Constantine Shulyupin To: Rob Herring Cc: "linux-kernel@vger.kernel.org" , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , lm-sensors@lm-sensors.org, Arnd Bergmann , Jean Delvare , Guenter Roeck , Pawel Moll , Mark Rutland , Ian Campbell , Kumar Gala Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2129 Lines: 73 On Thu, Nov 12, 2015 at 7:26 PM, Rob Herring wrote: > On Mon, Oct 26, 2015 at 10:24:17PM +0200, Constantine Shulyupin wrote: >> From: Constantine Shulyupin >> +Optional subnodes: >> + >> +Sensor subnodes properties: >> + - "compatible", allowed values: >> + - "nuvoton,nct7802" > > This should have -sensor appended? Right. >> + - "sensor-type", allowed values: >> + "thermal-diode" >> + "thermistor" >> + "voltage" >> + "local" >> + "vcore" >> + "vcc" > > These are different connections to the same h/w block in the chip? If > so, then this is fine. If the h/w blocks are different, then it would be > better to go back to different compatible strings. "thermal-diode", "thermistor", "voltage", "local" - is one H/W block (7.2.32 Mode Selection Register, 22h) One of above "local" - is single input, enables by one bit EnLTD "vcore", "vcc" - another H/W block (7.2.35 Voltage Monitor Enable Register, 25h), each of them is different input. I'll divide them in the next patch. > >> +For sensors of types "thermal-diode", "thermistor" and "voltage" required >> + - "reg": index in range 0 .. 2 >> + >> +Except sensor at address 2 can't be "thermal-diode". >> + >> +Fan subnode: >> + >> +Required properties: >> + - "reg" :index of in range 0 .. 2. > > What does the numbering correspond to in the h/w? The numberring corresponds to the three different temperature/voltage inputs (RTD1_MD, RTD2_MD, RTD3_MD) and three different fans (EnFan1, EnFan2, EnFan3, EnDCFAN*, etc) >> + vcc { >> + compatible = "nuvoton,nct7802-sensor"; >> + sensor-type = "vcc"; > > No unit address? > >> + }; >> + vcore { >> + compatible = "nuvoton,nct7802-sensor"; >> + sensor-type = "vcore"; >> + }; There is only one vcc anv vcore input. -- Thanks Constantine -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/