From patchwork Mon Aug 26 06:23:43 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: 13777121 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 3910FC5321E for ; Mon, 26 Aug 2024 06:32:01 +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=JazR4JFYH/44Q8aeFrnjOL2rYIPNbPmPhwoAEXWC6OQ=; b=PJ5eky2g02654jCmDoRaQiBiyG GMpXa8LZJh39mAG2sc2p9gZv7/FPe4FgVZhpZ2JqLpWPY/azf4h5chTaA8GvSHcFe8Ulc/JIiM98e 5QuSzuO0vOyDMEGEv47Ya7qnSfKfyiv0Xu2OIvZYxPhLZ0N+PQrg7X6ej315VxjDmOz3BDIjK5Cc/ ECdPRSZCcsg+oWECuZSc00XSyQk8aEYYIjZoGna/8qpio9ww8GPxfgAM8ikjeXg8H191MQCVr88hg BpayWfEuqhLlxYVNguKOMR99LsFEkQZn4d9lqbtHZiOeIBBP84V/l3y2yTpUwVPphf38/c6jWpJLy S110UE9g==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1siTGa-000000062UJ-2stU; Mon, 26 Aug 2024 06:31:52 +0000 Received: from mail-sgaapc01on20622.outbound.protection.outlook.com ([2a01:111:f400:feab::622] helo=APC01-SG2-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1siTA2-000000060H0-35mr for linux-arm-kernel@lists.infradead.org; Mon, 26 Aug 2024 06:25:08 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=daPiPalBo8rLKUgUC6NBnoX8ASX0i/mwOx8CflryUSkx8o8Bh0ZbTYfgHAu6P2xBWu0eLOY3tH7iAGhj9jXPgi2/ya7gwPASHG8alhtCFncFydYwxSSt6JhBy+aJsrt9YV7Yz3UTjoo/NfxAAqFLXlFMlTpCJeTOm9BqtG7OPqwbpOEyqeIdkQNRe5pDCWETcj6M4up6vh0jGcy3J5obHZATf7SwZhGuMfi2s4Mgw74Xk8mBWNmcvRiDy5dnEXOupCqg+BpNN6sP2GBWJJTSaQ0MSylCTxYBi8UN61d2gStpnPn2ZTy8GxiJqq73pM4IHYw2BAcpPgsjQm2Hp+QBFQ== 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=JazR4JFYH/44Q8aeFrnjOL2rYIPNbPmPhwoAEXWC6OQ=; b=knJUgA/ALqmSvvgcP51k5haIiQRid0TN7ma5TOjlDret+WeSqvFOlkQ/P0vaCcjRxJCeE6xH426brlvu80foJsFD3HlvA4/PLGBA0ZfKCqgzGUgKIxR/KKxsJVFDQO5QdlueUbW4ejIk73KESVQzRYkZ+FE1MFHHOcYBDrxhz63GKcfoaAA3BhZcSRX6t57kf4t7Wg8arTS2Sqx5emZ20fGd5zFKZgWU8A4d2lgneKc623vVsJATyL/iphWZA7K+3SnI6G/r56V4co99vBuyKzT+n63f1Pqr9Hy1inLO6tFR/BrMEMbYwbRAOmnt8hzufgZq+1mW8hhHx5Vm+DnJLw== 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=JazR4JFYH/44Q8aeFrnjOL2rYIPNbPmPhwoAEXWC6OQ=; b=TIviubcwDNaJjSvRPjeOYdvCM/7u9Hk8XzTWGyv7TBPT1Tetf9/AM537jDOwCKP0kxrRpzR+AIqg68IwfBhx6LxrS0zP50rFrqDfFIAJhnJkfa7QnZayAa3qFn56coiW+JJ8q9qmRHRhG/ENh/LQZqxoCPY+VQ/QRnJupoNRVH3qbSU0Ui5dgUT3PZ/iXo38XZ8uwvESHD6k+KkbynG1vSxIwUVhwxoBTppwD8g+UDBA9zrX1zZyMjyL4aTgKFpmgj/Iss+95uxDFN8MbTEyp8243Kk52QxpR2dM17Lry5gvOTTqGIh2VNcVZ9vgKifBNvuZtcDVU3lOS7lu+SFmGw== Received: from PUZP153CA0008.APCP153.PROD.OUTLOOK.COM (2603:1096:301:c2::23) by TYZPR04MB8018.apcprd04.prod.outlook.com (2603:1096:405:ab::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7897.24; Mon, 26 Aug 2024 06:24:57 +0000 Received: from HK2PEPF00006FB0.apcprd02.prod.outlook.com (2603:1096:301:c2:cafe::b0) by PUZP153CA0008.outlook.office365.com (2603:1096:301:c2::23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7918.14 via Frontend Transport; Mon, 26 Aug 2024 06:24:56 +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 HK2PEPF00006FB0.mail.protection.outlook.com (10.167.8.6) with Microsoft SMTP Server id 15.20.7918.13 via Frontend Transport; Mon, 26 Aug 2024 06:24:56 +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 v14 09/31] ARM: dts: aspeed: yosemite4: Enable interrupt setting for pca9555 Date: Mon, 26 Aug 2024 14:23:43 +0800 Message-Id: <20240826062408.2885174-10-Delphine_CC_Chiu@wiwynn.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20240826062408.2885174-1-Delphine_CC_Chiu@wiwynn.com> References: <20240826062408.2885174-1-Delphine_CC_Chiu@wiwynn.com> MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: HK2PEPF00006FB0:EE_|TYZPR04MB8018:EE_ X-MS-Office365-Filtering-Correlation-Id: e2bcbe45-2866-4d29-ac72-08dcc597ce0b X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|1800799024|82310400026|7416014|376014|36860700013; X-Microsoft-Antispam-Message-Info: TngEAp84m1WUqCj6bckUlCHIdjbvGs9tdaql/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UKot6cJHMMEe+TpxyhzA+lQJdWGqGLYc+o33sWwlhgCQSj+Q+z4u7AIQsOhbVX7rpS9kFbX5z/Th7z5EoTKO6J4/KCaj9Atipn4MHbVw0sLJMJEOcNNuxjdDXH5IN/crYTfePfJSvM26e8r1nXRk/xanRBUTcfs1HjfXXTpkYBzx+gxIEAiJr523z2EPTWqBI6ZllW46LPyCA+uGom+TVAqfHS6UaYaSXqxSxbJFtuEYhB0S1xtC7Ks8LDIWz5cyoRaveOhGoR9/MQlfo5mvi/WDIuaaWmDwEnjWE9oxaZVxDKhtYdxURacWpoaBmQi6F2Zk26bCMWglts 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)(1800799024)(82310400026)(7416014)(376014)(36860700013);DIR:OUT;SFP:1101; X-OriginatorOrg: wiwynn.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 26 Aug 2024 06:24:56.4872 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: e2bcbe45-2866-4d29-ac72-08dcc597ce0b 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: HK2PEPF00006FB0.apcprd02.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: TYZPR04MB8018 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240825_232506_807864_DB30184C X-CRM114-Status: UNSURE ( 7.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 b11951c2f71e..09bbbcb192f5 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 {