From patchwork Thu Mar 21 02:12:21 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: 13598318 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 E55F3C54E67 for ; Thu, 21 Mar 2024 02:14:29 +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=33m+djKa+pfNkjjIk+pbTLbLwShBhs6bknRNF2DyAT0=; b=cF6CmZhRZGX1DL 8aCe+KKurv3m9eY2wsH6Yn6cRGfUKaPQdsTYTz3+VRrDFUOAfARlGa7o5bqVf0G8T0Ntl2pt5Be9g zLSAKVMypsYn3OfYeI3GupqrrnEKGRvyOvnzcfSkuQuobyos5dFVHvcRmZsGHWE+tLIlLUTadZyUd JS3bsdOcyn32NWU7IsiHK2KNLNoD3upbOBDqtmcewIfuWNhmRpbIAf2fpKvEIKHoIE9/l1I/oOcX9 2sNU1I7WKoP8c03gaFyqNZnjndY5lNDjwGiY93AFoQjli5EcfRBdYcYdEu7jIeEjc+ydb2WnMZlfx Wd8fDkFlIxtWvEItz6zw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rn7wg-00000001X7K-0l2f; Thu, 21 Mar 2024 02:14:18 +0000 Received: from mail-psaapc01on20612.outbound.protection.outlook.com ([2a01:111:f400:feae::612] helo=APC01-PSA-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1rn7ve-00000001WSU-1tSy for linux-arm-kernel@lists.infradead.org; Thu, 21 Mar 2024 02:13:16 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=hpzoLUdxZIIKX9j7rWf9dOXEyq0IhRntBjgAQXOSZgUUKz8gjuR9zcdelEnl8AxKGDIqQ9wrLlfOp+MmkHYVf076So3ATjbB69dWsBu8+f6RRGxBQGyZJ8vr9E0PlC7TRpfJ6+UtKcBsCXOuJJFEovfWmdO8WcDza9c7hJrw2bJNSN0Oij+3N4sAUH8SyE0i99G8lTR9bZUeZwMKrf2YutCEBOyywFB3vmSATSj3pIMQmby2fdMJK6GUfx/qywOYtlkldCDrXYGo4MY2JZBiNYJIOSejK7cReYV0R3fFOFM9WJmlowaEb9yqqZhp3r2SpF8QWE4SCzVAnG7zEU0X7w== 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=JTP0HPzoNXvVwXTbVz92pkwHvuQp0E8Ck9Pw5Rlz5iE=; b=TOEJpHy/spKjybNyg/FnbR6gA8Bg2z8lsSmHiE5W6/GY5caJmQQhYubuQcIcicF4wrulbH32/LwXbWfP6maPn/6JJr2vluRted+DtcfNXPFL5lCWVyLPtdvC+Wjg7TBj1Bg56NCT76fNnjCiFWzHvcUcBISg5se5fRf1KpVQW2IgBoy1s7WH3IZeHCHJzLdZuT0fejSBkz9D7429mXjAJi8qhwhzh883FKWDJaVcfiKI8nBF8gJ6PI/KeLT/4lIlpI45EdRq+YkyhDt6XalR8KXj+X9yQ9qhJYDMT24YmhIjkEBzXBKvPdKBx4BnHEyROLzbB/OowVmJK6IjIGxM2A== 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=JTP0HPzoNXvVwXTbVz92pkwHvuQp0E8Ck9Pw5Rlz5iE=; b=VtzXk9bqTzpFtlNeVIMigJ/ghZdTVuK+ynngk2n6iN++T5lWQyrS9p7V8fKu/5bYCaseQQUprnQe//VF/9AkR/WXRJ0zMQ4wCypTb7wEshfX2QHSoWHoBD57RJs6sLir9Z7QGbPxIp8aMPkETBm8Vc6YFdlVrDaP9/v8tAHsLRWdqfO7OaVDzoUX4pLVwgEZlw3nfNgAJOEX5uiWchg/StRGLqFomj0Ec72yv9vrTyCmUAUjkOGk/8W/kT7rMW2DD7JZ5+aQ+s41PIO6kYJa7JbBIgB40blE0ClqA+rh167LTq2wGKuFk3Z1ycnxsQ/yHcRCGUuuU+pIOa0TKkAnGw== Received: from PU1PR01CA0005.apcprd01.prod.exchangelabs.com (2603:1096:803:15::17) by KL1PR04MB7681.apcprd04.prod.outlook.com (2603:1096:820:11a::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7386.31; Thu, 21 Mar 2024 02:13:07 +0000 Received: from HK3PEPF0000021F.apcprd03.prod.outlook.com (2603:1096:803:15:cafe::97) by PU1PR01CA0005.outlook.office365.com (2603:1096:803:15::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7386.28 via Frontend Transport; Thu, 21 Mar 2024 02:13:07 +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 HK3PEPF0000021F.mail.protection.outlook.com (10.167.8.41) with Microsoft SMTP Server id 15.20.7409.10 via Frontend Transport; Thu, 21 Mar 2024 02:13:06 +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 v7 09/22] ARM: dts: aspeed: yosemite4: Enable interrupt setting for pca9555 Date: Thu, 21 Mar 2024 10:12:21 +0800 Message-Id: <20240321021236.1823693-10-Delphine_CC_Chiu@wiwynn.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20240321021236.1823693-1-Delphine_CC_Chiu@wiwynn.com> References: <20240321021236.1823693-1-Delphine_CC_Chiu@wiwynn.com> MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: HK3PEPF0000021F:EE_|KL1PR04MB7681:EE_ X-MS-Office365-Filtering-Correlation-Id: ba435741-5551-4a04-6eab-08dc494c72ca X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: Ovum+D4V84vnUEkIJff6UkfoQJ/yWQa2OoGub5yITEG5kr1ucWL+ymvFHwi7knLJUerswzWQ3bI5q/naAXvbE2YZQ9L1eQRNCmp/GI/gHvGxSYs37LXP83q5HNEHu4LZVTwy11ivQa5efGKTbpE1A7lGwuPL4LF7mpLiOk6itKFNT+e1a0F4CFu73HU1Qkl0mbNJd4QNuruvq/vihfPCygYFMFTqgu5szchUsEfXqcTSndXJhiEK5wn1z4iiYmoUFaHn96U2R0XSkEQFxBlYbKvQW3zazMoQxXtjsm7LRYlAoVf5xUUaZdex0sKezjA4lMveC8hePY7/TBtCBWioiNibtqGMnfarymzrglGo6aOvDi6xfWjcSN3WBFGAFwjOG5AoSPOQ/5XV3s7zdGmdIoVD7aeODnkByJNUXeiCCLMni67ihQhVfWye1beOyHDoPIVElb9wPY3WRNpUfVfU+/Ps3e4I0aULOfxwMQS3npythKVM/BRvsl/VOcFe4EcCjoQge1D4n9LUVfXUgCMgGCXfrl5BhFE+zogAZciCc9itXAPPEnT4if6BHvPLr4nQHMQrRqPXvxlC7QgGYxNXghlKvPnmh7yNBUI2gCnkHLq4Ty0U2VkoEUj5tjLYmb4LVltdk/yoC5sIv3Q6mVjBdRw8eS2dDfRPvzHF8nHQ4PlBgcOL0pq07RQkTxYa5J7OQAxbQDBNSjFqlpU/7xhHGFWO9BzD8C2Jw3RrOuMqPZ2mPkW7JnBuC94X0yxMJ9Xo 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:(13230031)(376005)(1800799015)(36860700004)(82310400014)(7416005);DIR:OUT;SFP:1101; X-OriginatorOrg: wiwynn.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 21 Mar 2024 02:13:06.9791 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: ba435741-5551-4a04-6eab-08dc494c72ca 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: HK3PEPF0000021F.apcprd03.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: KL1PR04MB7681 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240320_191314_559709_5F343644 X-CRM114-Status: UNSURE ( 8.55 ) 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 Enable interrupt setting for pca9555 Signed-off-by: Delphine CC Chiu --- .../aspeed/aspeed-bmc-facebook-yosemite4.dts | 56 +++++++++++++++++-- 1 file changed, 52 insertions(+), 4 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 f6527f0dbeb4..d1ee5a6bd7d3 100644 --- a/arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-yosemite4.dts +++ b/arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-yosemite4.dts @@ -832,30 +832,78 @@ power-sensor@12 { gpio@20 { compatible = "nxp,pca9555"; - reg = <0x20>; + pinctrl-names = "default"; gpio-controller; #gpio-cells = <2>; + reg = <0x20>; + interrupt-parent = <&gpio0>; + interrupts = <98 IRQ_TYPE_LEVEL_LOW>; + gpio-line-names = + "P48V-OCP-GPIO1","P48V-OCP-GPIO2", + "P48V-OCP-GPIO3","FAN-BOARD-0-REVISION-0-R", + "FAN-BOARD-0-REVISION-1-R","FAN-BOARD-1-REVISION-0-R", + "FAN-BOARD-1-REVISION-1-R","RST-MUX-R-N", + "RST-LED-CONTROL-FAN-BOARD-0-N","RST-LED-CONTROL-FAN-BOARD-1-N", + "RST-IOEXP-FAN-BOARD-0-N","RST-IOEXP-FAN-BOARD-1-N", + "PWRGD-LOAD-SWITCH-FAN-BOARD-0-R","PWRGD-LOAD-SWITCH-FAN-BOARD-1-R", + "",""; }; gpio@21 { compatible = "nxp,pca9555"; - reg = <0x21>; + pinctrl-names = "default"; gpio-controller; #gpio-cells = <2>; + reg = <0x21>; + interrupt-parent = <&gpio0>; + interrupts = <98 IRQ_TYPE_LEVEL_LOW>; + gpio-line-names = + "HSC-OCP-SLOT-ODD-GPIO1","HSC-OCP-SLOT-ODD-GPIO2", + "HSC-OCP-SLOT-ODD-GPIO3","HSC-OCP-SLOT-EVEN-GPIO1", + "HSC-OCP-SLOT-EVEN-GPIO2","HSC-OCP-SLOT-EVEN-GPIO3", + "ADC-TYPE-0-R","ADC-TYPE-1-R", + "MEDUSA-BOARD-REV-0","MEDUSA-BOARD-REV-1", + "MEDUSA-BOARD-REV-2","MEDUSA-BOARD-TYPE", + "DELTA-MODULE-TYPE","P12V-HSC-TYPE", + "",""; }; gpio@22 { compatible = "nxp,pca9555"; - reg = <0x22>; + pinctrl-names = "default"; gpio-controller; #gpio-cells = <2>; + reg = <0x22>; + interrupt-parent = <&gpio0>; + interrupts = <98 IRQ_TYPE_LEVEL_LOW>; + gpio-line-names = + "CARD-TYPE-SLOT1","CARD-TYPE-SLOT2", + "CARD-TYPE-SLOT3","CARD-TYPE-SLOT4", + "CARD-TYPE-SLOT5","CARD-TYPE-SLOT6", + "CARD-TYPE-SLOT7","CARD-TYPE-SLOT8", + "OC-P48V-HSC-0-N","FLT-P48V-HSC-0-N", + "OC-P48V-HSC-1-N","FLT-P48V-HSC-1-N", + "EN-P48V-AUX-0","EN-P48V-AUX-1", + "PWRGD-P12V-AUX-0","PWRGD-P12V-AUX-1"; }; gpio@23 { compatible = "nxp,pca9555"; - reg = <0x23>; + pinctrl-names = "default"; gpio-controller; #gpio-cells = <2>; + reg = <0x23>; + interrupt-parent = <&gpio0>; + interrupts = <98 IRQ_TYPE_LEVEL_LOW>; + gpio-line-names = + "HSC1-ALERT1-R-N","HSC2-ALERT1-R-N", + "HSC3-ALERT1-R-N","HSC4-ALERT1-R-N", + "HSC5-ALERT1-R-N","HSC6-ALERT1-R-N", + "HSC7-ALERT1-R-N","HSC8-ALERT1-R-N", + "HSC1-ALERT2-R-N","HSC2-ALERT2-R-N", + "HSC3-ALERT2-R-N","HSC4-ALERT2-R-N", + "HSC5-ALERT2-R-N","HSC6-ALERT2-R-N", + "HSC7-ALERT2-R-N","HSC8-ALERT2-R-N"; }; temperature-sensor@48 {