Received: by 2002:ab2:7855:0:b0:1f9:5764:f03e with SMTP id m21csp842367lqp; Thu, 23 May 2024 01:19:27 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWzlHQRjKHYSCVhvbqhD2ysuomhW/Q80jIAj3uYGHTSXcBblQ0+y+Zdj5CNBlqBQ9VxyEFxeeP9TXd1s+eLOKqM0Zr6jm76Sym7Tb5j1w== X-Google-Smtp-Source: AGHT+IFnV+g9Ynxz7y/ShbPc212BD5Txadru1JQantkZGIcnIjBdmDEhseDXJYxMoTqykaRVUi/4 X-Received: by 2002:a05:6359:6305:b0:18f:81e1:c6b6 with SMTP id e5c5f4694b2df-19791dde2e6mr384016155d.1.1716452367228; Thu, 23 May 2024 01:19:27 -0700 (PDT) Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id 41be03b00d2f7-6572ef2d178si1353787a12.374.2024.05.23.01.19.26 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 23 May 2024 01:19:27 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-187168-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@wiwynn.com header.s=selector2 header.b=O3GyhXco; arc=fail (signature failed); spf=pass (google.com: domain of linux-kernel+bounces-187168-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-187168-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=wiwynn.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id EC656B24054 for ; Thu, 23 May 2024 08:09:36 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 802BE14D719; Thu, 23 May 2024 08:05:23 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=wiwynn.com header.i=@wiwynn.com header.b="O3GyhXco" Received: from APC01-PSA-obe.outbound.protection.outlook.com (mail-psaapc01on2069.outbound.protection.outlook.com [40.107.255.69]) (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 CC17914D70B; Thu, 23 May 2024 08:05:20 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.255.69 ARC-Seal:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716451522; cv=fail; b=s5ukiiT/DrQ2m3FOLcKtN/pV3Ui9bWF9Gaeye/5jo5kl+iQz9pbJP5fLKjFbd3t+ifjnrkDe0Hlm8ngcK77nA1GiujpQhgrwBstgpAFhsREH7JJek77B362LsqoRF2bP9aK7vzOBi/mvb2BgsUp5H0dfCKdQXfuhkNRbMZRHb6s= ARC-Message-Signature:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716451522; c=relaxed/simple; bh=3u6wUqidnS67RSTMby6uRPJSx85CTwZLhMAU5hSYGnY=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version:Content-Type; b=L3MDT/VAJLG6pFjuq3wQZWtR7mm/rI/CbKfeE/IPQInB3I1P50SORmJNUJYcpJ2qDVStyTzBH7CtJSx8M9H9D4meF8KB2ORR/TsprgC7cOdQhzk0PDWMtMAbDIk0HuemuZ42INgenbzz0xQxHAEYFeDKswk7e24E6U+zhmeUdlE= 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=O3GyhXco; arc=fail smtp.client-ip=40.107.255.69 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 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=WuUyUeSfCvQtLW7fJ38NyqLDDN/x3+//SQyu//XHMCy5VyyX4/uF1WDlCQFY1i9COKse7YT/JVql1bW95JIUFLEAR5gFdHRzEIF43T+ZVuuBMP5NsVojPm8H5vB2wTJcOV6YvsrxoDiWje4r0zw4gk4/8mxO4ge1Ve1q7AP+4ymDitXIoYBNOi6qnuxs7PYM0SgTBqbtuYJ8QYTJP1urjptGmm6u6IZrpR7K7PksMNeml62ZiP46fURxlnbkjZU0JEuyE0BRy53FMUh8G14A9+mCFXb2WCXRClSJf53d/OuJWzRoq9/440yzApNYx6OrOWjkpdNUTWQYEKUyIl5iNQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; 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=/E5tg/AMpCd0EwjdUG5RfJmZJrlX6o4pn+4Lcl6SBsQ=; b=CIFsXCe+gGLk8Uti67zILjtA+aIX/5fktJCIbzNKwDJQVon1ZJJGw/BADW6s8QJkDK0eVW6+UcNuvFGHlW3h30yNlIgDT+cvgTbilwoHykYrihSFFa234q2bCWwTPRWXtrWr0NFzlaOsrS7xzp5yc/MHTBLTqzkMkkO2l0n0HboHbvfFbuzCKDvgUBBPa6yujA8JhxxOq+6KgvUIM7CDWDv44mcxmWUJc+4hPNFayHjTwn1jDWx1Xcx74Ozolgnwx1n0WmB06ApydIGqM6nupIYv1P7F+NRPGG7nr6pTh+y6pIAkxwDvtdh4HOJ5hW6uzU8oJI/abhx/ttwdzME7WQ== 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=/E5tg/AMpCd0EwjdUG5RfJmZJrlX6o4pn+4Lcl6SBsQ=; b=O3GyhXcoOuecrNUIFabzEjYLBnXP96OJppR/AxOadJgeQl+dSM/7Tv6S2R/70xh9ZjqUq9HmzHW5VxwGPsrRYGgumPT1B8YtC/s1IdAWU2wseB5PiVJ0YdYmtd6QZvgdSFGR/XvxptpIhBQVG+mkMfqgt7UAlIcaM3R+IOG7AxtrcAJSL6zNPEhnGDApsBYusrRVhBNEZoCmmIJ9mL+0+6+miA9bo1sTeWVHIExLYl9p6Ov7VGsILOzVS6va8dxNcNYdgjFCRjPc1JAUSGoZv1eKaSokny99HSGB8xVodpAoQF2IdURxdaAwCTEJhDzagKVP7DKAcv8ZqeBLQ2lYPQ== Received: from SG2PR04CA0162.apcprd04.prod.outlook.com (2603:1096:4::24) by TYZPR04MB7455.apcprd04.prod.outlook.com (2603:1096:405:41::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7587.36; Thu, 23 May 2024 08:05:15 +0000 Received: from SG2PEPF000B66CB.apcprd03.prod.outlook.com (2603:1096:4:0:cafe::6) by SG2PR04CA0162.outlook.office365.com (2603:1096:4::24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7611.22 via Frontend Transport; Thu, 23 May 2024 08:05:15 +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 SG2PEPF000B66CB.mail.protection.outlook.com (10.167.240.24) with Microsoft SMTP Server id 15.20.7611.14 via Frontend Transport; Thu, 23 May 2024 08:05:14 +0000 From: Delphine CC Chiu To: patrick@stwcx.xyz, Rob Herring , Krzysztof Kozlowski , Conor Dooley , Joel Stanley , Andrew Jeffery Cc: 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 v8 23/23] ARM: dts: aspeed: yosemite4: add fan led config Date: Thu, 23 May 2024 16:03:28 +0800 Message-Id: <20240523080330.1860074-24-Delphine_CC_Chiu@wiwynn.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20240523080330.1860074-1-Delphine_CC_Chiu@wiwynn.com> References: <20240523080330.1860074-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: 8bit X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SG2PEPF000B66CB:EE_|TYZPR04MB7455:EE_ Content-Type: text/plain X-MS-Office365-Filtering-Correlation-Id: cbcba8a4-6ed1-4e6e-f1de-08dc7aff144a X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230031|1800799015|36860700004|376005|7416005|82310400017; X-Microsoft-Antispam-Message-Info: =?us-ascii?Q?Dpr42LWCi9SS/nIUcl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ascii?Q?ueN1gB/DlPx2iebz7JU9Ml90PpU8wAYRaCVDMahTk06PLoM0Gk4qyGth2AJ0?= =?us-ascii?Q?uFO4ap9kpEq6rciq8SUMD8cJzuiXmqvFKMbAPRfyw8IJCOphZ5kiWyULdNDx?= =?us-ascii?Q?clBD3ZnffeUyhC/VYg5S5X3aPPFLdFf6u0d40zVlJxFP8CoxUxCvZtSpZ2HL?= =?us-ascii?Q?twyEWR3EnLWawphZog7zmiQ/pZvnfaC1EADllre+SssHsq8Tzd94UpvxuXV0?= =?us-ascii?Q?iBZ790yQHwiqBfkfOZ5CpaN9skjO9QMmB7zs4hYxGgRTa+zKfwPEanZbVw6T?= =?us-ascii?Q?Bv3UE2Z/jVDRoHonmiTTY5KmBrox7sAgXSqwHms/n4H3QcnukuMZS2vaQY7C?= =?us-ascii?Q?gOC1smRYTCw9SZx/diG0sFDShXeu/1bwF2GywOXApLPHI01DxfZQlrML4dLx?= =?us-ascii?Q?QvXwPEnNQABqgK/nm+NGQwp4Kf9vN2WNgBKeiRwWO1jkDnIfzcbjfVoDI28V?= =?us-ascii?Q?emAuG5Y=3D?= 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:(13230031)(1800799015)(36860700004)(376005)(7416005)(82310400017);DIR:OUT;SFP:1101; X-OriginatorOrg: wiwynn.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 23 May 2024 08:05:14.8441 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: cbcba8a4-6ed1-4e6e-f1de-08dc7aff144a 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: SG2PEPF000B66CB.apcprd03.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: TYZPR04MB7455 Set fan led config in yosemite4 DTS. Signed-off-by: Delphine CC Chiu --- .../aspeed/aspeed-bmc-facebook-yosemite4.dts | 152 +++++++++++++++++- 1 file changed, 150 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 21ca22281ef8..fc988e32519c 100644 --- a/arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-yosemite4.dts +++ b/arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-yosemite4.dts @@ -75,6 +75,154 @@ tpmdev@0 { reg = <0>; }; }; + + leds { + compatible = "gpio-leds"; + + fan0_blue { + retain-state-shutdown; + default-state = "on"; + gpios = <&led_gpio0 4 GPIO_ACTIVE_HIGH>; + }; + + fan0_amber { + retain-state-shutdown; + default-state = "off"; + gpios = <&led_gpio0 5 GPIO_ACTIVE_HIGH>; + }; + + fan1_blue { + retain-state-shutdown; + default-state = "on"; + gpios = <&led_gpio0 10 GPIO_ACTIVE_HIGH>; + }; + + fan1_amber { + retain-state-shutdown; + default-state = "off"; + gpios = <&led_gpio0 11 GPIO_ACTIVE_HIGH>; + }; + + fan2_blue { + retain-state-shutdown; + default-state = "on"; + gpios = <&led_gpio1 4 GPIO_ACTIVE_HIGH>; + }; + + fan2_amber { + retain-state-shutdown; + default-state = "off"; + gpios = <&led_gpio1 5 GPIO_ACTIVE_HIGH>; + }; + + fan3_blue { + retain-state-shutdown; + default-state = "on"; + gpios = <&led_gpio1 10 GPIO_ACTIVE_HIGH>; + }; + + fan3_amber { + retain-state-shutdown; + default-state = "off"; + gpios = <&led_gpio1 11 GPIO_ACTIVE_HIGH>; + }; + + fan4_blue { + retain-state-shutdown; + default-state = "on"; + gpios = <&led_gpio0 2 GPIO_ACTIVE_HIGH>; + }; + + fan4_amber { + retain-state-shutdown; + default-state = "off"; + gpios = <&led_gpio0 3 GPIO_ACTIVE_HIGH>; + }; + + fan5_blue { + retain-state-shutdown; + default-state = "on"; + gpios = <&led_gpio0 8 GPIO_ACTIVE_HIGH>; + }; + + fan5_amber { + retain-state-shutdown; + default-state = "off"; + gpios = <&led_gpio0 9 GPIO_ACTIVE_HIGH>; + }; + + fan6_blue { + retain-state-shutdown; + default-state = "on"; + gpios = <&led_gpio1 2 GPIO_ACTIVE_HIGH>; + }; + + fan6_amber { + retain-state-shutdown; + default-state = "off"; + gpios = <&led_gpio1 3 GPIO_ACTIVE_HIGH>; + }; + + fan7_blue { + retain-state-shutdown; + default-state = "on"; + gpios = <&led_gpio1 8 GPIO_ACTIVE_HIGH>; + }; + + fan7_amber { + retain-state-shutdown; + default-state = "off"; + gpios = <&led_gpio1 9 GPIO_ACTIVE_HIGH>; + }; + + fan8_blue { + retain-state-shutdown; + default-state = "on"; + gpios = <&led_gpio0 0 GPIO_ACTIVE_HIGH>; + }; + + fan8_amber { + retain-state-shutdown; + default-state = "off"; + gpios = <&led_gpio0 1 GPIO_ACTIVE_HIGH>; + }; + + fan9_blue { + retain-state-shutdown; + default-state = "on"; + gpios = <&led_gpio0 6 GPIO_ACTIVE_HIGH>; + }; + + fan9_amber { + retain-state-shutdown; + default-state = "off"; + gpios = <&led_gpio0 7 GPIO_ACTIVE_HIGH>; + }; + + fan10_blue { + retain-state-shutdown; + default-state = "on"; + gpios = <&led_gpio1 0 GPIO_ACTIVE_HIGH>; + }; + + fan10_amber { + retain-state-shutdown; + default-state = "off"; + gpios = <&led_gpio1 1 GPIO_ACTIVE_HIGH>; + }; + + fan11_blue { + retain-state-shutdown; + default-state = "on"; + gpios = <&led_gpio1 6 GPIO_ACTIVE_HIGH>; + }; + + fan11_amber { + retain-state-shutdown; + default-state = "off"; + gpios = <&led_gpio1 7 GPIO_ACTIVE_HIGH>; + }; + }; }; &uart1 { @@ -1198,7 +1346,7 @@ eeprom@52 { reg = <0x52>; }; - gpio@61 { + led_gpio1: gpio@61 { compatible = "nxp,pca9552"; reg = <0x61>; #address-cells = <1>; @@ -1268,7 +1416,7 @@ eeprom@52 { reg = <0x52>; }; - gpio@61 { + led_gpio0: gpio@61 { compatible = "nxp,pca9552"; reg = <0x61>; #address-cells = <1>; -- 2.25.1