From patchwork Tue Mar 12 06:15: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: 13589550 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 2C78DC54E58 for ; Tue, 12 Mar 2024 06:17:09 +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=7fibSTfSTN5ZfuHlBb8HdzoAsoPVjddQ562gu7PNFPI=; b=Zs29Ru8Tt/tlnb mcaxpK3YqTzzXalatjLi1ilMXH7NPSIB67Ieu4XQCpS+IgRmWEiS7kQKHUCMlhAMbmdOQygIsP/XQ Zw5pJf0IwB84dFdKZxypBpTxmdhExnB8A+O3zzef8GpdJrv2x3qesaA3uY8TJFwuiTD9tgRx8TwzV 8YSFnwrrkps0M8lRUe//CvGDhPDdeDP3bXhaSqcIQWjQxxhULDMi84Whq/xPKLHLZ8MOUBRCsPv8G HJzCAhAEnDmKYdRC6LdQj0p4W9pA0yjyd5q4Fxyibc4p/YG6f5fm3kkBh3XuazkB83KaWfaPGwOpU n6o6Ho29WtqqEw+irDRA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rjvRW-00000004Wm0-2gpD; Tue, 12 Mar 2024 06:16:54 +0000 Received: from mail-sgaapc01on2061f.outbound.protection.outlook.com ([2a01:111:f400:feab::61f] helo=APC01-SG2-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1rjvRK-00000004Wbv-2Qfo for linux-arm-kernel@lists.infradead.org; Tue, 12 Mar 2024 06:16:44 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=YNm47q2D3kMyI9Kr+5bdH7bc5i5Guzb9VtzDho9NjpoRZJqZK/3WYUo5x/9fTYd7t1r7WaUmdHP96R6Xfv09119gsOhJcui8arQejojWe/HNiG+nC3VaP61/8yx9ks30NwA/KS0MKfOUC1/0kETuG38c8UH2QK0mkFHcgRAV+yS1VW2Akp6yZ3KJ6Yyn/slMbR+qLjikr6WqMozZIULbRLSB5whvdTheyeBEeTKmafXAOL7NuElve6zVfRk2QPRjf/ZBDsMxVYYvGt5o6JaEScjntGvdwfWYyXSRbitRalEk0N54nOe45eoYlwIveUb/7em8raPFh97W+Vu1Xf/jRg== 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=jLNGMUNrdX1hlgNVJ+IEvc2cz3VhRE8IbJel5r3BG4U=; b=ObAMw6Bnu+c690hDDgbZDSCfCT9rDsLMIYher4R4zO9tE4BUhvo/ezCGLDSmus7A9Jrnw2EGiz5o+hm+SLnmb6M6J+l6XtmgYzT5LTqzdzUwM4aN3WPgK9O5X9+zrC/Szt8E0yAbO+e+/54QBXieGJG0BaDVlKzqnETimJDXHac6QLJtXdNaHoecgtdp9Ph160rHOlbJjwXXprud2VCY9D0HxdIC8/OTBfMxdmZ5Wu0GwFx0Jd9iv+hhuyaCXnO6aI5Sdz+bQ1io5He2aXOnT0T0eX5/6d7gLCO+/XCTuvrHvw4O1qXCXzgNqnZxI2N12i4oj3iEg50wQ7Go+35p0A== 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=jLNGMUNrdX1hlgNVJ+IEvc2cz3VhRE8IbJel5r3BG4U=; b=sI5GsCBJJFTZfch85CFHSlchNSE0+SCY4FygGr38TkcgfJQSvbf+Lp0ihCpfS/gdZrl9NTJWAhs9pvbyleIDnZ+QapdqI4ru2wfaE7/x4vwBW4iuPXda+UF6Jng1LzE/UnM+N6zQvmhKN0M+Y09Uko9+Dufxv8mk5ZZttKpTNaT09faQovBQbC1l63AgYcnmSk08dju3CM5hmPEnuN6f2gQRWVCBy+C6V670/xJShqYXEeMoyLytmJhrXo8fEYfdvEJq6jgKUun5TkYefLmuqNW0NiBw/pIgPzkrvD3ANBtcI8q1qlByRhJuyDj3q9zEBMQg0Jp9Sj1sLET5GDdMHg== Received: from PS1PR01CA0011.apcprd01.prod.exchangelabs.com (2603:1096:300:75::23) by SG2PR04MB5916.apcprd04.prod.outlook.com (2603:1096:4:1db::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7362.36; Tue, 12 Mar 2024 06:16:34 +0000 Received: from HK3PEPF00000220.apcprd03.prod.outlook.com (2603:1096:300:75:cafe::36) by PS1PR01CA0011.outlook.office365.com (2603:1096:300:75::23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7362.36 via Frontend Transport; Tue, 12 Mar 2024 06:16:33 +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 HK3PEPF00000220.mail.protection.outlook.com (10.167.8.42) with Microsoft SMTP Server id 15.20.7386.12 via Frontend Transport; Tue, 12 Mar 2024 06:16:33 +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 v6 09/22] ARM: dts: aspeed: yosemite4: Enable interrupt setting for pca9555 Date: Tue, 12 Mar 2024 14:15:41 +0800 Message-Id: <20240312061556.496605-10-Delphine_CC_Chiu@wiwynn.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20240312061556.496605-1-Delphine_CC_Chiu@wiwynn.com> References: <20240312061556.496605-1-Delphine_CC_Chiu@wiwynn.com> MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: HK3PEPF00000220:EE_|SG2PR04MB5916:EE_ X-MS-Office365-Filtering-Correlation-Id: 21800f14-5142-4600-c198-08dc425bf70e X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 2sRZcovAX3wW0Rl6QuZVuGmJGGCcPw5pWS+d3fKeuiUHqSCsx/kjvC8He0z6QsMJcipmneDChsNIu3YFJFVcXiCKmqPwfTj6EcRgJxX+iqF4BTtJlbqaAHeSbfm3+R5zRVWUaVT0XDSE/7Age6TLSidempffA5UQLbtxyHf20A+QRMMGdwiLmQlPMP26seJ5FsZhCaTheCLbY2mb9i7pl+4oV+WVwq1pTcXSLITxoWgc/tOh7O+6CiNxkKrQYrHDR3WFO707ktX/Cs8PkhsBgAj8JgXxGwbP/7pHx0t/twhl6+Ns/TaPpAj1aBUzyQELGHYjf4tsdlwqfnZ7a+F8aDMT/BFc4wOyK5715IdpX5mY4QOyNXIQ3aIfYWMnCjJQngSe0LVdRgEK2Am/pV31QLbMhQ3lYPiYk9ABXVF5R4aW9nNBxvNxG+fGj61V9i49lCKiu9BJNYIckntDq2KBYgCCCcVzn6EFKwOgExXg/qq5LKluhHCjIUmQiKHZs1u+mUnh8lrBVpj9waFPret+mu6VUBWSoyVFcn8IupGXUm0ZHKiE8JfEdfes+TC027zV5T7qYMNOoOSn4Wnh6Jkoy1MbTPFJPgFElQ+2tvNhUafglo2dw58WY5qpsSu+tjqjAA1ZNGvJP0OQCui/hZff2KJOze2+iqJvCzZ6JiHHkD1PAyxNkg62KayypJUVxVtjcNAfUTZFxllABBNjrawMFk6EpoDq5vraAIhA+fcxBckpV3+zqJiTpcb1+6OBSAZT 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)(82310400014)(7416005)(1800799015)(376005)(36860700004);DIR:OUT;SFP:1101; X-OriginatorOrg: wiwynn.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 12 Mar 2024 06:16:33.1976 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 21800f14-5142-4600-c198-08dc425bf70e 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: HK3PEPF00000220.apcprd03.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: SG2PR04MB5916 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240311_231643_015571_7568F373 X-CRM114-Status: UNSURE ( 8.58 ) 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 --- Changelog: - v4 - Revise device node name - v1 - enable interrupt setting for pca9555 --- .../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 cbf385e72e57..4b23e467690f 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 {