From patchwork Wed Nov 6 08:58:51 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Potin Lai X-Patchwork-Id: 2007337 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20230601 header.b=G2v2gOLf; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.ozlabs.org (client-ip=2404:9400:2:0:216:3eff:fee1:b9f1; helo=lists.ozlabs.org; envelope-from=linux-aspeed+bounces-86-incoming=patchwork.ozlabs.org@lists.ozlabs.org; receiver=patchwork.ozlabs.org) Received: from lists.ozlabs.org (lists.ozlabs.org [IPv6:2404:9400:2:0:216:3eff:fee1:b9f1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1)) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4Xjzhs5DzNz1xyD for ; Wed, 6 Nov 2024 20:01:33 +1100 (AEDT) Received: from boromir.ozlabs.org (localhost [127.0.0.1]) by lists.ozlabs.org (Postfix) with ESMTP id 4Xjzhr654tz2yxj; Wed, 6 Nov 2024 20:01:32 +1100 (AEDT) X-Original-To: linux-aspeed@lists.ozlabs.org Authentication-Results: lists.ozlabs.org; arc=none smtp.remote-ip="2607:f8b0:4864:20::62f" ARC-Seal: i=1; a=rsa-sha256; d=lists.ozlabs.org; s=201707; t=1730883692; cv=none; b=Hf2c0FXO5FE37NoDbkZoTTwNgKxQELS9A+zBYu7FxirlDrzwV5AjFJPKGdbSi0yJVf119ivUiyrpm5UH6V4UQ1UzGm+R70IWVo0WLgW+zsUr+WmIMHUAwzCL01i8lJ5vBBobvRbscsB2Pk4VVMu3Xno+xeFQ1PTjpE2UD+ZkPEwv37U3DcxqVz9dHc305sS3dHu2QPqWV3k6cbe/quUSjohQsayjNbaGMUMYeio73wc0zxE6/jOq83Eytn/1NwRsaMkXZsm9F3yCQMj0aUJnYqzRs08S6GmTgGu6HfSiUTQ+NAHREwnIFUZr01biz7CzP4SzNGmsFf7qxKsyauHZ4A== ARC-Message-Signature: i=1; a=rsa-sha256; d=lists.ozlabs.org; s=201707; t=1730883692; c=relaxed/relaxed; bh=gkHWyYIKfFDhAZ5vn6/ZhGd9wV02p4FQmn3m/eJ5Tsc=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=JYpDZFzCQIRDZTIA8gzIbusWV6KSyf7IHt4f7fPH6u8CKgIf/zYRzW8HRT8Ov0ErKJNediAVzL+DvjEyN9pHsCXblziwJmf1kcV+jWRtucnOx92S2l7h/DS0LKLoSVG6lB1L4IXGmFhmONTvaXQZtw9MPnLHUcFa3zDE1fjlfgHx/hG13CF6DV2BWqPfvHxpVVia+A1fzTvfPW0OoOp4Y1TaQZVSl7x246k7511Cq3wGSnkF2wPjWFC51E0NyjqtHyXoJnK3hLk67QyFCRXozuaujvebFekKNAyzssWGL9pvJJvCxDbbrg7Ot7A2N/1pDjtej4An/ssuHUTLUXWe8w== ARC-Authentication-Results: i=1; lists.ozlabs.org; dmarc=pass (p=none dis=none) header.from=gmail.com; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20230601 header.b=G2v2gOLf; dkim-atps=neutral; spf=pass (client-ip=2607:f8b0:4864:20::62f; helo=mail-pl1-x62f.google.com; envelope-from=potin.lai.pt@gmail.com; receiver=lists.ozlabs.org) smtp.mailfrom=gmail.com Authentication-Results: lists.ozlabs.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: lists.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20230601 header.b=G2v2gOLf; dkim-atps=neutral Authentication-Results: lists.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=gmail.com (client-ip=2607:f8b0:4864:20::62f; helo=mail-pl1-x62f.google.com; envelope-from=potin.lai.pt@gmail.com; receiver=lists.ozlabs.org) Received: from mail-pl1-x62f.google.com (mail-pl1-x62f.google.com [IPv6:2607:f8b0:4864:20::62f]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 4Xjzhq6bmRz2yRD for ; Wed, 6 Nov 2024 20:01:31 +1100 (AEDT) Received: by mail-pl1-x62f.google.com with SMTP id d9443c01a7336-21145812538so29144305ad.0 for ; Wed, 06 Nov 2024 01:01:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1730883687; x=1731488487; darn=lists.ozlabs.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=gkHWyYIKfFDhAZ5vn6/ZhGd9wV02p4FQmn3m/eJ5Tsc=; b=G2v2gOLfZW7RYmrn4lOKMsCaXCJY6TjQzLMvi0d5zc9avtWS95gw4/dPXu9FPJI138 r8QI2zmRRfScAT7dMLWDxXlF2O1TMKpmxHJH8IOCmjrRJU3w4y/JWxFCZjfb+XxOaMQp p2XDlOX/aZMXboyRzE+SNuumQEIx+nKhcLP2R8z7cWNa6tbZ2FCrkk+x4zkQNFNMZlCC oVWun7LQoPa6KWOkrxlM9pJWuDfzAwNiWDLLb44nTkBzeqad1aNz+tSgy8iUU5hD3RcS srjwpqtvtKg7hHkjuvzfojXSpVLNFYEtVsQJDLt46hs2JI5PXWT61J3wGlu4WD7AfPs6 5yJw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1730883687; x=1731488487; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=gkHWyYIKfFDhAZ5vn6/ZhGd9wV02p4FQmn3m/eJ5Tsc=; b=wBFqsCRHbqn9KPUnzXk8jg7bT9zLVAXacOAUilBXUOvpWnPE0/kwoMeLn+uFDNQ+NY ycqJEjT2tHTlwSzoktdeGonR3UO/HPZRGgIGtvTOm08EqCa0NKdGHtHMDG1AR4Vy+cz0 AUWChqApEUOlwXqyF6e+fA3cwXWkVZeivXXhNJySC8ZySSAJWByLaTbH42CCX14E38Gi S3zuXcbxIYpGlIanD6CYSAl8aYXRhALQkTwWSjKFpOmqYUq7JtWKF2xNUItkT0M0TL+O fAeLHUEHvr6pCTxlTMJe4mJfNwDKCPVlB4FAVY7vqSam79AMhhabSLwI5kJfJVNpPt9O jtGQ== X-Forwarded-Encrypted: i=1; AJvYcCWaR50+EFEBKbGKsbP5osgzkOxhrG9csMhNVXPL5uOWyReLNf+KG09FZEM+miYqM2dhZmUX2Ab5sFXB4+g=@lists.ozlabs.org X-Gm-Message-State: AOJu0YwHWOdUKBA+YTB/ckXK7YiKAs1Hlsv0gyk6Sz14lDNLKgCJr2Gr wuUpzlEv3Y+ZV06ay6815S08CrYAHYl2WHI2mvIEMGcO8+3onp0XqiFyGA== X-Google-Smtp-Source: AGHT+IHkffsRtd6EA2zoMDxncdUpDGCX04PghiP3RUmDMHfbnoPeC+5oXmEJ9X6fEookxlW1OKhnOg== X-Received: by 2002:a17:902:db0f:b0:20c:9c09:8280 with SMTP id d9443c01a7336-210c6cc207amr494628845ad.54.1730883687187; Wed, 06 Nov 2024 01:01:27 -0800 (PST) Received: from localhost.localdomain (61-220-246-151.hinet-ip.hinet.net. [61.220.246.151]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-211057d380fsm91317665ad.240.2024.11.06.01.01.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Nov 2024 01:01:26 -0800 (PST) From: Potin Lai Date: Wed, 06 Nov 2024 16:58:51 +0800 Subject: [PATCH 1/2] ARM: dts: aspeed: catalina: update pdb board cpld ioexp linename X-Mailing-List: linux-aspeed@lists.ozlabs.org List-Id: List-Help: List-Owner: List-Post: List-Archive: , List-Subscribe: , , List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20241106-catalina-cpld-ioexp-update-v1-1-3437bcfcb608@gmail.com> References: <20241106-catalina-cpld-ioexp-update-v1-0-3437bcfcb608@gmail.com> In-Reply-To: <20241106-catalina-cpld-ioexp-update-v1-0-3437bcfcb608@gmail.com> To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Joel Stanley , Andrew Jeffery , Patrick Williams Cc: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-aspeed@lists.ozlabs.org, linux-kernel@vger.kernel.org, Potin Lai , Cosmo Chou , Potin Lai X-Mailer: b4 0.12.3 X-Developer-Signature: v=1; a=ed25519-sha256; t=1730883681; l=5069; i=potin.lai.pt@gmail.com; s=20240724; h=from:subject:message-id; bh=nyuZFMsNp/CjM9UzYTg0cqEV/NdG/xPxUypZLXNSJj8=; b=Ze0ie0kcmnjxo/e5uJQYgqpRrMIjUT1WXgfcU6c8AqMXDe68EhULrw20/M9OKtdFRqbSHmuKZ nsLJsIq2guHAK5hSFXmN0DT4nM77oThw4ZITq853Oe8pam8MrMEQ4I0 X-Developer-Key: i=potin.lai.pt@gmail.com; a=ed25519; pk=6Z4H4V4fJwLteH/WzIXSsx6TkuY5FOcBBP+4OflJ5gM= X-Spam-Status: No, score=0.6 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,UPPERCASE_50_75,WEIRD_QUOTING autolearn=disabled version=4.0.0 X-Spam-Checker-Version: SpamAssassin 4.0.0 (2022-12-13) on lists.ozlabs.org Update the GPIO linename of each PDB CPLD IO expander based on latest CPLD firmware. Signed-off-by: Potin Lai --- .../dts/aspeed/aspeed-bmc-facebook-catalina.dts | 99 +++++++--------------- 1 file changed, 29 insertions(+), 70 deletions(-) diff --git a/arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-catalina.dts b/arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-catalina.dts index 82835e96317d..10a9fca1b803 100644 --- a/arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-catalina.dts +++ b/arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-catalina.dts @@ -802,26 +802,6 @@ io_expander12: gpio@13 { gpio-controller; #gpio-cells = <2>; }; - - // PDB CPLD IOEXP 0x14 - io_expander13: gpio@14 { - compatible = "nxp,pca9555"; - interrupt-parent = <&gpio0>; - interrupts = ; - reg = <0x14>; - gpio-controller; - #gpio-cells = <2>; - }; - - // PDB CPLD IOEXP 0x15 - io_expander14: gpio@15 { - compatible = "nxp,pca9555"; - interrupt-parent = <&gpio0>; - interrupts = ; - reg = <0x15>; - gpio-controller; - #gpio-cells = <2>; - }; }; &i2c15 { @@ -1040,71 +1020,50 @@ &io_expander8 { &io_expander9 { gpio-line-names = - "LEAK3_DETECT_R","LEAK1_DETECT_R", - "LEAK2_DETECT_R","LEAK0_DETECT_R", - "CHASSIS3_LEAK_Q_N_PLD","CHASSIS1_LEAK_Q_N_PLD", - "CHASSIS2_LEAK_Q_N_PLD","CHASSIS0_LEAK_Q_N_PLD", - "P12V_AUX_FAN_ALERT_PLD_N","P12V_AUX_FAN_OC_PLD_N", - "P12V_AUX_FAN_FAULT_PLD_N","LEAK_DETECT_RMC_N_R", - "RSVD_RMC_GPIO3_R","SMB_RJ45_FIO_TMP_ALERT", - "",""; + "wSequence_Latch_State_N","wP12V_N1N2_RUNTIME_FLT_N", + "wP12V_FAN_RUNTIME_FLT_N","wP12V_AUX_RUNTIME_FLT_N", + "wHost_PERST_SEQPWR_FLT_N","wP12V_N1N2_SEQPWR_FLT_N", + "wP12V_FAN_SEQPWR_FLT_N","wP12V_AUX_SEQPWR_FLT_N", + "wP12V_RUNTIME_FLT_NIC1_N","wAUX_RUNTIME_FLT_NIC1_N", + "wP12V_SEQPWR_FLT_NIC1_N","wAUX_SEQPWR_FLT_NIC1_N", + "wP12V_RUNTIME_FLT_NIC0_N","wAUX_RUNTIME_FLT_NIC0_N", + "wP12V_SEQPWR_FLT_NIC0_N","wAUX_SEQPWR_FLT_NIC0_N"; }; &io_expander10 { gpio-line-names = "FM_P12V_NIC1_FLTB_R_N","FM_P3V3_NIC1_FAULT_R_N", - "OCP_V3_2_PWRBRK_FROM_HOST_ISO_PLD_N", - "P12V_AUX_NIC1_SENSE_ALERT_R_N", "FM_P12V_NIC0_FLTB_R_N","FM_P3V3_NIC0_FAULT_R_N", - "OCP_SFF_PWRBRK_FROM_HOST_ISO_PLD_N", - "P12V_AUX_NIC0_SENSE_ALERT_R_N", + "P48V_HS2_FAULT_N_PLD","P48V_HS1_FAULT_N_PLD", + "P12V_AUX_FAN_OC_PLD_N","P12V_AUX_FAN_FAULT_PLD_N", + "","", + "","", + "","FM_SYS_THROTTLE_N", + "OCP_V3_2_PWRBRK_FROM_HOST_ISO_PLD_N", + "OCP_SFF_PWRBRK_FROM_HOST_ISO_PLD_N"; +}; + +&io_expander11 { + gpio-line-names = "P12V_AUX_PSU_SMB_ALERT_R_L","P12V_SCM_SENSE_ALERT_R_N", + "P12V_AUX_NIC1_SENSE_ALERT_R_N","P12V_AUX_NIC0_SENSE_ALERT_R_N", "NODEB_PSU_SMB_ALERT_R_L","NODEA_PSU_SMB_ALERT_R_L", - "P52V_SENSE_ALERT_PLD_N","P48V_HS2_FAULT_N_PLD", - "P48V_HS1_FAULT_N_PLD",""; + "P12V_AUX_FAN_ALERT_PLD_N","P52V_SENSE_ALERT_PLD_N", + "PRSNT_RJ45_FIO_N_R","FM_MAIN_PWREN_RMC_EN_ISO_R", + "CHASSIS3_LEAK_Q_N_PLD","CHASSIS2_LEAK_Q_N_PLD", + "CHASSIS1_LEAK_Q_N_PLD","CHASSIS0_LEAK_Q_N_PLD", + "","SMB_RJ45_FIO_TMP_ALERT"; }; -&io_expander11 { +&io_expander12 { gpio-line-names = "FAN_7_PRESENT_N","FAN_6_PRESENT_N", "FAN_5_PRESENT_N","FAN_4_PRESENT_N", "FAN_3_PRESENT_N","FAN_2_PRESENT_N", "FAN_1_PRESENT_N","FAN_0_PRESENT_N", - "PRSNT_CHASSIS3_LEAK_CABLE_R_N","PRSNT_CHASSIS1_LEAK_CABLE_R_N", - "PRSNT_CHASSIS2_LEAK_CABLE_R_N","PRSNT_CHASSIS0_LEAK_CABLE_R_N", - "PRSNT_RJ45_FIO_N_R","PRSNT_HDDBD_POWER_CABLE_N", - "PRSNT_OSFP_POWER_CABLE_N",""; -}; - -&io_expander12 { - gpio-line-names = - "RST_OCP_V3_1_R_N","NIC0_PERST_N", - "OCP_SFF_PERST_FROM_HOST_ISO_PLD_N","OCP_SFF_MAIN_PWR_EN", - "FM_OCP_SFF_PWR_GOOD_PLD","OCP_SFF_AUX_PWR_PLD_EN_R", - "HP_LVC3_OCP_V3_1_PWRGD_PLD","HP_OCP_V3_1_HSC_PWRGD_PLD_R", - "RST_OCP_V3_2_R_N","NIC1_PERST_N", - "OCP_V3_2_PERST_FROM_HOST_ISO_PLD_N","OCP_V3_2_MAIN_PWR_EN", - "FM_OCP_V3_2_PWR_GOOD_PLD","OCP_V3_2_AUX_PWR_PLD_EN_R", - "HP_LVC3_OCP_V3_2_PWRGD_PLD","HP_OCP_V3_2_HSC_PWRGD_PLD_R"; -}; - -&io_expander13 { - gpio-line-names = - "NODEA_NODEB_PWOK_PLD_ISO_R","PWR_EN_NICS", - "PWRGD_P12V_AUX_FAN_PLD","P12V_AUX_FAN_EN_PLD", - "PWRGD_P3V3_AUX_PLD","PWRGD_P12V_AUX_PLD_ISO_R", - "FM_MAIN_PWREN_FROM_RMC_R","FM_MAIN_PWREN_RMC_EN_ISO_R", - "PWRGD_RMC_R","PWRGD_P12V_AUX_FAN_PLD", - "P12V_AUX_FAN_EN_PLD","FM_SYS_THROTTLE_N", "HP_LVC3_OCP_V3_2_PRSNT2_PLD_N","HP_LVC3_OCP_V3_1_PRSNT2_PLD_N", - "",""; + "PRSNT_HDDBD_POWER_CABLE_N","PRSNT_OSFP0_POWER_CABLE_N", + "PRSNT_CHASSIS3_LEAK_CABLE_R_N","PRSNT_CHASSIS2_LEAK_CABLE_R_N", + "PRSNT_CHASSIS1_LEAK_CABLE_R_N","PRSNT_CHASSIS0_LEAK_CABLE_R_N"; }; -&io_expander14 { - gpio-line-names = - "","","","","","","","", - "FM_BOARD_BMC_SKU_ID3","FM_BOARD_BMC_SKU_ID2", - "FM_BOARD_BMC_SKU_ID1","FM_BOARD_BMC_SKU_ID0", - "FAB_BMC_REV_ID2","FAB_BMC_REV_ID1", - "FAB_BMC_REV_ID0",""; -}; From patchwork Wed Nov 6 08:58:52 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Potin Lai X-Patchwork-Id: 2007338 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20230601 header.b=IFewanih; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.ozlabs.org (client-ip=2404:9400:2:0:216:3eff:fee1:b9f1; helo=lists.ozlabs.org; envelope-from=linux-aspeed+bounces-87-incoming=patchwork.ozlabs.org@lists.ozlabs.org; receiver=patchwork.ozlabs.org) Received: from lists.ozlabs.org (lists.ozlabs.org [IPv6:2404:9400:2:0:216:3eff:fee1:b9f1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1)) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4Xjzht2HtKz1xyW for ; Wed, 6 Nov 2024 20:01:34 +1100 (AEDT) Received: from boromir.ozlabs.org (localhost [127.0.0.1]) by lists.ozlabs.org (Postfix) with ESMTP id 4Xjzhs73kqz2yyR; Wed, 6 Nov 2024 20:01:33 +1100 (AEDT) X-Original-To: linux-aspeed@lists.ozlabs.org Authentication-Results: lists.ozlabs.org; arc=none smtp.remote-ip="2607:f8b0:4864:20::633" ARC-Seal: i=1; a=rsa-sha256; d=lists.ozlabs.org; s=201707; t=1730883693; cv=none; b=lz9JMNPh6e2jklXnQxh8S1j3yIFUncQ05jbYEtC9MpCF7hjV768GkHje6ty0xokGcUZfWbg4/VM9NmQJC1i/EsO1nkCd8lmEfILJK3cxrb8tydIHCheZJvH3zMcLC1JPEaIz0U+2PT/UzfMQNMM5NDKSjepSTsapY7xE9e9Zrs/AxkNfSXuig7jtkPYn0BxRXtOXaREeEGeVC8ZRrbTEO2hr/i/Jes3/I78ntD7KYo3aBn2T0BxMGLf6+TPKlYyRyhPE5QhoESd/vSMHWOI3F2+SCqRzciAnC3z6WB9+xuja8AAXHQYuOA1QO0jhvroueonY0bLbHVl5FFiC/56pow== ARC-Message-Signature: i=1; a=rsa-sha256; d=lists.ozlabs.org; s=201707; t=1730883693; c=relaxed/relaxed; bh=sGC6TPqRGXu1mF5aeFEhak+3rB765Th2HjWB1mjw0KQ=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=HOhhM9NGzIQgPVuHRjXXWILl54QAoQLEUNaiK6RzBW0rJ3eKHajGpkwHFpICRePX7qZO8ApQUq2B49Akeet2hJJ7WUWc9TOUVamKy3Z4ROR9HOOOzbWKpe04dOaPdHNjJQ4WRh9Hxf1T6lypN4yn4nIa7vS6ERt48RpBWkMA7nvs5kkXmy6O8Z/lgHT8J3tFfXuAw+/JhvDX2YKZxCgBNCwj5M1r8ekNnvrR97fAv0ADfm2nl5JW3x+vJ3TrCWdKTZmI0cj4ooVbcGGL1AULtSML8Z08qzjzJRojujVjMCKg4T0LPZyUNIkDGEr/3ZITfctVfHOlqDMk4v07EnQRXQ== ARC-Authentication-Results: i=1; lists.ozlabs.org; dmarc=pass (p=none dis=none) header.from=gmail.com; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20230601 header.b=IFewanih; dkim-atps=neutral; spf=pass (client-ip=2607:f8b0:4864:20::633; helo=mail-pl1-x633.google.com; envelope-from=potin.lai.pt@gmail.com; receiver=lists.ozlabs.org) smtp.mailfrom=gmail.com Authentication-Results: lists.ozlabs.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: lists.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20230601 header.b=IFewanih; dkim-atps=neutral Authentication-Results: lists.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=gmail.com (client-ip=2607:f8b0:4864:20::633; helo=mail-pl1-x633.google.com; envelope-from=potin.lai.pt@gmail.com; receiver=lists.ozlabs.org) Received: from mail-pl1-x633.google.com (mail-pl1-x633.google.com [IPv6:2607:f8b0:4864:20::633]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 4Xjzhs0jLNz2yRD for ; Wed, 6 Nov 2024 20:01:32 +1100 (AEDT) Received: by mail-pl1-x633.google.com with SMTP id d9443c01a7336-20bb39d97d1so61933145ad.2 for ; Wed, 06 Nov 2024 01:01:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1730883690; x=1731488490; darn=lists.ozlabs.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=sGC6TPqRGXu1mF5aeFEhak+3rB765Th2HjWB1mjw0KQ=; b=IFewanihrrT1TgGPd8cdInUlQKTcMcIWBuBrO+3B6kIhEtWLUWv4BlGxl8pi7ZvyWX xtJKXH8LlpnYHAXYy2LVY2dHNdGw3R58hoqv3JU0zym3Bm+x6bTDkUdNBq+lycyXNC9M RZRlDL0R50NuUY6s6GJQ3l9OtxM7KrcqkFLmSsDQ7erj9p5Bq2s2GPEIPKFTFL/g48UM +XhH635raBxPKDYXe7Pdxqpgle9kGTbN21OYZpmLREwj9sQ0t+Qg0z7VC/qIHnPCglrr Fo0CvwLJTopIhLcRl9umHvVg/GjZMj35nmE5TWGiTCEwT7bKKbJ5+dNTpugJXvmCym7q EUMg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1730883690; x=1731488490; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=sGC6TPqRGXu1mF5aeFEhak+3rB765Th2HjWB1mjw0KQ=; b=nzSywTTTGV62Z5GpfDjrv6lm/yevp1j/F37sNrgJys0Pw0WoSxrPjRBHf0dc9JXaeO MXJ61a76hG6uBVL2f4DDZ18WAYIw4gr62IHpDu820ckJEfvkMIvn/5Pap+VdxPEiQgn5 kwuz5ydO4befw/mdpjpJGyImlyb1g5lHhjWrzzXMt16iWYTYYZG8yKBV/ICp/sge6K/h GMi5BhIJB282HpF4wu1vcEiVgYCNbAR77/ApBkCLWvFcfFMiQicLp4atPKAjqq7icESm HAjjXscyO4Grc/HqSedEsc+3YpG2L8Y5JDu6euwK2VIzLx8wK3KqiLmoJ5mOtGx6lZcU WNVg== X-Forwarded-Encrypted: i=1; AJvYcCUQOAJ3HpKw1aNb2+CBKaOsHabZMelX8ZD3pEMmw6vNCYXi0ljIlwbRiQcpdD24Yy8/Fz8q4veQ7LPfTic=@lists.ozlabs.org X-Gm-Message-State: AOJu0Yw+vRbMMM56qr68pSld0EBtcj2cYW8GIZZtlpgKGsyfp2vsJOZa sI1VQwYMae70lAcLd7Jns9JeDzV2w5GoUfZluxQAYle64H1iGmFpzX7uWA== X-Google-Smtp-Source: AGHT+IEERyee8yuMkqt0ER6m9QzckotlvCf7D5ZemQxV4YVnYPTWKduYZ7ohuFoSiKwCKIa+Cet3hw== X-Received: by 2002:a17:902:dace:b0:20c:5cdd:a91 with SMTP id d9443c01a7336-210f76d6870mr381219045ad.41.1730883689798; Wed, 06 Nov 2024 01:01:29 -0800 (PST) Received: from localhost.localdomain (61-220-246-151.hinet-ip.hinet.net. [61.220.246.151]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-211057d380fsm91317665ad.240.2024.11.06.01.01.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Nov 2024 01:01:29 -0800 (PST) From: Potin Lai Date: Wed, 06 Nov 2024 16:58:52 +0800 Subject: [PATCH 2/2] ARM: dts: aspeed: catalina: add hdd board cpld ioexp X-Mailing-List: linux-aspeed@lists.ozlabs.org List-Id: List-Help: List-Owner: List-Post: List-Archive: , List-Subscribe: , , List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20241106-catalina-cpld-ioexp-update-v1-2-3437bcfcb608@gmail.com> References: <20241106-catalina-cpld-ioexp-update-v1-0-3437bcfcb608@gmail.com> In-Reply-To: <20241106-catalina-cpld-ioexp-update-v1-0-3437bcfcb608@gmail.com> To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Joel Stanley , Andrew Jeffery , Patrick Williams Cc: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-aspeed@lists.ozlabs.org, linux-kernel@vger.kernel.org, Potin Lai , Cosmo Chou , Potin Lai X-Mailer: b4 0.12.3 X-Developer-Signature: v=1; a=ed25519-sha256; t=1730883681; l=2784; i=potin.lai.pt@gmail.com; s=20240724; h=from:subject:message-id; bh=Ma7zHm/VTawO0uhZBJJdi+x5g2IFHZE6w9ObR9Dz8mM=; b=9Mfn75WH2EHATjpkT8yHXktIYSE/oom0no6vIbpn29BER7AETsF/1yGpaSr1mOLp8P1Z7Jnx7 BC/PFZV9qOlBWzy0AXX0GZ8TtazizPmWZFVoFLekpIsrhZ5YsIhjCBL X-Developer-Key: i=potin.lai.pt@gmail.com; a=ed25519; pk=6Z4H4V4fJwLteH/WzIXSsx6TkuY5FOcBBP+4OflJ5gM= X-Spam-Status: No, score=-0.2 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,WEIRD_QUOTING autolearn=disabled version=4.0.0 X-Spam-Checker-Version: SpamAssassin 4.0.0 (2022-12-13) on lists.ozlabs.org Add HDD board CPLD IO expender based on latest CPLD firmware support. Signed-off-by: Potin Lai --- .../dts/aspeed/aspeed-bmc-facebook-catalina.dts | 65 ++++++++++++++++++++++ 1 file changed, 65 insertions(+) diff --git a/arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-catalina.dts b/arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-catalina.dts index 10a9fca1b803..102d71234932 100644 --- a/arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-catalina.dts +++ b/arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-catalina.dts @@ -632,6 +632,36 @@ eeprom@51 { &i2c3 { status = "okay"; + + // HDD CPLD IOEXP 0x10 + io_expander13: gpio@10 { + compatible = "nxp,pca9555"; + interrupt-parent = <&gpio0>; + interrupts = ; + reg = <0x10>; + gpio-controller; + #gpio-cells = <2>; + }; + + // HDD CPLD IOEXP 0x11 + io_expander14: gpio@11 { + compatible = "nxp,pca9555"; + interrupt-parent = <&gpio0>; + interrupts = ; + reg = <0x11>; + gpio-controller; + #gpio-cells = <2>; + }; + + // HDD CPLD IOEXP 0x12 + io_expander15: gpio@12 { + compatible = "nxp,pca9555"; + interrupt-parent = <&gpio0>; + interrupts = ; + reg = <0x12>; + gpio-controller; + #gpio-cells = <2>; + }; }; &i2c4 { @@ -1067,3 +1097,38 @@ &io_expander12 { "PRSNT_CHASSIS1_LEAK_CABLE_R_N","PRSNT_CHASSIS0_LEAK_CABLE_R_N"; }; +&io_expander13 { + gpio-line-names = + "wP3V3_RUNTIME_FLT_HDD0","wP12V_RUNTIME_FLT_HDD0", + "wP3V3_AUX_RUNTIME_FLT_HDD0","", + "Host_PERST_SEQPWR_FLT_HDD0","wP3V3_SEQPWR_FLT_HDD0", + "wP12V_SEQPWR_FLT_HDD0","wP3V3_AUX_SEQPWR_FLT_HDD0", + "wP3V3_RUNTIME_FLT_HDD1","wP12V_RUNTIME_FLT_HDD1", + "wP3V3_AUX_RUNTIME_FLT_HDD1","", + "Host_PERST_SEQPWR_FLT_HDD1","wP3V3_SEQPWR_FLT_HDD1", + "wP12V_SEQPWR_FLT_HDD1","wP3V3_AUX_SEQPWR_FLT_HDD1"; +}; + +&io_expander14 { + gpio-line-names = + "wP3V3_RUNTIME_FLT_HDD2","wP12V_RUNTIME_FLT_HDD2", + "wP3V3_AUX_RUNTIME_FLT_HDD2","", + "Host_PERST_SEQPWR_FLT_HDD2","wP3V3_SEQPWR_FLT_HDD2", + "wP12V_SEQPWR_FLT_HDD2","wP3V3_AUX_SEQPWR_FLT_HDD2", + "wP3V3_RUNTIME_FLT_HDD3","wP12V_RUNTIME_FLT_HDD3", + "wP3V3_AUX_RUNTIME_FLT_HDD3","", + "Host_PERST_SEQPWR_FLT_HDD3","wP3V3_SEQPWR_FLT_HDD3", + "wP12V_SEQPWR_FLT_HDD3","wP3V3_AUX_SEQPWR_FLT_HDD3"; +}; + +&io_expander15 { + gpio-line-names = + "P3V3_HDD3_FAULT_R","P3V3_HDD2_FAULT_R", + "P3V3_HDD1_FAULT_R","P3V3_HDD0_FAULT_R", + "P12V_HDD3_FLT_L","P12V_HDD2_FLT_L", + "P12V_HDD1_FLT_L","P12V_HDD0_FLT_L", + "HDD_23_PWRBRK_N_R","HDD_01_PWRBRK_N_R", + "","", + "HDD3_PRSNT_N_R","HDD2_PRSNT_N_R", + "HDD1_PRSNT_N_R","HDD0_PRSNT_N_R"; +};