From patchwork Thu May 23 08:03:14 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: 13671389 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 31E08C25B75 for ; Thu, 23 May 2024 08:05:43 +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=8HdgnaN+RBDazt2oywKsUXWc2pylD9K2D6VnPWK+ZGw=; b=yk7oKmObdcEFdE Bb1gk+u8Fi2noQMQfPI1qvA0+Z3H0JaE4EGxY+otna0g5T+QZ/q1Y9IGGvvbRTeG+J7QoI1IhjkP3 ggUXUEsnsx+v00E4tMs797iZCT6kV7sq8rJvI6+tpsCaCOFpHAG17FtyVMLGpVwb6YuwrGdqGC2bv avKHAbq8cSeS4vTrq87CKWMe39hABLKL9lir+K5C3mdZoR8K+MM4zH7NQ3oJotfV6WbC5H6Ebrcs1 yu8unViS1wvlsBSz5PmHXX4Se+ACwdCiowdeKC1HZjxZIaijPi2coKYpb7YzXpt/MvLIzkJhS0aZo wygtyQ9Lo4dIdjssAF8w==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sA3S7-00000005Rg9-0eGj; Thu, 23 May 2024 08:05:31 +0000 Received: from mail-eastasiaazlp170100000.outbound.protection.outlook.com ([2a01:111:f403:c400::] helo=HK2PR02CU002.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sA3R9-00000005R4F-3D4w for linux-arm-kernel@lists.infradead.org; Thu, 23 May 2024 08:04:39 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=MCqnOHvXpTwWWI9OTkb1Oiw0G7s7tYtOSelf/nOEqo1X/yxopH3VwSNL0+aO4zCKQSxBVr326WViXwVQRi1hjeTlkcp7o/98nuLOCgWzSdTf3kiLzwpRwBNFiWtG2AIxc/VEUkzNOvXsYTbrJNLk+dHxvPXdZH4vCslv6nKyfV8+JULfsm8Dk+ID94yVT5bkJqmSAcKQKze3WWXpxUSnx/nVAUJ90QqUu8RMjXUD3/4XchzD5AZaMs9pyIez8Iujwgk2q8odtxCTSELh1HUoVcPg+Uih+ZDEHFpgGq24JFO5Rj6IHaCyPVqRdTikzvKnBq2DWsoWqVwG9IXl3utjaw== 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=qbK/2vsfBhS2GguN52/kCxQEVmWfjdwDuSA91VpJMzE=; b=C4IyP3mmdNc3mFrRdIK4HAtE09dRAegaMwNe7169xG8vPDfyrmEFQBkuto/DBqx3fcfO5423IUaHiufMaPwdcfGm0wHlQNRY7PX6+tIghLVJRsf86hrSbLQeX6s36z/oEblem9xp6Gk0dWhZj0ETdEQvDK0h4ilECVG3QalsZEPFNp9uDA/fXb+qtEZdFZMje2khxJvG6kxAsrwnyBivOMfHplocPOI/ULqVZTYRf3TlHWkZ3GoH1C7wRQK/J+tuoI9rzGmwXt6nyVnEAH+0LvWnhdHHp2e4+58K+MNUrJPWG9aufexGC0SMAxOrrTYqgpzAru11vVylT2Nud5B75w== 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=qbK/2vsfBhS2GguN52/kCxQEVmWfjdwDuSA91VpJMzE=; b=kBuDW5lXtqXdrxdeR8+TSqyThN/JImgsPrq4ItNdECim0bhEOz2n9ttWZwmWnqDRyms3Ne+aYgdpAwARiXTnFQWVlFoorcn/8wCc4t3QgiH5XfaC0/xN4wio9ay1ZD7CONm0mpgLHYY3+Aq+Dgd9UUqJ0i8ybAi0nQJZUmQXdsgO0e7jyKVu85MGlXAhAEpW+URD1X1VHLjrUvKk6evTEaFkcVHCtRXlLPLq9blQsaA///orymfBg+TgTfy5LA9hYA3yZoqe4/hTfpYSB1EvzfVhmersIjlwRHBAYO8Q8rI/7u1arOhzHaMuz6lWYa3Iac/a3z/t9zrQ4/ZUZAMebw== Received: from SG2PR04CA0157.apcprd04.prod.outlook.com (2603:1096:4::19) by SEYPR04MB7672.apcprd04.prod.outlook.com (2603:1096:101:1de::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7611.22; Thu, 23 May 2024 08:04:23 +0000 Received: from SG2PEPF000B66CB.apcprd03.prod.outlook.com (2603:1096:4:0:cafe::dc) by SG2PR04CA0157.outlook.office365.com (2603:1096:4::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7611.19 via Frontend Transport; Thu, 23 May 2024 08:04:22 +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 SG2PEPF000B66CB.mail.protection.outlook.com (10.167.240.24) with Microsoft SMTP Server id 15.20.7611.14 via Frontend Transport; Thu, 23 May 2024 08:04:21 +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 v8 09/23] ARM: dts: aspeed: yosemite4: Enable interrupt setting for pca9555 Date: Thu, 23 May 2024 16:03:14 +0800 Message-Id: <20240523080330.1860074-10-Delphine_CC_Chiu@wiwynn.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20240523080330.1860074-1-Delphine_CC_Chiu@wiwynn.com> References: <20240523080330.1860074-1-Delphine_CC_Chiu@wiwynn.com> MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SG2PEPF000B66CB:EE_|SEYPR04MB7672:EE_ X-MS-Office365-Filtering-Correlation-Id: 2f44dedd-c255-4c4d-1756-08dc7afef4b6 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230031|1800799015|36860700004|7416005|82310400017|376005; X-Microsoft-Antispam-Message-Info: zBn14G+6zPCyu7UpZvKa081SUoPSy9XEoKrLKeDnTUP+Gmq9gOd0RsyGJpO4AFY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xvAfPF5k++8AVK5tUsjfD0X9kJ3RkAbsWci3isL86tjKY8X5HZ8Hv6g04bT/PlTRtBPdnqbrA3PPDBuqfOgFtPBcqUx+bNQKXPoNst6FLIA10uOkj3xYbVQuVOkBdMnlGJFU0ZgZYnF7hpfXrOAahx45ckZf8Wx3367JxdOD/xtMOS5Q9SR78WCj+LgLa7rFS5AlrbkhZMnuXWbXOGu9m8IlMVK7lpJ43pbnwY2jHUIm2z0OBXSi/KmHPRkstoX7BNk16 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)(1800799015)(36860700004)(7416005)(82310400017)(376005);DIR:OUT;SFP:1101; X-OriginatorOrg: wiwynn.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 23 May 2024 08:04:21.9061 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 2f44dedd-c255-4c4d-1756-08dc7afef4b6 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: SG2PEPF000B66CB.apcprd03.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: SEYPR04MB7672 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240523_010432_273931_65B1E9F4 X-CRM114-Status: UNSURE ( 8.30 ) 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 ee11b3b8e81f..92733a8ecf0b 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 {