From patchwork Thu May 23 09:18:10 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: 13671538 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 75B94C25B79 for ; Thu, 23 May 2024 09:21:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=fzIfyeXrD043qJO1Pl4BQzCDJVxEJ1bi3UwHZzVeVIU=; b=Zo5HwnNdqombDn ZuoHIeB5wT0aTWvUVL+7bX80YNyWyFr0kEyaWuuKV3OhoABvBsnl2xEVn/RYJEb5LtP7EoLtvebIm t5gHKdy4FVDWGSFmudkcvOjl3CRIeBve41y3mVm/FpqzwDp3BpHJDbn5hUMiFAYtwFV5vhmXNzygB uwJIROOLwwUeO8nLEvZK6KaUeXJCu9xs/8rG4qwSrquzeg9U/p+m0l5qIH9A7qRyfzJn5YjMWei96 UXYh86R2/AxWXx16lqrgorF/m/n493Zn/ifYfAkWlJzQjGmJsiy3anpvf7d9+0oA6aMPYrv0t9uGX mkIu+OKwR9fuFz3pu1iA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sA4dH-00000005eog-0LPz; Thu, 23 May 2024 09:21:07 +0000 Received: from mail-eastasiaazlp170100000.outbound.protection.outlook.com ([2a01:111:f403:c400::] helo=HK2PR02CU002.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sA4bt-00000005dqV-1H8E for linux-arm-kernel@lists.infradead.org; Thu, 23 May 2024 09:19:43 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=O8S4BGC3UVcEdQUsItsXemDqyvN1E8ubamKruyY/Wui06flMteExlXx0QX45ow5Dyqta6d+IUEjpfyG/QbnJ0oC4LCpJXpJ/Hq5RgJ/uwHWfJCNiG3pGxHm64RQF+0jESrnfWVdFF27i46NcJBVWmSs1jugKWo/0YMWjEmJ9jmIAO20/WrYC/kkRb8aqQO71yV5abOGcrEjnSzkdJwJ8d3yXxqqAzY/cfcl8AD4v9TsEUxGLo5rbAx6b8LQHrvd3LLQEyy5V+D6LsaFSK/aM0f1L4MTQTcorgcFGMk7uc8pv9GmwjPcDcQ04d6sD9hD12uUJ8caq3oJY2ZpvDp1A9w== 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=pycQ4ax5A44iPL+OokI9fmS5xofqcN1wFPCwCzTXGbQ=; b=ZRNoEtDrlUJFkpLhYtg+zdDjcoLEcjNh4WILK/a0D2oTIA9Z8JSuJunJ54doazvJ8NqhmQgcIlSaqaoKnMNREQQiAhFn5pNjCznzJWWbemucdMzNjvnoUR5vkQH3aQZmTNfPmCwVFp57LPdI8XidS83nffVY2I3KNZ2cqEp9fOZ3gSJTPwiflYoMyYEW02PXzcyzFqg4ykIOsEmGH7gUW8jVmI8t57q2JC3RjRwGkkV4lLRAXqF8UXq/uOk1Xja4qvEjzYrF4w78Jyw7ddFQTMl6xyJV3K5EsOdk1dNhyN+edgyZdRPv5FhInlarMkTyRO7ER0+LjrkLkilydyi1+g== 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=pycQ4ax5A44iPL+OokI9fmS5xofqcN1wFPCwCzTXGbQ=; b=IM4qHXcL2sAihIRjmAPf4J9vlZWZKMI3Qp0WVPVV+FeRGU/gl9x49jA9rnq6+UQKFLuT95MB9Fqfd3QX0PH3mjQ5scvrpEDsMY7xCryoMMyagNY7ld0t9pPVcJSPvsgfhP8q8tDcHWejmIPRkDiC6NegY9pxllWms0MoX+cr8w6HtjOefIqi4L+q4VUv4/Uk2xUFTq7CXMl4RpKA4tGumQWh8bCktgIhU5LCZvnjHvSrkcVEVDICMU8Oas+sIFnTfnJZdMJXv8RixjwpOeI2Ke5gazn8PHku7qkyATag9wWG+8NtdpQFIB76+Jh7cJ/vKKbh+XCQwjCBszavyYcj2A== Received: from PS2PR03CA0001.apcprd03.prod.outlook.com (2603:1096:300:5b::13) by SEZPR04MB6455.apcprd04.prod.outlook.com (2603:1096:101:9f::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7611.22; Thu, 23 May 2024 09:19:30 +0000 Received: from HK3PEPF0000021E.apcprd03.prod.outlook.com (2603:1096:300:5b:cafe::35) by PS2PR03CA0001.outlook.office365.com (2603:1096:300:5b::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7611.19 via Frontend Transport; Thu, 23 May 2024 09:19:30 +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 HK3PEPF0000021E.mail.protection.outlook.com (10.167.8.40) with Microsoft SMTP Server id 15.20.7611.14 via Frontend Transport; Thu, 23 May 2024 09:19:29 +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 17:18:10 +0800 Message-Id: <20240523091812.2032933-24-Delphine_CC_Chiu@wiwynn.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20240523091812.2032933-1-Delphine_CC_Chiu@wiwynn.com> References: <20240523091812.2032933-1-Delphine_CC_Chiu@wiwynn.com> MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: HK3PEPF0000021E:EE_|SEZPR04MB6455:EE_ X-MS-Office365-Filtering-Correlation-Id: 28c74036-1f35-44ea-b115-08dc7b097379 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230031|82310400017|376005|36860700004|7416005|1800799015; X-Microsoft-Antispam-Message-Info: jqOOOYTHQoj42yn1v2xkiEUTOpcSreTvC4m89m+KhQp+CeQh40pL3fP9f+2Kc4moz2bhmZ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/t7pu1+tzpXsaqhq0ISevXPx/AuH5Wg8YlxVDoQvhj/Bj1wKN8zI2gybf/EzAMaZ12Tmg83w6dQxJrOhF4Ow4Jc+ja8P+GPAlEWMgDUtOlFw7j9khYzwcf3muLD28akZsanojOIaa4m/vvcr7LhBHWhhZYQrlXWxl6hIKyLGeFnDTjYn/WIHDID0fhW8Bise21zxn1bWDY/1AtefllaFXjZbJjDoMdAQ5VOdNcNip0gXWwffs= 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)(82310400017)(376005)(36860700004)(7416005)(1800799015);DIR:OUT;SFP:1101; X-OriginatorOrg: wiwynn.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 23 May 2024 09:19:29.9857 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 28c74036-1f35-44ea-b115-08dc7b097379 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: HK3PEPF0000021E.apcprd03.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: SEZPR04MB6455 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240523_021941_445887_B7C49E0F X-CRM114-Status: UNSURE ( 9.11 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org 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..2cbb210ed53e 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_gpio0: gpio@61 { compatible = "nxp,pca9552"; reg = <0x61>; #address-cells = <1>; @@ -1268,7 +1416,7 @@ eeprom@52 { reg = <0x52>; }; - gpio@61 { + led_gpio1: gpio@61 { compatible = "nxp,pca9552"; reg = <0x61>; #address-cells = <1>;