From patchwork Thu Aug 1 16:01:28 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: PeterYin X-Patchwork-Id: 13750692 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 B26D7C3DA4A for ; Thu, 1 Aug 2024 16:06:48 +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=KVPuVCfffw+tLrz2APHgSRpJrB ZDfRRFb8wfeaU2JiWJKBAH3gks1rPtJKXkJXtVuzyYilfE1JQkNTxvXUamw3d/1iEhCRL/A8cDMdj r1GgZfVTU+MFRtp6fYZYtqKkAjB7GQEpv94+yD4mO6G0J52wzHFbNH9shG8QngswBkkGmTr3HsemR PFHf/tzokVF4kwr25SchJ1uDVAWbDNtoe4/yiMpU2NrOlagcxPujVlb73wZk75ikv0fYJcEA10oui 8njlDsfvrLP2fnEzgjJ/K1bD5zV+IkMnN9MgFMMwQ43ZZPa6aJnNjg0kPHI/oVbdC7u/f9MXHbVlW nCPpucIA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sZYK2-00000005yRc-0NBN; Thu, 01 Aug 2024 16:06:34 +0000 Received: from mail-pg1-x536.google.com ([2607:f8b0:4864:20::536]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sZYHQ-00000005xT5-3LHL for linux-arm-kernel@lists.infradead.org; Thu, 01 Aug 2024 16:03:54 +0000 Received: by mail-pg1-x536.google.com with SMTP id 41be03b00d2f7-75a6c290528so4900490a12.1 for ; Thu, 01 Aug 2024 09:03:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1722528232; x=1723133032; 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=EbJfIvibLqKigjfYhXTFo4uueDIbjfVuwi/N7Fa4ahJsNzrvufTscU4NazFv+bifFq s+dM4RZz2UvU2lJWhJPkr3y6o/qmx3YnVGyHznIEdJix31EE2BiFxowWUg0JcpGBTkqY u7sUk+oguBfZT+kCIoHhXzM4P6CtUf4hCZcIsrglqygvEVRkqWZlqpoNSjKNjL+InjXZ tU27mi2pEXhCpQgf/KJ7qu2vs1MyGJCivFBc/cxrdTA1QO+gTiazIMZlyfIeXFCjGfD6 fDQS1B9ivWtClxQZHOnZwprkUVcB7My34uO1VeRZXz7J0BIQ9g5E15P0AMj0xlmcWWno YZYQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1722528232; x=1723133032; 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=M97Mo5wzvWUa1HQAZf8CMZBIURVoe2q7qo+Z7L6EgP91xW+3Vcake+kREXpnilv86r RSzH15q1ppTO4E1o7RnBDtmNu5UnMCsb5+3akkw9UQURcfPV7tLczAYY9FcHDlEQvsd+ NR4utXB7hkfOb0WxRKtwepTEDSwspGXS+oKArmhGa62J9oQusZ/+DBLvoqEM+nLkyHQU +txGt2bT7+IEP3ce0VQ8GSfx+4I9plTGcxUz0qS8ID0Gi2pB7A3dNBzl4kiW4cLe673n rovDYKWzR5JxAkNtIMXqNnniv7VFWg1Rb/YQ9GPU8TjypsUmdFZ16CUeBevut9uMw5wx eg+g== X-Forwarded-Encrypted: i=1; AJvYcCWORwnvweDDmx00wWUPC8njBSXt7+n7x57xlk4YAubGd8PWwWRUpaQom270QOEsbInSMLj3Ef7u359cwSTCn/ZLarLCcbR0Qw0ZBn57VbsJot49ToA= X-Gm-Message-State: AOJu0YzJpS+Vb3U8t89cFLN8GDvX0kco4YymPrxmGVHmtAO6hHH0gfNJ j9lLI54Z7f+y8ulaPEtldeWXSgi9qaNWfUSbg48tHD/Q303OTq6k X-Google-Smtp-Source: AGHT+IFG5G7AxA+RzvVGzDQ4AyH7OEXpR+B2oXS5vzJ/MDsP30IZ6t28E1tgeg6dwW701rf3IQ9e3g== X-Received: by 2002:a17:90a:6b45:b0:2c9:a3ca:cc98 with SMTP id 98e67ed59e1d1-2cff93d5a16mr919401a91.7.1722528231525; Thu, 01 Aug 2024 09:03:51 -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 98e67ed59e1d1-2cfdc4cf181sm3535268a91.37.2024.08.01.09.03.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 01 Aug 2024 09:03:50 -0700 (PDT) From: Peter Yin To: 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 v3 04/11] ARM: dts: aspeed: Harma: add ina238 Date: Fri, 2 Aug 2024 00:01:28 +0800 Message-Id: <20240801160136.1281291-5-peteryin.openbmc@gmail.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20240801160136.1281291-1-peteryin.openbmc@gmail.com> References: <20240801160136.1281291-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-20240801_090352_864740_B0E8060E X-CRM114-Status: GOOD ( 10.58 ) 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 {