From patchwork Tue Jun 25 12:18:27 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yang Chen X-Patchwork-Id: 13711028 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 57454C2BBCA for ; Tue, 25 Jun 2024 12:21:59 +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:Cc:To:From: Reply-To:Content-Type:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=vn92Ddq0IvoImB657oaMQiSF86tgeTAhup9iBLRfd7s=; b=DYJZWaVzVUej0SlZLrei9jadxm mqEYZz1ozrB8Ow9dlgjWWUOh4/swx+yvMXglTcjrV8PJEG8ku44rqZRTzRNQHD3NmJPgS86xQxPL3 d52g3RoF76o+gZgL05P8giarJHeCahuT3Y0+TWC2cgzat+da3L7oIYuLXEBSLgtinNYfnTgtTnCws WnqfcvOjdKNmQmSa0qV13zXt2BRiCKGb384ST9jhjpZfyDxskiqlnEJ5GTrJGLDiO3k7x7eDAMNyW VQ8RpxtgfudZXIuOnUbIEOLbmk19JQn1nipAUGz/jcljdRLFQC0ZetrvGgl6QiyB/9aNH1DLSPRs6 oOqR3Qww==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sM5BC-00000002hpE-3uGI; Tue, 25 Jun 2024 12:21:46 +0000 Received: from mail-pf1-x429.google.com ([2607:f8b0:4864:20::429]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sM5AR-00000002hKk-2iFh for linux-arm-kernel@lists.infradead.org; Tue, 25 Jun 2024 12:21:01 +0000 Received: by mail-pf1-x429.google.com with SMTP id d2e1a72fcca58-70666aceb5bso2446462b3a.1 for ; Tue, 25 Jun 2024 05:20:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1719318059; x=1719922859; darn=lists.infradead.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=vn92Ddq0IvoImB657oaMQiSF86tgeTAhup9iBLRfd7s=; b=cHRh8Fsm6G/zKAQFs/bSqgEXks0SIJQUew3jFNt+i4+xH+2qXxWP1dd2MO8Frsexu/ /I3W/GS/UEwukTciLHjh5MN5Ocrj8nUju+ENg5i9e63VIzhmhgAaXMqwY7TUq7awhHM4 Sb9oT+C8El4U6FAH6ojeyIoCkOS6Et2X5SBHyDimKF7XlEWjGwUwdIoOok3BRepCiwKd VFUDJpx3jrD/yciqC+gcXS/pJQQdnqRnzds9Hgsvdc34M/yWCtkr1lHC4McLgd94istn empLIY3I8Y+7M5ShuNo1FiQ22FBnLkbrdr246sgxkwXdRDxEtQrIesQ+ZPla93z7DWGI bM9A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1719318059; x=1719922859; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=vn92Ddq0IvoImB657oaMQiSF86tgeTAhup9iBLRfd7s=; b=vDiblc8QugCOlD/86Xarm1OyOh8eE2J1lH8B6xiFxoamdZe0gh6kpMEqPNjcdVa1L3 u9IBVbtMfD9jHzpgrOIEwHCdPrSJZwcFIZ1558g86R19fNhWRdcjLRNsgkMS4sLcw1iY 3lJvMl0t40SyPoQwXc82l81Z9Q7Jb6YFbDT3wsYh6PnGRJPXIkYk46zYDUSl5z0TSGsW t1UuFDKXmZGCYVy63PP/CzNq03MtDEqGr1bchySvULBd51XkAtcLlpEmGXVHoIjvAvM+ aCgeCEVoVwnaJhfRO2zyvv4ESesIdPVKVzbTYngFaPnQPCEvoVc1UMbMQWkF5TDTD8bJ j1sQ== X-Forwarded-Encrypted: i=1; AJvYcCUGPObDIPJlBAe7jLQCQVY/bWSoEsB9l8mH9Thlzg+6vfcmUUff+HTS7pX7IovQWNlq4wHWq/YCY/cEyb+BOHPsQoclji/QWFiNfp0NGPJ0BTb8fO4= X-Gm-Message-State: AOJu0YwyPsjC0YYxvTql+qIHvE2deXryZhI4b2iK9Vkba7Z8PSCoYs4t CvQxS8+TF8yKKpfpKLjCHPHamhgme3vf4SlyvClstOCb3ztbRE6h X-Google-Smtp-Source: AGHT+IEm2L4+wB8BjdmsEdQwOKUL69wYUftO7+oTnX3eqEeV5rpyfma1fPEq0sib2QsRvoiUGVKdIg== X-Received: by 2002:a05:6a00:2da0:b0:706:1edc:79af with SMTP id d2e1a72fcca58-706746b8ff7mr7886885b3a.22.1719318058945; Tue, 25 Jun 2024 05:20:58 -0700 (PDT) Received: from obliging-System-Product-Name.dhcpserver.bu9bmc.local (61-220-246-151.hinet-ip.hinet.net. [61.220.246.151]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-70650e312e4sm7978146b3a.0.2024.06.25.05.20.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 25 Jun 2024 05:20:58 -0700 (PDT) From: Yang Chen To: joel@jms.id.au, andrew@codeconstruct.com.au, patrick@stwcx.xyz, linux-arm-kernel@lists.infradead.org, linux-aspeed@lists.ozlabs.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org Cc: Jerry.Lin@quantatw.com, yangchen.openbmc@gmail.com Subject: [PATCH 09/17] ARM: dts: aspeed: minerva: Add adc sensors for fan board Date: Tue, 25 Jun 2024 20:18:27 +0800 Message-Id: <20240625121835.751013-10-yangchen.openbmc@gmail.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240625121835.751013-1-yangchen.openbmc@gmail.com> References: <20240625121835.751013-1-yangchen.openbmc@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240625_052059_744505_9B1E89CE X-CRM114-Status: GOOD ( 10.15 ) 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 From: Yang Chen Add ina238 support to read the sensors in front of fans. Signed-off-by: Yang Chen --- .../aspeed/aspeed-bmc-facebook-minerva.dts | 144 ++++++++++++++++++ 1 file changed, 144 insertions(+) diff --git a/arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-minerva.dts b/arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-minerva.dts index bea389d1e90b..60beda2737a1 100644 --- a/arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-minerva.dts +++ b/arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-minerva.dts @@ -228,6 +228,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>; + }; }; imux17: i2c@1 { @@ -246,6 +270,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>; + }; }; imux18: i2c@2 { @@ -264,6 +312,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>; + }; }; imux19: i2c@3 { @@ -282,6 +354,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>; + }; }; imux20: i2c@4 { @@ -300,6 +396,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>; + }; }; imux21: i2c@5 { @@ -318,6 +438,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>; + }; }; }; };