From patchwork Thu Sep 26 03:28:17 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Delphine CC Chiu X-Patchwork-Id: 13812776 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 AD199CCFA15 for ; Thu, 26 Sep 2024 03:31:30 +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-Type: Content-Transfer-Encoding:MIME-Version:References:In-Reply-To:Message-Id:Date :Subject:Cc:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=TMtSQcN9CV4Ragazm03k1sewAAIpWZxMagwsuuVYUX8=; b=nSS7NJIQO/g769IMg5pN6cnrOW E+HY1nXzIfXjN1mJbcdIlbRCRoB1FlT8sK3mEfBTALllZBYDGfcWCGSlsZtfDPZ/M0QbVEjZmNACt OLILGAltxG/kjbgI1hkYtkVcbfIQgnKv7qhj5+5gyPIxWsKDcVK9x4xaoap5SIrlV2hFJdHDuUuLT QF9YEHV20pkT10cv1ej6kxPRQfdtIp46mq5KSvehva8cCnJiCw/CCipxRcgjtOmgGC0dUiKiIqLnG 7n8I/oTHxxQvhy+7yNfxXbFlznVTeAwalfcZMDDVfpfi84O1Eug455fnb9rX+dKGtU3f+37yK+VYw jFZpgbew==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1stfDs-000000075gT-2rxs; Thu, 26 Sep 2024 03:31:20 +0000 Received: from mail-tyzapc01on2061d.outbound.protection.outlook.com ([2a01:111:f403:2011::61d] helo=APC01-TYZ-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1stfBG-0000000752u-0zz2 for linux-arm-kernel@lists.infradead.org; Thu, 26 Sep 2024 03:28:41 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=JFihB5gO5CQ1Ji3jfzKCZf0B9LBfkETWdbuB95OuLOZrustZOFabp0si3KDzCHn1PzRd6KtVV4m/iAk+GShyr/Pafl+PI9Uqwbsr6snu+9zIGzxTH0kWg3m+MbGJvJzqAmLE5vCRNr9HjRC+jiNavWZbqKaHobvLDSLV84CELkCit1M8bk+pNWS0kynVCNKxgiLnP1MUlouhzTmiMR14u+l6/q3csYkSld1ZCdT8zznxuZ+ZhRGWCWQUVmPWMa4uUDq5A8qyzLwCOLJmSZJp8dXKoeKcdDb++pnYdvxeLfzY16maIOf6+c+WT2BLuPkaA1IreUAey4KcYP45itWmHg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=TMtSQcN9CV4Ragazm03k1sewAAIpWZxMagwsuuVYUX8=; b=oY6yIVkZNRDlHMGxpIENJsj0eiPNsrB9ac/+4dmwLrP+1w4SmjsGw7iLJwEG5k+nwbFAyXM75//4ohJ9doU+z9X8m30Pt4M2l1SzkgHTy1TDX+d68G0R543hgy8sasVYLSnwUFKi3PNhx2YT4t661HhiGCznSlajf+8NUn57dpdBXSkAHqu33H4QWIIFJprJQDV5Ex8+IU5x68/2S2husO/cpMHRu6mPVVxJbkZr7SZUk4VqW95zbCODslJpYOFsfLy4rRK7SFD5z9s4fzE0DAzgAgzt2CU7jxVyxYovj4ZJqG/nwn3bqmRM87Kd8EK36T/MItEkx7X8/78SchVijQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=fail (sender ip is 211.20.1.79) smtp.rcpttodomain=stwcx.xyz smtp.mailfrom=wiwynn.com; dmarc=fail (p=quarantine sp=quarantine pct=100) action=quarantine header.from=wiwynn.com; dkim=none (message not signed); arc=none (0) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=wiwynn.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=TMtSQcN9CV4Ragazm03k1sewAAIpWZxMagwsuuVYUX8=; b=AvKCshK6W58z2PYPCt+fKO39CJ+iYoF8O66CSYuhE6RrEXLka+8di3pg0rW+xNt96DJCZIgvm8QW2nEouHumL+wcf7o+4M62k+fWpWLmbacZ9ji29P6kNQS+LPrb1jzFN/tQAlvVSwhxrZiWOndw6rRsWMyWSJhLTRTFibH+V+P+R5dBwhyDDofxOcxV2eSR/OHtbPVYcb22GdEz4hU6UbmJd3HBWB4x/qg6kl+CtrgD2Q5oB75eMktMD4G8k4UHYgNEZGPLmoNiuhX1jv55lKJhLSNzWiOGVisllF/r/YDHfSqlzpmGDLGmsly3laQaGod9wIX0KU18oD0cpsw4hw== Received: from SG2P153CA0012.APCP153.PROD.OUTLOOK.COM (2603:1096::22) by TYZPR04MB5854.apcprd04.prod.outlook.com (2603:1096:400:1f2::5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7982.25; Thu, 26 Sep 2024 03:28:26 +0000 Received: from SG2PEPF000B66CC.apcprd03.prod.outlook.com (2603:1096::cafe:0:0:20) by SG2P153CA0012.outlook.office365.com (2603:1096::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8026.5 via Frontend Transport; Thu, 26 Sep 2024 03:28:26 +0000 X-MS-Exchange-Authentication-Results: spf=fail (sender IP is 211.20.1.79) smtp.mailfrom=wiwynn.com; dkim=none (message not signed) header.d=none;dmarc=fail action=quarantine header.from=wiwynn.com; Received-SPF: Fail (protection.outlook.com: domain of wiwynn.com does not designate 211.20.1.79 as permitted sender) receiver=protection.outlook.com; client-ip=211.20.1.79; helo=localhost.localdomain; Received: from localhost.localdomain (211.20.1.79) by SG2PEPF000B66CC.mail.protection.outlook.com (10.167.240.25) with Microsoft SMTP Server id 15.20.8005.15 via Frontend Transport; Thu, 26 Sep 2024 03:28:26 +0000 From: Delphine CC Chiu To: patrick@stwcx.xyz, Rob Herring , Krzysztof Kozlowski , Conor Dooley , Joel Stanley , Andrew Jeffery Cc: Ricky CX Wu , Delphine CC Chiu , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-aspeed@lists.ozlabs.org, linux-kernel@vger.kernel.org Subject: [PATCH v1 1/5] ARM: dts: aspeed: yosemite4: Add i2c-mux for two fan boards Date: Thu, 26 Sep 2024 11:28:17 +0800 Message-Id: <20240926032821.4171466-2-Delphine_CC_Chiu@wiwynn.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20240926032821.4171466-1-Delphine_CC_Chiu@wiwynn.com> References: <20240926032821.4171466-1-Delphine_CC_Chiu@wiwynn.com> MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SG2PEPF000B66CC:EE_|TYZPR04MB5854:EE_ X-MS-Office365-Filtering-Correlation-Id: 7c4cd154-c1b3-49d2-809d-08dcdddb48b7 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|1800799024|376014|7416014|36860700013|82310400026; X-Microsoft-Antispam-Message-Info: qvKIYPty472hp2kHoeoyaBIhFankMwqm2hkDj5ydZ0WzJYL0+UmCIYBB1YpflsY9rohjR8F0h+i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iHz0W62AC3t6kxpO2wGHzft82BS+BJOI7n4K+bLnLUC3nq1xiZj/YqnA89pJzRjYvDXmATacVYCSU+nyIgY2txvhDw9N21K1u16SJkj+KRR02KsWwfYihOsFKtY8s+e55pBlWFcl+8tofT5EucjhI/YIcxsAuau0LbAd8SsxMVvKFKxLu8hTYqy97YAvx7FF3fTFDl0X6lJZpl4yvNczeXDYVnKFhES7OdXIyW/9qYnyMgeRiqfmuBqDtezmQBggExlDquVyLgfP6ue X-Forefront-Antispam-Report: CIP:211.20.1.79;CTRY:TW;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:localhost.localdomain;PTR:211-20-1-79.hinet-ip.hinet.net;CAT:NONE;SFS:(13230040)(1800799024)(376014)(7416014)(36860700013)(82310400026);DIR:OUT;SFP:1101; X-OriginatorOrg: wiwynn.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 26 Sep 2024 03:28:26.0298 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 7c4cd154-c1b3-49d2-809d-08dcdddb48b7 X-MS-Exchange-CrossTenant-Id: da6e0628-fc83-4caf-9dd2-73061cbab167 X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=da6e0628-fc83-4caf-9dd2-73061cbab167;Ip=[211.20.1.79];Helo=[localhost.localdomain] X-MS-Exchange-CrossTenant-AuthSource: SG2PEPF000B66CC.apcprd03.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: TYZPR04MB5854 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240925_202838_341800_FA4951C8 X-CRM114-Status: UNSURE ( 9.90 ) 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 From: Ricky CX Wu Change the address of the I2C mux for two fan boards to 0x74 according to schematic. Signed-off-by: Ricky CX Wu Signed-off-by: Delphine CC Chiu --- .../aspeed/aspeed-bmc-facebook-yosemite4.dts | 81 ++++++++++--------- 1 file changed, 44 insertions(+), 37 deletions(-) diff --git a/arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-yosemite4.dts b/arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-yosemite4.dts index 98477792aa00..04f6378c2b5f 100644 --- a/arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-yosemite4.dts +++ b/arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-yosemite4.dts @@ -17,6 +17,9 @@ aliases { serial6 = &uart7; serial7 = &uart8; serial8 = &uart9; + + i2c30 = &imux30; + i2c31 = &imux31; }; chosen { @@ -380,6 +383,8 @@ ipmb@10 { }; &i2c14 { + #address-cells = <1>; + #size-cells = <0>; status = "okay"; bus-frequency = <400000>; adc@1d { @@ -440,20 +445,50 @@ eeprom@51 { reg = <0x51>; }; - i2c-mux@71 { - compatible = "nxp,pca9846"; + i2c-mux@73 { + compatible = "nxp,pca9544"; #address-cells = <1>; #size-cells = <0>; idle-state = <0>; i2c-mux-idle-disconnect; - reg = <0x71>; + reg = <0x73>; i2c@0 { #address-cells = <1>; #size-cells = <0>; reg = <0>; + adc@35 { + compatible = "maxim,max11617"; + reg = <0x35>; + }; + }; + + i2c@1 { + #address-cells = <1>; + #size-cells = <0>; + reg = <0>; + + adc@35 { + compatible = "maxim,max11617"; + reg = <0x35>; + }; + }; + }; + + i2c-mux@74 { + compatible = "nxp,pca9546"; + reg = <0x74>; + #address-cells = <1>; + #size-cells = <0>; + i2c-mux-idle-disconnect; + + imux30: i2c@0 { + reg = <0>; + #address-cells = <1>; + #size-cells = <0>; + adc@1f { compatible = "ti,adc128d818"; reg = <0x1f>; @@ -470,6 +505,8 @@ pwm@20{ gpio@22{ compatible = "ti,tca6424"; reg = <0x22>; + gpio-controller; + #gpio-cells = <2>; }; pwm@23{ @@ -499,10 +536,10 @@ gpio@61 { }; }; - i2c@1 { + imux31: i2c@1 { + reg = <1>; #address-cells = <1>; #size-cells = <0>; - reg = <0>; adc@1f { compatible = "ti,adc128d818"; @@ -520,6 +557,8 @@ pwm@20{ gpio@22{ compatible = "ti,tca6424"; reg = <0x22>; + gpio-controller; + #gpio-cells = <2>; }; pwm@23{ @@ -549,38 +588,6 @@ gpio@61 { }; }; }; - - i2c-mux@73 { - compatible = "nxp,pca9544"; - #address-cells = <1>; - #size-cells = <0>; - - idle-state = <0>; - i2c-mux-idle-disconnect; - reg = <0x73>; - - i2c@0 { - #address-cells = <1>; - #size-cells = <0>; - reg = <0>; - - adc@35 { - compatible = "maxim,max11617"; - reg = <0x35>; - }; - }; - - i2c@1 { - #address-cells = <1>; - #size-cells = <0>; - reg = <0>; - - adc@35 { - compatible = "maxim,max11617"; - reg = <0x35>; - }; - }; - }; }; &i2c15 {