From patchwork Thu Oct 5 03:55:22 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chanh Nguyen X-Patchwork-Id: 13409786 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 707B4E936ED for ; Thu, 5 Oct 2023 03:57:08 +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=50QsORfUIEST/q60gAC8VomfalexjihvNA/f6B0a1Zo=; b=Be9TCCncsZ51vl dKGNtkGyWpiFP6oAL9ITXUVct5N8TeshE4zaBrPw+ZVYr9MQomgJP18Y/FDnr1NZXy3Fbw3oBdOm8 twY2tOWm7Bb5ibx8g/vNWLKQl7cWl8MUYYjfRbIjwxkuk7z4qqRiLovpcpom4lr1T81MVYPE9rZEM Qibm1M3e5V4NuAMCeQvs1ytMhFvspcNAoeh/qxzECK1RjK6e4YBDWxYe9yPdsj1cMCGeIHCagG+jb ED34aeDdGK+RZMHPJT+TTacEMJ6IVD59pNIszzoTEnfc3iEKtv+EKpNQG8f3Vat252w9i3Yt4Ll7e M85UkvQ3u/vfAA2jCjzQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qoFTc-001LYY-0B; Thu, 05 Oct 2023 03:56:40 +0000 Received: from mail-dm6nam12on20716.outbound.protection.outlook.com ([2a01:111:f400:fe59::716] helo=NAM12-DM6-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qoFTX-001LU8-25 for linux-arm-kernel@lists.infradead.org; Thu, 05 Oct 2023 03:56:36 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=JKYA637PHOQOccTARtiZ6kl/w0XfD0OuRh546YQT0u5aBBPhworcIESkrd4iKaNkO+TKrNk68MpZXCkj758u3swjPvlrn36r5eSFN3bE/rXYLrwyF/GDh444AXb3RXYngOUDZbxHvfCq7ht6obuLoyCb8hL5yTTJ1HQxUyg/qn3hSMerqKYYhfo9UwpbBFcFAdhff9Nfhzjx5gGwrM5vtxXeZ0xNDyQbhV/7J5oLwnd5jBrF1dlVFgHuSrvh9VX6Y9IKA4nCpFT0e++699s3nYJVgvArol3xqmeNy3OmfyB3VL5ndTwdEMIph9lywgr6XsGg1cvS9aZwJY9fnHNhXQ== 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=2UOT7SgQjlxdHik2nb2Z5XwG4gW0CcHHTHYd1biwev8=; b=gpFFOT7mW2/ZIwwQ2KrRFd0VXGZullJjSAmKNcihcAF5/GyMCrcvRQvJN0Lvv2MQYrUYWZMfHBUl5d9w1BHE2FxnsLERS4dEnW8mxdYaQ4AmvNtDm6Ikf0g5e8Lii/augQSAVBY6NswnCNo87I0AjBJhb3tyZhgoi/P2MHDe5GTG4gKomDfNPjygofnFtyWH9+6jDVY8Q7+hIdpTXDcwdkYugGclvxo2PbukacQmiviR/qRWb9BoFjJDyr8aHrSutx4XvRKw5AmfM3DeUak7CWc8np9HVGd7U6zGUCvECtfnMs+0fQC1mZSjHuBiMn6hV0vd33ILu+VvuDjkEUvKzw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=os.amperecomputing.com; dmarc=pass action=none header.from=os.amperecomputing.com; dkim=pass header.d=os.amperecomputing.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=os.amperecomputing.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=2UOT7SgQjlxdHik2nb2Z5XwG4gW0CcHHTHYd1biwev8=; b=pl6MzSK+cZKYq5ht00ylvIdNmA/HZeUDfEsf1DjpRhbLZ5mni937wfJjdXu7SXPV9+yQR8jBcaGQJnfWYcXK4J7KCQGctfLwlD6c8sCCvhKRIHDO1yuMqqhbHyE/rqIuvC09ZxA3nlpbnWEjeueKHo4jkEV/cHco5WHvWEPGOfM= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=os.amperecomputing.com; Received: from DS0PR01MB8010.prod.exchangelabs.com (2603:10b6:8:151::19) by BL1PR01MB7649.prod.exchangelabs.com (2603:10b6:208:394::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6813.25; Thu, 5 Oct 2023 03:56:25 +0000 Received: from DS0PR01MB8010.prod.exchangelabs.com ([fe80::6a3d:61d7:133b:9eb9]) by DS0PR01MB8010.prod.exchangelabs.com ([fe80::6a3d:61d7:133b:9eb9%4]) with mapi id 15.20.6838.033; Thu, 5 Oct 2023 03:56:25 +0000 From: Chanh Nguyen To: OpenBMC Maillist , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Joel Stanley , Andrew Jeffery , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-aspeed@lists.ozlabs.org, linux-kernel@vger.kernel.org Cc: Chanh Nguyen Subject: [PATCH 4/7] ARM: dts: aspeed: mtmitchell: Add LEDs Date: Thu, 5 Oct 2023 10:55:22 +0700 Message-Id: <20231005035525.19036-5-chanh@os.amperecomputing.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20231005035525.19036-1-chanh@os.amperecomputing.com> References: <20231005035525.19036-1-chanh@os.amperecomputing.com> X-ClientProxiedBy: SGXP274CA0016.SGPP274.PROD.OUTLOOK.COM (2603:1096:4:b8::28) To DS0PR01MB8010.prod.exchangelabs.com (2603:10b6:8:151::19) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DS0PR01MB8010:EE_|BL1PR01MB7649:EE_ X-MS-Office365-Filtering-Correlation-Id: f066644c-6a42-4103-5f21-08dbc5570be2 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: qvlh1li4iQiOuiua+oZZi52vmTqMNrvOavV7OLkWkYwblOp0wRFCxC1sj3BiN9fPrerFgRu62XM371MjFfMDOm/RQ6qfysWI+OYQsgR7NDvRAp7276oKrpsVlbY4tOISdmDL0/TVZ1bX5rS8TT08oUxGfn5IIJ/TjVQlKekinr+ePdpBJ6BQrGzfnqJwVBjzPb/u4GFxfKlTUOQ6He++IECC5gUMlyYamYrVTfYj+DJFxTxoveJtdsMBXRKDDm7l37mzqi75Ut371ScCnrYng9L7Nmhs0hisDNHATpBq8KPKA2MC+rZwx8SaQXB87leUWZvImfVm2iRnCGbE0UTrO2t2LU3G7LDwcX1PUogooiaw6OWpjXFVtgHUq2GkJQF/R70Hd5tv5CYkOGqetaphnpx9X5tkYmnJbbDSvERkEsygqc6o7KlEejX5ZniIl6/oZtQIzKG9KgoINSJ1mLx1GTWDx/BqDZMKj9IZog+TrcCttHN9YqDy4FJ8GAfk3eCLXd6/D9+bRyo6uzODxirNulWrNFBm5ZZPWv9h80Feaeg3mlvIvK2CDGCnJACShC8m0jTbZrfeqmrLuUvIrLPc0yqbpohRhh1UY6SXD0f1LTmvihL8y1uwY0Yy0H/nSOZSM50BAFMY19Ynip4jcQ+05Q== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DS0PR01MB8010.prod.exchangelabs.com;PTR:;CAT:NONE;SFS:(13230031)(136003)(376002)(39850400004)(396003)(346002)(366004)(230922051799003)(1800799009)(186009)(64100799003)(451199024)(38350700002)(38100700002)(6666004)(478600001)(6512007)(921005)(6486002)(6506007)(52116002)(7416002)(86362001)(8676002)(4326008)(8936002)(5660300002)(26005)(316002)(41300700001)(66946007)(66556008)(66476007)(2906002)(110136005)(1076003)(107886003)(2616005);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: zaUcyhGZIIaKBFVn7eAAJ/pTtrhGl0TkPJDeRqE1n7c6PMMkfQxIG2ujX9CeJQIrtv7cK9+0lchzXxsfkDFFSRPp+YhLJxT7nKjjY7h/nwazfZONbyyoMhHCBXPg0pIKgFJ/wOmfzQ7HRE0n1SgkkC93B1JkxLoDybvPMvH8c6R82/3l6N4yP8yCoy/RVWsYJ0RZcx/Q1v8X2CYD2cVCxGHbrtmBc7QNrNXefNsykBP2OI/88q0gDzokGVNGw7BehpD5KrlnnIwhfo//wQVeEo3V7kRubVwVVqMJjUMudYRXw14JpqGWeQ/CDMSHc08mA0F4OWTzUbKCjkHW+ovHMCh8XUqpDKSwd+DhB3sWhQO35ebsNvEierk3FRMzWusDx6WJSy4oOKTM6TchR5elDbqw2//fZi95t3kUcDbGQbsMCg42UQXUFbDmw+N64fEnLijOUNt7J9ih1YoaHtdnxDPNtKMrhztISiFdlKVRGAUbbTHAvu824abnaDPELxbJlD27XVKzAEdQEw1MH655MWOKWd9ddkCz8ADOP9SlDQn8cvaumL09/Snz1vF6DEtiIYwWVngjx/zkoiAE6cIhdLW3mwHz3HRywNIUHe7W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-Message-Id: f066644c-6a42-4103-5f21-08dbc5570be2 X-MS-Exchange-CrossTenant-AuthSource: DS0PR01MB8010.prod.exchangelabs.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 05 Oct 2023 03:56:25.8443 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 3bc2b170-fd94-476d-b0ce-4229bdc904a7 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: hNfVkm+shQtQorvJ+SpxbvdplMWM331eQr+0db3mPojWE889ilRQ3EbXrny++3UpFHIdcBioIcWoFEGiMp0uAMZ5X4Ix80clLFgdiSy3S/ksI+FOllvvxyVs9VE0V6PL X-MS-Exchange-Transport-CrossTenantHeadersStamped: BL1PR01MB7649 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20231004_205635_685713_423784FF 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 Use gpio-leds to configure GPIOW5 to GPIO_ACTIVE_HIGH and GPIO_TRANSITORY flags as a bmc ready led. The GPIOW5 pin is reset when watchdog timeout occurs. Configure the GPIOS3 to GPIO_ACTIVE_HIGH as an identify led. Signed-off-by: Chanh Nguyen --- .../dts/aspeed/aspeed-bmc-ampere-mtmitchell.dts | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/arch/arm/boot/dts/aspeed/aspeed-bmc-ampere-mtmitchell.dts b/arch/arm/boot/dts/aspeed/aspeed-bmc-ampere-mtmitchell.dts index b7c4f7cfad07..88693c2b2dbe 100644 --- a/arch/arm/boot/dts/aspeed/aspeed-bmc-ampere-mtmitchell.dts +++ b/arch/arm/boot/dts/aspeed/aspeed-bmc-ampere-mtmitchell.dts @@ -51,6 +51,19 @@ }; }; + leds { + compatible = "gpio-leds"; + + bmc-ready { + gpios = <&gpio0 ASPEED_GPIO(W, 5) (GPIO_ACTIVE_HIGH | + GPIO_TRANSITORY)>; + }; + + identify { + gpios = <&gpio0 ASPEED_GPIO(S, 3) GPIO_ACTIVE_HIGH>; + }; + }; + voltage_mon_reg: voltage-mon-regulator { compatible = "regulator-fixed"; regulator-name = "ltc2497_reg";