From patchwork Tue Jul 23 09:22:50 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: 13739771 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 CB938C3DA49 for ; Tue, 23 Jul 2024 09:27:18 +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=0fY2HxN7SaYEq6KEdN2aSIpS1i CXKHVgz0YHcJa6TiLDxJIIB+q+tbAlBuAcTtHysSytS3ls6wNC4P1+F3THxFSCIUZSitgIz8v8Dny 9+cYARzb6K9rytdLzpTrlMcMbSbQdv4/ibtvaVxrQ89fXPsuANveYrq5UtNYOPMoudaA0J085TM04 kJ7Tpr0AY47OTcSuSwI3wUrdjUJUyNdAySU1akOSvRw5mT00j2s/Qzb3ZNbQ/KcwF5fyh/FiuPETu DGIre9o1xuGS6u5UYq2Vh5TnT2RrLQH/hYq9z/z/n/KlNwYIEFhNp9uHJeq+AqDsuraP51N77UYa8 kl5g5vVQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sWBnW-0000000BzO7-1cm5; Tue, 23 Jul 2024 09:27:06 +0000 Received: from mail-tyzapc01on20600.outbound.protection.outlook.com ([2a01:111:f403:2011::600] helo=APC01-TYZ-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sWBkU-0000000By5K-42vm for linux-arm-kernel@lists.infradead.org; Tue, 23 Jul 2024 09:24:01 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=sov+gBbn0HFP8eLfkiRbQV6YUNASV8+mIxVq4V4CJfZKv03myuMc57jVHN4PIdmX1BPmyQFrWeWzrG1cGawPrTL++hwWFNRLuEHvHFqVhQYQbUjKyIEA0mpKYVJERROTXHwWtJHoj4YghbvRAIjp157r6gNCAJ6v9l6psqQZQ9leIMRtGIh/EMO7F8/KAIlbE5Jres6p4n0Vcc+a8h5nwqtu5TPe741flv80RumcK0U+7qgluO6K10W1Z2z5AOAAx68jZ0K1pUv0XxqroIaNPtcaJ8/0oRWWHHVNP74xf5dqwMDfhtrFYvjcX6M8IizVNs39kxYM7HtFOv/0dln4Xw== 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=vfoeoTz84oziwYcu07WsupXHg6xBKuksQL69z0pEDIZtCLt7OhZC6E02VALbWY0KCMKFPDFykr5uVBKq4tK5J6cruvGQ1h6li5C3+bUpCT/sa3/IV5757fEhkd/elmb+Z2Os9u+LHHd95qfVWAVU3Lbon9HXIDpQZAHjL1KEuanH/lb27jbaHroBuV+X7nxrfeeGzAp7P62MaW59lVRKtzBulIb4ewxYC2x7kCnrvWYKOx8eskaFJPlUHjPu2GPrXs9ZShljwjUTYUND2yZUgbFCyrQ6HM/xW/8JbR36XMUlDa3SLLgs2TXOtVenMw0coq1bTYH8IkMvYgNifpam6A== 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=VNShvHyqIptf5eF20Jvsg1S5Hc2xAaT1kUNfqFyOxtWXkODGr3VU9mFgc8EGqmeWsOtH0EoPDn4SBE81RCKI8UuHCejMttVTCatPDhOPKzVojyLLIQmvZvNqk4oATeN/sGdNoos5xVTdTcYWuRJQ97W8S1OmwEu/FF+jZut8bmjwpzAViOQCp6nP8jFAIwDzmS9Osdx/nsYXSZe14MORcpppv6E77YesNcRQFO3ljSO6DijwT8hD98wm+EeemZQTyJ93kp/ZMUQdlaIefW693OJIHTyJxZKubPb7GDdtX3kml9T5KCmgRhBjCTV0Z3ohPUnXyf/Gq47Y5PWSgr1D1w== Received: from PS1PR01CA0003.apcprd01.prod.exchangelabs.com (2603:1096:300:75::15) by TY0PR04MB6207.apcprd04.prod.outlook.com (2603:1096:400:32b::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7807.9; Tue, 23 Jul 2024 09:23:50 +0000 Received: from HK3PEPF00000221.apcprd03.prod.outlook.com (2603:1096:300:75:cafe::e0) by PS1PR01CA0003.outlook.office365.com (2603:1096:300:75::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7784.20 via Frontend Transport; Tue, 23 Jul 2024 09:23:50 +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 HK3PEPF00000221.mail.protection.outlook.com (10.167.8.43) with Microsoft SMTP Server id 15.20.7784.11 via Frontend Transport; Tue, 23 Jul 2024 09:23:50 +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 v11 09/27] ARM: dts: aspeed: yosemite4: Enable interrupt setting for pca9555 Date: Tue, 23 Jul 2024 17:22:50 +0800 Message-Id: <20240723092310.3565410-10-Delphine_CC_Chiu@wiwynn.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20240723092310.3565410-1-Delphine_CC_Chiu@wiwynn.com> References: <20240723092310.3565410-1-Delphine_CC_Chiu@wiwynn.com> MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: HK3PEPF00000221:EE_|TY0PR04MB6207:EE_ X-MS-Office365-Filtering-Correlation-Id: dee3f7ed-28f3-46a8-e13e-08dcaaf929de X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|7416014|376014|82310400026|1800799024|36860700013; X-Microsoft-Antispam-Message-Info: HBcGU/aLBuC4YyMOCqnfU7ZxtRbOGyWiOSOGEdt5rxv0mbuMAb1sdd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eaGuCGJFjgwDzA0GLXFMM3AIIJi1HkQyCSGdQt/8u+BhRCGAsylklE1/7jDOXvdPHgh9G7gxXxylHcBCd2xPqrZ4g8Qbcy019uEjQbpTo9g2YgIER8mrPWIJ13dlxBLt9iyFOD1vyG7WlrPFfkqRHgPAPr54F84ZUy+J5j85HoQxmo56NgX6GOeQYZbZRkNwKG/STkJUqc9pTBu6qFyG1IMgiStXmmd3xVWwbinP1bgKbuXt5PG+Ux9Y3AKxScDmPK58bkmCQ4Fyt0nGKvBM44FioOihVn2VwLZC8vStWof7yS1Dlg3S7YugU9VuhVRH4jf9VwRZs5P6vT+qXNk26WAWfy4srz1+XZhPIqw3iuLzQ 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)(7416014)(376014)(82310400026)(1800799024)(36860700013);DIR:OUT;SFP:1101; X-OriginatorOrg: wiwynn.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 23 Jul 2024 09:23:50.3631 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: dee3f7ed-28f3-46a8-e13e-08dcaaf929de 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: HK3PEPF00000221.apcprd03.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: TY0PR04MB6207 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240723_022359_027456_8EF35389 X-CRM114-Status: UNSURE ( 7.76 ) 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 {