Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp2223133ybl; Thu, 9 Jan 2020 08:57:03 -0800 (PST) X-Google-Smtp-Source: APXvYqwQ4chyIVz/ZPLRgXunwuHuonsc4ZCNMKawXL7XzPA5xoMl3fjk1kcSkPyyTTFwf1weibBH X-Received: by 2002:a05:6808:907:: with SMTP id w7mr3885134oih.137.1578589023498; Thu, 09 Jan 2020 08:57:03 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1578589023; cv=none; d=google.com; s=arc-20160816; b=UCAbxeWWeQCZ5JjWW4I5rg+5jBwnXBEe3nBbpFqqOqt9NynrbRzlhpivqzw5o86FkF UhWjKyDCKPnKiveKTf9KkI2tSdUkWTsXdgnLhUoeYXNWkfCOrieP6/Brxa7/9Z5hapQa XJ8oGs+tXhofJ+P5C6js4nXw41YRBJkyoEvvPvPpaBzqaDNU5qJ9PcmCx6ozPMu+hXQn Uk4hyNsk50CBe7dOgbhwpFZuLJd87wJwAg9ClBk4UguEgZDP+9vsltoI9nxr0Zfu4/Ne KCS5wnNY1QDEACkpW5Op5YjOnxmIO7L9FkvzKLZOTFLTDCKs+WYWJB9O8WmVd56VPttQ 2AnA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=i4WlGl2APfpv2lRrFN39WYIWl+QrT3wDSJtharCyfCg=; b=Qazep8J6qpAyZ6nJYRpfyXJl5EsqrIL9draEMWm98469LZNg0Cyc8uWJpQGtPVP3lG Jk/neTBOs3p1xUhrGJjDdX3GIgCtKI7cHj2ex4TFI7kRku6Bu5z9SugRuFK1MnHNzZih kGVbdvvHvfBWXCE3F+MJw2BNs/vyv6Bi58NsskMAPlAns+8+uDjyEsBaWkDKXMO0wVbD F8AKLeSY5QAr4Hw7t8dkuwhT0nfuYPrDFXsphPvrYaDDuNFdlZwscPtfEFLoyMHCYue+ P7Y3a/oVAQuWj4p8sdCuDH1Ym1KLjjAvkB77PakzeFOiXQ+Z1BE11HfB+ZLHMcm5TkOJ JirQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@monstr-eu.20150623.gappssmtp.com header.s=20150623 header.b=XOd9sP1T; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h128si3894421oif.258.2020.01.09.08.56.50; Thu, 09 Jan 2020 08:57:03 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@monstr-eu.20150623.gappssmtp.com header.s=20150623 header.b=XOd9sP1T; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731450AbgAIOCk (ORCPT + 99 others); Thu, 9 Jan 2020 09:02:40 -0500 Received: from mail-wm1-f67.google.com ([209.85.128.67]:52779 "EHLO mail-wm1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731415AbgAIOCj (ORCPT ); Thu, 9 Jan 2020 09:02:39 -0500 Received: by mail-wm1-f67.google.com with SMTP id p9so3055164wmc.2 for ; Thu, 09 Jan 2020 06:02:38 -0800 (PST) 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:in-reply-to:references :mime-version:content-transfer-encoding; bh=i4WlGl2APfpv2lRrFN39WYIWl+QrT3wDSJtharCyfCg=; b=XOd9sP1TVktE8HKqQnu820uW9CLDKpXDc2oLvP44cMRM1nVI9dp/EfqStuDVL0IaOK 2GUgfxZa7fXsM7IVB86GRA6c41WAZMuz110w9wE5mJyVcPgPp+LJjM5ljrczxbmqSqGF wLmAQsZvC1Cfihj7Sl8c8yBFck1sfS1QNIZgw3x5VWZtRGy1dLctuWBu0RcXMFmyHSE3 8WrSmubYKBptazOrGeObwN71AAJURhXhKaf+13ZyoIfKI8/EdQENUhpU2gTej7A1gGDv wCEr5rPovhdtEomoiruOvOlacyPmscFE39UEnRJMsVv+HOb/AKi8jrk+fuKxaB7ITv/5 i6PQ== 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 :in-reply-to:references:mime-version:content-transfer-encoding; bh=i4WlGl2APfpv2lRrFN39WYIWl+QrT3wDSJtharCyfCg=; b=hP3ew8Txkn7lwD6JdPDLj5wt37vYWjZUY4bQIfaT5rJKUOiVH42B9Af2uDnrY8bzhL 4zhmotJTFfad9TXE7jO9mg/zl2PD0Znas3Gvykc515R4Fu+IxHSHQafjiCLr9yJev1Vk MXLAEFu8faJVUbSZkYTOTHbpfRKUlDyiklgGVm9BrjaleGWCMjJkq4+NxZQMyTMJhFht 7uvT9azsTvUs3AGkik4+OJ7jrsLVELQU+pgimHivq8mMPoRIC6wrzEk68P8bMx9vUonV MeuDP+JbCgSjPinZiG+YthM8qCHRxVaRlCVFA4rdFLr6GJDvxDzvd3rV3hZz2Mp2f8b+ 0gMw== X-Gm-Message-State: APjAAAVbUOhXk3MqcwmeKNj+XYc/nQclNOG6JUJlS8HLiCuxCN+xa6w1 2CS/3T5stzEyb4Izt77THTShJg== X-Received: by 2002:a1c:1bc3:: with SMTP id b186mr5092722wmb.79.1578578545543; Thu, 09 Jan 2020 06:02:25 -0800 (PST) Received: from localhost (nat-35.starnet.cz. [178.255.168.35]) by smtp.gmail.com with ESMTPSA id x17sm7971846wrt.74.2020.01.09.06.02.24 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 09 Jan 2020 06:02:24 -0800 (PST) From: Michal Simek To: linux-arm-kernel@lists.infradead.org, git@xilinx.com Cc: Anurag Kumar Vulisha , Jan Kiszka , Mark Rutland , Rajan Vaja , Rob Herring , Ulf Hansson , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 1/7] arm64: zynqmp: Enable iio-hwmon for ina226 on zcu100 Date: Thu, 9 Jan 2020 15:02:15 +0100 Message-Id: <3697b726f12df89d6fc222b64672f8fc3779ec3c.1578578535.git.michal.simek@xilinx.com> X-Mailer: git-send-email 2.24.0 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org ina226 hwmon driver is deprecated and it is recommended to use new iio based driver. The patch is enabling iio-hwmon driver to export functionality from IIO to hwmon interface to be able to use lm-sensors package. Signed-off-by: Michal Simek --- arch/arm64/boot/dts/xilinx/zynqmp-zcu100-revC.dts | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/xilinx/zynqmp-zcu100-revC.dts b/arch/arm64/boot/dts/xilinx/zynqmp-zcu100-revC.dts index a109e82982ae..d60110ad8367 100644 --- a/arch/arm64/boot/dts/xilinx/zynqmp-zcu100-revC.dts +++ b/arch/arm64/boot/dts/xilinx/zynqmp-zcu100-revC.dts @@ -103,6 +103,11 @@ sdio_pwrseq: sdio-pwrseq { reset-gpios = <&gpio 7 GPIO_ACTIVE_LOW>; /* WIFI_EN */ post-power-on-delay-ms = <10>; }; + + ina226 { + compatible = "iio-hwmon"; + io-channels = <&u35 0>, <&u35 1>, <&u35 2>, <&u35 3>; + }; }; &dcc { @@ -191,8 +196,9 @@ i2csw_5: i2c@5 { #size-cells = <0>; reg = <5>; /* PS_PMBUS */ - ina226@40 { /* u35 */ + u35: ina226@40 { /* u35 */ compatible = "ti,ina226"; + #io-channel-cells = <1>; reg = <0x40>; shunt-resistor = <10000>; /* MIO31 is alert which should be routed to PMUFW */ -- 2.24.0