From patchwork Tue Sep 10 08:35:26 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Martyn Welch X-Patchwork-Id: 13798116 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id A918CECE582 for ; Tue, 10 Sep 2024 08:36:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Transfer-Encoding: MIME-Version:Message-ID:Date:Subject:Cc:To:From:Reply-To:Content-Type: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Owner; bh=0VwiM9nxxzmS+ePDHs5D4iy5/JOkHL4yMar6bNKC5+s=; b=i7RHZVdrEawfYejImamcseRUBR Wn7preD4GLx+MkPd0J0lm9G17kj9T+hnmI8tsQa53GaDP6PDBhQFF/Qs7M5uqpeEzn6TT6SFplI+r SUahvHGpCUN4nSIp0D371NL0wwVNQb3k+OitWrQ083ub6CkSk+aW5BGfIgM2VaD2uHmKKYs4XPfuS TnKmCMvJMpsAC+j+wf/yJ1Q6mPVLxVcBbPx4/HENAy3LagUBZJUM2xuSSo1jWVPF092JQ9NmEpIcK CzjlWvCuFOn4bVM3C6afWouy8oyJi3TG7QiCXu4SUmHPe9JnZv8jSRwHu0VvwaW0fLqK0snzBhmX1 uQRxfoSw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1snwMc-00000004ptc-3L2l; Tue, 10 Sep 2024 08:36:42 +0000 Received: from bali.collaboradmins.com ([148.251.105.195]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1snwLa-00000004plc-2pDq for linux-arm-kernel@lists.infradead.org; Tue, 10 Sep 2024 08:35:40 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1725957336; bh=N05fkHtT2/ScRMfQYWTPlP4NhcjC9bT8xvqCn1glVvY=; h=From:To:Cc:Subject:Date:From; b=n83w1AArLAAcKc0BKOsAbcQLGeO9e+2FuSPsTvmdblSGO6B9pwNP4UfGOwQHL8z+j 0EqeW8BV7RYEX3q+BeHJvZRjfSC7s6p7ZYNGcB3rZTJiuBUDGaSZpx7oJNSYhA/zkO uuxEDKaT+W90LmdpfRxCunkYUFPhi+7D9kRBZeXPlTk84c8LwBh0Ra66A6vPbrFgHm 180m4SXkBw2yK/zMfrUXYqQ5658kISpB79j564rJmfFUyrRRsXMUCsQlDsIupBt9rh isWJ6ZmRpMmPdEVcAJXRW6wwCW19H2KeBoPzY8YQH6xEUzsleetPY/ml20bfd4xIjv WHlTz8Jpq7WSQ== Received: from pan.lan (unknown [IPv6:2a00:23c6:c32f:9100::16d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: martyn) by bali.collaboradmins.com (Postfix) with ESMTPSA id 9915217E0FC3; Tue, 10 Sep 2024 10:35:35 +0200 (CEST) From: Martyn Welch To: Shawn Guo , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: kernel@collabora.com, Martyn Welch , linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v2] arm64: dts: ls1028a-rdb: Add iio-hwmon compatibility table Date: Tue, 10 Sep 2024 09:35:26 +0100 Message-ID: <20240910083527.93473-1-martyn.welch@collabora.com> X-Mailer: git-send-email 2.45.2 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240910_013538_910938_FFEE242D X-CRM114-Status: GOOD ( 10.25 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Add an iio-hwmon map to utilise the iio framework and access power information via the hwmon framework at the same time. Signed-off-by: Martyn Welch --- Changes since v1: - Added missed PATCH keyword in subject - Simplified commit message arch/arm64/boot/dts/freescale/fsl-ls1028a-rdb.dts | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/freescale/fsl-ls1028a-rdb.dts b/arch/arm64/boot/dts/freescale/fsl-ls1028a-rdb.dts index 757a34ba7da3..f23cf156734d 100644 --- a/arch/arm64/boot/dts/freescale/fsl-ls1028a-rdb.dts +++ b/arch/arm64/boot/dts/freescale/fsl-ls1028a-rdb.dts @@ -94,6 +94,12 @@ simple-audio-card,codec { system-clock-frequency = <25000000>; }; }; + + iio-hwmon { + compatible = "iio-hwmon"; + io-channels = <&ina220 0>, <&ina220 1>, + <&ina220 2>, <&ina220 3>; + }; }; &can0 { @@ -253,8 +259,9 @@ i2c@2 { #size-cells = <0>; reg = <0x02>; - current-monitor@40 { + ina220: current-monitor@40 { compatible = "ti,ina220"; + #io-channel-cells = <1>; reg = <0x40>; shunt-resistor = <500>; };