From patchwork Mon Aug 26 06:23:57 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: 13777148 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 C1082C5321D for ; Mon, 26 Aug 2024 06:41:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Type: Content-Transfer-Encoding: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=QU+JZ1MSglaWLSUKc8QjBu76ufZkEOMMNsu7ns+mPuQ=; b=X1i2VzPNvVM37lyei52hNTLouX RJwbDwodjZJ+kgOQ0a/MFl0jAgH3m9UN7EvO2yj/HRAQDjjlD3A5tZVvytV7OXUOQRgt+cskJ+CRq Sxrtr3XaJkXAsJSoY6xQLDuPiiUoli3jRHt8G1nURTx32MlQQMEqsqeg4Q+vAyyIIKZm6ZoCz0Vqn 9/9HIXFLqRe0YyCghHO0R1+oSm8wuLSmvkIq7OY9BoyjyjalFlJlZsmei2r6xbDb8AEFkIAti/vj9 epqJO2IpI52VLRr0iMDDmw6iBv0qLB9y5GEqajl8cIVXBIuGnoaLInDh/e+ZxqxAE2NW8LgGB8eno tQHSTQKA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1siTPQ-000000065bs-1k88; Mon, 26 Aug 2024 06:41:00 +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 1siTBU-000000060jl-03FV for linux-arm-kernel@lists.infradead.org; Mon, 26 Aug 2024 06:26:37 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=OQuOK13DC69/usftEdP2756Hyq7CmPgv1CkwHLIijMMCtacLtY4Z0p2XHklVvbPcOrn6PRHW3Fxb9J7SD6N2NKfoXR59fdCZb077hw1JhENE6TDPIyuLiintnUgahvcV/jKh3XsgKaPDMcOFjAPFWzPUasGagWywNttSbhv5X7s4ZE29dzBQ7GjDT2PGaTDLiqpli2/wjKHcEH7iUJYJRf3Rn9bjuXxpet/SFCRC+cp2l+sw0ngL8aSzy2qdFfelCljrJiEgJ+FKUXbIo7zZ/THPs6Y/ibQ8KpEXJHaxYpWIbGeD8xvP+LTdJg4wAlUgG551lnk5zgaYyXcxydL4Ow== 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=QU+JZ1MSglaWLSUKc8QjBu76ufZkEOMMNsu7ns+mPuQ=; b=Tbrc2R6Ay77ZvEYF2CyF9PbQ7cO7WCqOzueNy8evMbTZV0CU67f1R4bO5RWeJkFUuK7+4UdymFwJZpBfUYdKEwkdkk0qD1NQAIWVxSXOO7wQU+O9y6Uxlps84+/VnU9hqZ2GmBUGAZ/y/L0sPfl7IAPvrOAjTGNtWjFa81UkMp+6LRE/7FrtlG++G2WyvsbcgwDF35qSAksPaw5gv19ig0zlGCdwr5dlFRj6dzihYzVrTM2a+disWkNUj0JcGysfhmHExs5EIQ2hHj1swqQleaYstVcp334n7j1ttezEihgNzxX/nprKJgNC+yCT/Bb5raXZ82BmJqHIZZ+TH96+rg== 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=QU+JZ1MSglaWLSUKc8QjBu76ufZkEOMMNsu7ns+mPuQ=; b=U+0vxYyV+u06IahDpqc7lo5LjGW8I6vhgfM2Okid6myk5JvEq5XJiBv8UiqLbJ1KIOfJq9Fabs/5ky1Scs0TUl49fSoRE7wGfRKt+b5p6OzafDLAxhndaiDaEB8jdXI+NuKz5rNI6vutYeQmA5s7kf8umCy9zX06PxUFirO/ebSPy8Q+OFd7hB/QBOHmz7KkHuiUWS9k30NeTu1kL0sb1RdFFrnjh8cpOlfyJwZMExG8o7PLTJkyY/lnbKfxiRbSXMuP2/0WiPa8uDZ2slY7SHUZMgInRSC5tKPu8yWgn8Gj/vb0C3XuyrmGPQdiVGpr0CS7xsyQ/m2en8UpOEA8IA== Received: from PS1PR03CA0003.apcprd03.prod.outlook.com (2603:1096:803:3d::15) by TYSPR04MB7923.apcprd04.prod.outlook.com (2603:1096:405:8f::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7897.24; Mon, 26 Aug 2024 06:26:20 +0000 Received: from HK2PEPF00006FB0.apcprd02.prod.outlook.com (2603:1096:803:3d:cafe::7c) by PS1PR03CA0003.outlook.office365.com (2603:1096:803:3d::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7918.14 via Frontend Transport; Mon, 26 Aug 2024 06:26:19 +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 HK2PEPF00006FB0.mail.protection.outlook.com (10.167.8.6) with Microsoft SMTP Server id 15.20.7918.13 via Frontend Transport; Mon, 26 Aug 2024 06:26:19 +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 v14 23/31] ARM: dts: aspeed: yosemite4: add fan led config Date: Mon, 26 Aug 2024 14:23:57 +0800 Message-Id: <20240826062408.2885174-24-Delphine_CC_Chiu@wiwynn.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20240826062408.2885174-1-Delphine_CC_Chiu@wiwynn.com> References: <20240826062408.2885174-1-Delphine_CC_Chiu@wiwynn.com> MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: HK2PEPF00006FB0:EE_|TYSPR04MB7923:EE_ X-MS-Office365-Filtering-Correlation-Id: 7752d2f8-52df-411f-d49c-08dcc597ff7a X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|1800799024|7416014|376014|36860700013|82310400026; X-Microsoft-Antispam-Message-Info: zO+aakoeWXIHv3WFq3x9fTGLKUTQubxfIURZkR7Q1nAFuP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fh4GX7ChnRdvzLGkP8IijG1Kmmk6eIH1lWmX8yW1esuO7cPQKl5O7VfshH5xPcWBUpW8cw1W3K099jAPW4mo6Yn/0OnrL9iPYhuNte3lPPJCjSFsDfyBY7odrPjbSJqo4SbDktBWCWLa8xze8FKo0BcydD9fJSPVYCaiC0rfRsmneLIIeOYHvfd/UzPYi6Cyp+w+oAQWyfKWPUa1AckTJkMwQjS6xCy5AjJxVFRETbbbZHL2oWw/H6bSW/D02ascBc6ZXK/oiDlKdLrkp6M/iJzOxd7ba2xFlbke/X2XxKfC+pvfM8bLs8qu/MynILyRCn/zwOWpkSBePIFWHEi7mGa2HABhJ1 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)(1800799024)(7416014)(376014)(36860700013)(82310400026);DIR:OUT;SFP:1101; X-OriginatorOrg: wiwynn.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 26 Aug 2024 06:26:19.4553 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 7752d2f8-52df-411f-d49c-08dcc597ff7a 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: HK2PEPF00006FB0.apcprd02.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: TYSPR04MB7923 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240825_232636_076982_CAB7F34D X-CRM114-Status: UNSURE ( 8.66 ) 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 c940d23c8a4b..2f4e9c5edd5a 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>;