From patchwork Thu Jun 27 07:00:06 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: PeterYin X-Patchwork-Id: 13713875 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 E1434C2BD09 for ; Thu, 27 Jun 2024 07:01:21 +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:References:In-Reply-To:Message-Id:Date:Subject:To:From:Reply-To: Cc:Content-Type:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=Gix3DBO+oHGmr+N4AH/BAu7/Kk6dQdl46Hkauc/qyS8=; b=hIt/7CRHV2pEzMmfwJbBAOonWP PHBFfoiq4rlzylgyDpL33YH7crIAD4ag/XvelAXPsHiB9O/iFgxskgoRv2ChxA0OV7AyTU3lsThjF 3JUsG5ZDkPQNv3yy8MVX4wCrVluV5U4ajqNjxl3hbxj8wVIh7bjkdmPs3H4gamMhlST2kWYci9Zqu bT+608AdUhqNxC2ZKYp5bD5wzZsW7DV/j7l+OgwL5XYnWIoTx7VC4MUhz6MaGUgsfPr1RJ2llRNlr 9L9IVh0OMkINlrKmAZFDBraWNYju01hzIqOu4rZpjLvTSns+ZdbIAknFmmZittSIAIWwS3Duyu/gN ZmILSpdQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sMj80-00000009Svp-3tzS; Thu, 27 Jun 2024 07:01:08 +0000 Received: from mail-pg1-x52f.google.com ([2607:f8b0:4864:20::52f]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sMj7Q-00000009ShB-1SqV for linux-arm-kernel@lists.infradead.org; Thu, 27 Jun 2024 07:00:33 +0000 Received: by mail-pg1-x52f.google.com with SMTP id 41be03b00d2f7-711b1512aeaso5889564a12.3 for ; Thu, 27 Jun 2024 00:00:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1719471631; x=1720076431; darn=lists.infradead.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:from:to:cc:subject:date:message-id :reply-to; bh=Gix3DBO+oHGmr+N4AH/BAu7/Kk6dQdl46Hkauc/qyS8=; b=T9aubt58ZpRBTUmLRcKa7VrfW20qx3YFRWGN/wfVwj15XMDcntHUIA9xP8HVj8ue++ aLLDZxX6AQV+tT/Pe878M6fTNY/ouXJmU1ALVQDkN/59ZdDkf0MOUwykvnYwB1hDyMFf Fx4Y9xDrsCIZ4g9sZXwlPVtB+86FqILqZsStjlz6+IC2xRvbSVCJdD1iprN76yb7iMSH D7o3uX/5wesmbnRliZk8UVlBhfMfvLIvMip0Lmq9GR8/+UYCzZB30L4DNBW9n+SauGl4 HVd1PBMxOwmdd0XpE27MxX5gPrBVavm3Jj7AEMDfjBUvjDlW7LGWs84ZVC6x9UT4iZZR bSxg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1719471631; x=1720076431; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=Gix3DBO+oHGmr+N4AH/BAu7/Kk6dQdl46Hkauc/qyS8=; b=QW2Xn5fqwDHkSAYQJYNVO1v1GDy/ZFtQu0B97oUvgOsdLzhkOtR4tefVcFXceoW3xJ rflI8lc56Mpipxo1hNk1VXpBpa7LIo3iDcEEGq/LdBAEnlnwJvtua+MUjkY40E1Qqf7j 7gpV5RhQutZEAO6iGZqKDpCTWaZ7NR5x28dgSFsKW600+njo8Z8uZVK/+mJYbTOpy+WT GAUKvCJJRv4CUFK/Q4g4g0uL/tsVmWCOkHnTjOHXUcj7rF18mL0HGTmTcxNtgea2rBJg AjnphDejEY5o7CLVj8NUsglBll9Z1QFK7X/4VidwqJFAZnIFZdS0/ULuLVi1ivi2Nfmt idQQ== X-Forwarded-Encrypted: i=1; AJvYcCUOyS8Q3+HPYGSXi8UoM0EBNc1pMoIR+VVPdYG97GOoULmNmWBnPE7EPTaeeJNangjwYYsTgdyqmnpANvne5r5rdRrKw6Q045LYJTg8FQXjLQ1sIBg= X-Gm-Message-State: AOJu0YyoYaeRMG0FpiTD7fnjRRTxiABUsqWyZIaDmtucaBgME/XdRgNP xFTOmz/Qh5mXU4iKFm39VTY0LFf3YtIV4lG5xrudTTlkPLsjJvpz X-Google-Smtp-Source: AGHT+IH1VSEO3FBILEDGjF/Yh9fc2gMEtCGImbtj63fNk55s/XnWpRnild7z5Ferw66s1lJJ4Xa+eA== X-Received: by 2002:a05:6a20:551f:b0:1bd:24f6:576 with SMTP id adf61e73a8af0-1bd24f60623mr6231502637.48.1719471631467; Thu, 27 Jun 2024 00:00:31 -0700 (PDT) Received: from peter-bmc.dhcpserver.bu9bmc.local (2001-b400-e306-713d-05da-7754-dfb7-477a.emome-ip6.hinet.net. [2001:b400:e306:713d:5da:7754:dfb7:477a]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-1faac997ed1sm5962145ad.211.2024.06.27.00.00.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 27 Jun 2024 00:00:31 -0700 (PDT) From: Peter Yin To: patrick@stwcx.xyz, amithash@meta.com, Rob Herring , Krzysztof Kozlowski , Conor Dooley , Joel Stanley , Andrew Jeffery , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-aspeed@lists.ozlabs.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 04/10] ARM: dts: aspeed: Harma: add ina238 Date: Thu, 27 Jun 2024 15:00:06 +0800 Message-Id: <20240627070013.2509150-5-peteryin.openbmc@gmail.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20240627070013.2509150-1-peteryin.openbmc@gmail.com> References: <20240627070013.2509150-1-peteryin.openbmc@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240627_000032_415435_56E629CA X-CRM114-Status: UNSURE ( 9.91 ) X-CRM114-Notice: Please train this message. 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 INA238 power monitor for Harma fan board. Signed-off-by: Peter Yin --- .../dts/aspeed/aspeed-bmc-facebook-harma.dts | 48 +++++++++++++++++++ 1 file changed, 48 insertions(+) diff --git a/arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-harma.dts b/arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-harma.dts index 0c4bf165d0b0..7d809f1636d6 100644 --- a/arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-harma.dts +++ b/arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-harma.dts @@ -198,6 +198,30 @@ pwm@5e{ #address-cells = <1>; #size-cells = <0>; }; + + power-sensor@40 { + compatible = "ti,ina238"; + reg = <0x40>; + shunt-resistor = <1000>; + }; + + power-sensor@41 { + compatible = "ti,ina238"; + reg = <0x41>; + shunt-resistor = <1000>; + }; + + power-sensor@44 { + compatible = "ti,ina238"; + reg = <0x44>; + shunt-resistor = <1000>; + }; + + power-sensor@45 { + compatible = "ti,ina238"; + reg = <0x45>; + shunt-resistor = <1000>; + }; }; &i2c1 { @@ -224,6 +248,30 @@ pwm@5e{ #address-cells = <1>; #size-cells = <0>; }; + + power-sensor@40 { + compatible = "ti,ina238"; + reg = <0x40>; + shunt-resistor = <1000>; + }; + + power-sensor@41 { + compatible = "ti,ina238"; + reg = <0x41>; + shunt-resistor = <1000>; + }; + + power-sensor@44 { + compatible = "ti,ina238"; + reg = <0x44>; + shunt-resistor = <1000>; + }; + + power-sensor@45 { + compatible = "ti,ina238"; + reg = <0x45>; + shunt-resistor = <1000>; + }; }; &i2c3 {