From patchwork Wed Jan 31 08:41:20 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: 13539023 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 3CC0EC47258 for ; Wed, 31 Jan 2024 09:46:53 +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=hDr4h5I2loD3g3 Qr20tLx77akfJVnveAyT0REa30wenliY4V8TJ3oXShA9vkYX1vrNjQt6xrA03MbpxuW8pybCnxG5I XNAIGVqv1MN4m+t+CpopSemtPJbTM6AkmntCe4LACXY8dhuXC4eWRpYAkoUbGEbPt92r4H9XBfC/R FeZ72d6FN4t7tSz8QJ36v65mhFVYzpeL6zNI39u9vbScEGcd7kxWKD7Z6JI/F7LNJrAOtVIY3wbZE CkBnJNKiMNnD9MZhDfcYdBoWQQKYN1+6LLEMhUylZ/jaMu/IAEodtxcvT+GInSSxOIiOYbEkF9HhQ nVYITl/0L69xtvG3SHBg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rV7B2-00000002YSI-1HTK; Wed, 31 Jan 2024 09:46:40 +0000 Received: from desiato.infradead.org ([2001:8b0:10b:1:d65d:64ff:fe57:4e05]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1rV6At-00000002BdB-17Hx for linux-arm-kernel@bombadil.infradead.org; Wed, 31 Jan 2024 08:42:27 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=desiato.20200630; h=Content-Type:Content-Transfer-Encoding :MIME-Version:References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From: Sender:Reply-To:Content-ID:Content-Description; bh=jLNGMUNrdX1hlgNVJ+IEvc2cz3VhRE8IbJel5r3BG4U=; b=Y2FVj4s0AlkPdGj/d+4dhseM66 NnSHYaLO3KYjogI2Wc/dj0S0CDNQn8mGQA7OXZFWxYpmpKh9bkJjtIUsLYhjM05DAi0HI9rmUBa7S TG6WApRw3ziJlrtvKpAMdYiP3z3fKHO1P+Zr1HQRb5VBYGj5idcW34X3HPJqwpzc16c7hsPswQwLj Omz8hmP3FJFs1HLmgRc49x0VlMqcRr6FOinBOQRBOUMv6qvpsTv6ZRdIBkK3WGm8gTLq399cbTxaH 9cqm7n06NHvFjHcM/41oZHx7A1NHuXL+W1+vsRziX1k6Nh0kweNQPEGsUgSSUtyJThZNA4K5UInSg PbajcLAQ==; Received: from mail-sgaapc01on20609.outbound.protection.outlook.com ([2a01:111:f400:feab::609] helo=APC01-SG2-obe.outbound.protection.outlook.com) by desiato.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1rV6Aq-00000008prt-0y9h for linux-arm-kernel@lists.infradead.org; Wed, 31 Jan 2024 08:42:26 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=QPpVk0EuQlS9ZlfzrF/eWfOPaL577bLwUc8UDgkZJWHXyF19a6TcBhq6HTGLnpkRmj+aFbUIaEndGI11RcXhBw25JJ/aJFLdWqWAZJ2E6qumdPAufNOpPfBaRpxaUO9Vu1nqJaJkSgG9NHDyvKBpEp8NlLcwvAuSGwza7XhiJSEVPEStR+aQWrmcVN+kDf75syoOVdPKXL5aJpYsJwwbMYZcz1hPbWYpwE809gaQHsPpMggiJ/ZIhtgiivAFXwFmLP3fwcLuXH7wCLK2aJpU6eDlAP/UgkOoQnv7FWLeZP/EX+lYvO7a/WLdfLiQEVRsiZU1yago2xe65Q4+P63wrg== 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=Ip7CL6+bvPYscrn/qhzekWyJemDMJXMVPLqk3NnLjny6ZWoOxlsSYQEaX+s10idKAk/unjYIGMdL86iIYfbl/ptGjS2tkx+ORZjuWQKgllCUEIAjTjhlUBb4DUYwBmcgLoh2uCOIEY+M3hYR4b4WgCOhsSJxc6OD46MrqHpIkh2cBr48tugutPXueFuf0BhHE7V+KcCgA8uLVvfYULFmNPEG0AQ56/oY2jW6Sv6lXi3p+tlZIWJvdhvZ5FcLLRiFB2JoEIyr2scUlHkx1n00y08Y4iwoLDFqf53t5IBwVzGwWeOSWRIAGP6TU+cig/SvfZ6A9PiqLur09SS6HqRX3g== 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=NizJmQJ6NYw0NTvZ3N7hOl4jVtXnJwazIHEagiXF92rmnEphwaEw7LuF2awm84y+MCj+5uGWwn0C/rtZhIfVMV64cqhJihdObbiRqmWZ5Nu+m3AvkXG7cWeuVq3Sj0prFidVYlixhuRLYjSAz/IxT08QBMSLRuxCPN7WrLpfoitpOWYp8YroQkHHQFX18cU/QgZq4DPhWBFgGbqRk1z/EVLjWHtxVX+e/fLCg/g63MsBRhVowy69yTIcovuy0s/ojQwls8EpSVZSsiOkle52s/UZp/LVzR9RJxW3hdiXEQRtycPATWT54YzWKoKpuOiKwr6r3Q9oIf01Nuz89xqbhg== Received: from SG2P153CA0020.APCP153.PROD.OUTLOOK.COM (2603:1096:4:c7::7) by SEZPR04MB7736.apcprd04.prod.outlook.com (2603:1096:101:221::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7228.34; Wed, 31 Jan 2024 08:42:16 +0000 Received: from HK2PEPF00006FB2.apcprd02.prod.outlook.com (2603:1096:4:c7:cafe::93) by SG2P153CA0020.outlook.office365.com (2603:1096:4:c7::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7270.8 via Frontend Transport; Wed, 31 Jan 2024 08:42:15 +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 HK2PEPF00006FB2.mail.protection.outlook.com (10.167.8.8) with Microsoft SMTP Server id 15.20.7228.16 via Frontend Transport; Wed, 31 Jan 2024 08:42:13 +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 v5 09/21] ARM: dts: aspeed: yosemite4: Enable interrupt setting for pca9555 Date: Wed, 31 Jan 2024 16:41:20 +0800 Message-Id: <20240131084134.328307-10-Delphine_CC_Chiu@wiwynn.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20240131084134.328307-1-Delphine_CC_Chiu@wiwynn.com> References: <20240131084134.328307-1-Delphine_CC_Chiu@wiwynn.com> MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: HK2PEPF00006FB2:EE_|SEZPR04MB7736:EE_ X-MS-Office365-Filtering-Correlation-Id: 8a405778-0242-44f9-e528-08dc22388685 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: vHglbQbuimcd1fUtp1eK1JFOUnAIICabbmYV9H+sHsAj0qNVCYSfBWuF/2XrUxGxurPI6kK3YQCtD91iA4bMG09hOISNW1I/WOj8DUQHAKBd6uA13/Kl4PsB/KHDL9P4PQTXHlDkzBXFt2uDbEn1ySScnByK1h366oIa0FF9LtR8FU65vY2IJPgnJMF83vxULB43HA98IZvTMJV/7bEOt8ognUnsKUHFEVKR1zL5jsKQX/pNOLxTg/BHiO+fAOZAF+JbBYIqiuOXYlU9LFGqm7f4mHfSxmolmuvg06oj1pHI0B+EWm37ayZ6xAfSuvj19jaqhDgFnYg34YoWmhS48Pn9I2tKVAksOLQVsSoUs1kpyzA6+KP0YrUy54BSpYtB7ptcdsBKKaopO3bY7jyWVccH0FXkYjEdKVFYXC4ZDUZQAvTd7nqQ04l4r+Zrrr769PHdjVViY9R+/uD6hrEQ92vv2O6of6qmqpDHzGeNIQydRZnNabtC2HVuvpPkrFTg1oi7IxQdtU+lQx29nDjjh+2JFIQe/swccJqhNDQg8Opfu6qmNUMfCMAUadE3iQpooefv5WbapWwSeZ4pVPX7SSCY/Xg0S4MUF3pfqOHuoKp3LLTYjctBMCv3hFCALHksvqcYDFSc17FZ9WAv3V8FBZPCEmsQgnOmMt7VyGVuIE2xXlR0BUqmXjcB2Q4Cf9hnU45y+3nD1j8d0nLWrjTqZA== 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)(6069001)(4636009)(376002)(346002)(396003)(136003)(39860400002)(230922051799003)(451199024)(1800799012)(82310400011)(186009)(64100799003)(36840700001)(46966006)(26005)(336012)(316002)(956004)(1076003)(83380400001)(41300700001)(6506007)(6486002)(2616005)(478600001)(6666004)(9316004)(6512007)(70586007)(70206006)(110136005)(36736006)(36756003)(7416002)(82740400003)(4326008)(40480700001)(8676002)(36860700001)(356005)(81166007)(8936002)(86362001)(5660300002)(2906002)(47076005);DIR:OUT;SFP:1101; X-OriginatorOrg: wiwynn.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 31 Jan 2024 08:42:13.8952 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 8a405778-0242-44f9-e528-08dc22388685 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: HK2PEPF00006FB2.apcprd02.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: SEZPR04MB7736 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240131_084224_373976_7A78B3E5 X-CRM114-Status: UNSURE ( 9.79 ) 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 {