From patchwork Wed Aug 21 09:40:34 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: 13771165 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 4270EC52D6F for ; Wed, 21 Aug 2024 09:57:43 +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=Ty7xj8V8D67xxcBBkip93w03zf +In7WUrroLvFvi+vRuhNz9eJg1KrSREqDqbIb8r7CwgEI0gLMFAo8ZBd1+L29raEUUnZ3YGbRdGw8 Tu/QYmE8KwOz7QfJ43sco2m4ZW4zUkreU2ouUvGZcTZKCKdEax7EacuXpO7hvrOyL5XEBDjKOmFr/ Am4GLzy5mpiMtEk1+L3AcTU4oAWwnu9/qVBKAFA+xQoT2f/ZkU+XrFPIGB+I7+nzaKtHDwwPWBro0 KkabXhaEgkq7dM3ZT/J0I5a+X+Cs9zQMpZ05mc8XlSHbRdiEIb7VKWvPrPGqL4h+1ovg0jUnWjtDe EFLOxuJg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sgi5t-00000008KEv-039j; Wed, 21 Aug 2024 09:57:33 +0000 Received: from mail-sgaapc01on20624.outbound.protection.outlook.com ([2a01:111:f400:feab::624] helo=APC01-SG2-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sghs5-00000008Hf3-3wGx for linux-arm-kernel@lists.infradead.org; Wed, 21 Aug 2024 09:43:19 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=MoWYjcgtCCVUa9rpZ7+tpy0hilCG05fgin8PBqxuvh0FNqYls33gMAp0KGksmb4xewxXVJDGVyIAPM2pSc7da5jyUzhW5hMS1nEjlRtgM1HPyYN8z/8QvWiI/QYhCUUo98c3m9NaR7svG8yhiw/+FNk750iYaEolsJuZiQ7V0PgdztuCzEE+Fx+w98Up9f8+xsbOGeJyGmdiUxqMfReebxiloxZalMqjMrb+WdBlrqLZdWhA1mBZmmaVa8F9641wwvMzyNsiYq437UkfWTOwuV6MCvo3SrFOQmQ82cv4xRd0D/Tsxk94HGfeu79Im4xPZLnO7UYZM788nUs5yB+7hA== 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=vy4dCggQwXqe5/gzNvvf7tviBEcXesuIc2s9+dcamhMokHgyCjcZmZ0jezAk3KVoen7zMih4vF96C4Ci0mxpMcrqXZWi/RTRGcNraDZHXqsgrwprao+QbqoQSQo/lUYdYuTqnkL2z+PyRA4Zvwko+xpVdRAYz9Qb6j58iNI/S1BmJl3t9LVhgU8qEjDkEQcKwomPm7GOGvGbgv2T96lX7MPq65Hy2QuhJCcg5c8f3hppmq7ZimtCPhGQP8m302qDlTiBLdSVkYFy43TQ+rDhg6LN87mYOxmGvwmYkdoJCdqWbUBoN99cUjeZmQbah+BzzzGicHCmgEugzBp5gGKlQw== 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=AmLUvcwlFBG4piaHovcdRk+aFOiLgPgblCmFzwysuQR2ENtOt07zXciZmPMdCN0/vHsDuxCWOkg9CztfEqtxJvpQgffu9K1jVfePEOHkrAII14teDAwbmEP85r1XFgZrad0nNTtTEE9ZoqSZVl/Fw9Z3U35AW5C0Cs/FkafVQxZt4h5dsewzscvcxL7IOGD4z/xzQ67XJp0+NGLOSoY7VbRmFy+qztKiaM7gpfQw+mhY2v2HhwuDVbbSGApdcpAUe4OhBaH2LJMBEps8XKIM3wV6oaldy8eDOBoYHh0SzpAXCMlpHZPj1Bg3y/PpxP8JY6GYnlU0b2S7DCgc2OikQg== Received: from SI2PR02CA0022.apcprd02.prod.outlook.com (2603:1096:4:195::23) by TYZPR04MB6924.apcprd04.prod.outlook.com (2603:1096:400:33e::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7875.21; Wed, 21 Aug 2024 09:43:08 +0000 Received: from SG2PEPF000B66CB.apcprd03.prod.outlook.com (2603:1096:4:195:cafe::e) by SI2PR02CA0022.outlook.office365.com (2603:1096:4:195::23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7897.18 via Frontend Transport; Wed, 21 Aug 2024 09:43:08 +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.7897.11 via Frontend Transport; Wed, 21 Aug 2024 09:43:07 +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 v13 23/29] ARM: dts: aspeed: yosemite4: add fan led config Date: Wed, 21 Aug 2024 17:40:34 +0800 Message-Id: <20240821094043.4126132-24-Delphine_CC_Chiu@wiwynn.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20240821094043.4126132-1-Delphine_CC_Chiu@wiwynn.com> References: <20240821094043.4126132-1-Delphine_CC_Chiu@wiwynn.com> MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SG2PEPF000B66CB:EE_|TYZPR04MB6924:EE_ X-MS-Office365-Filtering-Correlation-Id: 888f819f-bc98-4553-adb3-08dcc1c5a9ce X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|36860700013|82310400026|7416014|1800799024|376014; X-Microsoft-Antispam-Message-Info: DlE1j1v2Umv+S6GVjALK7sEmEUirnGrmkwtyxMDl1gG5pgg399e9KnKR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rI9xhicryYG+bFuz/I4I/553BTQBGKMOYiFHFsnAqVPCyh//2sSR6PJSHS0HZr/WnfqpIZQb4ZAW/yRcaaDRFrEwHpZ4BXmr2LlDao69EZz4KPZUYDJS9KGXcCulX8l2Zw1pF/IWrquxzKDo/fD4mdkqni9h+Uq5o31zv51Idd8vOO3lHV3DP8n+2RUNvqW4C4HhnxFVClYW7p/ajHgejdcamGSZb4G0ggTaSeuPP6QK6u0nSrOz3QSxyJhGMTXkm7eYEpOXNTqAgxvVlkEU2XaKLo4EekDF/m+C27AVJZZxoy7anO4WiONLPrDs30uDt6cg 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)(36860700013)(82310400026)(7416014)(1800799024)(376014);DIR:OUT;SFP:1101; X-OriginatorOrg: wiwynn.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 21 Aug 2024 09:43:07.5130 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 888f819f-bc98-4553-adb3-08dcc1c5a9ce 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: TYZPR04MB6924 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240821_024318_004954_E7015ACC X-CRM114-Status: UNSURE ( 9.89 ) 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>;