From patchwork Fri Sep 6 09:24:37 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Delphine CC Chiu X-Patchwork-Id: 1981716 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=wiwynn.com header.i=@wiwynn.com header.a=rsa-sha256 header.s=selector2 header.b=wIZq7F0O; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.ozlabs.org (client-ip=2404:9400:2:0:216:3eff:fee1:b9f1; helo=lists.ozlabs.org; envelope-from=linux-aspeed-bounces+incoming=patchwork.ozlabs.org@lists.ozlabs.org; receiver=patchwork.ozlabs.org) Received: from lists.ozlabs.org (lists.ozlabs.org [IPv6:2404:9400:2:0:216:3eff:fee1:b9f1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4X0W6V4ZZfz1yfv for ; Fri, 6 Sep 2024 19:25:22 +1000 (AEST) Received: from boromir.ozlabs.org (localhost [IPv6:::1]) by lists.ozlabs.org (Postfix) with ESMTP id 4X0W6V4RHLz30MR for ; Fri, 6 Sep 2024 19:25:22 +1000 (AEST) X-Original-To: linux-aspeed@lists.ozlabs.org Delivered-To: linux-aspeed@lists.ozlabs.org Authentication-Results: lists.ozlabs.org; arc=pass smtp.remote-ip="2a01:111:f403:c400::2" arc.chain=microsoft.com ARC-Seal: i=2; a=rsa-sha256; d=lists.ozlabs.org; s=201707; t=1725614721; cv=pass; b=EQARVnKCg0G+i1m1Tb8dmgzMQtIlXTQ1qRnQrRUwcsZkEwiQjVOOIhOVxBsQ1GSX/JHIbyzq6bmHaiV6cx0DGcuspCL7GbmaNdSv7dqKfrzxEb76UVjILuviMdThSyi4Tflc7GpS/DGZYZhcqgbocXiX+ZAIWRmL9+rCNsDAQIEsgfWB/9ubX+Ci1TQeBuBiwpulhGAnNBVipQlXFExiwbqo38iKcckKB0z3RBUsW+WofB6IZnhcWHzEyh1ieJExPPXztAZ5YXJDSi0asKc2903cgxUB2w829sI7dnYG9vD4nL9hspeWonkDeiAY+h5dtuhvuxs9/qQ4i906IaC7xg== ARC-Message-Signature: i=2; a=rsa-sha256; d=lists.ozlabs.org; s=201707; t=1725614721; c=relaxed/relaxed; bh=1JYXMuufNP+1KFHLCDGDnx6vheVaZ9RhKwZf/5q2z1w=; h=ARC-Authentication-Results:DKIM-Signature:From:To:Cc:Subject:Date: Message-Id:In-Reply-To:References:MIME-Version:Content-Type; b=f8ejc85HKkUW7n5E+1zvbPfy3iJoVZAL/RwGzHNTjmRXfifblFcLuPytUzdAKTMpPa2/chK0tPiopEhJy+AumlI23PG6ZmdP+wlEQHXxu115mx8oBxzRvNQMF8Foilen990d7EdNBlckosp+9toMP4GHMY0JQkh/S4UeowzjNr9H65286wMYlYiMRV3cd4oRFKY2aJCmn6zdd72mYmnvMpCKVLPUmttmJkDt80MXLX8C7rjHqgQReL0jeVGNRkiybcr3FBt1QEvMTMAGzF7ELTz2rE32rEZ8VWxjVKzg3DmvxrAg61j2/Nbjdtd8Bqs2LKSbjHYy/Js2YMxnC4cNKw== ARC-Authentication-Results: i=2; lists.ozlabs.org; dmarc=pass (p=quarantine dis=none) header.from=wiwynn.com; dkim=pass (2048-bit key; unprotected) header.d=wiwynn.com header.i=@wiwynn.com header.a=rsa-sha256 header.s=selector2 header.b=wIZq7F0O; dkim-atps=neutral; spf=pass (client-ip=2a01:111:f403:c400::2; helo=hk3pr03cu002.outbound.protection.outlook.com; envelope-from=delphine_cc_chiu@wiwynn.com; receiver=lists.ozlabs.org) smtp.mailfrom=wiwynn.com Authentication-Results: lists.ozlabs.org; dmarc=pass (p=quarantine dis=none) header.from=wiwynn.com Authentication-Results: lists.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=wiwynn.com header.i=@wiwynn.com header.a=rsa-sha256 header.s=selector2 header.b=wIZq7F0O; dkim-atps=neutral Authentication-Results: lists.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=wiwynn.com (client-ip=2a01:111:f403:c400::2; helo=hk3pr03cu002.outbound.protection.outlook.com; envelope-from=delphine_cc_chiu@wiwynn.com; receiver=lists.ozlabs.org) Received: from HK3PR03CU002.outbound.protection.outlook.com (mail-eastasiaazlp170110002.outbound.protection.outlook.com [IPv6:2a01:111:f403:c400::2]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 4X0W6T1FbKz302b for ; Fri, 6 Sep 2024 19:25:20 +1000 (AEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=bcrJAlE+vCgtatPlHxecTQxJgcoTN84uymsT021U6OjqCTp3T5xSWu5KuCPOnjyJ9PJKRXY0+1Ujg6FF/Sb67v+a2kfecAzmma6GUArp4ZhiKPx9SFDQd8Yk5YYNIPe2GlFZMBKv3x1g5vOymh5odnQLP83KA3nAM8iwks3jYd23KqqWV4l3MONVQ2HUv1j/Z+1xcSyJ1nHcMP6vOUkh25uWI5retsuTZjcplh8nP7FrCPfi+PHDnRPWJeSftyI+X37Ep/EW8ue0i0Xa3qTdmeaAxI2XKZ6RIInOkXKkFFpzyXNhJRwUrjOX0Chkd2JAiUN7myyxRqCMVyd7NJfJMg== 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=1JYXMuufNP+1KFHLCDGDnx6vheVaZ9RhKwZf/5q2z1w=; b=qyPnQfvEc3DRAku5FAD0Qc+dEZrky26v2CFl0z/+Rz+shvqmjQPPSyUqu2np8bzXKvTThkgwFwEKRWXJBMwwd7/3x0oQ40R8KkaJIX8O2htqiWed2dKMGq/okZzAX+j+PeyaVdH7GmLIMsXc5Teth+4kPq/ljylHjAUEv7anQfKCQmdj6Jh0+SM8ISrDwxHvZUKN4nzsMIbJsmeGtzC+WpiqkqxNdSvR7hBRQ83cpitoqCV24NVD/xQGJcUJWYi2dU1TD0OXfibS5r6cUZgJQEyeK/1zxvRVucuhbA+gafRXdhCyJaf8Qz/DUQGpe9a5wlArIwviOTdBHDVqp8mURw== 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=1JYXMuufNP+1KFHLCDGDnx6vheVaZ9RhKwZf/5q2z1w=; b=wIZq7F0OLjoeYgY674Ylz1+YHuHMxQegf8WvxzrFK7wRXAwWYU1K0YrgyuD71UV57CufT9ooRMkCrNgxKoTkI/g5Ad88mtiGgfgdGu8mEf0buZfS82BmZeI84UcgV5m4T/kK7XSfdO/I3W4TPKcIPH0YstRkrqVqecUeRyOmG781Q9kqVY1XZIRtx3bw987NJTZOyFJV2xeJApTMPZOghGWN8waBAa06O/IpiL6qlu9igpIGw0495qcfsQfYrJMwUvW0JSuN4b5JwF+GVzHwKtq19v+X+oa+A5SVlYC04Eo4VshG0A5e+isodithA8CW6m3ciu7agpa73CpG5tRrNA== Received: from SI1PR02CA0022.apcprd02.prod.outlook.com (2603:1096:4:1f4::16) by OSQPR04MB7958.apcprd04.prod.outlook.com (2603:1096:604:294::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7918.27; Fri, 6 Sep 2024 09:24:54 +0000 Received: from SG2PEPF000B66C9.apcprd03.prod.outlook.com (2603:1096:4:1f4:cafe::f8) by SI1PR02CA0022.outlook.office365.com (2603:1096:4:1f4::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7939.17 via Frontend Transport; Fri, 6 Sep 2024 09:24:53 +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 SG2PEPF000B66C9.mail.protection.outlook.com (10.167.240.20) with Microsoft SMTP Server id 15.20.7918.13 via Frontend Transport; Fri, 6 Sep 2024 09:24:52 +0000 From: Delphine CC Chiu To: patrick@stwcx.xyz, Rob Herring , Krzysztof Kozlowski , Conor Dooley , Joel Stanley , Andrew Jeffery Subject: [PATCH v16 3/3] ARM: dts: aspeed: yosemite4: add fan led config Date: Fri, 6 Sep 2024 17:24:37 +0800 Message-Id: <20240906092438.1047225-4-Delphine_CC_Chiu@wiwynn.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20240906092438.1047225-1-Delphine_CC_Chiu@wiwynn.com> References: <20240906092438.1047225-1-Delphine_CC_Chiu@wiwynn.com> MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SG2PEPF000B66C9:EE_|OSQPR04MB7958:EE_ X-MS-Office365-Filtering-Correlation-Id: 826a4673-ab51-4248-33f0-08dcce55c402 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|82310400026|7416014|1800799024|376014|36860700013; X-Microsoft-Antispam-Message-Info: jwG7dLiNm9ZCd6WWFh7c1EfGs1lpenvUAN/UotDK05MURPS5kdBppGX8NE1UZ8XVnEQy1ONo4a2xeu6QILlb8Fmh9raImtcyX7n/YAu3lPZzXEHqFpUaKE0WtQvWoMxE6GRoqoUTPkN+aegO99xbnA5/9eth3esZ7tXO6pyRdD+yw5FcpoOpiKFxXPnDQCZ/KFRouur9XOy6WrrqZ3EkBeG3/HXHz6yVlBAdnSgHxUobuG2tLLlvxkmgf3n3OK4nS0dAJmm/Fh/iVJZa6TiAhelv/raYRWuVczOCgIkcBSvIQSBUna53McK/8MxJZZrRcw5ecnQIs8qUas8CD+9Dql61akgVyHerJcFmQZauNLVefizDF2cmWKMf3/EQ6GAtZAYoMvr8NNhMfyYK92MGs9w7Lru2qiHFA2cZnbu967jW1+mso+fdeMy5jcLEuKi96pfglDoePi/fVqxgBO8ZEoBlejqQuNrFd68kuc+vx24HuyJyUqgWoTDRZTb+1f/ObyFxMpyaY7LHU+7K6KwyuYDeSWGlcv9iFCG+3iKswOdOJ/Fh+uMchZlVL3ScJfSq9K2jrxRAZC1rpOOwO5eR4ipxTG/gzyTAgxYdbhZZ/vfp9F44YN46mYSHFXIIO6UreaPpvyyd3FO44VoprOAET4HBAbvTve/g2zbrAy1O6xYxVnVG3yT19p5S0dCCCLvjdHyBwFtMIWlffrkv/l24OOMVW3WZ4E+UQx3Ov5nkxDlhXSE7GZOc+WC++BHKD0PlUweMdKiyYai0sEgfdponp06vyvH7FtTv4XwYRn56iqB9MmBqzpWUlM8FZ2I2NeEhkmjBxYTRvnn2siMVKQhxtSRm6ILytlQRsMbhsH5z88ujhIGgtASbJegn77AS/ycNnzD/ghEqchN6Xh+Hs+u9fPQ2YIyIT3R1Z3ZaCrSPEgLDoAoTWDGdto4mTBfs+lqZLjF1CCsFZmTcXZdkEA3c5Z+FA//znoUJKVLTzJNT7m1sQmZ5dbFCNxG6TRD2QFoToGBDTjxqbKWP1i9kMnMzOmgX3F9uaC3xtNo3QRTsctOUYB4REhKMtWOC2Zi+3ChHxU/o1nqv8xUGjguiTwD3XANQYytcwoVGrmgjekosYBTbTHcFs0ssHWqOrPpVsW2LEsRRRVpBMFR9vLjZu+zChOJ1RT1S6/x1QwjyulLQ4V447blZGu/+h/aPKi4M3TOqrLo+yCXQkN2JcKYgrgYOV20D0dsuUrnjx9ERxhoEEvFB6TqGeoTHSMR9sePtT7JobmYcby4rMn0K3Smm6zTmrBMcqRq1sbVstKz1BcR45JcJRyLlRBDOURJxnr5uzEiKV6PxBbBNhtvvs2ZaCGOxu50v1vkV3DLtGxu6FRknp8UxUWh01b/6DpDec5O67qvMSauMWgI1VUSkAvfP3mdwcGIisDZlDYp/YCoIS3rUdBUpG/4+zbAC/1u6APEvoc3F 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)(7416014)(1800799024)(376014)(36860700013);DIR:OUT;SFP:1101; X-OriginatorOrg: wiwynn.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 06 Sep 2024 09:24:52.9538 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 826a4673-ab51-4248-33f0-08dcce55c402 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: SG2PEPF000B66C9.apcprd03.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: OSQPR04MB7958 X-BeenThere: linux-aspeed@lists.ozlabs.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Linux ASPEED SoC development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, linux-aspeed@lists.ozlabs.org, linux-arm-kernel@lists.infradead.org, Ricky CX Wu , linux-kernel@vger.kernel.org Errors-To: linux-aspeed-bounces+incoming=patchwork.ozlabs.org@lists.ozlabs.org Sender: "Linux-aspeed" 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 --- .../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/arch/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 @@ -57,6 +58,178 @@ iio-hwmon { <&adc0 4>, <&adc0 5>, <&adc0 6>, <&adc0 7>, <&adc1 0>, <&adc1 1>; }; + + leds { + compatible = "gpio-leds"; + + led-fan0-blue { + color = ; + retain-state-shutdown; + default-state = "on"; + gpios = <&led_gpio0 4 GPIO_ACTIVE_HIGH>; + }; + + led-fan0-amber { + color = ; + retain-state-shutdown; + default-state = "off"; + gpios = <&led_gpio0 5 GPIO_ACTIVE_HIGH>; + }; + + led-fan1-blue { + color = ; + retain-state-shutdown; + default-state = "on"; + gpios = <&led_gpio0 10 GPIO_ACTIVE_HIGH>; + }; + + led-fan1-amber { + color = ; + retain-state-shutdown; + default-state = "off"; + gpios = <&led_gpio0 11 GPIO_ACTIVE_HIGH>; + }; + + led-fan2-blue { + color = ; + retain-state-shutdown; + default-state = "on"; + gpios = <&led_gpio1 4 GPIO_ACTIVE_HIGH>; + }; + + led-fan2-amber { + color = ; + retain-state-shutdown; + default-state = "off"; + gpios = <&led_gpio1 5 GPIO_ACTIVE_HIGH>; + }; + + led-fan3-blue { + color = ; + retain-state-shutdown; + default-state = "on"; + gpios = <&led_gpio1 10 GPIO_ACTIVE_HIGH>; + }; + + led-fan3-amber { + color = ; + retain-state-shutdown; + default-state = "off"; + gpios = <&led_gpio1 11 GPIO_ACTIVE_HIGH>; + }; + + led-fan4-blue { + color = ; + retain-state-shutdown; + default-state = "on"; + gpios = <&led_gpio0 2 GPIO_ACTIVE_HIGH>; + }; + + led-fan4-amber { + color = ; + retain-state-shutdown; + default-state = "off"; + gpios = <&led_gpio0 3 GPIO_ACTIVE_HIGH>; + }; + + led-fan5-blue { + color = ; + retain-state-shutdown; + default-state = "on"; + gpios = <&led_gpio0 8 GPIO_ACTIVE_HIGH>; + }; + + led-fan5-amber { + color = ; + retain-state-shutdown; + default-state = "off"; + gpios = <&led_gpio0 9 GPIO_ACTIVE_HIGH>; + }; + + led-fan6-blue { + color = ; + retain-state-shutdown; + default-state = "on"; + gpios = <&led_gpio1 2 GPIO_ACTIVE_HIGH>; + }; + + led-fan6-amber { + color = ; + retain-state-shutdown; + default-state = "off"; + gpios = <&led_gpio1 3 GPIO_ACTIVE_HIGH>; + }; + + led-fan7-blue { + color = ; + retain-state-shutdown; + default-state = "on"; + gpios = <&led_gpio1 8 GPIO_ACTIVE_HIGH>; + }; + + led-fan7-amber { + color = ; + retain-state-shutdown; + default-state = "off"; + gpios = <&led_gpio1 9 GPIO_ACTIVE_HIGH>; + }; + + led-fan8-blue { + color = ; + retain-state-shutdown; + default-state = "on"; + gpios = <&led_gpio0 0 GPIO_ACTIVE_HIGH>; + }; + + led-fan8-amber { + color = ; + retain-state-shutdown; + default-state = "off"; + gpios = <&led_gpio0 1 GPIO_ACTIVE_HIGH>; + }; + + led-fan9-blue { + color = ; + retain-state-shutdown; + default-state = "on"; + gpios = <&led_gpio0 6 GPIO_ACTIVE_HIGH>; + }; + + led-fan9-amber { + color = ; + retain-state-shutdown; + default-state = "off"; + gpios = <&led_gpio0 7 GPIO_ACTIVE_HIGH>; + }; + + led-fan10-blue { + color = ; + retain-state-shutdown; + default-state = "on"; + gpios = <&led_gpio1 0 GPIO_ACTIVE_HIGH>; + }; + + led-fan10-amber { + color = ; + retain-state-shutdown; + default-state = "off"; + gpios = <&led_gpio1 1 GPIO_ACTIVE_HIGH>; + }; + + led-fan11-blue { + color = ; + retain-state-shutdown; + default-state = "on"; + gpios = <&led_gpio1 6 GPIO_ACTIVE_HIGH>; + }; + + led-fan11-amber { + color = ; + retain-state-shutdown; + default-state = "off"; + gpios = <&led_gpio1 7 GPIO_ACTIVE_HIGH>; + }; + }; }; &uart1 { @@ -822,7 +995,7 @@ eeprom@52 { reg = <0x52>; }; - gpio@61 { + led_gpio1: gpio@61 { compatible = "nxp,pca9552"; reg = <0x61>; #address-cells = <1>; @@ -874,7 +1047,7 @@ eeprom@52 { reg = <0x52>; }; - gpio@61 { + led_gpio0: gpio@61 { compatible = "nxp,pca9552"; reg = <0x61>; #address-cells = <1>;