Received: by 2002:a05:7412:e794:b0:fa:551:50a7 with SMTP id o20csp248064rdd; Tue, 9 Jan 2024 03:00:59 -0800 (PST) X-Google-Smtp-Source: AGHT+IEsclIvy+DQXsF9fHAGYlK1nuE+6kHZUJV1bii6kNTmG+OVpkd3Lw0up/RkI+dsR60UzA5f X-Received: by 2002:a50:ab1b:0:b0:557:7385:9d82 with SMTP id s27-20020a50ab1b000000b0055773859d82mr2345702edc.11.1704798058989; Tue, 09 Jan 2024 03:00:58 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1704798058; cv=pass; d=google.com; s=arc-20160816; b=P9eMNDnv2miuwUdD/7rHRrqUP1ZhKkoK+UF8hFTTgny/NZP5skbj+lgfL2l/TuRQCX eUGY+jObg7OFUHXmsZHvht4Ehgw290GhhOQSSbc+wOxo1rbJtmx0z+k7Q/ayj3m2BtZq whpfR+xSOaWW7SpLNLS7DCaC5MxIkN76GhWwJ/gGuxaSmIGoMlRTk2sHMWurzJXHRO6I iHqzTUCte9OP8iodtK78gq0qnlprGJVNnLZYKgPG3km8lszOQIYb2cIfZPAKwZzia1hw pfYRpn+SBVJKHkOozpz2rsczPl2eXdeco4w/ZEYzrBV22TYExsoipybhopjwRQgBnzun J0XA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=jLNGMUNrdX1hlgNVJ+IEvc2cz3VhRE8IbJel5r3BG4U=; fh=Ym4qTpD4M3cm0TbrVGNdP2Ob6NKlyMYuL0vwrAGUgx4=; b=mA8tZmq6svPVhRQkIyUnKPsmbRfyQIZosYdwk7/qEorSLvCfbYuOhvLmwCImge13vH Bhj9MYF6YVhqEGdUBqpdrIRkZO1xOCk/jWzVkInx6nLv6cX/9ReI2YyK2twL5o4EANsf RycXpZMCZFe6zCHTQIacCeYNX0V20SKDmTGrIB9rd0qV5htxg8exSdt0FZDObcGhHPig pc+13svPc9CmUcl0c6CRyxl3pAA3zpJs9vlcSrCPT7PmLBmW6TRFYocAumk51gGamdro tvFwd7gEB5E1MuEBecv/3yeAcW5U+0HJ5w5cXRkxejfafIv5TBciOdGE8kLm3jpUsNZo w3Fw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@wiwynn.com header.s=selector2 header.b=MUIo8EyD; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel+bounces-20459-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-20459-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=wiwynn.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id t15-20020a50d70f000000b005573ce0bf0bsi669049edi.516.2024.01.09.03.00.58 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 09 Jan 2024 03:00:58 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-20459-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@wiwynn.com header.s=selector2 header.b=MUIo8EyD; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel+bounces-20459-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-20459-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 am.mirrors.kernel.org (Postfix) with ESMTPS id D211E1F25891 for ; Tue, 9 Jan 2024 07:23:42 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id EE926321AC; Tue, 9 Jan 2024 07:21:27 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=wiwynn.com header.i=@wiwynn.com header.b="MUIo8EyD" Received: from APC01-TYZ-obe.outbound.protection.outlook.com (mail-tyzapc01on2060.outbound.protection.outlook.com [40.107.117.60]) (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 6C4B532187; Tue, 9 Jan 2024 07:21:24 +0000 (UTC) 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=XImq2nXgriy91eUw4LyKqn/phfQASQ6pophF0Tme1eo83XBgNGGFintRy30j3//GJEln1Z5HLTlDKVmJPxQGWWOF4xyALKM0vEU5HlOvLrn0ocMwVgbS+A63KCweVAVkGkQtae/Z7wNHlhygJ+UcqzFeR8fQ9SjfFAoT23jl3p7z21pMqu5C6XXtqQneB8wBwxE9DwakM+H4wOt88VbfdhSlJ3SWcJ/BOUsk6NhKUW+txRY+B20RHzFQnW/8YjiKUwiMwgcDv4xPb6zFQ88/XZV3ggcipMgownu6XTRbP4kDrUIoIvjKk71mDGeoqw7oZNJeg1xjoacs0LSF2loN3A== 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=j8nqx6rPXMQAvIFPT3hqZ/MdD0QBltDtq6A3Tpk0riC02kRsuWkPbNKw91EKLtzYo7RQsrEtNvQp+9oX1LV3xfIQ9v7XEBvBmf93RBnGpi0yQxONwGGM2NUWO/iOPGWKHzNmYmJ3t4Oh5JT1WAFUxDt9QTOT4UAfwfhM5+bjRZcBVQGJCd3AcXPgNKI9e5ZHYgfq9Oxi11OKi2pfYuMUeKdTvD7oiKhDUYDUBC2Qh1yqn/esUmu50Wt7kOuD7LTA7nizVEOFGZJTKjaUsCcefv+XjiySFbyZHZVSLm6537C/Qk50mIowjGT+tzsHuP5CrHbXSMJLZ362R2KZUxUZeA== 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=MUIo8EyDyzRGFJMFFMiTIpLhVEjAgh9pp8zVRCjZvA9ao6z5AwVbTTRydAkpuYi9FMGUx9j9X52CNDemUEluzHciUGukVmtfSTqg6PolkZSMKJMFLjEM9GM19b6KUFkueNGNQDAIxCvMdAvNnyG3/lQm9wT9OmyTtH8bCkqE8rgXdYBsdwmD1nf4JOjrbNnrfTRQgH07EIUZF/REGUpBD3OPnQYb658gLXG60bFhN2NPmyExhDWnxlguFtUJrVRhFzllHwpHKdilZNXioma+iV4aFXi2uYVooXFFgnJI/NdJKphLdMRZG4wKGNIq8D+Bg0SKEKleLCN2IbVT0gDcaw== Received: from PUZP153CA0011.APCP153.PROD.OUTLOOK.COM (2603:1096:301:c2::7) by JH0PR04MB8210.apcprd04.prod.outlook.com (2603:1096:990:aa::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7159.23; Tue, 9 Jan 2024 07:21:20 +0000 Received: from HK3PEPF0000021E.apcprd03.prod.outlook.com (2603:1096:301:c2:cafe::fb) by PUZP153CA0011.outlook.office365.com (2603:1096:301:c2::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7202.7 via Frontend Transport; Tue, 9 Jan 2024 07:21:19 +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 HK3PEPF0000021E.mail.protection.outlook.com (10.167.8.40) with Microsoft SMTP Server id 15.20.7181.13 via Frontend Transport; Tue, 9 Jan 2024 07:21:19 +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 v4 09/19] ARM: dts: aspeed: yosemite4: Enable interrupt setting for pca9555 Date: Tue, 9 Jan 2024 15:20:41 +0800 Message-Id: <20240109072053.3980855-10-Delphine_CC_Chiu@wiwynn.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20240109072053.3980855-1-Delphine_CC_Chiu@wiwynn.com> References: <20240109072053.3980855-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: HK3PEPF0000021E:EE_|JH0PR04MB8210:EE_ Content-Type: text/plain X-MS-Office365-Filtering-Correlation-Id: aeeb4f4a-2c3c-4c20-625e-08dc10e3932a X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: cGWKtyI0YHsoqUSMzZlCIFIxI6afE7niTgvXw/5Bw8bdomOJmEaSmT02tTePVgKZloagbbLHzeCPFQVsiC1NozDO8mYwTChaUuZC1w/z8MhSfh1vODTnn5GNFsy+NR9tSbQz7q7JwBizHPjED0MCvObrsZsWp3To2qGdnCsRHCzIuhm7fnI+bgm2kcCf0xJeThdevuD3FoiqNgUSy/kQk1Y9l3uyT3po4ajWpkrxeFoRZEEFNPhV7tnXYuqVDfj5+JRqP32L+7yCSog3vLYeRwNTRBcuuCWrYZgh+9P0DTWp9GNPqwbRWWB6xAh0waih0/QEZ0GOgPfkNMTxbF/seftt6VhRK64NvyqhQJINkKDzNuG9Ctr1vH1WFyJAuyXGDTspFGT6LTYNDxErb+WIhK7AKtO0vs8W2rcuDAUqRoQbVg/vkimAzhpTW1IXdB6vYZN6Slz433RQR0GUqeRYDOrrsCCTfxUIV2QDofBVCuJDIwICto++Xx2TLrqs46psOPx1HcBdYzNIugSIbB2Oje3ArFisW3snvN+JzBQZHmhaZv37Vom+u0w+Hle7rx21nPeuqL1VhokwC6ZpcRajbNneqHepcyudKpT/R7kf3aZ03Hv7XMV/O6O4PaUw2b9e+G8pRu2jStWgFvQzODw2gQLvTepZk60D2ZfMFU8UYIZvBHYFLIaKdbzWm2ux7StWjX+l2Hb35jcYEwsqFcBjaA== 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)(39860400002)(396003)(136003)(346002)(376002)(230922051799003)(451199024)(1800799012)(186009)(82310400011)(64100799003)(36840700001)(46966006)(83380400001)(6506007)(6512007)(1076003)(336012)(26005)(956004)(2616005)(82740400003)(47076005)(36860700001)(4326008)(8676002)(8936002)(7416002)(5660300002)(2906002)(6486002)(6666004)(478600001)(110136005)(36736006)(316002)(41300700001)(70206006)(70586007)(9316004)(81166007)(356005)(36756003)(86362001)(40480700001);DIR:OUT;SFP:1101; X-OriginatorOrg: wiwynn.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 09 Jan 2024 07:21:19.0385 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: aeeb4f4a-2c3c-4c20-625e-08dc10e3932a 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: HK3PEPF0000021E.apcprd03.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: JH0PR04MB8210 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 { -- 2.25.1