From patchwork Fri Sep 6 06:26:49 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: 13793374 X-Patchwork-Delegate: geert@linux-m68k.org Received: from APC01-SG2-obe.outbound.protection.outlook.com (mail-sgaapc01on2048.outbound.protection.outlook.com [40.107.215.48]) (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 9B9A715DBB6; Fri, 6 Sep 2024 06:28:48 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.215.48 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1725604130; cv=fail; b=bLB4wRCBR7tvh5fvhfEhsizfk5ZNxgLmNW6vgsbUBOvt4IUZWrL43mEqLJzv5pyEkHOLXXFiIuQOPd42elTm+lL3E7Cnf90KgQ3KB3BCKoYmWcwsRWbexOn6YMBBPz3Cgm6xHyO56uELk6BL2t/fxcJcaStnTIySa6+sLIrJbFU= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1725604130; c=relaxed/simple; bh=008+v/O2Jqnp6k+93ZsuoXW1iys2wSbe6kzenP4szZ8=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version:Content-Type; b=KGVoasYMELJnLe1184BLeeAhGqQ3KGtL8u6ZnUCZUUGTUtHMu4v7sD6pHuqiZjLk2oC7YFrAIX3uFeiduUVGkufynKtgsJDVS+C5e4P7GRUoxcfpd/qUKt/9J/iT3v8W+mRzTm8rKV266L4bFiUGjsmJXI35+ASjdazZU/oGXlA= 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=1AXAk4D+; arc=fail smtp.client-ip=40.107.215.48 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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=wiwynn.com header.i=@wiwynn.com header.b="1AXAk4D+" ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=hmpbbz81fJeFfRTAWhPkVGFzoidIYZNnWwpRLa4edX6CBso6MQS6YmwUOaKAtPuQEby92Nmum9qkTsTlB2pano03bDM31DHokDe9d2tWGTRRhgEip1Evvlb8bsrl0Tn4D2XJXzWcMNHJB1chX3C5DsvWxPxYewUwVg9YoKCDXpV53eRP0T4ICpCrYZUvTWEZRiVTdYB5fPcoOsjzKKK64B3GucJUgrKWrcsZceYhE9jQQHr5N3jutNmFy8pBwf/gO3YyNTQAILDEtJJwoOm5MgWRvwRvg8HiW/bQBVhHFB982038cqOrkb5ZZsJoz64dihUFoNc0U2VocyxVFd67Uw== 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=UiWZ/15hkBNiXpjlB05BPqJFSxRuvjdjhKkEhAkINkHWmnBkrGmJ6YWFRVpIzap8ztIQdNcMqfMUpMpfqoBeo276hh4pmpG73RfvvBM0k1sGqSJhqSXZcLsqJPXhiQ4Ns1y8rDxb10CVaVof8N9Wq0h4eLXdCU3dUHN4vNJvQaxDwYWEslnRdQMWsF0b62aho/mwlmorylN9syDzyrA/RV9TRZnlpX0xTKxQsKLfY5Ln1zhnupXLPcIfHUfuk5tGMwqivf/DWnuzzSB1ySK/cBw+rnTXUzLW5AvjMwHLNNcj6VLCSl6bngQIYEJaZ3yoFczoBVj+OchpaSpjGbtIPQ== 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=1AXAk4D+NxJeEUpx/6JvnSZ3lULQs+k1x0jGa5sF0FZoLxLVCRV8s51WZyLGQNRQyVY1CFT//SBBiTr7/5n/NS+MceRtKCKJwy5kpOutSIPWINT1MeTy4QOpOWcfaeL0FvZsOqBWt94VzEymyqhVW1uGwDTkhZS+yWAkv9wAVafqPWU7Ga92FkQwNsSOGi+z4nIO7Rcb15+7h5CssNyvOIAd5pcESGr6zwDhITz1OxleU+KLXtrVprPNTVxWUpNoM1F7F8fGFCk7ivVgGTcgcuFQKsO+faS5ibIXtxe6ojlCOlB7xLCIFDVMmHbweM6B+OD6Hq3zwZ/yAK4DyL3ZVQ== Received: from PU1PR01CA0013.apcprd01.prod.exchangelabs.com (2603:1096:803:15::25) by TYSPR04MB7276.apcprd04.prod.outlook.com (2603:1096:400:475::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7918.27; Fri, 6 Sep 2024 06:28:42 +0000 Received: from HK2PEPF00006FB4.apcprd02.prod.outlook.com (2603:1096:803:15:cafe::ed) by PU1PR01CA0013.outlook.office365.com (2603:1096:803:15::25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7939.17 via Frontend Transport; Fri, 6 Sep 2024 06:28: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 HK2PEPF00006FB4.mail.protection.outlook.com (10.167.8.10) with Microsoft SMTP Server id 15.20.7918.13 via Frontend Transport; Fri, 6 Sep 2024 06:28:41 +0000 From: Delphine CC Chiu To: patrick@stwcx.xyz, Rob Herring , Krzysztof Kozlowski , Conor Dooley , Joel Stanley , Andrew Jeffery Cc: Delphine CC Chiu , Geert Uytterhoeven , Magnus Damm , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-aspeed@lists.ozlabs.org, linux-kernel@vger.kernel.org, linux-renesas-soc@vger.kernel.org Subject: [PATCH v15 23/32] ARM: dts: aspeed: yosemite4: add fan led config Date: Fri, 6 Sep 2024 14:26:49 +0800 Message-Id: <20240906062701.37088-24-Delphine_CC_Chiu@wiwynn.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20240906062701.37088-1-Delphine_CC_Chiu@wiwynn.com> References: <20240906062701.37088-1-Delphine_CC_Chiu@wiwynn.com> Precedence: bulk X-Mailing-List: linux-renesas-soc@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: HK2PEPF00006FB4:EE_|TYSPR04MB7276:EE_ X-MS-Office365-Filtering-Correlation-Id: b5062cf0-bcc4-4de6-87a7-08dcce3d26cb X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|376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/Ouj1uAlfOE17/MjM+c17UlUnt4IP676ltyE4Gy0O5QF9frmSwxPgsPU8FDKSP49IeFuJOAhrMd4JqQiL4dcPnztX1lBoKEAxqZ0L/zvBMuWfEQ6QudN4qPS1TjfCpEt11xthGU9pjmn1lUjUVO+daFC4E8SzpvluaH68qyfPXPTT1hWIg18qoMzuzRO8LfmUDZpgnNi51hr3WXTwRyDwiOYkVTpzJGJct7wYydZPfmwcPJVtbv0zS1iO4uur7BqaFbiXaAXLdQYAOm7yzOjzVuCCaVh+c4z6wr7XbRWb1M+ktxGAocowQguNG6FFYipJ4V1E7VQ4otzckg11e45hxxEh/W4FW0PqhqMiOqpOA3mYjLWt/Pau+MCDVm6o3S/Xop3FKuaO7wHan6bXyPQXrB181D1lHuzNVpDDE9e0elSqMr+hISxHo 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)(376014)(82310400026)(7416014)(36860700013)(1800799024);DIR:OUT;SFP:1101; X-OriginatorOrg: wiwynn.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 06 Sep 2024 06:28:41.6311 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: b5062cf0-bcc4-4de6-87a7-08dcce3d26cb 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: HK2PEPF00006FB4.apcprd02.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: TYSPR04MB7276 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>;