From patchwork Thu Nov 2 06:36:48 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lei YU X-Patchwork-Id: 10037969 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 0274E60291 for ; Thu, 2 Nov 2017 06:37:16 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id DF79628DE0 for ; Thu, 2 Nov 2017 06:37:15 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id D187C28DF5; Thu, 2 Nov 2017 06:37:15 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.3 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RCVD_IN_SORBS_SPAM, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B7D0528DE0 for ; Thu, 2 Nov 2017 06:37:14 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1750836AbdKBGhO (ORCPT ); Thu, 2 Nov 2017 02:37:14 -0400 Received: from mail-pf0-f195.google.com ([209.85.192.195]:57114 "EHLO mail-pf0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750753AbdKBGhN (ORCPT ); Thu, 2 Nov 2017 02:37:13 -0400 Received: by mail-pf0-f195.google.com with SMTP id b85so3852664pfj.13; Wed, 01 Nov 2017 23:37:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=araWV95YPpiOxbz/EeMK6RjBn7fneA41eTTubTw6jnU=; b=pr1jJ56oio4N+OheLbX2DJuCdm3azjH+Waif3dWAEUiGo5frzhmkT4ydliWXXnpa6N udVc7zCmFtDlrEq9H8Bj2mPmSusVBwgLLl3n/s31rxUjKIfkPq2U7A16LcJadnYeGtPE P9iBZGS72lmMG3B9Uo8SkJ98V1/B5xqlG8cmSRk6Ai6GDdI9y2+RhmK8nLvUTnglFRNa /A39O3nzqgxTeOotfSs67eUdtkf+wqLDyJtENM3+CHzoLcnGSzjHAHN0I3NYtmpQ7G7T 4Y3PQisAv7u0b7GoxV3viLuUCCc3S8mdvrjqHUE1C8pqYwka6r/LoKB1twBcEPnSFXVr jpHg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=araWV95YPpiOxbz/EeMK6RjBn7fneA41eTTubTw6jnU=; b=Q5uCB+uwXzP3sbyW5vE6x664rr7I+0Me6veP2jffIjaKbXHnZSgtTlZQ8Aux4g9QTB eo04j0RCEd9xXHImLw2FcmA1odmbK81fH5x/LhpagYTbZZ7ltMmJiZ7Kd5vr8gAGiaCH P55imEatk7pQRKkDOsUjhiRNt2hCmsbC6Y1pnovkmoqXXibLNXl9aaSIZcKxMTykqlxw pSq7YnYpN0tkV9tsVcFljHebxODCnL0JGsqwISabo35t5XH+4pIYu3+y2xUHSvAFUoBo N9OW5MUy7v51Mo9ELR/Qdf7cRMVdy7QxeZHEDbrN3hUKHliq3J9Ny5gmfXfYX/MGy9Gn m/4w== X-Gm-Message-State: AMCzsaXVmrWIVK/3HaHHpLFBsl+wZZJEbfwh++CGCnZZgylD9MRnrvax O0Lk3A3juhEwgiIPf/AI2MY= X-Google-Smtp-Source: ABhQp+QhMTh8zUagMdDz67U0xuVfBvhcSyqa1sAJjH8squdOG+Hx8OjQ4sHexat8wfGKnm/NJVn3yg== X-Received: by 10.159.255.5 with SMTP id bi5mr1478092plb.217.1509604633152; Wed, 01 Nov 2017 23:37:13 -0700 (PDT) Received: from localhost ([159.203.222.251]) by smtp.gmail.com with ESMTPSA id a7sm3568380pgt.39.2017.11.01.23.37.12 (version=TLS1_2 cipher=AES128-SHA bits=128/128); Wed, 01 Nov 2017 23:37:12 -0700 (PDT) From: Lei YU To: Jean Delvare , Guenter Roeck Cc: Lei YU , linux-kernel@vger.kernel.org, linux-hwmon@vger.kernel.org, Joel Stanley , Andrew Jeffery Subject: [PATCH 2/2] hwmon: (w83773g) Add documentation Date: Thu, 2 Nov 2017 14:36:48 +0800 Message-Id: <1509604608-20049-1-git-send-email-mine260309@gmail.com> X-Mailer: git-send-email 1.9.1 Sender: linux-hwmon-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-hwmon@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Add documentation for the w83773g driver. Signed-off-by: Lei YU --- Documentation/hwmon/w83773g | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 Documentation/hwmon/w83773g diff --git a/Documentation/hwmon/w83773g b/Documentation/hwmon/w83773g new file mode 100644 index 0000000..da28731 --- /dev/null +++ b/Documentation/hwmon/w83773g @@ -0,0 +1,28 @@ +Kernel driver w83773g +==================== + +Supported chips: + * Nuvoton W83773G + Prefix: 'w83773g' + Addresses scanned: I2C 0x4c and 0x4d + Datasheet: https://www.nuvoton.com/resource-files/W83773G_SG_DatasheetV1_2.pdf + +Authors: + Lei YU + +Description +----------- + +This driver implements support for Nuvoton W83773G temperature sensor +chip. This chip implements one local and two remote sensors. +Temperature is measured in degrees Celsius. +The chip is wired over I2C/SMBus and specified over a temperature +range of -40 to +125 degrees Celsius (for local sensor) and -40 to +127 +degrees Celsius (for remote sensors). +Resolution for both the local and remote channels is 0.125 degree C. + +The chip supports only temperature measurement. The driver exports +the temperature values via the following sysfs files: + +temp[1-3]_input +temp[2-3]_fault