From patchwork Tue Aug 20 14:11:37 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michal Simek X-Patchwork-Id: 11103845 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id E5E3C184E for ; Tue, 20 Aug 2019 14:11:49 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id C46B2214DA for ; Tue, 20 Aug 2019 14:11:49 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=monstr-eu.20150623.gappssmtp.com header.i=@monstr-eu.20150623.gappssmtp.com header.b="Cs1pibJ1" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729762AbfHTOLt (ORCPT ); Tue, 20 Aug 2019 10:11:49 -0400 Received: from mail-wm1-f43.google.com ([209.85.128.43]:40332 "EHLO mail-wm1-f43.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729803AbfHTOLt (ORCPT ); Tue, 20 Aug 2019 10:11:49 -0400 Received: by mail-wm1-f43.google.com with SMTP id v19so2780576wmj.5 for ; Tue, 20 Aug 2019 07:11:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=monstr-eu.20150623.gappssmtp.com; s=20150623; h=sender:from:to:cc:subject:date:message-id; bh=LEqTLls42sbmI5VwKOm6X28Wqd3lNc1FuJ61+Mb/tX8=; b=Cs1pibJ1ZhNLrgABwvSomaLtVuOtZqECaToplmBgiSFFOyALHob2jmunT0LDP2rTLr 8xjyBUqopE2eXJdn2ardKgcbFEUxhOAELFlaikQyhvbAgG0ucDYMGZ4iADMDMSqDU+0O 3DrLOOguTT2aASkXqOvQzBmF3+MB8NoGMcF7sXLyiTh1vmNTV1OoUqjhx7oDQFt4yavz 1jAjzjETMvmWHa8jVtdHXC4xHalXdqlJQA6HMI/uasX0tSY9v7Vv1XeXCA6Iq/FR837h oWZxhnY6V6D1G2GuQJr03LBCC0QDFpnpnYnoN5VfYqEAX02jmT6Ql+PoQjWi1c0x652o 74Ng== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id; bh=LEqTLls42sbmI5VwKOm6X28Wqd3lNc1FuJ61+Mb/tX8=; b=b7X7OGB/UtLe7T1rW5UfkoUQbf04J57aUCkNjtOHKrRXd299B3SMVq47kHlVFyjV/v RBXDQVzsyrPMJXNXO/b8HJsJbmXhRH2k8dCB7VvYr9UefRv0LGwxJDCT35bXJRZO52nc wtEeaGWb17ry7+BXuBuzVfdbjAESgAzRS1eSsrsvREjX9j7Vp0pZKH4mhMMC9gZwD5oD CAFT3tbWdf+5rrXrJWtuMxtAO3UPgIB6zpp5Agan25ghdUDA+n16HWd256AKe0uRwDnl mfQO3U5dYvEwudvDxmKlcfvEqMf83kDO494k6hNSIHVCTnmZLuZOhWL7e+4Tk3niPSqI P7kw== X-Gm-Message-State: APjAAAUxrT7i+jpePJK7CUMtdxDH1W2FfAdZzRkxI2AKb/iGhC/hMtAi iQRC4U0YKe0aPWquDfmx4RoSeg== X-Google-Smtp-Source: APXvYqzNR58TVo7qQuCIjcdZQJaHL73fv9fbkxk4iC3wqq9XgsSdtNr1AIlJV9iaBdhgSN99G8bkHg== X-Received: by 2002:a1c:cfc6:: with SMTP id f189mr240811wmg.18.1566310306618; Tue, 20 Aug 2019 07:11:46 -0700 (PDT) Received: from localhost (nat-35.starnet.cz. [178.255.168.35]) by smtp.gmail.com with ESMTPSA id r123sm185142wme.7.2019.08.20.07.11.45 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 20 Aug 2019 07:11:45 -0700 (PDT) From: Michal Simek To: linux-kernel@vger.kernel.org, monstr@monstr.eu, michal.simek@xilinx.com, linux@roeck-us.net Cc: linux-hwmon@vger.kernel.org, devicetree@vger.kernel.org, Colin Ian King , linux-iio@vger.kernel.org, =?utf-8?q?Stefan_Br=C3=BCns?= , Rob Herring , Lars-Peter Clausen , Jean Delvare , Mark Rutland , Jonathan Cameron , Peter Meerwald-Stadler , Hartmut Knaack Subject: [PATCH 0/4] iio: adc: ina2xx: Improve device identification Date: Tue, 20 Aug 2019 16:11:37 +0200 Message-Id: X-Mailer: git-send-email 2.17.1 Sender: linux-iio-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-iio@vger.kernel.org Hi, the purpose of this series is to improve ina226 identification. On systems like Xilinx ZynqMP zcu102 (check dt in the tree) you can find out almost 20 ina226 chips and it is impossible to find out based on simple ina226 which chip is repsonsible for what. The series is adding two ways how to improve device identification. Please let me know what you think I am happy to do changes in it. Thanks, Michal Michal Simek (4): iio: adc: ina2xx: Define *device_node only once iio: adc: ina2xx: Setup better name then simple ina2xx dt-bindings: Add optional label property for ina2xx iio: adc: ina2xx: Use label proper for device identification .../devicetree/bindings/hwmon/ina2xx.txt | 2 ++ drivers/iio/adc/ina2xx-adc.c | 15 +++++++++++---- 2 files changed, 13 insertions(+), 4 deletions(-)