From patchwork Tue Sep 25 22:59:28 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nicolin Chen X-Patchwork-Id: 10614915 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id C3DCE913 for ; Tue, 25 Sep 2018 23:00:09 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B73632AE36 for ; Tue, 25 Sep 2018 23:00:09 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id AB9662AE3D; Tue, 25 Sep 2018 23:00:09 +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=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI 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 5D0772AE37 for ; Tue, 25 Sep 2018 23:00:09 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726104AbeIZFJl (ORCPT ); Wed, 26 Sep 2018 01:09:41 -0400 Received: from mail-pg1-f195.google.com ([209.85.215.195]:37087 "EHLO mail-pg1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725999AbeIZFJl (ORCPT ); Wed, 26 Sep 2018 01:09:41 -0400 Received: by mail-pg1-f195.google.com with SMTP id c10-v6so5644789pgq.4; Tue, 25 Sep 2018 15:59:51 -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=k6MM5l3O6/jSpLZtmDL2tdeUufk2+IOqsfl0XXbFTdA=; b=fJjsU2rVW9yksyqUn/6fR6CVaMB1HAHPOCAS76T6IHJXmJeYkaccPtP4Fb3Y81XXCd tOmtCZsdcwQuaE0vqUISWuFU8l9vms3gjlyWuMQKHjOXcc3/hFi3lFXQutqpsaqCPqtE fbpAszaW7OdJ/gW0b9Crjf80pCozFIW/hgI8wb2Qy9AmOUnR0jXOo4C8loqezP4iIiWy kNFv6/0H+0w7Kyx5FnjVc8lnkGsGc99O0W2srQDKuRwUs1gF4tXrhoYLekbVlVI8lYYX 9u9oN+Wgc+xpE7eoa1Y8Eki4+wtsjUQExNnnS7aZf4uqiDCYZWyKrAkal8SUOvyNInlV Fgcg== 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=k6MM5l3O6/jSpLZtmDL2tdeUufk2+IOqsfl0XXbFTdA=; b=GvUTQlr4N2k1I3OjWVYoVnOiSG3NMd5Sot68ZBIQ7HtCBLak21CtgijUIG57tX2EPa Ae4pxnWjDwErfvv3FEsQ+gBtCbiIUbZ9JUY7NMiGLCRe41FmU7nmWwoYDhI1+BgqY5ig 3e+qHZuMpB2cnIxro2J6VynKjRZCpQbvqQhCs3bhpf0nHmcof5dMvnMgX89fpLsf18Ch sd8UxCuiFqRYcY02jamBq4u4JlyUG5BjNuirZKYaMl78TZFt+QL+1p/zGN/FZ3g8zCDa 84aLE7io7Qu7NPU1GYNOVRgu41VfkOSBY3xsre4IhHHR7ifwCHBnMEDdQVwscciURMkz z6vA== X-Gm-Message-State: ABuFfogncuJ/L8c4l6fqJO8ejkze12TkWVrfsD8WjPzGMahcxOsGmvA7 +TLob288CbY9w0Bwc98U0i8= X-Google-Smtp-Source: ACcGV63nKKtQ3t23Nvfa8alxWvsu8xeAUkIo5/nJJIrxStuDOKEK/jHErcTrtGy58V+neJM29AFe0g== X-Received: by 2002:a63:c608:: with SMTP id w8-v6mr3045693pgg.16.1537916390702; Tue, 25 Sep 2018 15:59:50 -0700 (PDT) Received: from Asurada-Nvidia.nvidia.com (thunderhill.nvidia.com. [216.228.112.22]) by smtp.gmail.com with ESMTPSA id n22-v6sm4652579pfi.185.2018.09.25.15.59.49 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 25 Sep 2018 15:59:50 -0700 (PDT) From: Nicolin Chen To: jdelvare@suse.com, linux@roeck-us.net, robh+dt@kernel.org, mark.rutland@arm.com, corbet@lwn.net Cc: afd@ti.com, linux-hwmon@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-doc@vger.kernel.org Subject: [PATCH v5 0/2] Add an initial DT binding doc for ina3221 Date: Tue, 25 Sep 2018 15:59:28 -0700 Message-Id: <20180925225930.31886-1-nicoleotsuka@gmail.com> X-Mailer: git-send-email 2.17.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 This series adds a initial DT binding doc for ina3221. It defines a child node to describe the input source of each ina3221 channel. Then it changes the driver to handle the information properly. Changelog v4->v5: * Changed two property names of child node (PATCH-1) * Changed the driver accordingly and simplified is_visible (PATCH-2) v3->v4: * Fixed one place in child DT node bindings (PATCH-1) * Changed the driver accordingly and added is_visible (PATCH-2) v2->v3: * Fixed two places in DT bindings (PATCH-1) v1->v2: * Redefined DT bindings (detail in PATCH-1) * Changed the driver code accordingly (detail in PATCH-2) Nicolin Chen (2): dt-bindings: hwmon: Add ina3221 documentation hwmon: ina3221: Read channel input source info from DT .../devicetree/bindings/hwmon/ina3221.txt | 49 ++++++ Documentation/hwmon/ina3221 | 1 + drivers/hwmon/ina3221.c | 161 ++++++++++++++++-- 3 files changed, 197 insertions(+), 14 deletions(-) create mode 100644 Documentation/devicetree/bindings/hwmon/ina3221.txt