Message ID | 20240801091217.1408809-6-chanh@os.amperecomputing.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org> 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 9E920C3DA4A for <linux-arm-kernel@archiver.kernel.org>; Thu, 1 Aug 2024 09:16:06 +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:MIME-Version:Content-Type: Content-Transfer-Encoding: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=IyCcqeey3/GYM3KxVJiuA8Bate08JQiFrzuKF4pa0uM=; b=QUopaL9VddMVdIcNPVT08CKKM6 A6ZEuV2thYOcYDZD3ag72/dDvA7zW2i5ayXJnP/oIRFA/QEwCyM+v/uHnwp39mdsDRQWy7S1HuLwK vQosAW4QvYL8jJWRzq3Q+IIIU+bC767/pxhB+KEhAjxCMV/3o5ptwUFw/RxbUb9jQ59AVx8J6ZXFC 55MsY9ebop8Ove81LzvuHcetUwfjPCa5MwZnU9dqvx07OsCxJHZ3ZPsN+dChW8GingoOC4HQp0WzZ dtkVT0yRygiMUl2Z3uLg19/vRspshQKZBvVIncBWKk5v2bsDOnLx8Twt/7O1pDLwJFcF28sXrE4SF J2pqxH1A==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sZRub-00000004VM5-0eIa; Thu, 01 Aug 2024 09:15:53 +0000 Received: from mail-centralusazlp170100005.outbound.protection.outlook.com ([2a01:111:f403:c111::5] helo=DM1PR04CU001.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sZRsM-00000004UVD-04KO for linux-arm-kernel@lists.infradead.org; Thu, 01 Aug 2024 09:13:35 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=YhwfLs7xCARdDt4N8utHcQnME3USA06kdz0u7zv7Yjat1SoH4ruv7Kxa04nY7DyUUYDM00e20XrqhvLBCJaOK6AO16WVeA6Cwe2rpeA82r4BlaNNta0V3m87Cxq5KPj9qiL8v1vJV208zZDbLLsaJ7jkUqKIk8wtDAu7USzgJYisV48/YkjpgUj/u3XjMjH5kABId4YSYfqrlq3tNJdQlh1Bxm7aa6QpOSTuBNplrkEjLFfEPohjwCrhalZkkUISBPpEP33UDvEWgbzZg5xzyyGaNclle4B6UNzRp6NMm6MKbI2kbd6aqdx8FPLzb+9m9Qa8b9QF47UqtDn5V1MvKg== 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=IyCcqeey3/GYM3KxVJiuA8Bate08JQiFrzuKF4pa0uM=; b=LTh6kbSApsjhK+UmBMD2/QZW88n1WtgTEnrmB2Xao+jFBoiVxW1PbquEk1TcziAvkWjSnI4mn9geLlcyp3tEgXwxUJPQKJDwpv2Ub9IS5dWguFZdhQOBwlvta9GJZK3Hbi6PjgW4muCBDa1Cg9xOSmhg9WBSVWwx76zd6TM8Tl3PUlzZd6icjGcxNGtBV/pMtfWOdslkTKwnj14K18SzT+iBjB1EOUMDCj1UxzpeMArPbeA7C/KAtg3NJdfIPV1LcfAMRJwuvQUeIhdcZ2O/tYU462PHAcwmaCnOdsoIVtfZtCNFK6G93s3BdpM1itiuDX6kiOU3j2A4zIH48ov5Ow== 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=IyCcqeey3/GYM3KxVJiuA8Bate08JQiFrzuKF4pa0uM=; b=SMdOCZxLgUH7VxV28g9AZNCDo86jaXT8KyQjvcd7/MUaJ/TegLQqPM26vwBnb53jgvUGv/4xRuD16RM43Ubus5UJt2LUkOURB/cqkvZt7mUmJQH9qdV/so/KWu4MAuGlZKucWfLu0TlEdkMEYFWJ5vl1/zBgs4KtVBF2xd76uZY= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=os.amperecomputing.com; Received: from BL3PR01MB7057.prod.exchangelabs.com (2603:10b6:208:35c::16) by SA1PR01MB6640.prod.exchangelabs.com (2603:10b6:806:1a4::5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7807.28; Thu, 1 Aug 2024 09:13:31 +0000 Received: from BL3PR01MB7057.prod.exchangelabs.com ([fe80::b69e:5684:ed7c:4d09]) by BL3PR01MB7057.prod.exchangelabs.com ([fe80::b69e:5684:ed7c:4d09%4]) with mapi id 15.20.7828.021; Thu, 1 Aug 2024 09:13:31 +0000 From: Chanh Nguyen <chanh@os.amperecomputing.com> To: Rob Herring <robh+dt@kernel.org>, Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>, Conor Dooley <conor+dt@kernel.org>, Joel Stanley <joel@jms.id.au>, Andrew Jeffery <andrew@aj.id.au>, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-aspeed@lists.ozlabs.org, linux-kernel@vger.kernel.org, OpenBMC Maillist <openbmc@lists.ozlabs.org>, Open Source Submission <patches@amperecomputing.com> Cc: Phong Vo <phong@os.amperecomputing.com>, Thang Nguyen <thang@os.amperecomputing.com>, Quan Nguyen <quan@os.amperecomputing.com>, Chanh Nguyen <chanh@os.amperecomputing.com> Subject: [PATCH 5/6] ARM: dts: aspeed: mtmitchell: Add LEDs Date: Thu, 1 Aug 2024 09:12:15 +0000 Message-ID: <20240801091217.1408809-6-chanh@os.amperecomputing.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240801091217.1408809-1-chanh@os.amperecomputing.com> References: <20240801091217.1408809-1-chanh@os.amperecomputing.com> Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: KL1PR01CA0105.apcprd01.prod.exchangelabs.com (2603:1096:820:3::21) To BL3PR01MB7057.prod.exchangelabs.com (2603:10b6:208:35c::16) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: BL3PR01MB7057:EE_|SA1PR01MB6640:EE_ X-MS-Office365-Filtering-Correlation-Id: 2f23cfe0-c978-4632-6e04-08dcb20a368b X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|376014|7416014|366016|52116014|1800799024|38350700014|921020; X-Microsoft-Antispam-Message-Info: 03PI/hzl/fPLXYNsF72Z14ASL3GNtOo6ynI4Vg+1SRATtZgsAL30Ejp8A8TSMIL5ROPtg8e72K5jAlzu+H5arWzEEGcw2Brg1CQEOymvY6KUEN4fWPFP+5Os/cGOuN+wADEsMOAgwQtgV0syZv+9wsrAZsEGgvah4PGKLf4DuSUUrtmFUM57yDF6jaYBh1rc9/1m5HnvrD9P8k9FYuMs6NpOF/9NM8PMwIWHei3Vt9TzwF+W9M7+Kk7PkFDT9unyJZiqypT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LlaSRD8SWjRoQd48lLRz2VZS7ZsKIs6WKhysWS2avPsuFqBmIV9JDHQUzjMRyCClJgheVLlTQ= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:BL3PR01MB7057.prod.exchangelabs.com;PTR:;CAT:NONE;SFS:(13230040)(376014)(7416014)(366016)(52116014)(1800799024)(38350700014)(921020);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: 0put3qPj70wD5wIUZIoi9e1RDXYDaJStpZz9F3Xe1y2Soi2ET+gmCdLkFMLwOvlQpG2J77JHvzYXGbhSbaA4eHbjN6/2F6HuKtEE3ZssVrRajIsrV9giUrYhdCGRZG4yGSNO+z5VYeMttQqP6Tvha9yjQvtlxA50TYtd42e2Kd8R/2o1aHTztC4nsrs93IBkyr1iT2zw07qkCj9E64ER/AwjOtQuA4xXYkdnCp7l0I18opBtHoMg8k/KDaiZ+2EeH3m2eGU6xhG/m6IxmW7HTUBzKtbiHiEUAb914nTwyH4RNi15vUqVdRRCgDeCJKSTud4/ZRWu6p2a3+668/IUZS44OuSEgmnHfMnCx9iV0WhKjK/h2PZDh3AoI5o2hhcR1GU9oM4ydxvRDfzhh5A4y0ujP8xJjYWm8ErfUxoQJry+vcUFKMG2M6nBR7Thz0zG+831MQy9u9Jfdo1uG8Fl5rG46J7a2KprRor7tiWwh2bNab2FsNPQ3OrCaD7r9Oe/WAiZw9CMOwAUa7D3aywXjYpB2v15w0A5CBM9mFsjQ458O6/o1RGWrMwoFWVk08SlVOvffZLQPACLI74e63Y7xf1Rak6FLOz6syHXcrequLxAvS/HQ6Iks/Xu85g4fZAvRmLVopNWT0n/hnu6UMrPqTz/NBrNr1bUwPg5k6IKpxTHPZRa+tyGzKhqLQS5tdgnsz6zONz6C8m+Nf0ijF/fSc7D5FCB2MeqOMRLm8LRzhwXgYW47z9r75mVZ90kaOuTXabcVcQLsw4olQ9aev+OFqkJG2zbSwRPrjzOg8miBfZAmZ2fOPz7Ev0/suQUALcKXRjlU8b61y8SQlJN78uS3G3yKxDXbyHV6F3j7LmZkeJl6KUiEWWiwN0y553pfrCGb5IGVxvZYdLmOteOJJEHp7PlDlU2Otc3r25JqCohkv1bEiMsC/1ePvz2vb4H+msx1lSLiJM3dYGhcpu66Wk0EAtSTG64/y0g4XRiaMUas+/gU2XDdL+vXDC6q8Xm7ZVkfs/w56FOkxlsYkg9CXSgo1IYTPYdkTqR4ARKttJi9HE88ww53K8qoq5FbZJq+aGrWKoGk6/4U6GiWTVh9M2srYbl6prdNVQZ1yuKZ0iQ//2NjLO9LmUfndIihC3q+DjrnYtfF348eULU76N60KFmft5pfGbN5p6vrVKqu+DN41JHkcvTVrvkoOhzsLpMnwpCKh2bdg6deQqVfQsGjsWGJzcMEK4hV45HR/O9dny5rnW4cRZOdH29gytxSmDkBeKZIYdY/hv8N5UqXIyjQoZ5C0yt8zn6se+vtoDCDmkRuPSmEcx8MPG8ZJHAnM8ugz4TivkeUVKajLuFeCI9YlJ6AICeAkAO8jXlGQq8JykpTIiiES+2jyuKwtL5FYXCdZLu8Okrgvr2i4qArw/TY0uv8NLrrZsMDVuhFIDrku09jYeiPjMVF8V16zSc/4wIIlls1m9btObJnB/wIMTillFwEyaVW7bePxAk3B0et00uS2nhaIzfx4lJN4Sm2CMjbHnh/i9HuS4IdW5lEM0dZ5au/2vvuAzNQ9zYGCOruowFT5K+kW85PTKLm+G0vVJ8PaC9e2yQyhR/UVGJIaRTtfezbjH5k3ee1lce/GH/m9ChgPQ= X-OriginatorOrg: os.amperecomputing.com X-MS-Exchange-CrossTenant-Network-Message-Id: 2f23cfe0-c978-4632-6e04-08dcb20a368b X-MS-Exchange-CrossTenant-AuthSource: BL3PR01MB7057.prod.exchangelabs.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 01 Aug 2024 09:13:31.5755 (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: Oy7u7OdYptnFboKL8/RzVfsbLmz1wMys2xHs48Vbsc5u5yQwE+4DSHwNQwFKTQaBxsxYWlPVFkZeLjk0+3bBw9Txp25p1kc31V9Av4VanjG0LtN0FcYdGsg1LkUOge4y X-MS-Exchange-Transport-CrossTenantHeadersStamped: SA1PR01MB6640 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240801_021334_102262_2EFBE607 X-CRM114-Status: GOOD ( 10.65 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: <linux-arm-kernel.lists.infradead.org> List-Unsubscribe: <http://lists.infradead.org/mailman/options/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=unsubscribe> List-Archive: <http://lists.infradead.org/pipermail/linux-arm-kernel/> List-Post: <mailto:linux-arm-kernel@lists.infradead.org> List-Help: <mailto:linux-arm-kernel-request@lists.infradead.org?subject=help> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=subscribe> Sender: "linux-arm-kernel" <linux-arm-kernel-bounces@lists.infradead.org> Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org |
Series |
Update the device tree for Ampere's BMC platform
|
expand
|
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 119e82637023..093b746c010f 100644 --- a/arch/arm/boot/dts/aspeed/aspeed-bmc-ampere-mtmitchell.dts +++ b/arch/arm/boot/dts/aspeed/aspeed-bmc-ampere-mtmitchell.dts @@ -113,6 +113,37 @@ vga_memory: region@bf000000 { }; }; + leds { + compatible = "gpio-leds"; + /* + * Use gpio-leds to configure GPIOW5 (bmc-ready) pin to be reseted when + * watchdog timeout. + */ + led-bmc-ready { + gpios = <&gpio0 ASPEED_GPIO(W, 5) (GPIO_ACTIVE_HIGH | GPIO_TRANSITORY)>; + }; + + led-sw-heartbeat { + gpios = <&gpio0 ASPEED_GPIO(N, 3) GPIO_ACTIVE_HIGH>; + }; + + led-identify { + gpios = <&gpio0 ASPEED_GPIO(S, 3) GPIO_ACTIVE_HIGH>; + }; + + led-fault { + gpios = <&gpio0 ASPEED_GPIO(P, 4) GPIO_ACTIVE_HIGH>; + }; + + led-fan-fault { + gpios = <&gpio_expander1 0 GPIO_ACTIVE_HIGH>; + }; + + led-psu-fault { + gpios = <&gpio_expander1 1 GPIO_ACTIVE_HIGH>; + }; + }; + voltage_mon_reg: voltage-mon-regulator { compatible = "regulator-fixed"; regulator-name = "ltc2497_reg";
Add LED nodes as the gpio-leds devices. They are led-bmc-ready, led-sw-heartbeat, led-identify, led-fault, led-fan-fault, led-psu-fault Signed-off-by: Chanh Nguyen <chanh@os.amperecomputing.com> --- .../aspeed/aspeed-bmc-ampere-mtmitchell.dts | 31 +++++++++++++++++++ 1 file changed, 31 insertions(+)