From patchwork Thu Jun 13 15:24:22 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: PeterYin X-Patchwork-Id: 13696983 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 ADE4FC27C75 for ; Thu, 13 Jun 2024 15:27:03 +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=uN0iVbvUCtHrusvPM7j5d8Cr0NiexIYpDbZftj2H28Y=; b=32mBVGtHucUmK/tjzLPEmnC92B QyDrm97aJLjnxL1lHwBqBNe6PTZKQtfdeFATJiSoGb/qMEb1QqBN/szSjPdpxkfsbVXBIKJRH9Y5c cMRdsZwWY+HchUdK17PNkr6/YVJ9wOnoC714W0agX8/xuKHDj1YgIl8N+byJcFeeJtTAdjVHjXZN1 OXaau0TemgMCPDF5yO0DE8Ge8Issi3F2V/eVODI7ASwg5gHl4V6NmsygAgZvjon6As7KKLB+Lb/WY 17eQS1JLHuliYKN9/M/GZSK+Rc7w/Z1p2Y2ydv5e8h+4Kul50b/fORgb7ugXY4YtGn9U9EuNgxzv1 gCl0Thsw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sHmLj-0000000H9xo-3Cqb; Thu, 13 Jun 2024 15:26:51 +0000 Received: from mail-oo1-xc30.google.com ([2607:f8b0:4864:20::c30]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sHmLZ-0000000H9rd-3MwV for linux-arm-kernel@lists.infradead.org; Thu, 13 Jun 2024 15:26:43 +0000 Received: by mail-oo1-xc30.google.com with SMTP id 006d021491bc7-5ba70a0ed75so611141eaf.1 for ; Thu, 13 Jun 2024 08:26:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1718292400; x=1718897200; 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=uN0iVbvUCtHrusvPM7j5d8Cr0NiexIYpDbZftj2H28Y=; b=StYCu9bEXzll7a1WJwg5YvyCfXO0B3rfWWDLFMYt7gDe0l5N0QnxHGa3JGIBzlXbFA vzzfHVTyHLBC6ILuGqofcF1DqSAjoUg1vLznBIgjpoTwBS3GKRTRsSNAYVw9qjfq05LD Pl+i9ZRNBtU+HVWn3JvBFl2G2HNsrmwyRDgZBqk9OOKiNEIOQ7HFKbW0DXqEnKUA0mCU moMfnt2OkFTNpL+korGWzHVOix2co0Uagt4C9w/BWY7r/nU6dXr1ndte6nsSnhqYGUX5 9QqSjLn6jkOuDMszO4VMMnpI428WYL0a1sXrEqaSHWEyVer5dHf5wkGof3CE88/BQpMG UJYA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1718292400; x=1718897200; 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=uN0iVbvUCtHrusvPM7j5d8Cr0NiexIYpDbZftj2H28Y=; b=s1yspxG74d3kiMMXzmkgvuooRtP8cPgTETg1srQAR6x55Mldld9dq9hMITiMBcqgiU FN31Qw4JdDrmslBPIoei1dRbRLJoR5z8BKDjvCuo431afQaZhNjxBTtHG5KJvSdPMJ08 T6hYkPVnGmgOW0V8w/l82z92WPba90AW4qgAmzdSdrvg/C0zj0SWDJxcwuW3KAxG0I7j DWVRGLeKRsCuNsdOYbYTi9pMFHU6eq54jncZH9JNy5eBkkwDKxYW+8wBfBi+mdcU8Faa KvT8B42PpK8nwKJmJjErzTp8hTf9QNmJTGvJBM//E3xi2OyQ1dP/wfWG7Fyn1wQ2b6o0 zVFA== X-Forwarded-Encrypted: i=1; AJvYcCX+hdSnVocXlwCiL4L/p9QpratrkZQZGfLmlZohlhCrV84fSa9MjRC7Gn9NLYy15vuNKCBSe1HQ1ouYsrcbnlui0/rlDkkeU61DDiaJAlqc5ytWCIg= X-Gm-Message-State: AOJu0YynTstcFKxQ1x+oDSHlrBmxlX/ZAFrteHXXAhiDVxJiJrXs6X2M Ugaz6Nku8Gj9qS15Sl1kiJOLYduHNwmIopxuvN48tSnpVcnOZgZf X-Google-Smtp-Source: AGHT+IEf10NElgIFM/CEvfdR+k7HaTuO6/i/+QFJcKhnj7u317VP70MArazE03nYYpgOWFTfeto06g== X-Received: by 2002:a05:6358:5328:b0:19e:fa9c:5ec9 with SMTP id e5c5f4694b2df-19fa9e5c31dmr11451155d.9.1718292400375; Thu, 13 Jun 2024 08:26:40 -0700 (PDT) Received: from peter-bmc.dhcpserver.bu9bmc.local (61-220-246-151.hinet-ip.hinet.net. [61.220.246.151]) by smtp.gmail.com with ESMTPSA id 41be03b00d2f7-6fee41663d2sm1198183a12.92.2024.06.13.08.26.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 13 Jun 2024 08:26:40 -0700 (PDT) From: Peter Yin To: patrick@stwcx.xyz, 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 v1 4/7] ARM: dts: aspeed: Harma: add ina238 Date: Thu, 13 Jun 2024 23:24:22 +0800 Message-Id: <20240613152425.1582059-5-peteryin.openbmc@gmail.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20240613152425.1582059-1-peteryin.openbmc@gmail.com> References: <20240613152425.1582059-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-20240613_082641_875979_9DAAF387 X-CRM114-Status: GOOD ( 10.03 ) 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 06c8b5ff1125..05020e23a901 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 {