Received: by 2002:ab2:7855:0:b0:1f9:5764:f03e with SMTP id m21csp840619lqp; Thu, 23 May 2024 01:15:07 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXZt+beZvz/Kc8ybHYFbScoyS5J3VNX/8/wtA8ofshILOdpcYH3uNxURBK/+lo2eeYjiDmc1YQPJwRYGBO3xNm/pqsaKRCTM1Xm8nvcfQ== X-Google-Smtp-Source: AGHT+IEonmsnRGktgvOAktQ6gpT4m/ANqaWWTEEiKl6mPnaF5lkBQiz5c4avS1I9MYhxvmG+6/KN X-Received: by 2002:a05:6a21:7788:b0:1af:cd0c:d342 with SMTP id adf61e73a8af0-1b1f8b59d34mr4237688637.52.1716452106793; Thu, 23 May 2024 01:15:06 -0700 (PDT) Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id 41be03b00d2f7-65a1376391bsi1725952a12.171.2024.05.23.01.15.06 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 23 May 2024 01:15:06 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-187154-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@wiwynn.com header.s=selector2 header.b=kBuDW5lX; arc=fail (signature failed); spf=pass (google.com: domain of linux-kernel+bounces-187154-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-187154-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=wiwynn.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id 6EE18B22B08 for ; Thu, 23 May 2024 08:06:13 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id CE3321411DD; Thu, 23 May 2024 08:04:29 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=wiwynn.com header.i=@wiwynn.com header.b="kBuDW5lX" Received: from HK2PR02CU002.outbound.protection.outlook.com (mail-eastasiaazon11010000.outbound.protection.outlook.com [52.101.128.0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id D7AAF13CFB1; Thu, 23 May 2024 08:04:26 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=52.101.128.0 ARC-Seal:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716451468; cv=fail; b=e6+zSi7w7F7xy2DbUXjclkeINxlOKrvr5UnmePyM6bkbY8fRGCq3P/21J5BzsHmSioDfHw5y6Jxf0+LJOVySM12pJX8dCR66EGnu+jlnq3trpwp/A7/BLFXjYr21TMJK6Hh8zOiAklH7fh2qS+dC+IOeLZVUD+iojHqXuHalylc= ARC-Message-Signature:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716451468; c=relaxed/simple; bh=o/9Ke1ciVypCGX3qK4a2fokIUP/ECV7EhUWW6vjuDZw=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version:Content-Type; b=giy4IRWrhSAqqh4oxJLvSwg16yGhoZo0QtyASKsoz1FrS4d9EhHp4gkiham4cP7+/L66z2aB2rmJx3iPaQIweb1l8/rqstkfEScOQl8XVjjg1Q5+C/k4wqyeujlOo5Jukfv3lNTDUhPeWZqueDrsys31EnDKOgAp7gRC8uZTuXg= ARC-Authentication-Results:i=2; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=wiwynn.com; spf=pass smtp.mailfrom=wiwynn.com; dkim=pass (2048-bit key) header.d=wiwynn.com header.i=@wiwynn.com header.b=kBuDW5lX; arc=fail smtp.client-ip=52.101.128.0 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=wiwynn.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=wiwynn.com 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> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SG2PEPF000B66CB:EE_|SEYPR04MB7672:EE_ Content-Type: text/plain 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: =?us-ascii?Q?zBn14G+6zPCyu7U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8h?= =?us-ascii?Q?74l1xfmP5UY5ieB2U1j+AC2Ys1ScdAibXt/8OFdZ6F80uDyOPM/75lEeIZjh?= =?us-ascii?Q?dJtKEp0Og46Z3UTs0uWyEDe7oQzpwy3emWp11uwSho5MityLNgSaftnHHGyz?= =?us-ascii?Q?/qlrSqTaSM1ud7j++cRPbqulPTgwiwcBbwBTr4vGoBdL2grDZR8Q9RENgiQB?= =?us-ascii?Q?esuLKcCRlXNa3KED12qnGtdbY4bCxq5Pe72zqityUTMViUP1bRYzAqDjChdl?= =?us-ascii?Q?u4pwV5UxvAfPF5k++8AVK5tUsjfD0X9kJ3RkAbsWci3isL86tjKY8X5HZ8Hv?= =?us-ascii?Q?6g04bT/PlTRtBPdnqbrA3PPDBuqfOgFtPBcqUx+bNQKXPoNst6FLIA10uOkj?= =?us-ascii?Q?3xYbVQuVOkBdMnlGJFU0ZgZYnF7hpfXrOAahx45ckZf8Wx3367JxdOD/xtMO?= =?us-ascii?Q?S5Q9SR78WCj+LgLa7rFS5AlrbkhZMnuXWbXOGu9m8IlMVK7lpJ43pbnwY2jH?= =?us-ascii?Q?UIm2z0OBXSi/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 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 { -- 2.25.1