From patchwork Mon Sep 9 01:37:44 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: 1982273 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=hEaPUO7X; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.ozlabs.org (client-ip=112.213.38.117; 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 [112.213.38.117]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1)) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4X28cL5N97z1y1C for ; Mon, 9 Sep 2024 11:38:26 +1000 (AEST) Received: from boromir.ozlabs.org (localhost [IPv6:::1]) by lists.ozlabs.org (Postfix) with ESMTP id 4X28cL4zSLz2yhr for ; Mon, 9 Sep 2024 11:38:26 +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:f400:feab::620" arc.chain=microsoft.com ARC-Seal: i=2; a=rsa-sha256; d=lists.ozlabs.org; s=201707; t=1725845904; cv=pass; b=GM1oYmEFqHeA+hMXyJei1XhZnrAFWG54PTzP823WsCOWu30cji6IEtqTMDH7MwgfZfLdMUv0WjTrtwS6w0EWwD/3RsrYxWNI0/0FlZBuMGUIjTb7U5yEHw/JWYiGIGrDJ2XXclJ+G2PoA6Ot6OzKws3X2ZvdlxvZpEC4TyhUXg35x44YjjgRYRyWKqWy0flrsaQf2spNNDk1/Jh11M5TEynyJ5EdV5fKEL5GXBVhoEDt1HwJLxc7AR/GR0Z6xEsHMl60kE8cpT75iQVCYKwM+QrO3GXPuzd+hOxDeX2kQQig7wbv4vEq7GiX2hElA8p1u9OZ74wOqxwp3Ra7uZsqIA== ARC-Message-Signature: i=2; a=rsa-sha256; d=lists.ozlabs.org; s=201707; t=1725845904; c=relaxed/relaxed; bh=S5zP2+SdO2VuN/9VDpzOm7YZo0yhXjxAtwchYJ8fTL0=; h=DKIM-Signature:From:To:Cc:Subject:Date:Message-Id:In-Reply-To: References:MIME-Version:Content-Type; b=e7xDjwLzBKI2CQtU/W6K1magzaXo72T6GOZjLw4Lmu7am1JpI2dsFi7sgieEUqGU7+0RVFHkTUaKOvL0P9MnHhGq+LunnLFys4DURJxUYhQ6/v1GYASu8aoS3pVMu4H6+T6u6jwNdVptRaKivXbasX67nxP/R03CC/M+L6N4H2EJ4lK/48Mlg87EIXt7LyDNHkd7LWpS5I6MmTGaRVgZVNDGOtz2rGNr1Piv1vCBdbdsO4wC1RftKtIvdtDw0QA3BcZzv1mEGtbasG6CRfjA93Bzk3GCHeh5XHmI1Wrm62LoUkeg0xjvIJeBsGbbLeNRaIMJ3ApXY9nmoImuMpK82g== 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=hEaPUO7X; dkim-atps=neutral; spf=pass (client-ip=2a01:111:f400:feab::620; helo=apc01-sg2-obe.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=hEaPUO7X; dkim-atps=neutral Authentication-Results: lists.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=wiwynn.com (client-ip=2a01:111:f400:feab::620; helo=apc01-sg2-obe.outbound.protection.outlook.com; envelope-from=delphine_cc_chiu@wiwynn.com; receiver=lists.ozlabs.org) Received: from APC01-SG2-obe.outbound.protection.outlook.com (mail-sgaapc01on20620.outbound.protection.outlook.com [IPv6:2a01:111:f400:feab::620]) (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 4X28cJ3Xpvz2yGM for ; Mon, 9 Sep 2024 11:38:24 +1000 (AEST) 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 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> MIME-Version: 1.0 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-Ant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/vN0O5yQjN/CERasz8JfW//AlZUAIpBEPB4I6YME/16YuZ1tmu+0qHc8mRkd3IfqB/Rg/NoyraZnvTRKYmlRoeAdEshy+RySnBBki19ZyibXgaFG+JyR9f3mqUeY6iRI6jNykfMENamFnXNtPkyL3wmVB36O/rXxtD9KKEBbzZrgucdoFi8vIMOgU3CHg7/gYpWxeqhaS138iGDsAO0umtbxvkXPXuDWYxy3G4Elk5E0xXz9DcfHtEXb/3njW+AE79u6i1ljJflRHr8J5aYxSe7sJ4FTfvudaeWtcN0y7+6FR+y0H/XQUjTx8ji+/i8JPcOi/Jyqj2pqlin+TQymCAoJ0MQQs+gHzUUdI9RAbjUh/UMFVCAgp+wzY/zjr2KexajVjNBmNShOVLmTql0rSKXq/THYKydWDDl1ans7mluElx4s+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 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-kernel@vger.kernel.org, Ricky CX Wu , Delphine CC Chiu , linux-arm-kernel@lists.infradead.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 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/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>;