From nobody Sat Nov 30 16:31:53 2024 Received: from APC01-PSA-obe.outbound.protection.outlook.com (mail-psaapc01on2048.outbound.protection.outlook.com [40.107.255.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 6D8131BF2A; Mon, 9 Sep 2024 01:38:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.255.48 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1725845885; cv=fail; b=VTSduT2IeJ127ICjIxqF84+tzjMQtw0TBx6cIQ1lPurfyqwHtuUk3c/c4z+awjs4RgW+Bat6vW9X4rIdU+838MVHby+z1Tg29XGUOU5oMCNSxBIwq4qH1uGmx3WMK2t0X1wwaCI1wLU81berDQUooAwkpBaMlnXuVdy8fZoNI9o= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1725845885; c=relaxed/simple; bh=QWuBkdeh09JL40y8cgduv+dKQxUY92+QyrmEqgmI5TY=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version:Content-Type; b=Y+p7x/5ywcYE291sKcHSW55aqK/pZ9RiKzNLLbD0Lj5cBUpXIt1AV0JYYwwXe1JneDifaJ8pVvl2qCAu6ek6JmC91aktTs+cYGbrTL0sE9Gpl/N7upNc4vcRXf5Ll22RqYImDv8s6zxXgkl5svsTJ8UHWOypikX+C4tH45V04X8= 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=qju2txkU; arc=fail smtp.client-ip=40.107.255.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="qju2txkU" ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=Y0yMltHvmvmpaHJ3ZRux3DPuihhxi0txJkieszYV0pLW8x8bWGOan///XJteMhOdHPl8vW3TY0lXkjISer0CRIvDmRYgod9EI/GW7GeUbF0ttIvQNkqcfYGXE623WR5g4cyNpihv2pSOXEM5g0emLwWlwxhv5ypyV2w7JplMRNuNaFcyhwRwxEpO09cZd3K2OmdJPlpCq/8rFt7ykbVeASwYHglmjQDcFWbv50fLECgzz5IlrFrSlCmlAKs4Z1ilnuUfzK4tZXONa/oXIj50Yzqual/JBWTvCLPdoJnWLWcbZWiGrqhvb1jrXUZIIm5hqB2w1s/fDA+H7l3wpF3NTQ== 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=n3sSQ0O5z38D/bQZfyLIioqB4KHzzcdGRAymnR4aMUA=; b=h235zH8bosIP/zScuCnPSTTOrfZyzP8tkxLH76DJcihGadmNCKdQvvca6pzEZyi08W9b+BTDXdYOYWUWFAIuoWYO3Ai143JneVdREJkZlqGwvxFk2TAFFC5xho+zRKMhxby0NlIMBwII7fHqAlcLSJUfxw8gY4p0OSvtlmwm1nmirOHY1fKzz1nQu9IwT25HdwyLaECDhZiK0RzFu2mg7QnelXF5wTeFlICaDn3LlsCck0Th8cSe4cXWvK3CrY6LPWzZ7nhAs2ybXYpBMe8dTFKKGTSXQY6+D6cRmHA2q4O6lW4l2qp6oWlHS7JP6xPvgeutqagYmKWk8KrtF412NA== 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=n3sSQ0O5z38D/bQZfyLIioqB4KHzzcdGRAymnR4aMUA=; b=qju2txkUrTmM/7KeWt23ijaeXKdiLS+n4MKKvB/pmpQd8R32hcJezburiQuvadGteTFun5x0sb1lESqeRnm2hQsKPk2IfzZikCkOBgLWdq9hsKyAANlKIm0OFO2nsq40FJJ5C+atxCGBDLFCcmVkMiBE+N1PxpxCFw6uBeDosXf4dZjS07y+diubFY7QPJTU1jzHq1lfVwTnaWQSQu4DdaryQxnZc/f5NCUSCv3w/uLxNi88w2wMpo74ixUiFQYp/QP9pS44WFu9SjxH0Bm+Nfc5jDqlTngi0361Ry91CpVzEdpJjAzRXE8Ag7I7Xk0FeqIvnAf1WNO4x81FSG5dFQ== Received: from SG2PR02CA0010.apcprd02.prod.outlook.com (2603:1096:3:17::22) by SEYPR04MB5977.apcprd04.prod.outlook.com (2603:1096:101:8f::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7939.20; Mon, 9 Sep 2024 01:37:55 +0000 Received: from SG1PEPF000082E3.apcprd02.prod.outlook.com (2603:1096:3:17:cafe::7f) by SG2PR02CA0010.outlook.office365.com (2603:1096:3:17::22) 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 01:37:55 +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 SG1PEPF000082E3.mail.protection.outlook.com (10.167.240.6) with Microsoft SMTP Server id 15.20.7918.13 via Frontend Transport; Mon, 9 Sep 2024 01:37:54 +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 v17 1/3] ARM: dts: aspeed: yosemite4: Revise i2c-mux devices Date: Mon, 9 Sep 2024 09:37:42 +0800 Message-Id: <20240909013745.3306365-2-Delphine_CC_Chiu@wiwynn.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20240909013745.3306365-1-Delphine_CC_Chiu@wiwynn.com> References: <20240909013745.3306365-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: SG1PEPF000082E3:EE_|SEYPR04MB5977:EE_ X-MS-Office365-Filtering-Correlation-Id: d82911c7-f44c-4519-cd9c-08dcd07006ed X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|376014|1800799024|7416014|82310400026|36860700013; X-Microsoft-Antispam-Message-Info: =?us-ascii?Q?AmJQytW1ARAUsoTxwHckOJnRFjpNkWNE/8nOynbk4k/hR8kvdFGIWIPiuzUZ?= =?us-ascii?Q?I8qgPRj+cE7tAOtN7tRTWPfryjzOEA8Vg2c9s2/81MDG5pW/JMirY/PpxUTp?= =?us-ascii?Q?X/aT/hrywvM+t5bZnyFkBhPrh61MKwufg+BrQVwd2ST9RMoLmKsU3ekf7dkx?= =?us-ascii?Q?x2zdv9LMf2rdi+rnKvLOfJwHTycBHKNhGrVsTgijisobDfSQQMM6PB+tLT6H?= =?us-ascii?Q?9M+UM2LlQWIq6n0PE7a9hXEfoMNCEOeVu7gZBenkW+nTw8jVeA8mQ8AlsNja?= =?us-ascii?Q?xCZC4lmtkK33g1phykfxG1Dn/Y+RHlggNO8b/HRcirmjuCB1gV1YLTCrKCVr?= =?us-ascii?Q?2gUlh19zwN7A1VYpoGv//nsShWbHRfDaGiqCko8u8a5Bz3cUrnqiL1UgjlQa?= =?us-ascii?Q?Pv+Zg9YAPSryKj3H+4UyoBy/fwQ7QEGWpJT/nHGHAxkHSFX/kkh3ziuwx7wr?= =?us-ascii?Q?FxaxyZtnkXcX6bPvCALYZW9xukW562q4GIek8hj2JGt/ahac45/zAtI5ODMe?= =?us-ascii?Q?YQXt9YQk5rfSaav2EoVVW3mTB8p74t4u6DP8HxnqT/ZGEdcdqYL5gsqzmV62?= =?us-ascii?Q?96zTJ2AbD6JqbUWbXfaLpOuNAeCisw1Zmqx/1bYmywnxHeEbJdzuQFtBdHxF?= =?us-ascii?Q?0nMWXEerHI64VVuGuKoEqQLWMzUMZ/bZu7yy1IVY9Gqdc3JeBm3o/SpSq+X6?= =?us-ascii?Q?kGR9sDS8dZFrgx89KXV1ifBLEJIiaq7as7riFrs0OAdDaxlmog7PV0bwNW+R?= =?us-ascii?Q?CxnDcks83z11XKt/eelj1Izr8n9WqTZqJwePgUcqFWzmED2qIVEIx8XjRAwy?= =?us-ascii?Q?ISSNqTJaJDuTmOqBi4KoTgobXCvYe3maVTo6Rfc93eLV1tygoxNFXPXsS8r2?= =?us-ascii?Q?7trfmt5qMgki6qOAcsMeyBVG+9d1D8R48zCxXlVjWDOJvB3myn4Xr7Jzvif2?= =?us-ascii?Q?sBv1CX7w8CwrVI7qS+9HXebzXsWZE0WoKOSsOg6gbar5cNasryw76j2gaKiV?= =?us-ascii?Q?3VTZ01fFmdNq6fwNL7QFVEYvukoXEFJ13z3AeWy4k7K7VcrgUMf+zUxW7mXv?= =?us-ascii?Q?xlxVvLHpaYSJsuzYLkGxNCdO0FYwTfEfUeLvc0E8Hz6/DNA6zmCyP5mOGHeY?= =?us-ascii?Q?ubh3xD4kOzG/UYEokzV1rFjr4FnTm/oKhB7JA5122TGABvbOR9w4D7ZQmGbh?= =?us-ascii?Q?ZuMAzKBsGbl2pWgHnFnusRM9FBzQeuqatqO1N16I6wLF+gf4HlY5h8rqXoVt?= =?us-ascii?Q?CNJYToS89zrpRSAKr8XRCZuDhFFUBRRvuZwAY6c5DNCwzhk1pwm/FNqXjnzv?= =?us-ascii?Q?G8qq0Q9t92bPLr/86+gzDgq+BnB5A3u8y5Fa+TQsuosc6YYC0A9kNIWjp4Hp?= =?us-ascii?Q?HFJSVvE/fOkLej407hiAHf+ZiLHtfIL1hqoIFsbulSoWhaRpHm9+qYZuOIsk?= =?us-ascii?Q?jU23drsJnjWRgPFJeqUBbT1D1355RB5i?= 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)(376014)(1800799024)(7416014)(82310400026)(36860700013);DIR:OUT;SFP:1101; X-OriginatorOrg: wiwynn.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 09 Sep 2024 01:37:54.3898 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: d82911c7-f44c-4519-cd9c-08dcd07006ed 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: SG1PEPF000082E3.apcprd02.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: SEYPR04MB5977 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. Signed-off-by: Ricky CX Wu Signed-off-by: Delphine CC Chiu --- .../aspeed/aspeed-bmc-facebook-yosemite4.dts | 450 ++++++++++++++++-- 1 file changed, 411 insertions(+), 39 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..96039ffbf8ef 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 { @@ -259,9 +282,117 @@ &i2c8 { bus-frequency =3D <400000>; i2c-mux@70 { compatible =3D "nxp,pca9544"; - idle-state =3D <0>; i2c-mux-idle-disconnect; reg =3D <0x70>; + + 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 @@ -270,26 +401,193 @@ &i2c9 { bus-frequency =3D <400000>; i2c-mux@71 { compatible =3D "nxp,pca9544"; - idle-state =3D <0>; i2c-mux-idle-disconnect; reg =3D <0x71>; + + 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 { status =3D "okay"; bus-frequency =3D <400000>; + i2c-mux@74 { + compatible =3D "nxp,pca9544"; + i2c-mux-idle-disconnect; + reg =3D <0x74>; + + 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 @@ -351,19 +649,54 @@ &i2c12 { 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"; + i2c-mux-idle-disconnect; + reg =3D <0x70>; =20 - eeprom@50 { - compatible =3D "atmel,24c128"; - reg =3D <0x50>; - }; + imux34: i2c@0 { + #address-cells =3D <1>; + #size-cells =3D <0>; + reg =3D <0>; + + 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>; + }; =20 - rtc@6f { - compatible =3D "nuvoton,nct3018y"; - reg =3D <0x6f>; + 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 @@ -440,16 +773,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 +788,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 +801,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 +832,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 +853,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 +889,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>; =20 - i2c@0 { + imux32: i2c@0 { #address-cells =3D <1>; #size-cells =3D <0>; reg =3D <0>; @@ -570,10 +903,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"; @@ -596,9 +929,48 @@ mctp@10 { =20 i2c-mux@72 { compatible =3D "nxp,pca9544"; - idle-state =3D <0>; i2c-mux-idle-disconnect; reg =3D <0x72>; + + 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 16:31:53 2024 Received: from APC01-PSA-obe.outbound.protection.outlook.com (mail-psaapc01on2041.outbound.protection.outlook.com [40.107.255.41]) (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 0D2A81C286; Mon, 9 Sep 2024 01:38:04 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.255.41 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1725845886; cv=fail; b=hIdgPAZoCjaA0dWkbxoStJvvSlaZit8fpudF5MPJyh8Wrk7GgcxfId9PPeKmX2pW7F3U25TnspcCi4M3GITLN19VvEmj3ImUOWokofGP1eZ4KS3C9KrjtOyp9VgV4eYC2FSibuHS2PGhK2PsIkw+0SqQAo5mpsQEyqMki8CbmGQ= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1725845886; c=relaxed/simple; bh=iCIMGv5P01DSjb9h3Ti2lFzYvNUr5k3SYMHX/MsfuoM=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version:Content-Type; b=JBXMcHBpLfPeI0R7QjfU4WumFkV3DM6hQHDP8I53p3gCAf/yCX675ZDMaNNgTd0cIDnew9gMqIRYEdWs5uHgw8p5GHXs+9BJLGXxNhzTiduPEmcQkNPb3AtDC3oYIprxFIJAKbfpkotRae33L8oWrrOz/9tKU67d4ijOCLbHiKs= 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=jkfqgBLr; arc=fail smtp.client-ip=40.107.255.41 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="jkfqgBLr" ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=hU+znGeQMSnb8rfE2Y3zao1ShXMC5Bi6UtafCXU2yARAfsgx/bKQzToFm9uq9jt/RDNipLW77ZpoDpCNjI7aBlAD9xwSKNDCmmuqyR/rJRLgTvxUaVqxMvHUTdIhYcLmi0Hm69ejOQtdj97TmPdkc96qtIIi2KGry1p1QUnbY424oOepFjNUK+AeV62lk4vadMXammj2Ip8/bwBPRvShN3WnKjcvx86BCkpbLqfDpAhGd1X/VVpRRZYqlYnX88enHng3LyKX8OKnFo0grlWDWBjkSxANLzJcV9J3MdoaPyMGLeQTt04uLgIiPWh3aUdG+WyzwxOavYJojdLzth+9xQ== 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=WtOm1gxT8Gyb8WrQVSDmxu3qdMr6yZ1Z7qB5y9F9It8=; b=Szl7qpCOXo95aSZlgzgoc//0u7TOQvsVu6I4PPhwTwjsbaqpRVajqcVcyIAEB3vvd06Ks6ezHWK2gZb7RXTBx8AfediIrI4xFYx3xIPV/saOWm+jFwZukFi8LtXllxqTU/a0LVsFABCsapFws9JTjh1LMGLDpRRyZTc3yeLhw1SCgY/LvpQH2eJIe5bHluRSiHurOK58F14EJoG9CwkGZfhHSn13MKpKmkImvaHeajmZZt3ucbzp6uBXQwmdreZHaFLTRrXeH78A1ao2hKyTTfmdIdq7BRltEAcnHJDapEguKjJKRS1pF6xacO8qNybBR9J9TuugmMIpwu08JHL47w== 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=WtOm1gxT8Gyb8WrQVSDmxu3qdMr6yZ1Z7qB5y9F9It8=; b=jkfqgBLrI5qMXmJjgnHILJJrRuPIO6cZGTk38zJ+XvLKjamwfciUzayQdksxPl5g99ux+eieUNLAQO9X68wHJBSDlSR5yQvyIQ+wOV5SucXQc3hohCFcxa3pI81bYQlp/rmUe1nxoYQgrTvLak1jObWKCDUbQyjSM84Ns8i10KTbkPoIZKdhmmIXOnV8mAFUf51obs2FvDwf3gVnyBSWapYEtujAG4Psalafw6oqSTdcYFXPv2/ySoFhX2DFxi25l5LF9IEVOeP5zOlDnaWKCfVrUP6F6lrjkKsXMG7TKEe66G+RZsReBcWgKlhiXHmBL+rCkBicUkeNAmQhkFnWNQ== Received: from SG2PR02CA0021.apcprd02.prod.outlook.com (2603:1096:3:17::33) by SEYPR04MB7776.apcprd04.prod.outlook.com (2603:1096:101:210::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7918.28; Mon, 9 Sep 2024 01:37:59 +0000 Received: from SG1PEPF000082E3.apcprd02.prod.outlook.com (2603:1096:3:17:cafe::7) by SG2PR02CA0021.outlook.office365.com (2603:1096:3:17::33) 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 01:37:59 +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 SG1PEPF000082E3.mail.protection.outlook.com (10.167.240.6) with Microsoft SMTP Server id 15.20.7918.13 via Frontend Transport; Mon, 9 Sep 2024 01:37: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 v17 2/3] ARM: dts: aspeed: yosemite4: add mctp config and sensors for NIC Date: Mon, 9 Sep 2024 09:37:43 +0800 Message-Id: <20240909013745.3306365-3-Delphine_CC_Chiu@wiwynn.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20240909013745.3306365-1-Delphine_CC_Chiu@wiwynn.com> References: <20240909013745.3306365-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: SG1PEPF000082E3:EE_|SEYPR04MB7776:EE_ X-MS-Office365-Filtering-Correlation-Id: 73733825-2d96-46cb-da45-08dcd0700960 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|376014|82310400026|36860700013|7416014|1800799024; X-Microsoft-Antispam-Message-Info: =?us-ascii?Q?LA0vqQKh6D2Y6B/Z+ORWwWYUjpXH+FXIb1OQb6E/FcZ4bgfb+SL/4VLRuCVo?= =?us-ascii?Q?GN+TOxSqGz4atjzKoDDct9TEFCTjXa2PsN5MS7pymZ+F95ApArZ1JnK+jq4u?= =?us-ascii?Q?inntrMsJX4U6uhqzwBv49xEnrqNCJVL2PmqTb0Db23ZybUdJ9sQ7qfnCVjkz?= =?us-ascii?Q?GYtOWRtGqiTszl6gJC2pWsX3X7cCYcSWJ7Dllbzk/MmJx9x9GUJey1ODg+u5?= =?us-ascii?Q?vnjwz6JnLRa+uoFKCQJZ5Ubp+uHeTAodKZ+zcwh5Ne/83re3QQGN/vfDtX7C?= =?us-ascii?Q?eiK9Of9k0KKI17hs9Lg+NulwrWxudGpKo/DWepG1ePrymo9tcm2Obq8yE+Mv?= =?us-ascii?Q?m+FK8BaSmPxuCv62QRCCDiAINAQ8ueyjP2oS6enhjfC5ZY0dEGGuyqU4DUhf?= =?us-ascii?Q?GgDWAEKurfiweEWfir9ZJhNb8hkCdMrE4ZQmj3LVGQ5Dhr/4+QmWqq2DwSOx?= =?us-ascii?Q?YBT9yaopq95NtQ1I2e6OtjiHr0UKnlIZLd61thzihKxMXrlwNTXvkxlzu2wf?= =?us-ascii?Q?lsWOVHXyLSbAuIeF/w5MsrBnQpLJMuNjsQS0morapWdXSUQ5u3ShtcAikuQN?= =?us-ascii?Q?Oen/yI/iTaxyzyjdYLRZlaC+W2qMuXfAV1va/ikXMexn6qvcFL/djERi+uAW?= =?us-ascii?Q?LMXy3hmdoUzAK9rA00bm9uMJav4U5bjoNGOkqXtHc4nekyY3lYdlRdz2bqFp?= =?us-ascii?Q?uTxUEdxfVw9uTaImAqOZwN+Tc7oLmghZQYEypQl+WbCmZlFEAUJDfAK5fo/p?= =?us-ascii?Q?lUuIt7fvndxUMPrhYMu43OvvlLRc+EHaH4Jsp4ls1Pqg29xOvtrrFVLJn7IB?= =?us-ascii?Q?xF4c9LyG6RD3rsHf+2Z0R2OlrFaQNcVGVgwDAlrclHA56axv/shqPCIYXUiD?= =?us-ascii?Q?nwf0NbzF6SWhx1A7mndibgZyCZndRlSmLTwmgB2SfeaLCWpjWYno9lQ80TPS?= =?us-ascii?Q?utH20At2Je/cF72MF1mZgv8tvyp6KuwuUkMQMAK9DUsky0xPc+cSBtZfVySK?= =?us-ascii?Q?Z3cBx/bjX/9SpBQTs6xvwCH6WoaFzKNjmq+xA0lTkKXTzIDB0RiDrnqiFbdD?= =?us-ascii?Q?Wmru8iP5ALEwp9vMD21pyoXaWvq/iM/4tw6N41c+veI3znLuIcuQVMHGPeAn?= =?us-ascii?Q?dTAvrxn/nvzJJrDBxwxYIpIBZ51wUUPSL7GWghTy0a7Yw1gmTbWuALnr/bVl?= =?us-ascii?Q?9xXRYA79RXHB04ho6NiSY/nfmuS4d7kk5mxTU5jdPQv4kbfJ1sxwz9w0k2UE?= =?us-ascii?Q?FCUPlsQ041+rMrVG37LArvIkohQni8Z0/5GeBhvPcCwRm0fL0it/CP/9nq/Q?= =?us-ascii?Q?kcA0n1sNRjg9mS8FwFojrcoddJQt/CsEM+6rlp2S3BypIETN4ucTZvCpNJbL?= =?us-ascii?Q?BDh0ByARyrfIczXNYpAQels9BxTrLG+l5Q5Q8fJ1zU+NoExOKwC2OaYySBCu?= =?us-ascii?Q?2u4MSPoZt9nJode5b/o1U2zbSi5pXOPD?= 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)(376014)(82310400026)(36860700013)(7416014)(1800799024);DIR:OUT;SFP:1101; X-OriginatorOrg: wiwynn.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 09 Sep 2024 01:37:58.5305 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 73733825-2d96-46cb-da45-08dcd0700960 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: SG1PEPF000082E3.apcprd02.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: SEYPR04MB7776 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 96039ffbf8ef..9ddeccf650cd 100644 --- a/arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-yosemite4.dts +++ b/arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-yosemite4.dts @@ -918,7 +918,6 @@ adc@35 { =20 &i2c15 { status =3D "okay"; - mctp-controller; multi-master; bus-frequency =3D <400000>; =20 @@ -936,40 +935,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 16:31:53 2024 Received: from APC01-SG2-obe.outbound.protection.outlook.com (mail-sgaapc01on2057.outbound.protection.outlook.com [40.107.215.57]) (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 466A7210E7; Mon, 9 Sep 2024 01:38:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.215.57 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1725845891; cv=fail; b=ndVVgUsWTeQlpsVOsaaCEeyYgKrmBjB7d98/TYbPbPZBBLaiCAX5n8MWwokUyFbioPCkYAu30fupZ1wxY5YUSbAl0rZDM1JVqSmS/rLpu5rTDJsOLkQ01nLtlH4RBuen/fjuogJyMLwjtlLptdjPkDhMmPiKn8VbhMYHT+yZmFY= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1725845891; c=relaxed/simple; bh=HAgJNmgwDv5jtPx52LRROkSk9Xl4PlmluzXmx8sA4hg=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version:Content-Type; b=Ok7N+BfNvEx/onDfIbOeJkBVvml0D/5vxwezfQTNQzswUUDo8m+KpGWOW6cwSJNh9wc3pNaiT8FbeqfrTF2ACCSU1MEEaUQ1qftikKV27dFSo1HOYYFrnQ8RJSRLvVUX4wgJQ/WPQag8MK6eSdQhm2FjXMXQrombHBxoMt4ZjZg= 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=hEaPUO7X; arc=fail smtp.client-ip=40.107.215.57 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="hEaPUO7X" ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=DJk+6OOh5lp3v+kuLwlQfwt3wYz02p79Z1j4JELQ+hbAH3W/o2Lv7PLNLTK8bDSeVT9MIlYaDmZG2so43VO2WV5XoHPG6aeM7ZwDXOvZAyHCnUH7B7v6ZZwXIkyf+dQ1L15T/VA1INCXNnL8sIvP84LyyC6115BUkbh1rcN0f4k+4XB7W73PSFX5yz1kevY/0wwpTrikSQYPwaeWM5cozpHT4kFcVgCZ7tgeN+d56K4sLYBCH+p5j9OEsGqWxCRD4IVC5i6QIrY61GY4DRMZPITZYEqiU0zB2vrNmU7F1U1IVeQFT2WeZV2mlw4cbE2WhJNimyhy++ETNZuvb6bt3w== 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=S5zP2+SdO2VuN/9VDpzOm7YZo0yhXjxAtwchYJ8fTL0=; b=e4bZFxN+s1V/zMHsjJfaULbd3flqFfiI46tonYRBaO6HjDiP5IBXTeWHgM5kCuD7pzXS0+pu/gDF4GI/jgWt+jQn8ZHI3kl2ypQOONkvlvHq004UoQH7w8QfbzSAZ2HrVCmopsxfHWEqxORO1vJt4Ow/MUPxZ6YRNcj3mni+oeNy2ZMnIKmEyaJloDXuEuY4V8XA9Zz8FEMIJtd9GLp9UnG0JRJBPI5KSDN3fh3Ezbu6WCUOs2rghrFbtTa11Ql7myn9XcujPX3TXVH5eJYKI9+2G1MSQIZ+lezjebNsgktCpi6S5u/Nv3+fhouyS9s5dfro/gZ2D7aHYPeTKUQHbQ== 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=S5zP2+SdO2VuN/9VDpzOm7YZo0yhXjxAtwchYJ8fTL0=; b=hEaPUO7XvquKGsmaWj/DWv1OWPI2kpnl+hc25c21WJjNqDMSkgwN+itIfrYTdMhyyeraBi+NwdyVmKzVe888hOtcTYflGAT/C0G+SYbCFIvMIkMQ6vMQ8X1zTcFC6LXMXhi1hHG0+bUTcDFrGRrJkFxy30i9o6QyJIRmkCZxww/HgIRgkwLdHbOh6DKzVHk8hPS1cl+ESjAcp/0XNKy/RD9RyKfHd0YfjU1vBX0Kx6He5BIQvnIupHDQyjACv8AzvOpoZCCI9ET1/prGTi/VEjuzmNqoI+hf6AXphCqMrPruC9Htw0cj+AhqTR+3VqtEcvW8mRmtvlbgDCq+lv77Xw== Received: from SG2PR02CA0006.apcprd02.prod.outlook.com (2603:1096:3:17::18) by TYZPR04MB6569.apcprd04.prod.outlook.com (2603:1096:400:26b::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 01:38:04 +0000 Received: from SG1PEPF000082E3.apcprd02.prod.outlook.com (2603:1096:3:17:cafe::ee) by SG2PR02CA0006.outlook.office365.com (2603:1096:3:17::18) 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 01:38:03 +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 SG1PEPF000082E3.mail.protection.outlook.com (10.167.240.6) with Microsoft SMTP Server id 15.20.7918.13 via Frontend Transport; Mon, 9 Sep 2024 01:38:03 +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 v17 3/3] ARM: dts: aspeed: yosemite4: add fan led config Date: Mon, 9 Sep 2024 09:37:44 +0800 Message-Id: <20240909013745.3306365-4-Delphine_CC_Chiu@wiwynn.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20240909013745.3306365-1-Delphine_CC_Chiu@wiwynn.com> References: <20240909013745.3306365-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: SG1PEPF000082E3:EE_|TYZPR04MB6569:EE_ X-MS-Office365-Filtering-Correlation-Id: 3bb5f608-7d0b-4417-0b70-08dcd0700c19 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|82310400026|376014|7416014|1800799024|36860700013; X-Microsoft-Antispam-Message-Info: =?us-ascii?Q?hYNdmcqP2tw9LQo7TvYl2bd/97xcyaOhJtMklwAsBLMwXTOyTq3ucMp9aOr9?= =?us-ascii?Q?HNXgmBag9fo85M2Tf4XJeHlafKEykxzSNSLOsfmhjVnWrLt7AuTo0kub2Qxk?= =?us-ascii?Q?A0d9xvXcxo+oEX1N9tKxaw3bbv64kIQl57UUDD+tKQxLV0RaTJ8+MMzAKUif?= =?us-ascii?Q?sI4cVTwQ/o71Wv6hKdAYDiTodc7EH8XKU9S6+cZCVxCUI/HuzBexmUnO0kpC?= =?us-ascii?Q?oPQZO1mp2gVYg+OXKFiDxPvPUbAnOMgjyGzAdVSBC2VRh6Pyemh6nyMDsyo1?= =?us-ascii?Q?rQTYroiLIiTnz/NWMNtXr+tGPB967KedcNNXnHjsx5+4+Db6T6Wb1I8c5oCd?= =?us-ascii?Q?rBsZ99F8p4W/2v9dClJOW0/w3OGziY0tXHs+C5x0V91VmwkNFWCJGHfJdVlX?= =?us-ascii?Q?kNnKls7BtyEmATlxm45ybBqS7kceEBMcZT2D0keriq/q7A0+yK2UW9AYqzVz?= =?us-ascii?Q?DAP2HHYBMN8qeeM0p/Jn7SO7qiN/8uV8NUjlIUFeprbUOIbRw61vejeUYE9t?= =?us-ascii?Q?wQk9gahVNaFSgQNjwjLr9nAiDZVVxZvyyFxM56KBwqMhsDZ/wSjJZqjKYT9M?= =?us-ascii?Q?Tcriv7Uf30Kn/WN2gSdQhbEOaPFJevEQmQz8uThCH0gSMaJHRx9xX5y3wv1A?= =?us-ascii?Q?Qq18BwAayk9Mvo4V4xPAUtAwrM3a1/GtpHuhyR2g0ZTMxw3VF4cRPpiYP6rZ?= =?us-ascii?Q?vIGipWXbefhSrUjj3WJw8FAfHcZjgyEOMWaMlkM4FYT864gIS+nt9dtOf2hn?= =?us-ascii?Q?3fWa72PuGmbRDGuA6xL2v2xjwOVmvXcjwHDgJp6p7pXRtNhSikktxAc23t4q?= =?us-ascii?Q?e7NkRTnstmEjpH//0SX5itp425wdjSNzKiqhClufMbqdqfKVdYUY9rMtHGP/?= =?us-ascii?Q?aqu4yh5t24iE0vJ+t3p8drpieC2OyDTIfv6t4v9t2Swa1lPVmT9zqTNNcGbs?= =?us-ascii?Q?h72rIFQPFM+rrIOPzb6V233ZyJxAW5Yg4SUzLsCxJWmn7Ty7thm/vN0O5yQj?= =?us-ascii?Q?N/CERasz8JfW//AlZUAIpBEPB4I6YME/16YuZ1tmu+0qHc8mRkd3IfqB/Rg/?= =?us-ascii?Q?NoyraZnvTRKYmlRoeAdEshy+RySnBBki19ZyibXgaFG+JyR9f3mqUeY6iRI6?= =?us-ascii?Q?jNykfMENamFnXNtPkyL3wmVB36O/rXxtD9KKEBbzZrgucdoFi8vIMOgU3CHg?= =?us-ascii?Q?7/gYpWxeqhaS138iGDsAO0umtbxvkXPXuDWYxy3G4Elk5E0xXz9DcfHtEXb/?= =?us-ascii?Q?3njW+AE79u6i1ljJflRHr8J5aYxSe7sJ4FTfvudaeWtcN0y7+6FR+y0H/XQU?= =?us-ascii?Q?jTx8ji+/i8JPcOi/Jyqj2pqlin+TQymCAoJ0MQQs+gHzUUdI9RAbjUh/UMFV?= =?us-ascii?Q?CAgp+wzY/zjr2KexajVjNBmNShOVLmTql0rSKXq/THYKydWDDl1ans7mluEl?= =?us-ascii?Q?x4s+TcncpFU2JeJI3ee85X1ZfW05KriH?= 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)(82310400026)(376014)(7416014)(1800799024)(36860700013);DIR:OUT;SFP:1101; X-OriginatorOrg: wiwynn.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 09 Sep 2024 01:38:03.0306 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 3bb5f608-7d0b-4417-0b70-08dcd0700c19 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: SG1PEPF000082E3.apcprd02.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: TYZPR04MB6569 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 9ddeccf650cd..6d64d87bf144 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 { @@ -822,7 +995,7 @@ eeprom@52 { reg =3D <0x52>; }; =20 - gpio@61 { + led_gpio1: gpio@61 { compatible =3D "nxp,pca9552"; reg =3D <0x61>; #address-cells =3D <1>; @@ -874,7 +1047,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