From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752310AbbH3W0m (ORCPT ); Sun, 30 Aug 2015 18:26:42 -0400 Received: from gproxy4-pub.mail.unifiedlayer.com ([69.89.23.142]:42079 "HELO gproxy4-pub.mail.unifiedlayer.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with SMTP id S1752111AbbH3W0k (ORCPT ); Sun, 30 Aug 2015 18:26:40 -0400 X-Authority-Analysis: v=2.1 cv=EbVbHpWC c=1 sm=1 tr=0 a=J7Q474dc+DFtUK1fo70nSg==:117 a=J7Q474dc+DFtUK1fo70nSg==:17 a=cNaOj0WVAAAA:8 a=f5113yIGAAAA:8 a=dSbym95GAAAA:8 a=YvBuOYWDVJoA:10 a=VJ0b_aXEUkMA:10 a=uRRa74qj2VoA:10 a=VkWeuDx0gvPvhHeqxrQA:9 a=NNjqjhNB3Ddkbe7A:21 a=2lLFdk7sqtWGBTK7:21 From: Constantine Shulyupin To: Rob Herring , Pawel Moll , Mark Rutland , Ian Campbell , Kumar Gala , Constantine Shulyupin , devicetree@vger.kernel.org (open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS), linux-kernel@vger.kernel.org (open list) Cc: linux@roeck-us.net Subject: [PATCH v1] Documentation: add Device tree bindings for hwmon/nct7802 Date: Mon, 31 Aug 2015 01:15:49 +0300 Message-Id: <1440973572-19571-1-git-send-email-const@MakeLinux.com> X-Mailer: git-send-email 1.9.1 X-Identified-User: {1470:box668.bluehost.com:makelinu:makelinux.com} {sentby:smtp auth 84.228.4.133 authed with const@makelinux.com} Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org reg-init implementation is borowerd from broadcom,c45-reg-init and marvell,reg-init. Signed-off-by: Constantine Shulyupin --- --- .../devicetree/bindings/hwmon/nct7802.txt | 27 ++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 Documentation/devicetree/bindings/hwmon/nct7802.txt diff --git a/Documentation/devicetree/bindings/hwmon/nct7802.txt b/Documentation/devicetree/bindings/hwmon/nct7802.txt new file mode 100644 index 0000000..fa83628 --- /dev/null +++ b/Documentation/devicetree/bindings/hwmon/nct7802.txt @@ -0,0 +1,27 @@ +Nuvoton NCT7802Y Hardware Monitoring IC + +Required node properties: + + - "compatible": must be "nuvoton,nct7802" + - "reg": I2C bus address of the device + +Optional properties: + +Numeric registors initialiaztion: + +- nct7802,reg-init : one of more sets of 4 cells. The first cell + is the page address, the second a register address within the page, + the third cell contains a mask to be ANDed with the existing register + value, and the fourth cell is ORed with the result to yield the + new register value. If the third cell has a value of zero, + no read 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 +}; -- 1.9.1