From nobody Wed Feb 11 04:02:32 2026 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass header.i=@quicinc.com; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=none dis=none) header.from=quicinc.com ARC-Seal: i=1; a=rsa-sha256; t=1655919343; cv=none; d=zohomail.com; s=zohoarc; b=HcdlPC1ZaMHJfFmpjUC2ZK8u4lmnCWuYbh9CpoNMoR1uW26m1x66w6e4zPHv3dgEL9V2VzdWOy4nUtOqCSZcTm+iHBhuA+YxZa8P8HFru29WmUh8nF9kaG5u1NQJsKDfT5LN6GC+BEmlsPZEcTFyogAj81b9p06lxtHHyTDONEY= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1655919343; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=d3soCrva7MA0DDNwGl/WtO+LigrAryj4T4UIwJP9RDQ=; b=ntdkii/HfA2Fv0GEqZ13xiHOrMZrzFruC80RXj1yC0yv+tVAEDwhRZY4G+F4TuibyA9Vi7zRd4tLDMiN4nfca2kbbIx2jJRDP7hht1unMSl6CYaAfxTkQfAZXX9QbdwImjk64DH49fw4egL7n/YZp36s17WHRrxqnW6HBJP+LuM= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass header.i=@quicinc.com; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1655919343082877.2514564961391; Wed, 22 Jun 2022 10:35:43 -0700 (PDT) Received: from localhost ([::1]:47564 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1o44GT-0006Tv-O9 for importer@patchew.org; Wed, 22 Jun 2022 13:35:41 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:43688) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o44AZ-0007Hg-Bc; Wed, 22 Jun 2022 13:29:35 -0400 Received: from alexa-out-sd-01.qualcomm.com ([199.106.114.38]:23698) by eggs.gnu.org with esmtps (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.90_1) (envelope-from ) id 1o44AS-0000an-6R; Wed, 22 Jun 2022 13:29:35 -0400 Received: from unknown (HELO ironmsg-SD-alpha.qualcomm.com) ([10.53.140.30]) by alexa-out-sd-01.qualcomm.com with ESMTP; 22 Jun 2022 10:29:26 -0700 Received: from nasanex01c.na.qualcomm.com ([10.47.97.222]) by ironmsg-SD-alpha.qualcomm.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 22 Jun 2022 10:29:26 -0700 Received: from nalasex01a.na.qualcomm.com (10.47.209.196) by nasanex01c.na.qualcomm.com (10.47.97.222) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.22; Wed, 22 Jun 2022 10:29:25 -0700 Received: from maru.qualcomm.com (10.80.80.8) by nalasex01a.na.qualcomm.com (10.47.209.196) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.22; Wed, 22 Jun 2022 10:29:24 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; i=@quicinc.com; q=dns/txt; s=qcdkim; t=1655918968; x=1687454968; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=d3soCrva7MA0DDNwGl/WtO+LigrAryj4T4UIwJP9RDQ=; b=ki7zGZm026gE1qy2hOHBVgksi+ks6cE3p17MGkdxoJpgi0HFB03pfeIN Lh3iJpZlbmsHTh6HdhrOnjIktarbd9ygtqG2RGCT1CG/QA0qCPaPx0yW7 UBZhfjXN8vtqOjFZUCrayiJHEZS3p3KgYsR/oC3YVsbQmY6joMBQ5q/wP A=; X-QCInternal: smtphost From: Jae Hyun Yoo To: Peter Maydell , =?UTF-8?q?C=C3=A9dric=20Le=20Goater?= , Titus Rwantare , Andrew Jeffery , Joel Stanley CC: Graeme Gregory , Maheswara Kurapati , , Subject: [PATCH 7/9] hw/arm/aspeed: firework: Add MAX31785 Fan controllers Date: Wed, 22 Jun 2022 10:28:28 -0700 Message-ID: <20220622172830.101210-8-quic_jaehyoo@quicinc.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220622172830.101210-1-quic_jaehyoo@quicinc.com> References: <20220622172830.101210-1-quic_jaehyoo@quicinc.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Originating-IP: [10.80.80.8] X-ClientProxiedBy: nasanex01a.na.qualcomm.com (10.52.223.231) To nalasex01a.na.qualcomm.com (10.47.209.196) Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=199.106.114.38; envelope-from=quic_jaehyoo@quicinc.com; helo=alexa-out-sd-01.qualcomm.com X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: pass (identity @quicinc.com) X-ZM-MESSAGEID: 1655919345102100001 Content-Type: text/plain; charset="utf-8" From: Maheswara Kurapati Firework has two MAX31785 Fan controllers at 0x52, and 0x54. Include them in the model so that the Linux driver populates the sysfs interface. Signed-off-by: Maheswara Kurapati --- hw/arm/aspeed.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/hw/arm/aspeed.c b/hw/arm/aspeed.c index 85630b497793..08e5fc178a94 100644 --- a/hw/arm/aspeed.c +++ b/hw/arm/aspeed.c @@ -1046,6 +1046,10 @@ static void qcom_dc_scm_firework_i2c_init(AspeedMach= ineState *bmc) =20 /* I2C4 */ qcom_firework_fru_init(aspeed_i2c_get_bus(&soc->i2c, 4), 0x50, 128 * 1= 024); + + /* I2C-9 Fan Controller (MAX31785) */ + i2c_slave_create_simple(aspeed_i2c_get_bus(&soc->i2c, 9), "max31785", = 0x52); + i2c_slave_create_simple(aspeed_i2c_get_bus(&soc->i2c, 9), "max31785", = 0x54); } =20 static bool aspeed_get_mmio_exec(Object *obj, Error **errp) --=20 2.25.1