From nobody Sat Nov 30 12:47:14 2024 Received: from APC01-TYZ-obe.outbound.protection.outlook.com (mail-tyzapc01on2075.outbound.protection.outlook.com [40.107.117.75]) (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 C26061B530E; Mon, 9 Sep 2024 10:54:34 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.117.75 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1725879276; cv=fail; b=KnOfGuc0gL2IHi2R01sXgLp5ttOJU+EsEKXELuNS4UcEQ9s393qq6ceh5tKb7q8W1L8aluYJ1qJKehbeoR4+i8CHT0oR9hKV778GmKkrDbiIDUYFOQJrOqYTXZj1S1UnBcKgGN2c3cEhhIfl3DLGlTK0dg2ms5KEWvOGf1WelOA= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1725879276; c=relaxed/simple; bh=BUyY2iTF7fmhrS1ysQn+40ByqyVCIHiRD7GXlxXQ0zo=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version:Content-Type; b=hr82fxc+pJe6lPDIlvfHNp5PChb7GKzEFRI/gmkoZJk9Z3LcE/PnLq7ubqO2D8+jP/B4B9gJGegSkA6D03NgD9f5swkdAM7kff0r4hjJElrzHVHjSfwHNlJzy8Dp2lXFNF9fEkhvXJqhqStN3vk4vylFl7GC9TPGzd0xOAolO4s= 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=yF7aef64; arc=fail smtp.client-ip=40.107.117.75 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="yF7aef64" ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=yLxH/NO1it2jDXiGt27cT5vdO5pqBeJFB1Qq52wthAN2Zd2JTeHKqyQQmH0qhUbBa4bwKLFqm7DQtwXVzCvU/rOV+4WvDLDd3zduExEbMpBVcdYMZIezTiT4NxhmLX911jznD6U1lVIrIgWaAdDHZ4e9rrb5yKMbpBhitkzxaLhaDZpUb1g7ob7Bs5esN4Dq8qBS3FWKm8APhxfqpwKAJmBhksT75jyNCXZZGVRyPvJ313+7JUcluIhKNaW+vAsANaxayHQF1y6WEePUnogoo+1pyF6bX/YSYGNX8a9OEcdMRmX9cRZtnMW//pbYSAj3HMjBywIwZfPyCY7DikRK8A== 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=86U5XL/AcsvX+iUlUuqlnxrP9a/ZAXQ8UY1mjpc/hLA=; b=UnCPBUWfobhrXAj3PiZSHuJKdfmyR9eQqI19y5EAD5XwToW203pewU5cFjCqiBX+PP1LnE0L8nv7MqtbiwRTFgtvCVeXcF6E+T/kkB5klDaqDFWTT7E0JXnVYiM6mzqixWunVZQH6HzsewR4BHHygFJW8sZXOQXtVVl1LNI3ZsZMNhKc7E5I4x5e5LiX02qVtqjk/Qp0PNY8QzN3gqKaBXoRkSyXJ7XkHoddyN7BXBWvqdM/cfkpAcW84BPeBUJNHKJX4RpIzdW8IwBDmdbnD+A2Hci4F2aDVwcdGwbbRUFu7fhtAFZRF83QQ3yBAAEmnPP7Gd0GGJ9ZhZVYF+dlfA== 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=86U5XL/AcsvX+iUlUuqlnxrP9a/ZAXQ8UY1mjpc/hLA=; b=yF7aef64xLw1+k3IXZI7km9+Pzj/1o3b9LWsNIIpQfSBWQ5OktzEIUjgCtafatQS8UzsMelaArapMSp0qUfiEQvcACPNS2oV3OfEGWWfKZTvukzvRxmsuT9fioDgNrl715HnXTg/HitIGp2jjbLkULoiojEn1dDzUrv96vjDAjfTWZRVfrUnwuGiB14fXGgGR6aRKcTatIr0ZbMWxCCUWqerEqTkzZGRFIjOHyj/N4FmAfctr3HPYfA/yD9HRLkPP3aJKL/wOmlGmcTc37Lf9vVvwAXM2UFhBIhJyHTBFrElHow8arFpDDBtl/5dynjulLCxfjoWeyHhpjpI0YTEEA== Received: from SG2PR06CA0217.apcprd06.prod.outlook.com (2603:1096:4:68::25) by SEYPR04MB5740.apcprd04.prod.outlook.com (2603:1096:101:88::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7939.17; Mon, 9 Sep 2024 10:54:26 +0000 Received: from HK2PEPF00006FB2.apcprd02.prod.outlook.com (2603:1096:4:68:cafe::2e) by SG2PR06CA0217.outlook.office365.com (2603:1096:4:68::25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7939.23 via Frontend Transport; Mon, 9 Sep 2024 10:54:25 +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 HK2PEPF00006FB2.mail.protection.outlook.com (10.167.8.8) with Microsoft SMTP Server id 15.20.7918.13 via Frontend Transport; Mon, 9 Sep 2024 10:54:24 +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 v18 1/3] ARM: dts: aspeed: yosemite4: Revise i2c-mux devices Date: Mon, 9 Sep 2024 18:54:16 +0800 Message-Id: <20240909105420.441607-2-Delphine_CC_Chiu@wiwynn.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20240909105420.441607-1-Delphine_CC_Chiu@wiwynn.com> References: <20240909105420.441607-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: HK2PEPF00006FB2:EE_|SEYPR04MB5740:EE_ X-MS-Office365-Filtering-Correlation-Id: e6a25b28-96bb-4fc2-35f1-08dcd0bdc4f3 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|1800799024|82310400026|36860700013|376014|7416014; X-Microsoft-Antispam-Message-Info: =?us-ascii?Q?wUbIC1quTdeVMAI4e4agjCmLQvpFkwTJ6joTs/q11/K3ukH9k+7MlkcvZU+w?= =?us-ascii?Q?uBd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WvOWzM?= =?us-ascii?Q?oUC4D0qLNLnj1XK5j81Qrs9UBDU8En0qR5G4Gea101MY4bCvgQBkfjctQcNt?= =?us-ascii?Q?JahwqGtYGPWXvzcBtXT29bTBX+7lGA1e6Cr1UTRi7fVt3F6lZiMnRaOQEm67?= =?us-ascii?Q?ljCdbvEFwABlYJ11hURIBDHlbzntjBs+FOTmq1Eei7fmQ6k/H2BusrsOCPaP?= =?us-ascii?Q?93He+RvlP3qt2cSFcKUmYDN9m+QrQBtLftDOuuQANkiNjJx3dAd9miJYmYcA?= =?us-ascii?Q?9xUWee8U/EVvaY9whZrHsitjedCXSVNiOpklTIFhSguQsO2bxasWbZ7sDr/T?= =?us-ascii?Q?yVGdKghbER43FZJFU8gFUb0Xq797KJSKvTCSfMEYMx6jo/1C4Wdil/z5IwWW?= =?us-ascii?Q?uCpMxoGyJYLoyGhLt+71yCrr21VaxAt58zozKSX/XvfWck0BxQ1qpTEzHtPH?= =?us-ascii?Q?VrB12PWeO8KS1E83q7jxbuTM12631y9ZyvXaPMkmj6ZMAiEiP7kWJhhQEHh3?= =?us-ascii?Q?5pPcfURKfiAjLzkM70+63X/FhUkommgx?= 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)(82310400026)(36860700013)(376014)(7416014);DIR:OUT;SFP:1101; X-OriginatorOrg: wiwynn.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 09 Sep 2024 10:54:24.9093 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: e6a25b28-96bb-4fc2-35f1-08dcd0bdc4f3 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: HK2PEPF00006FB2.apcprd02.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: SEYPR04MB5740 Content-Type: text/plain; charset="utf-8" From: Ricky CX Wu Revise Yosemite 4 devicetree for devices behind i2c-mux - Add gpio and eeprom behind i2c-mux - Remove redundant idle-state setting for i2c-mux - Revise address of max31790 devices after i2c-mux. - Fix warnings reporting by dts checking tool. Signed-off-by: Ricky CX Wu Signed-off-by: Delphine CC Chiu --- .../aspeed/aspeed-bmc-facebook-yosemite4.dts | 480 ++++++++++++++++-- 1 file changed, 437 insertions(+), 43 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 98477792aa00..bed6bf695496 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,29 @@ aliases { serial6 =3D &uart7; serial7 =3D &uart8; serial8 =3D &uart9; + + i2c16 =3D &imux16; + i2c17 =3D &imux17; + i2c18 =3D &imux18; + i2c19 =3D &imux19; + i2c20 =3D &imux20; + i2c21 =3D &imux21; + i2c22 =3D &imux22; + i2c23 =3D &imux23; + i2c24 =3D &imux24; + i2c25 =3D &imux25; + i2c26 =3D &imux26; + i2c27 =3D &imux27; + i2c28 =3D &imux28; + i2c29 =3D &imux29; + i2c30 =3D &imux30; + i2c31 =3D &imux31; + i2c32 =3D &imux32; + i2c33 =3D &imux33; + i2c34 =3D &imux34; + i2c35 =3D &imux35; + i2c36 =3D &imux36; + i2c37 =3D &imux37; }; =20 chosen { @@ -255,41 +278,328 @@ power-sensor@40 { }; =20 &i2c8 { + #address-cells =3D <1>; + #size-cells =3D <0>; status =3D "okay"; bus-frequency =3D <400000>; i2c-mux@70 { compatible =3D "nxp,pca9544"; - idle-state =3D <0>; - i2c-mux-idle-disconnect; + #address-cells =3D <1>; + #size-cells =3D <0>; reg =3D <0x70>; + i2c-mux-idle-disconnect; + + imux16: i2c@0 { + #address-cells =3D <1>; + #size-cells =3D <0>; + reg =3D <0>; + + gpio@49 { + compatible =3D "nxp,pca9537"; + reg =3D <0x49>; + gpio-controller; + #gpio-cells =3D <2>; + }; + + eeprom@50 { + compatible =3D "atmel,24c128"; + reg =3D <0x50>; + }; + + eeprom@51 { + compatible =3D "atmel,24c128"; + reg =3D <0x51>; + }; + + eeprom@54 { + compatible =3D "atmel,24c128"; + reg =3D <0x54>; + }; + }; + + imux17: i2c@1 { + #address-cells =3D <1>; + #size-cells =3D <0>; + reg =3D <1>; + gpio@49 { + compatible =3D "nxp,pca9537"; + reg =3D <0x49>; + gpio-controller; + #gpio-cells =3D <2>; + }; + + eeprom@50 { + compatible =3D "atmel,24c128"; + reg =3D <0x50>; + }; + + eeprom@51 { + compatible =3D "atmel,24c128"; + reg =3D <0x51>; + }; + + eeprom@54 { + compatible =3D "atmel,24c128"; + reg =3D <0x54>; + }; + }; + + imux18: i2c@2 { + #address-cells =3D <1>; + #size-cells =3D <0>; + reg =3D <2>; + gpio@49 { + compatible =3D "nxp,pca9537"; + reg =3D <0x49>; + gpio-controller; + #gpio-cells =3D <2>; + }; + + eeprom@50 { + compatible =3D "atmel,24c128"; + reg =3D <0x50>; + }; + + eeprom@51 { + compatible =3D "atmel,24c128"; + reg =3D <0x51>; + }; + + eeprom@54 { + compatible =3D "atmel,24c128"; + reg =3D <0x54>; + }; + }; + + imux19: i2c@3 { + #address-cells =3D <1>; + #size-cells =3D <0>; + reg =3D <3>; + gpio@49 { + compatible =3D "nxp,pca9537"; + reg =3D <0x49>; + gpio-controller; + #gpio-cells =3D <2>; + }; + + eeprom@50 { + compatible =3D "atmel,24c128"; + reg =3D <0x50>; + }; + + eeprom@51 { + compatible =3D "atmel,24c128"; + reg =3D <0x51>; + }; + + eeprom@54 { + compatible =3D "atmel,24c128"; + reg =3D <0x54>; + }; + }; }; }; =20 &i2c9 { + #address-cells =3D <1>; + #size-cells =3D <0>; status =3D "okay"; bus-frequency =3D <400000>; i2c-mux@71 { compatible =3D "nxp,pca9544"; - idle-state =3D <0>; - i2c-mux-idle-disconnect; + #address-cells =3D <1>; + #size-cells =3D <0>; reg =3D <0x71>; + i2c-mux-idle-disconnect; + + imux20: i2c@0 { + #address-cells =3D <1>; + #size-cells =3D <0>; + reg =3D <0>; + gpio@49 { + compatible =3D "nxp,pca9537"; + reg =3D <0x49>; + gpio-controller; + #gpio-cells =3D <2>; + }; + + eeprom@50 { + compatible =3D "atmel,24c128"; + reg =3D <0x50>; + }; + + eeprom@51 { + compatible =3D "atmel,24c128"; + reg =3D <0x51>; + }; + + eeprom@54 { + compatible =3D "atmel,24c128"; + reg =3D <0x54>; + }; + }; + + imux21: i2c@1 { + #address-cells =3D <1>; + #size-cells =3D <0>; + reg =3D <1>; + gpio@49 { + compatible =3D "nxp,pca9537"; + reg =3D <0x49>; + gpio-controller; + #gpio-cells =3D <2>; + }; + + eeprom@50 { + compatible =3D "atmel,24c128"; + reg =3D <0x50>; + }; + + eeprom@51 { + compatible =3D "atmel,24c128"; + reg =3D <0x51>; + }; + + eeprom@54 { + compatible =3D "atmel,24c128"; + reg =3D <0x54>; + }; + }; + + imux22: i2c@2 { + #address-cells =3D <1>; + #size-cells =3D <0>; + reg =3D <2>; + gpio@49 { + compatible =3D "nxp,pca9537"; + reg =3D <0x49>; + gpio-controller; + #gpio-cells =3D <2>; + }; + + eeprom@50 { + compatible =3D "atmel,24c128"; + reg =3D <0x50>; + }; + + eeprom@51 { + compatible =3D "atmel,24c128"; + reg =3D <0x51>; + }; + + eeprom@54 { + compatible =3D "atmel,24c128"; + reg =3D <0x54>; + }; + }; + + imux23: i2c@3 { + #address-cells =3D <1>; + #size-cells =3D <0>; + reg =3D <3>; + + gpio@49 { + compatible =3D "nxp,pca9537"; + reg =3D <0x49>; + gpio-controller; + #gpio-cells =3D <2>; + }; + + eeprom@50 { + compatible =3D "atmel,24c128"; + reg =3D <0x50>; + }; + + eeprom@51 { + compatible =3D "atmel,24c128"; + reg =3D <0x51>; + }; + + eeprom@54 { + compatible =3D "atmel,24c128"; + reg =3D <0x54>; + }; + }; }; }; =20 &i2c10 { + #address-cells =3D <1>; + #size-cells =3D <0>; status =3D "okay"; bus-frequency =3D <400000>; + i2c-mux@74 { + compatible =3D "nxp,pca9544"; + #address-cells =3D <1>; + #size-cells =3D <0>; + reg =3D <0x74>; + i2c-mux-idle-disconnect; + + imux28: i2c@0 { + #address-cells =3D <1>; + #size-cells =3D <0>; + reg =3D <0>; + + gpio@20 { + compatible =3D "nxp,pca9506"; + reg =3D <0x20>; + gpio-controller; + #gpio-cells =3D <2>; + }; + + gpio@21 { + compatible =3D "nxp,pca9506"; + reg =3D <0x21>; + gpio-controller; + #gpio-cells =3D <2>; + }; + + gpio@22 { + compatible =3D "nxp,pca9506"; + reg =3D <0x22>; + gpio-controller; + #gpio-cells =3D <2>; + }; + + gpio@23 { + compatible =3D "nxp,pca9506"; + reg =3D <0x23>; + gpio-controller; + #gpio-cells =3D <2>; + }; + + gpio@24 { + compatible =3D "nxp,pca9506"; + reg =3D <0x24>; + gpio-controller; + #gpio-cells =3D <2>; + gpio-line-names =3D + "","","","", + "NIC0_MAIN_PWR_EN","NIC1_MAIN_PWR_EN", + "NIC2_MAIN_PWR_EN","NIC3_MAIN_PWR_EN", + "","","","","","","","", + "","","","","","","","", + "","","","","","","",""; + }; + }; + + imux29: i2c@1 { + #address-cells =3D <1>; + #size-cells =3D <0>; + reg =3D <1>; + }; + }; }; =20 &i2c11 { status =3D "okay"; power-sensor@10 { - compatible =3D "adi, adm1272"; + compatible =3D "adi,adm1272"; reg =3D <0x10>; }; =20 power-sensor@12 { - compatible =3D "adi, adm1272"; + compatible =3D "adi,adm1272"; reg =3D <0x12>; }; =20 @@ -348,22 +658,61 @@ eeprom@54 { }; =20 &i2c12 { + #address-cells =3D <1>; + #size-cells =3D <0>; status =3D "okay"; bus-frequency =3D <400000>; =20 - temperature-sensor@48 { - compatible =3D "ti,tmp75"; - reg =3D <0x48>; - }; + i2c-mux@70 { + compatible =3D "nxp,pca9544"; + #address-cells =3D <1>; + #size-cells =3D <0>; + reg =3D <0x70>; + i2c-mux-idle-disconnect; =20 - eeprom@50 { - compatible =3D "atmel,24c128"; - reg =3D <0x50>; - }; + imux34: i2c@0 { + #address-cells =3D <1>; + #size-cells =3D <0>; + reg =3D <0>; =20 - rtc@6f { - compatible =3D "nuvoton,nct3018y"; - reg =3D <0x6f>; + temperature-sensor@48 { + compatible =3D "ti,tmp75"; + reg =3D <0x48>; + }; + + eeprom@50 { + compatible =3D "atmel,24c128"; + reg =3D <0x50>; + }; + + eeprom@54 { + compatible =3D "atmel,24c64"; + reg =3D <0x54>; + }; + + rtc@6f { + compatible =3D "nuvoton,nct3018y"; + reg =3D <0x6f>; + }; + }; + + imux35: i2c@1 { + #address-cells =3D <1>; + #size-cells =3D <0>; + reg =3D <1>; + }; + + imux36: i2c@2 { + #address-cells =3D <1>; + #size-cells =3D <0>; + reg =3D <2>; + }; + + imux37: i2c@3 { + #address-cells =3D <1>; + #size-cells =3D <0>; + reg =3D <3>; + }; }; }; =20 @@ -380,6 +729,8 @@ ipmb@10 { }; =20 &i2c14 { + #address-cells =3D <1>; + #size-cells =3D <0>; status =3D "okay"; bus-frequency =3D <400000>; adc@1d { @@ -440,16 +791,14 @@ eeprom@51 { reg =3D <0x51>; }; =20 - i2c-mux@71 { - compatible =3D "nxp,pca9846"; + i2c-mux@74 { + compatible =3D "nxp,pca9546"; #address-cells =3D <1>; #size-cells =3D <0>; - - idle-state =3D <0>; i2c-mux-idle-disconnect; - reg =3D <0x71>; + reg =3D <0x74>; =20 - i2c@0 { + imux30: i2c@0 { #address-cells =3D <1>; #size-cells =3D <0>; reg =3D <0>; @@ -457,11 +806,11 @@ i2c@0 { adc@1f { compatible =3D "ti,adc128d818"; reg =3D <0x1f>; - ti,mode =3D /bits/ 8 <2>; + ti,mode =3D /bits/ 8 <1>; }; =20 pwm@20{ - compatible =3D "max31790"; + compatible =3D "maxim,max31790"; reg =3D <0x20>; #address-cells =3D <1>; #size-cells =3D <0>; @@ -470,11 +819,13 @@ pwm@20{ gpio@22{ compatible =3D "ti,tca6424"; reg =3D <0x22>; + gpio-controller; + #gpio-cells =3D <2>; }; =20 - pwm@23{ - compatible =3D "max31790"; - reg =3D <0x23>; + pwm@2f{ + compatible =3D "maxim,max31790"; + reg =3D <0x2f>; #address-cells =3D <1>; #size-cells =3D <0>; }; @@ -499,19 +850,19 @@ gpio@61 { }; }; =20 - i2c@1 { + imux31: i2c@1 { #address-cells =3D <1>; #size-cells =3D <0>; - reg =3D <0>; + reg =3D <1>; =20 adc@1f { compatible =3D "ti,adc128d818"; reg =3D <0x1f>; - ti,mode =3D /bits/ 8 <2>; + ti,mode =3D /bits/ 8 <1>; }; =20 pwm@20{ - compatible =3D "max31790"; + compatible =3D "maxim,max31790"; reg =3D <0x20>; #address-cells =3D <1>; #size-cells =3D <0>; @@ -520,11 +871,13 @@ pwm@20{ gpio@22{ compatible =3D "ti,tca6424"; reg =3D <0x22>; + gpio-controller; + #gpio-cells =3D <2>; }; =20 - pwm@23{ - compatible =3D "max31790"; - reg =3D <0x23>; + pwm@2f{ + compatible =3D "maxim,max31790"; + reg =3D <0x2f>; #address-cells =3D <1>; #size-cells =3D <0>; }; @@ -554,12 +907,10 @@ i2c-mux@73 { compatible =3D "nxp,pca9544"; #address-cells =3D <1>; #size-cells =3D <0>; - - idle-state =3D <0>; - i2c-mux-idle-disconnect; reg =3D <0x73>; + i2c-mux-idle-disconnect; =20 - i2c@0 { + imux32: i2c@0 { #address-cells =3D <1>; #size-cells =3D <0>; reg =3D <0>; @@ -570,10 +921,10 @@ adc@35 { }; }; =20 - i2c@1 { + imux33: i2c@1 { #address-cells =3D <1>; #size-cells =3D <0>; - reg =3D <0>; + reg =3D <1>; =20 adc@35 { compatible =3D "maxim,max11617"; @@ -584,6 +935,8 @@ adc@35 { }; =20 &i2c15 { + #address-cells =3D <1>; + #size-cells =3D <0>; status =3D "okay"; mctp-controller; multi-master; @@ -596,9 +949,50 @@ mctp@10 { =20 i2c-mux@72 { compatible =3D "nxp,pca9544"; - idle-state =3D <0>; - i2c-mux-idle-disconnect; + #address-cells =3D <1>; + #size-cells =3D <0>; reg =3D <0x72>; + i2c-mux-idle-disconnect; + + imux24: i2c@0 { + #address-cells =3D <1>; + #size-cells =3D <0>; + reg =3D <0>; + temperature-sensor@1f { + compatible =3D "ti,tmp421"; + reg =3D <0x1f>; + }; + }; + + imux25: i2c@1 { + #address-cells =3D <1>; + #size-cells =3D <0>; + reg =3D <1>; + temperature-sensor@1f { + compatible =3D "ti,tmp421"; + reg =3D <0x1f>; + }; + }; + + imux26: i2c@2 { + #address-cells =3D <1>; + #size-cells =3D <0>; + reg =3D <2>; + temperature-sensor@1f { + compatible =3D "ti,tmp421"; + reg =3D <0x1f>; + }; + }; + + imux27: i2c@3 { + #address-cells =3D <1>; + #size-cells =3D <0>; + reg =3D <3>; + temperature-sensor@1f { + compatible =3D "ti,tmp421"; + reg =3D <0x1f>; + }; + }; }; }; =20 --=20 2.25.1 From nobody Sat Nov 30 12:47:14 2024 Received: from APC01-TYZ-obe.outbound.protection.outlook.com (mail-tyzapc01on2064.outbound.protection.outlook.com [40.107.117.64]) (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 D1B6D1B5311; Mon, 9 Sep 2024 10:54:34 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.117.64 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1725879276; cv=fail; b=IH7ohETc764X+6Gv+jOydsFbQeaDtUel0P2xZcFDmvsTQTUBayuk0xVx6h1gp1cCecwmDfipRxwYOLZx28KtTHAqbSjG3sVVihAY9ThAP8f6CqxBf1DEeK0rgzKkN4CO17+fq8V93lnV0/3Thnjf8Pwapa2m1leE6Mwm/ohKEWA= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1725879276; c=relaxed/simple; bh=yze2INEU/dpx/bRFGiNSCWwwBKGQ/kr8FWF+DMAYJo0=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version:Content-Type; b=WoReuHr+gDGpyE1MvvxPxJPRAaq6VjCqTTUEyeS9HlXrdkXDftGYjJXDJ6RHbjVjpkDajQ+8RBd1sj8PJyriTXPlK9/1/Um7oCYPtTq9c+tmJjgYMAjB1iJYpnVkJdUBjt4orDqeee6KZTTxO5DinypuT35f4bpo/XuvNwdN+eU= 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=yAb8Ds2V; arc=fail smtp.client-ip=40.107.117.64 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="yAb8Ds2V" ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=e2sggSh1IwB/yPxMk7kNJnD77+9zOzz6OA3tVFJ+oplh/vmJU5LyFPdjFwhKxfniNqJt6Ft/huWL/f10nZ5GngCeRq1B1Hb1dD8yQARhsjYEDgugsutnuG+EgCBnipPRHhEzqudlWKyNA6OxgwRCkw46n/cQ+Vm2HWvtaFlivMOH4biIWg1GcTDHghLYbeqVKGUQRDNJ4UnLCpQZdp/Mibg1B5PT1FfYejNR7gqM6nFHTSCeM5g4l+NlqJlpnjeDwYqy9RYOnrPNVA5W9UN7O/HkEdqtsgILsa89/W9vwVLKQHRI9Ghr25pOL27bWW/etBNZk4mCxBnUd64YOa7Psg== 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=4USzMxeBU9EH3DrSJM49cRXUWi0wRlmxC1ux7rp49ew=; b=sQIqyfdDJWz7/LJGL7aK5OIVef6kGEEaj7ct29DkNBq8MBoWJ3E+1ZwA4XHX+Y70bGoOlro67TMMzDvbrEqiZyllC9RlMEspJ2C5bP4oXjp5nc/QZAJEhRtIordV495PFHEsATf//B0ORmVT6f2QhMJ1v5HIiov7r1dQvE5+DIxK0JY21vvWiLmO0eqCohJ7/tTuqsqceqDgqNSbC/muHxL9eih6wKrcJ64Z3yUfkTKnj+QC66wC7gawOG//qG15DAmTAX1bv4Ib+WNj6J2g/BjVfMDTz/5viG0x7jr4ZTn878dwnHTU7asCSQqzGdqlDoCyzrYqaSavDk9Sd5uUDA== 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=4USzMxeBU9EH3DrSJM49cRXUWi0wRlmxC1ux7rp49ew=; b=yAb8Ds2VwWBSacinX1sDIoHM0/D9ZuL9zPBE21iMSpZGaSwtatMGMkhMnjA7ZZEHPS/3Muw107/OxpvXnGg8qzON7jiV46pqf4vkWpsV4znzt8WZ9yv2xF23JyrKyim07dQviXeCoPoHsgAt0QxZl6SH8J6Oo1u0n3Y2G9VAjemxSIKTffKRPQlqZXZ15ZNuBR6LTZd6pieRV3Iw2T3DkUp05EIhxe5qrbNnwusbkWUk54MYMLWo1ezww0KC9ZzFjjrdG4tk3J4YGNix+PV/481YhDCcIs/8hX3pMXLHvvRZPJaIsKijDSZ1VuuhENrmKcklCZp4g7J+rfTwBkH6Ag== Received: from SG2PR06CA0215.apcprd06.prod.outlook.com (2603:1096:4:68::23) by TYSPR04MB8291.apcprd04.prod.outlook.com (2603:1096:405:c5::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7918.27; Mon, 9 Sep 2024 10:54:28 +0000 Received: from HK2PEPF00006FB2.apcprd02.prod.outlook.com (2603:1096:4:68:cafe::8a) by SG2PR06CA0215.outlook.office365.com (2603:1096:4:68::23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7939.23 via Frontend Transport; Mon, 9 Sep 2024 10:54:28 +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 HK2PEPF00006FB2.mail.protection.outlook.com (10.167.8.8) with Microsoft SMTP Server id 15.20.7918.13 via Frontend Transport; Mon, 9 Sep 2024 10:54:27 +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 v18 2/3] ARM: dts: aspeed: yosemite4: add mctp config and sensors for NIC Date: Mon, 9 Sep 2024 18:54:17 +0800 Message-Id: <20240909105420.441607-3-Delphine_CC_Chiu@wiwynn.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20240909105420.441607-1-Delphine_CC_Chiu@wiwynn.com> References: <20240909105420.441607-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: HK2PEPF00006FB2:EE_|TYSPR04MB8291:EE_ X-MS-Office365-Filtering-Correlation-Id: 0a01817b-dd81-4875-2361-08dcd0bdc6a5 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|1800799024|36860700013|7416014|82310400026|376014; X-Microsoft-Antispam-Message-Info: =?us-ascii?Q?U/YDvLuHuT8ZJPNvYOrftj72DXanPsSmgwlBfG21LElH6EANv5OId9tBEzxa?= =?us-ascii?Q?87oY7PmCoK5BZ2ZmFIkPWzIiSmeUPIC3e2o+ZJXHX792yhoeEK9PEpaUOriQ?= =?us-ascii?Q?CJqOzvW+XxMr+ilGO2BAGwMO+R0iOC0n4qDh3GFIZEiqW45uTjyzu5Z1DFQc?= =?us-ascii?Q?gHWkdNYHB5SL0+jDHS9EOtkMC7g4bhZgk/+0cEpOsUqz86NQiai8SXzSJ0rO?= =?us-ascii?Q?LYSNyUWEGzrbNSqnRQy2n4auNHearMRrWwdT1IQUTtT0mKLcFE50REcfXShF?= =?us-ascii?Q?HpxJc7j+aMF05ldYkPR48fwTE6d8knNRwsV85/bAET5EjcHrXmcauMy0znQd?= =?us-ascii?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qzrav8sizzWw+Pk1B6z?= =?us-ascii?Q?8kFqRUHho0uPTIreuKkGTdr0T7TC1ZsDFX5OJL3A1b7zosV/iYVcGHBrvPpI?= =?us-ascii?Q?GlLqV8K+Ius0yUS9BK1Q0wNk9PLvo+7RkhRAe7HAQe5M0OWJ12DzkAf1M5MW?= =?us-ascii?Q?Pqy1o9KWmjAHfNitVntqhTGHJmccY1WV0Nw55xkiLXl5i1eNtzIDBVg2cDM/?= =?us-ascii?Q?SF/KnU2OHK7VDgUVCwZK4pajsQrjC+sC?= 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)(36860700013)(7416014)(82310400026)(376014);DIR:OUT;SFP:1101; X-OriginatorOrg: wiwynn.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 09 Sep 2024 10:54:27.7531 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 0a01817b-dd81-4875-2361-08dcd0bdc6a5 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: HK2PEPF00006FB2.apcprd02.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: TYSPR04MB8291 Content-Type: text/plain; charset="utf-8" From: Ricky CX Wu - Add MCTP config for NIC and remove the unnecessary MCTP config on bus 15. - Add 2nd source temperature sensors EMC1403 for NIC. - Add eeprom for NIC. Signed-off-by: Ricky CX Wu Signed-off-by: Delphine CC Chiu --- .../aspeed/aspeed-bmc-facebook-yosemite4.dts | 49 ++++++++++++++++++- 1 file changed, 48 insertions(+), 1 deletion(-) 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 bed6bf695496..7898c4c94b9f 100644 --- a/arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-yosemite4.dts +++ b/arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-yosemite4.dts @@ -938,7 +938,6 @@ &i2c15 { #address-cells =3D <1>; #size-cells =3D <0>; status =3D "okay"; - mctp-controller; multi-master; bus-frequency =3D <400000>; =20 @@ -958,40 +957,88 @@ imux24: i2c@0 { #address-cells =3D <1>; #size-cells =3D <0>; reg =3D <0>; + mctp-controller; + temperature-sensor@1f { compatible =3D "ti,tmp421"; reg =3D <0x1f>; }; + + temperature-sensor@3c { + compatible =3D "smsc,emc1403"; + reg =3D <0x3c>; + }; + + eeprom@50 { + compatible =3D "atmel,24c64"; + reg =3D <0x50>; + }; }; =20 imux25: i2c@1 { #address-cells =3D <1>; #size-cells =3D <0>; reg =3D <1>; + mctp-controller; + temperature-sensor@1f { compatible =3D "ti,tmp421"; reg =3D <0x1f>; }; + + temperature-sensor@3c { + compatible =3D "smsc,emc1403"; + reg =3D <0x3c>; + }; + + eeprom@50 { + compatible =3D "atmel,24c64"; + reg =3D <0x50>; + }; }; =20 imux26: i2c@2 { #address-cells =3D <1>; #size-cells =3D <0>; reg =3D <2>; + mctp-controller; + temperature-sensor@1f { compatible =3D "ti,tmp421"; reg =3D <0x1f>; }; + + temperature-sensor@3c { + compatible =3D "smsc,emc1403"; + reg =3D <0x3c>; + }; + + eeprom@50 { + compatible =3D "atmel,24c64"; + reg =3D <0x50>; + }; }; =20 imux27: i2c@3 { #address-cells =3D <1>; #size-cells =3D <0>; reg =3D <3>; + mctp-controller; + temperature-sensor@1f { compatible =3D "ti,tmp421"; reg =3D <0x1f>; }; + + temperature-sensor@3c { + compatible =3D "smsc,emc1403"; + reg =3D <0x3c>; + }; + + eeprom@50 { + compatible =3D "atmel,24c64"; + reg =3D <0x50>; + }; }; }; }; --=20 2.25.1 From nobody Sat Nov 30 12:47:14 2024 Received: from APC01-SG2-obe.outbound.protection.outlook.com (mail-sgaapc01on2048.outbound.protection.outlook.com [40.107.215.48]) (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 3A2FE1B580E; Mon, 9 Sep 2024 10:54:38 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.215.48 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1725879281; cv=fail; b=JTfXIGf2HQZRzAN9jAv1jp4SxnZF7wU/5IThcSjN4xQ0/+ZDAQpRQmPHo9nIyh8qL8DVKurAm+gHbItmPwfgO1gj57cnANBjnB9gyovcrz9tKZhluPcPRyyreJdUnZOHMIJ9ShoYgyHdWuccG5PGL76bZhhXEn+n8PIiNVz11II= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1725879281; c=relaxed/simple; bh=UrQvg69WKZZRPbEAp0Jl0u3tS7wnnDOtSEd/t00srFg=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version:Content-Type; b=Ri8pOTlE5m0KK1d2PRD9LtXX4Ik7IWwji74zHsJP24ubX+EEuLBeO02oQTGzSoz79Af/zid/0OQJfHwizUB0u8CuXK9YPvrOLKaAC6oAP86cZMIeF0FncXGGYJDSshWCyECW5KsNxP0dbhY9opXbiWHpax0Ahms1csarQ15wuWg= 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=nlznQLXv; arc=fail smtp.client-ip=40.107.215.48 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="nlznQLXv" ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=mOQK57rp/aIY2gRsVGI5OELoY0CqcW/I6t9p366esDDC6RkY54Q6brLozeiYHl6L06keI9kJiJSZvNw5aHh7/SLwijsbRmFPLPw/CAk5IcS+5AZ7ijRkMzN8aYN0p49RpPijpFR1zCWkmkan8FTQUpcwuBcS5WzoGKuO4hJhAwtzmuukma0YDC+4xkeSm/qUUJBD8fqy7SRcd//SGUTryQqx5ubr3m1XmmIOhw+H7fVDlXKQaO95X+9Y+VOwAN9R5X6/ZMEBnVyiWwzE5tu5006+z4KJ6vplscoFzvnSuykeZTbGachQdDPVX54WMNIj0MSHqG919TTjmo4Y25Te0Q== 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=nzg41NePDkge44MLYYd7mKZW1SvxZnqJAzXlq5UwtC0=; b=rWkeW1+y3yJGmxz0AXdi8Afm24zRnjwYpGONEHmCqqx/W4Yv+YqBo7OvE5iKyd1vTWY+u6uTZR2MMBkUnRTDCcr3NZTRHRcLS4KFKIILsmm+e9Uyq40aLATCc81+B6w07PLrHNtT/NCQAmetFwJJNSIZFPnWcTjziSmoFNLQb42c8G9VAvz8cuBq6NmyydG8Kvrq6En4AdG5c0tseAKS/nR8A4+fU03N4mAG+nWXvem60qyGckE/qQNpYS6SvSeT9AphUpxtGSVptCGRsJCR+Ja5bZZHvZXDyfmDYmNkEH0UQs3oDvUz7pXsfFubmaHluLTMukm7PbCSbF1W3LHOUA== 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=nzg41NePDkge44MLYYd7mKZW1SvxZnqJAzXlq5UwtC0=; b=nlznQLXvjP6UYlIekV2HiMtQo8/LkWZVCzanLXdSIkjlNlzjMx4d6UXCQfcz64T5piUz2spN1rFsCf1/oH9cty349j64DLbR6378oaQz25SKASjqKSoye9+H+v9EgE91rhjjg/IcY81GQK0sOaVWeZMuRjgYG78y5O7gx6zjHSya5H9QUciX4LHfROIT2sjac6VrMSR5h2qIj+vsIaUwsVY1Hbk8e/ykSAk9zcA8QGWTBx6vHgLc3E6n9dqs7wfj7x0VM0CKo7JQBERoOAhq5w7OHWsr3YjBLcvwzt3iIWYTdT6L11N7uGgZzyae+Dh1Ov7hoxMKPErKC2FS1Fgrgw== Received: from SG2PR06CA0212.apcprd06.prod.outlook.com (2603:1096:4:68::20) by SEZPR04MB7339.apcprd04.prod.outlook.com (2603:1096:101:19d::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7939.23; Mon, 9 Sep 2024 10:54:31 +0000 Received: from HK2PEPF00006FB2.apcprd02.prod.outlook.com (2603:1096:4:68:cafe::f4) by SG2PR06CA0212.outlook.office365.com (2603:1096:4:68::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7939.23 via Frontend Transport; Mon, 9 Sep 2024 10:54:31 +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 HK2PEPF00006FB2.mail.protection.outlook.com (10.167.8.8) with Microsoft SMTP Server id 15.20.7918.13 via Frontend Transport; Mon, 9 Sep 2024 10:54:30 +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 v18 3/3] ARM: dts: aspeed: yosemite4: add fan led config Date: Mon, 9 Sep 2024 18:54:18 +0800 Message-Id: <20240909105420.441607-4-Delphine_CC_Chiu@wiwynn.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20240909105420.441607-1-Delphine_CC_Chiu@wiwynn.com> References: <20240909105420.441607-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: HK2PEPF00006FB2:EE_|SEZPR04MB7339:EE_ X-MS-Office365-Filtering-Correlation-Id: 5f388f8f-4435-40ec-fcda-08dcd0bdc862 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: =?us-ascii?Q?3nBnj19E940faTzbITKIseCdB6+ErvHVTTc5SAIM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/vOzx5AgbjfHTWr3PomivttjP1MHfDIsHQBX12Qoe+bVJ4Jg?= =?us-ascii?Q?K9T0CX/uIC7NWpzuzlcsgrMz3zqOxMU9djdn3TZhMscC32rtrXZxAWwtxEf5?= =?us-ascii?Q?o6qMd3OXUFLlmyECySfRjdyjz16bPt6Lo0tnDAvXMbaVYtxSWNj6mCncxYIA?= =?us-ascii?Q?pVkwvFRPEdLWd1G5a3W5VArUFMoaXLom2uKcrO020yzXjBUNbkiY3K1pwtBy?= =?us-ascii?Q?iYfpgu3xgjVY/w5e/LmZwtDWX3UGNfbiZAY2ztoiFuVOwJz3lcRh7H8488PK?= =?us-ascii?Q?HDi0gVHBHSh3fyshkGY2Otso7Ya6vAPwa28r4lxw3LznQdUYMKDZ4/AXEfsq?= =?us-ascii?Q?59Lis7vql829HpmV9GukIynCNXMRbtPVm1VuXN4Qpjvvvs7Lc6VTBrRfbL63?= =?us-ascii?Q?YUjbspS4Y8E73bFBZnJB7RzrC0bpi00THaIq9q7f3iDM5tF/zSVIexoeUPaY?= =?us-ascii?Q?7752i9TTKRdbkm5YNbDm5fzOcbBpdMTDEGVI63dVTJ/aNSWH2z8rc2a+pC28?= =?us-ascii?Q?HOJY4yNYysdSE97MBAnSV2wxYQl7IkRT?= 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: 09 Sep 2024 10:54:30.6750 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 5f388f8f-4435-40ec-fcda-08dcd0bdc862 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: HK2PEPF00006FB2.apcprd02.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: SEZPR04MB7339 Content-Type: text/plain; charset="utf-8" From: Ricky CX Wu Set fan led config in yosemite4 DTS so that BMC could set different color LED according to the status of the Fan. Signed-off-by: Ricky CX Wu Signed-off-by: Delphine CC Chiu --- .../aspeed/aspeed-bmc-facebook-yosemite4.dts | 177 +++++++++++++++++- 1 file changed, 175 insertions(+), 2 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 7898c4c94b9f..5399fe22e3ae 100644 --- a/arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-yosemite4.dts +++ b/arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-yosemite4.dts @@ -4,6 +4,7 @@ /dts-v1/; #include "aspeed-g6.dtsi" #include +#include #include #include =20 @@ -57,6 +58,178 @@ iio-hwmon { <&adc0 4>, <&adc0 5>, <&adc0 6>, <&adc0 7>, <&adc1 0>, <&adc1 1>; }; + + leds { + compatible =3D "gpio-leds"; + + led-fan0-blue { + color =3D ; + retain-state-shutdown; + default-state =3D "on"; + gpios =3D <&led_gpio0 4 GPIO_ACTIVE_HIGH>; + }; + + led-fan0-amber { + color =3D ; + retain-state-shutdown; + default-state =3D "off"; + gpios =3D <&led_gpio0 5 GPIO_ACTIVE_HIGH>; + }; + + led-fan1-blue { + color =3D ; + retain-state-shutdown; + default-state =3D "on"; + gpios =3D <&led_gpio0 10 GPIO_ACTIVE_HIGH>; + }; + + led-fan1-amber { + color =3D ; + retain-state-shutdown; + default-state =3D "off"; + gpios =3D <&led_gpio0 11 GPIO_ACTIVE_HIGH>; + }; + + led-fan2-blue { + color =3D ; + retain-state-shutdown; + default-state =3D "on"; + gpios =3D <&led_gpio1 4 GPIO_ACTIVE_HIGH>; + }; + + led-fan2-amber { + color =3D ; + retain-state-shutdown; + default-state =3D "off"; + gpios =3D <&led_gpio1 5 GPIO_ACTIVE_HIGH>; + }; + + led-fan3-blue { + color =3D ; + retain-state-shutdown; + default-state =3D "on"; + gpios =3D <&led_gpio1 10 GPIO_ACTIVE_HIGH>; + }; + + led-fan3-amber { + color =3D ; + retain-state-shutdown; + default-state =3D "off"; + gpios =3D <&led_gpio1 11 GPIO_ACTIVE_HIGH>; + }; + + led-fan4-blue { + color =3D ; + retain-state-shutdown; + default-state =3D "on"; + gpios =3D <&led_gpio0 2 GPIO_ACTIVE_HIGH>; + }; + + led-fan4-amber { + color =3D ; + retain-state-shutdown; + default-state =3D "off"; + gpios =3D <&led_gpio0 3 GPIO_ACTIVE_HIGH>; + }; + + led-fan5-blue { + color =3D ; + retain-state-shutdown; + default-state =3D "on"; + gpios =3D <&led_gpio0 8 GPIO_ACTIVE_HIGH>; + }; + + led-fan5-amber { + color =3D ; + retain-state-shutdown; + default-state =3D "off"; + gpios =3D <&led_gpio0 9 GPIO_ACTIVE_HIGH>; + }; + + led-fan6-blue { + color =3D ; + retain-state-shutdown; + default-state =3D "on"; + gpios =3D <&led_gpio1 2 GPIO_ACTIVE_HIGH>; + }; + + led-fan6-amber { + color =3D ; + retain-state-shutdown; + default-state =3D "off"; + gpios =3D <&led_gpio1 3 GPIO_ACTIVE_HIGH>; + }; + + led-fan7-blue { + color =3D ; + retain-state-shutdown; + default-state =3D "on"; + gpios =3D <&led_gpio1 8 GPIO_ACTIVE_HIGH>; + }; + + led-fan7-amber { + color =3D ; + retain-state-shutdown; + default-state =3D "off"; + gpios =3D <&led_gpio1 9 GPIO_ACTIVE_HIGH>; + }; + + led-fan8-blue { + color =3D ; + retain-state-shutdown; + default-state =3D "on"; + gpios =3D <&led_gpio0 0 GPIO_ACTIVE_HIGH>; + }; + + led-fan8-amber { + color =3D ; + retain-state-shutdown; + default-state =3D "off"; + gpios =3D <&led_gpio0 1 GPIO_ACTIVE_HIGH>; + }; + + led-fan9-blue { + color =3D ; + retain-state-shutdown; + default-state =3D "on"; + gpios =3D <&led_gpio0 6 GPIO_ACTIVE_HIGH>; + }; + + led-fan9-amber { + color =3D ; + retain-state-shutdown; + default-state =3D "off"; + gpios =3D <&led_gpio0 7 GPIO_ACTIVE_HIGH>; + }; + + led-fan10-blue { + color =3D ; + retain-state-shutdown; + default-state =3D "on"; + gpios =3D <&led_gpio1 0 GPIO_ACTIVE_HIGH>; + }; + + led-fan10-amber { + color =3D ; + retain-state-shutdown; + default-state =3D "off"; + gpios =3D <&led_gpio1 1 GPIO_ACTIVE_HIGH>; + }; + + led-fan11-blue { + color =3D ; + retain-state-shutdown; + default-state =3D "on"; + gpios =3D <&led_gpio1 6 GPIO_ACTIVE_HIGH>; + }; + + led-fan11-amber { + color =3D ; + retain-state-shutdown; + default-state =3D "off"; + gpios =3D <&led_gpio1 7 GPIO_ACTIVE_HIGH>; + }; + }; }; =20 &uart1 { @@ -840,7 +1013,7 @@ eeprom@52 { reg =3D <0x52>; }; =20 - gpio@61 { + led_gpio1: gpio@61 { compatible =3D "nxp,pca9552"; reg =3D <0x61>; #address-cells =3D <1>; @@ -892,7 +1065,7 @@ eeprom@52 { reg =3D <0x52>; }; =20 - gpio@61 { + led_gpio0: gpio@61 { compatible =3D "nxp,pca9552"; reg =3D <0x61>; #address-cells =3D <1>; --=20 2.25.1