From nobody Thu Nov 28 10:35:23 2024 Received: from APC01-PSA-obe.outbound.protection.outlook.com (mail-psaapc01on2062.outbound.protection.outlook.com [40.107.255.62]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C11E6139566; Thu, 3 Oct 2024 07:43:04 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.255.62 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1727941386; cv=fail; b=a3gN2JgeYBBWRjcvTQBpCrlUDE9k+mV8p66POv+5170rvOVWaXq6xGbBjLKg2XmOesRUqiXfgn+2TPWE9CAKT6LsYPVEO3wfgcqGz+6hmPRPyFPRuzqyefTChLi3AkEujGkwHcMJc375GXOuTC9PkEMfx+EryKRwUFq6d6zDoog= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1727941386; c=relaxed/simple; bh=OfvtpT+CmrSfqOknVT3qLwdZ/cUnzpAAbzkHsGL3yUA=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version:Content-Type; b=VuffXjd/wdeLEYcelpZcBG17jfHrXFN8vQWKzvCkexV1S+m+zqcsLfqYYp3oi0RAQc0UPFzURRoRktm8OAdqGrLIFPOs+HmS4LQN3QobOHwcStGNitTujIkmc1D6IPNCMFoWhX2ZmUnZujNn5n5lGUWRW51Qol9PnkrrXhMwy9g= ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=wiwynn.com; spf=pass smtp.mailfrom=wiwynn.com; dkim=pass (2048-bit key) header.d=wiwynn.com header.i=@wiwynn.com header.b=SKAuGt85; arc=fail smtp.client-ip=40.107.255.62 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=wiwynn.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=wiwynn.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=wiwynn.com header.i=@wiwynn.com header.b="SKAuGt85" ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=MkRzD1wCWcEgR5pAU6I2Xk1Loe0TYe5EtXzJS+O2wOUPugj6j3vWu+1kjutgb50kMfSVlpT3luCk7hnf+MhZ9OmlBS3xshRr0npsFLGFeT3PajM7isQXJ566V9UyhEf1UnARkTUiYPE6lMuagtV612/i8jDjdTOiyadwYHadGEpK1togtWMk5qas0MsC+NXqwA1+04IllwoPg2zTja14EwxIaRxqTjYSyisUnG44j5p7UFMoLKW0IJVM0s/NLRvMfgxiXYwPTkdgggQAUwG0zhbUkaaKIxX4iRLIRuvh55N2gEtr0tLke4PzUkeW9ROuXW6dJe0YBBrzoAa+gPFLTg== 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=2M1r7OlBlNgE4G5byha6fFDgwQAyaYccrjhKFWHNQF0=; b=Ikl7JlZjQ+A1o2ABqHHT8rfoceliYyP+4rgvreRY753gaZGR0vv4jCnUZCSgO35uLC+rt6b5XnNxTMROGIgZNpINZe3NSe5/AMuw/eN6bg+dARztXRj/rOqrLfvyigS4pculToKylstgNrngGOgPWY6Wrb3hHWxs9EQrfNzFsMCy82vtCzdzRzjpJG8HxLi32d+p0XCnqAMdaDHSW53lcFImWwMlvPrvhh86xg0I1yq5PMUfamD+PvurlMxmzAoumop1b/ML9B4Jz4vVqmzLQhx6nf4T+o+VJBwjj2qAJ0W2rMoSjLw4xNFt8wUQmF41QhE/D8woar+Nomhp24C6Bw== 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=2M1r7OlBlNgE4G5byha6fFDgwQAyaYccrjhKFWHNQF0=; b=SKAuGt85IzlyvailH/3M7nphxERsXBr5NfaqZfHgqqkArGnct2CCLwbUO/jzpPJctNlZGE30IiyYReMXrEVp+kCD9WKmkO3dMQ3lTd0dQT4o+a6YEVTODRr8KB53v06fqsB4NyN4a6GHG7l5OCMEeu8ifTdAK4F9jFSAWOhi1lZqBTOvLmDsxFJHTWYj9MIG1jXcJ5mM9ByMpJG8gNljp31cYsgNjLbQxzSQk4rVNuMQv8fZb/Dv5bvUKIcQey5UmI8sU5YoYQSYw+54QLj+4FlJoFmpdPI0/gcH3VAUDzYGtElE007DrSoI7TX+SjdhJISOkSiNF3ytPuFyycZ7tQ== Received: from SI2PR02CA0006.apcprd02.prod.outlook.com (2603:1096:4:194::8) by SI2PR04MB5694.apcprd04.prod.outlook.com (2603:1096:4:1a6::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8026.16; Thu, 3 Oct 2024 07:42:59 +0000 Received: from SG1PEPF000082E5.apcprd02.prod.outlook.com (2603:1096:4:194:cafe::95) by SI2PR02CA0006.outlook.office365.com (2603:1096:4:194::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7982.34 via Frontend Transport; Thu, 3 Oct 2024 07:42:58 +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 SG1PEPF000082E5.mail.protection.outlook.com (10.167.240.8) with Microsoft SMTP Server id 15.20.7918.13 via Frontend Transport; Thu, 3 Oct 2024 07:42:58 +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 v3 2/9] ARM: dts: aspeed: yosemite4: Add i2c-mux for four NICs Date: Thu, 3 Oct 2024 15:42:43 +0800 Message-Id: <20241003074251.3818101-3-Delphine_CC_Chiu@wiwynn.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20241003074251.3818101-1-Delphine_CC_Chiu@wiwynn.com> References: <20241003074251.3818101-1-Delphine_CC_Chiu@wiwynn.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SG1PEPF000082E5:EE_|SI2PR04MB5694:EE_ X-MS-Office365-Filtering-Correlation-Id: 680ec723-3c7f-4f4c-efb3-08dce37f0090 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|36860700013|7416014|376014|82310400026|1800799024; X-Microsoft-Antispam-Message-Info: =?us-ascii?Q?L6qB+HxneqzTgRgl29g2WRJy6UI+WErBoGsvbMBjMX99dxXV6Eap9TyWPJDS?= =?us-ascii?Q?sazGGNred326DVCctalaDft9O+diH94I4usJrJCPCn7H0O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ew1qP3+WLBclz/xXDGBwU1tQwe1Dz7Hs1uWlBiax/Oq+0V?= =?us-ascii?Q?8fAoaTDKWzh7NxJStGqYVoeS4R16YTIAmSyWXtZlbFBs1m3O+h4PWngtFFpR?= =?us-ascii?Q?/1CdmdPjexSzJxAnM/gRFEH8HACQoBSd5dPnqICUIyXXHV13XeKobD86ng+j?= =?us-ascii?Q?cmmskrq1pDjCUYMQU4Psc0MBiKpW6NW3JTdg0+HWd/QLuCw7MZEuH8kA08CI?= =?us-ascii?Q?sFzNkn+qIQJvI4JyKMnBrQgmD13HnKsvnvo0s9hn/Pvn4puvYqCUSZi9q061?= =?us-ascii?Q?GytqfXTv/45pOmOfTOxW/96Nfg1L+1SdC4lbXB+rbaBw1hxVOeNKzrj1DPfi?= =?us-ascii?Q?+UQ2lcecAUzMdl3KqFfYbTfS5oZZshiEFVtn/o/1VgT0BO9t+m0thYc0sqp7?= =?us-ascii?Q?j57ak/V/SkeKExGFbkW7Yc0SdUui?= 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)(36860700013)(7416014)(376014)(82310400026)(1800799024);DIR:OUT;SFP:1101; X-OriginatorOrg: wiwynn.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 03 Oct 2024 07:42:58.2430 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 680ec723-3c7f-4f4c-efb3-08dce37f0090 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: SG1PEPF000082E5.apcprd02.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: SI2PR04MB5694 Content-Type: text/plain; charset="utf-8" From: Ricky CX Wu Add i2c-mux on Spider board for four NICs and add the temperature sensor and EEPROM for the NICs. Also remove the mctp-controller property on I2C bus 15 because we need to add the property on the I2C mux to each NIC so that the MCTP driver will ensure that each port is configured properly before communicating with the NICs. Signed-off-by: Ricky CX Wu Signed-off-by: Delphine CC Chiu --- .../aspeed/aspeed-bmc-facebook-yosemite4.dts | 75 ++++++++++++++++++- 1 file changed, 72 insertions(+), 3 deletions(-) diff --git a/arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-yosemite4.dts b/a= rch/arm/boot/dts/aspeed/aspeed-bmc-facebook-yosemite4.dts index 5d623d0355df..fc8af704fe20 100644 --- a/arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-yosemite4.dts +++ b/arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-yosemite4.dts @@ -26,6 +26,10 @@ aliases { i2c21 =3D &imux21; i2c22 =3D &imux22; i2c23 =3D &imux23; + i2c24 =3D &imux24; + i2c25 =3D &imux25; + i2c26 =3D &imux26; + i2c27 =3D &imux27; i2c34 =3D &imux34; i2c35 =3D &imux35; }; @@ -1168,8 +1172,9 @@ adc@35 { }; =20 &i2c15 { + #address-cells =3D <1>; + #size-cells =3D <0>; status =3D "okay"; - mctp-controller; multi-master; bus-frequency =3D <400000>; =20 @@ -1180,9 +1185,73 @@ mctp@10 { =20 i2c-mux@72 { compatible =3D "nxp,pca9544"; - idle-state =3D <0>; - i2c-mux-idle-disconnect; reg =3D <0x72>; + #address-cells =3D <1>; + #size-cells =3D <0>; + + imux24: i2c@0 { + reg =3D <0>; + #address-cells =3D <1>; + #size-cells =3D <0>; + mctp-controller; + temperature-sensor@1f { + compatible =3D "ti,tmp421"; + reg =3D <0x1f>; + }; + + eeprom@50 { + compatible =3D "atmel,24c64"; + reg =3D <0x50>; + }; + }; + + imux25: i2c@1 { + reg =3D <1>; + #address-cells =3D <1>; + #size-cells =3D <0>; + mctp-controller; + temperature-sensor@1f { + compatible =3D "ti,tmp421"; + reg =3D <0x1f>; + }; + + eeprom@50 { + compatible =3D "atmel,24c64"; + reg =3D <0x50>; + }; + }; + + imux26: i2c@2 { + reg =3D <2>; + #address-cells =3D <1>; + #size-cells =3D <0>; + mctp-controller; + temperature-sensor@1f { + compatible =3D "ti,tmp421"; + reg =3D <0x1f>; + }; + + eeprom@50 { + compatible =3D "atmel,24c64"; + reg =3D <0x50>; + }; + }; + + imux27: i2c@3 { + reg =3D <3>; + #address-cells =3D <1>; + #size-cells =3D <0>; + mctp-controller; + temperature-sensor@1f { + compatible =3D "ti,tmp421"; + reg =3D <0x1f>; + }; + + eeprom@50 { + compatible =3D "atmel,24c64"; + reg =3D <0x50>; + }; + }; }; }; =20 --=20 2.25.1