From patchwork Wed Sep 18 10:17:41 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: 13806782 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 1C73CCCD194 for ; Wed, 18 Sep 2024 10:19: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: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:In-Reply-To:References:List-Owner; bh=zkHem+T3s/jRjK5q8eEkBmLJxtPEkG/EBologUthf/w=; b=wluPjPeaziypYfU4Nb+gf4XSkF dr/kilYUhrRmZBeT2jo5RQDbZiAxkDhrfwBnrSusMTs3bNx8vgtxcFDFQgrs3214VfSjqQl59ir/P RA8fobj5x+jOk6+4Z67V9dAgV313QrI9bpWnz03jMZ4JDzCfG1NFFdXeRSFm2YRtqOsPWoUSNi3Az SspycsL8Uj/TnllH6dw/HPH0/EnFNjuCrDlfE1fvoClZZDTVLagSIp2jjzOYeKCmaUdxJdAJp+E2z kK2f9S6Qph78LkBrL0hY7To/rszIRPNj16jFS/cNAL2+1SrSgU7oc2Yr/1AZY6gMQEnpDIqnKZysy cox9B9tA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1sqrm4-000000080YS-0GiL; Wed, 18 Sep 2024 10:19:04 +0000 Received: from mail-tyzapc01on20629.outbound.protection.outlook.com ([2a01:111:f403:2011::629] helo=APC01-TYZ-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1sqrkx-000000080OC-0Yz0 for linux-arm-kernel@lists.infradead.org; Wed, 18 Sep 2024 10:17:56 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=AyCYw3qyBuJ1A3pXTit9cq2OnX33Q0wxn7YjbE4QOOv/PCGVOAxQfECsSeKBxNtg22e3KLOkX57g2wNRmcEZDaLwkItNj1hMQkjIPoaAp/Sg3Ttip3WhO8R3VlscYoJqgunED6Nft0k/9cEEVz+RQHzKCPz8KKBUNNDSf6FZTzX0TBXMX+Xs4BccSJRMNW8j2oj3LwiT2EBahgpbrKmh7jpTTy+RtEKbndAUUSCtZwm7WteJF+jgKsOI+dCWRgFjnWvY7R7/ND95RrP4tl2kRZ2BPvHfzimEOZqPDNgm7+ZISZV8vqaVOcpAXQQ5mhYc63CD2fTRx3MmvWMLYDAUWA== 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=zkHem+T3s/jRjK5q8eEkBmLJxtPEkG/EBologUthf/w=; b=MI5TGhNbxfgtSHdyI04fR1xmUH26RSjeKca32YAd78B5wsAbBZt+rTZWOe9EmE9KUNoaqkVcIYzw/C8yMwZ3s+2p0x+vgGgGTXAzcFslvvi4Z1Elc0HW+dClCjh0jYOpWkIjYUVbAVr9md7jftS6Rho0f55+0ny3JcFZH2z2C1GNdWLl4/9V0nXPtzew1C49o8+OmfKHxRbp/nLhQEFwrHyIu17XBvSXX3TleSbbWFTNS7ZRdNr2V9Xzko2z9F/LNaHqv1Lvay29wIoffuLZsbqAHG3+gCuKuoF7Ki/wQ+AJf7iwMzC6kAsJMnxUzw/e+TCCw5SH78ntXbKaqAcp0A== 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=zkHem+T3s/jRjK5q8eEkBmLJxtPEkG/EBologUthf/w=; b=abwE0vQLbmbIYNbuRBf7Vu8YlZJb3dREjEd6XeyP8vMH0ZCeE6mHKzmpDG7PPkSBLwa1cfBd/T0B0tTgPez87kCDOeMzOgyeqtyVb2ZK5VLaH8gHkeBT75FEzQrW5h36ydYzM7XPRoNL23mgrdyILdTCSiOiabYMbZQNxfi4JGMCLFZ8j8GRHknee7mkKsFl8LQ4IwhS5itZI1/13+GvDLp5vzvKXwAL5iyJOc8iGIh8CdSYZ8/BJ0DSjpOVRiW5EvG3enL2G/WDb+oscciyJ+NX49hPnaAd1WjThvb/nOb+LyFTJjl1hJdDBPsOX8iT3OnPWLE4eZcPzlbHq3tBcA== Received: from SI2PR01CA0015.apcprd01.prod.exchangelabs.com (2603:1096:4:191::15) by SEYPR04MB5954.apcprd04.prod.outlook.com (2603:1096:101:8f::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7962.23; Wed, 18 Sep 2024 10:17:46 +0000 Received: from SG2PEPF000B66D0.apcprd03.prod.outlook.com (2603:1096:4:191:cafe::28) by SI2PR01CA0015.outlook.office365.com (2603:1096:4:191::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7962.25 via Frontend Transport; Wed, 18 Sep 2024 10:17:45 +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 SG2PEPF000B66D0.mail.protection.outlook.com (10.167.240.26) with Microsoft SMTP Server id 15.20.7918.13 via Frontend Transport; Wed, 18 Sep 2024 10:17:43 +0000 From: Delphine CC Chiu To: patrick@stwcx.xyz, Rob Herring , Krzysztof Kozlowski , Conor Dooley , Joel Stanley , Andrew Jeffery Cc: Ricky CX Wu , 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 v2] ARM: dts: aspeed: yosemite4: Enable interrupt setting for pca9555 Date: Wed, 18 Sep 2024 18:17:41 +0800 Message-Id: <20240918101742.1346788-1-Delphine_CC_Chiu@wiwynn.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SG2PEPF000B66D0:EE_|SEYPR04MB5954:EE_ X-MS-Office365-Filtering-Correlation-Id: 6efe72dd-b084-4e7e-7d86-08dcd7cb230f X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|1800799024|82310400026|36860700013|7416014|376014; X-Microsoft-Antispam-Message-Info: MNd8zHPSEo/ChQ4b/2y+4jqRTmh4xeAnEZJvd7jx/Vgh2x776B9qV8LULNNYOzJBEXxdTsbl7JeLOiCmmyIs7RNmsDM5wAKNXTS5cDQr1gohgRWia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UIxPH5X8rVNHncfiz9WGVkD7aXWDfcXwq5cdf8CATX/S5FhFKz8st3M5ePGq3WlvijeTaWmdMbpMU6ZJvCIYrIWN1dHtKcK6piOKqkR3Aw+Djdpi8VYz3VEbhnQNfsE3S/JXgCdr6iXrOb7Zh4BM6NjJQolrTqASUX4pCYiTAvvF+8iUlgfj+P1KpGkxJaCSBpWK83xuHuxRzu4la+gfrZfxiZjc9FM2rA3IUL2wQQsyOS/kqV2bvt4z7E6QXW5j+pcQC/a5I98yQN79j4S8qnsutRzq 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)(36860700013)(7416014)(376014);DIR:OUT;SFP:1101; X-OriginatorOrg: wiwynn.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 18 Sep 2024 10:17:43.8662 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 6efe72dd-b084-4e7e-7d86-08dcd7cb230f 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: SG2PEPF000B66D0.apcprd03.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: SEYPR04MB5954 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240918_031755_221316_6F05B715 X-CRM114-Status: UNSURE ( 8.17 ) 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 From: Ricky CX Wu Enable interrupt setting and add GPIO line name for pca9555 for the I/O expanders on Medusa board. Signed-off-by: Ricky CX Wu Signed-off-by: Delphine CC Chiu --- .../aspeed/aspeed-bmc-facebook-yosemite4.dts | 47 +++++++++++++++++++ 1 file changed, 47 insertions(+) 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 98477792aa00..9292f42a39dc 100644 --- a/arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-yosemite4.dts +++ b/arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-yosemite4.dts @@ -298,6 +298,20 @@ gpio@20 { reg = <0x20>; gpio-controller; #gpio-cells = <2>; + 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 { @@ -305,6 +319,19 @@ gpio@21 { reg = <0x21>; gpio-controller; #gpio-cells = <2>; + 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 { @@ -312,6 +339,16 @@ gpio@22 { reg = <0x22>; gpio-controller; #gpio-cells = <2>; + 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 { @@ -319,6 +356,16 @@ gpio@23 { reg = <0x23>; gpio-controller; #gpio-cells = <2>; + 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 {