From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.5 required=3.0 tests=DKIM_INVALID,DKIM_SIGNED, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS, USER_AGENT_GIT autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id D11EBC3A59D for ; Tue, 20 Aug 2019 14:11:50 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 9E5C0214DA for ; Tue, 20 Aug 2019 14:11:50 +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 S1730108AbfHTOLt (ORCPT ); Tue, 20 Aug 2019 10:11:49 -0400 Received: from mail-wm1-f45.google.com ([209.85.128.45]:55205 "EHLO mail-wm1-f45.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729965AbfHTOLt (ORCPT ); Tue, 20 Aug 2019 10:11:49 -0400 Received: by mail-wm1-f45.google.com with SMTP id p74so2758920wme.4 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=kgzY7SbxLN/1XQbUG/LWAhm7t9enKAQlLqFwMQJp1ONtdc9SKecBceN6vzHmAt6mVK G2fW6iTrKuphggBExSiJdWCIRXjG/89jj+UzgWlwEYo2zSaWqw8XXLkr+zojzUUq1tSK vwnTw4CsQRRRwCwDIWZEUd1m/NYPFtegZtQJP+lcOgAhgg6oO56lCAU8/dKRWyms4GZY /elFOxQkcVK17ieTIuMzh36ljgtxMxz0WgEQF6VU8tkoyxbeghN/je1MRkn3y6s2Sv9Z yhShI0eFapPZg7UdwCf2FjfAk7KFaPjon3o6mIM0UtWlXPT5bmswqJXpsASjNHEXCaww mgKg== X-Gm-Message-State: APjAAAWT+/1k+nbZC1eXbXjUXNzGTDj3U3rs+oqpRsdRhFM+hgmDS2E1 L0G91V1VTspY8AGGG2GcPFCwxqPPniOJrQ== 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=20Br=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-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@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(-) -- 2.17.1