From patchwork Tue Jul 23 09:23:04 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: 13739809 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 0BE12C3DA63 for ; Tue, 23 Jul 2024 09:32:48 +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=3oJrqJHAweo2jtiHdfLyfEICri jZU1n6xcE45CMBjHJfZrZimOxayAjnJLABGpz7wuP+9gFsQRj0lFXIcV/flXvwOnrQhA95qF1PRgO ZrXa/nSz1Lr07GxdQUVJ0K52xDrnJ+B2xr7EpYLHcEsSeH8XEC572t7jbkulLSH3CE1Lo7rOB9QfB SXLksO1FPGjCRrx2BFqlNOkHbTbQ8Bg0TZB9cOCPulJzzVVBH4yucEVkT34X2Ea0Yg4Xg86B34EwT 5D5uvvarAuDtvxFgIzY2rlOVEQJjMJCJAU9KI2DZ7cey8mGMiolMY/zpDP5OS3IBoAFnncpFOZJC4 zWdFi+vQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sWBsr-0000000C1j7-3OuB; Tue, 23 Jul 2024 09:32:37 +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 1sWBlF-0000000ByQ9-0kkF for linux-arm-kernel@lists.infradead.org; Tue, 23 Jul 2024 09:24:46 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=yFV3/C21Lym2vkZcpUUT3JWyR23lvg5BcS9lrU/lEW+1W63gNp0BwPnGKnksNKU/3SIHgBdFD4rfiX3DEO1gRLqvMCKJAZOlPSEgod1RI5/bhDjNAP0LOPDp3olrmeMpuXYcVIRf8fG9gu7DJwzQl4GRlq6nddX/UWeftg9blLI+gdDMa63wlKo8cpvhnzDHTvK6tAnQF6Xe6fxpIVbNk2F5iMKn9DaMbcpYbrBCSrkGCMnwd3I1xUCBniEDt3/cgh6A96fff/8h9JpekYudiq3GruwMy5yQejU5Bzx6A1vU5G4PRbGz3lm7ksHewHBclSS40BDKOC0WFDYTyapVpA== 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=g6dcq03XvAmdzpjOAAsta3DaJdMWfJEn/C3cUC6MxT2AsuRJa/r1D8W0qKOyQqv9ZRe+5KJZJMOGaiOy1lo7Q3yXz1yJL5GBKF8Vf15LrFhvg2J6CALqmUQN/9cmNqQb4D8jWu8bDGHyPff4yuOwv/7IDmmkE5aOeSdQWZ6GYyPCe6dnymtmmvZQQ9uaNsm/cmBgAHG+MKM3Zn8zkthHwdXvtx4uLacyRv7h8sJvjeD1PrX9T7mP+Te1gOrMHe4Bq7JBloSqFK4fJtS9YcdOxmxr8N/OS36OsKqu/lmWdiC5CIq6Dpq14R6IC+yvxrdRMuXNYNpCt+xlSVgAo1Bmxg== 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=YbgpGc4ImFCVg/Za/WPoXFtSg9IVVJGBg4nxWRY9WQL+nvHGjr5JZwHOk8vlITtpG3CC/H9nJRnMgfY3J1jNLFyTosiWAjxMQIZaz6C630pJIfx+yHASTiiCSWIlnY4+RI6TgV4Ikb32+H/Qrp/mXVxPezLq2JgcvEScnqRRSsxMFRJvJ3yGPyx2HoxNYaqfwYSgeSWlJ4/d2zuDceFurgzU1t77iZE0LnvGse70RWGlyKyVnmHzh/RJC0SJEjoPe9/6YTEb7REzrl/ciehSXGMghYspfsSKUEcq6zECnRk9b57b1kul7Czi9Hpcieqnrhc6h9lw7NudA66wI5Iz3g== Received: from PS1PR01CA0018.apcprd01.prod.exchangelabs.com (2603:1096:300:75::30) by KL1PR04MB7253.apcprd04.prod.outlook.com (2603:1096:820:fb::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7784.14; Tue, 23 Jul 2024 09:24:42 +0000 Received: from HK3PEPF00000221.apcprd03.prod.outlook.com (2603:1096:300:75:cafe::91) by PS1PR01CA0018.outlook.office365.com (2603:1096:300:75::30) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7784.20 via Frontend Transport; Tue, 23 Jul 2024 09:24:42 +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 HK3PEPF00000221.mail.protection.outlook.com (10.167.8.43) with Microsoft SMTP Server id 15.20.7784.11 via Frontend Transport; Tue, 23 Jul 2024 09:24:41 +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 v11 23/27] ARM: dts: aspeed: yosemite4: add fan led config Date: Tue, 23 Jul 2024 17:23:04 +0800 Message-Id: <20240723092310.3565410-24-Delphine_CC_Chiu@wiwynn.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20240723092310.3565410-1-Delphine_CC_Chiu@wiwynn.com> References: <20240723092310.3565410-1-Delphine_CC_Chiu@wiwynn.com> MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: HK3PEPF00000221:EE_|KL1PR04MB7253:EE_ X-MS-Office365-Filtering-Correlation-Id: 30273969-cdbb-4d13-633f-08dcaaf94879 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|82310400026|36860700013|7416014|376014|1800799024; X-Microsoft-Antispam-Message-Info: 2LljGxqB0p08LwgcRFffJnSWkKrKqFO/AMben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uMqiNU7o5a1flodMgiIB2KVeLafANw4Vpm2YMzCZj3/3Ie8aKWxvnFBaDxlOGabNMfxivfurqGLQeI8IK8hfifgbLT6GIfMSz+I75VGdTgYepcb2dEUHxWW5j/eUiJpgFtQlzUbp39pL7HGB3vnfGy4Z59Eb74slood2ftWScIg6lOkQ643Zbj9Tytum/Svoydgc42ucyk0sO3fSugez2j6T0ABjPoYaWEJ7pR9rfZKtO14JyZ/rRBF6QN9LbFsr2VTwPIYG9jtfd68CIL4FWDH3akvYJlLt+ZjEtEYNRpACGjisLEg4AQWiv0DfvPgGzYb0N6GpX7daN/38kQAsDe8cQipAuPU+x/Ps4T6KPypLxwr5JzMf+e 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)(36860700013)(7416014)(376014)(1800799024);DIR:OUT;SFP:1101; X-OriginatorOrg: wiwynn.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 23 Jul 2024 09:24:41.7073 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 30273969-cdbb-4d13-633f-08dcaaf94879 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: HK3PEPF00000221.apcprd03.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: KL1PR04MB7253 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240723_022445_245364_38E97B6B X-CRM114-Status: UNSURE ( 8.67 ) 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>;