From nobody Sun Nov 24 09:25:45 2024 Received: from mail-pl1-f170.google.com (mail-pl1-f170.google.com [209.85.214.170]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 0E6B21D7E37; Wed, 6 Nov 2024 09:01:27 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.170 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1730883689; cv=none; b=TXweveo9xd9ep3c9ZIFetaimkc10DvV/HtUP1NPDpxYwhxnqOZKC4WtZWcuXoEszBsQ9oPiLuhYbfo/A6uEYXKQjL7yXHsMcA8/ayqKEQlalF1GFaaYjCzh6xybvIKtfydc+KcqVBotbCrt2fXkugynj3njtmnQgw6sVSfXeiKw= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1730883689; c=relaxed/simple; bh=nyuZFMsNp/CjM9UzYTg0cqEV/NdG/xPxUypZLXNSJj8=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=U2WZ2MmSVOvzEoo5kQXfVJMvSQ6ZPf/vfyWc08FdeDfTc5ckh6ig+Jo5Y/DHlkxk0AbCt51Da0vO0ryMe6NfrLADUPdw+g578LFV19gWqUHFuPqHGsQP7LXyps9VznYkRmz7LG6BPSoehbbadw5MEW1wSP1UJlOZxP2lhmdRFAI= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=gfFzij/2; arc=none smtp.client-ip=209.85.214.170 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="gfFzij/2" Received: by mail-pl1-f170.google.com with SMTP id d9443c01a7336-2110a622d76so49250795ad.3; Wed, 06 Nov 2024 01:01:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1730883687; x=1731488487; darn=vger.kernel.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=gfFzij/25NOx2X+1iaxesrAhgPY4bbPR9b6eSdvmYguMK9dbprfCx3+if0pd8MsXw0 3C9R9Xa0DUbQXN/zaLZ1sfwf+c4/kDIWcNfG9/mmwi6TJ9LUuplw41FlJGLq2US8S8j1 /RqA5Qnm9vSXdFJVoSTx/so+waTYq1OsO5IQXUSCz8BjeUld1/y7I3ApsiCZwanz93Na iR8m9rMnfbGP2fHYOgPb4FnBRKzW+2DAK+HWdvhDKfJOIZdzulMY6murcNH/7B/jMi9M Iddv1Dds5Budpj1LTI4FDHtaZQHUjbSIXh8G1INAV87kbxAbkdEpZhQLI5EBH8HPhUZZ I+2w== 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=dcQtxNEJDomauR34oBZKemnuZKLWy8ymQ3e3iKVikM/rfQKhmF4Lwi8taSgTOMYed+ AqtA5iJ5F/K38o8VZAQsUZNoy20G69WZU/BLKoecemaLxx9/emI5AavrDOJpMWqSv4aM tWsXh/sb0vvEENn6FzBl6YcwbCWC1OF+0ldtr+HaoodPuU7DKew48u6TgTfEWnisJOhI 8Kps5QqMniOL83isZvINwGg0uHFSSa97hiYT6bR6K9sbofQL850cowYl/iGkNJn6PEPb tuZx4x6pIuKEtU/klB2CN1WwETQe5tb50LlFcl9MNnrSFVmXqsHho0i2fWLpkyajKhf9 WDDA== X-Forwarded-Encrypted: i=1; AJvYcCU/ZwCcSPb4nlWdFCJGK6jRPFTsHEgRwM0rgbJkvyFNITe8gCCclxiw1TCFo6LJixgBsZKMAoIfs926TnU=@vger.kernel.org X-Gm-Message-State: AOJu0YwzbHV1JdzXGD04BU0VN8xhG9AjX7IE6TH9yqmIRgnXiIh9zPgd AUtnV0k2dRfhazi0C/P1i9JTzp9hdoiGPBF5YDdvC936W7r8VEFB 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 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable 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= 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/ar= ch/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 =3D <2>; }; - - // PDB CPLD IOEXP 0x14 - io_expander13: gpio@14 { - compatible =3D "nxp,pca9555"; - interrupt-parent =3D <&gpio0>; - interrupts =3D ; - reg =3D <0x14>; - gpio-controller; - #gpio-cells =3D <2>; - }; - - // PDB CPLD IOEXP 0x15 - io_expander14: gpio@15 { - compatible =3D "nxp,pca9555"; - interrupt-parent =3D <&gpio0>; - interrupts =3D ; - reg =3D <0x15>; - gpio-controller; - #gpio-cells =3D <2>; - }; }; =20 &i2c15 { @@ -1040,71 +1020,50 @@ &io_expander8 { =20 &io_expander9 { gpio-line-names =3D - "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"; }; =20 &io_expander10 { gpio-line-names =3D "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 =3D "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"; }; =20 -&io_expander11 { +&io_expander12 { gpio-line-names =3D "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 =3D - "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 =3D - "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"; }; =20 -&io_expander14 { - gpio-line-names =3D - "","","","","","","","", - "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",""; -}; --=20 2.31.1 From nobody Sun Nov 24 09:25:45 2024 Received: from mail-pl1-f176.google.com (mail-pl1-f176.google.com [209.85.214.176]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 9E0CD1D90D7; Wed, 6 Nov 2024 09:01:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.176 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1730883692; cv=none; b=Au1hNQuLMVR/PxAljzZX/vcVlh+MLSOL2WPWRLCZms3IpGwX864R48jzlIX0AU3+yJ+/s5o6SBIpBC9nxO3xsF0fsFWMCJvgp2EeY4dgErbUrdU2cMemDHVoZc/tsKSv6FTviKObAUWjl5PJbRo0ElEFpQCPqn0hx2PKdeX9U6o= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1730883692; c=relaxed/simple; bh=Ma7zHm/VTawO0uhZBJJdi+x5g2IFHZE6w9ObR9Dz8mM=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=fB16A6jQX3VG2+JZ4Ae4bHliiuDE0co1gthZP7r2vDUz9UfYEpbM2e7CKdxxVPssfDGrXb0aPv+MMeUXSlEF27/WA7c6KxZ/cVVG1jHXJEDARqXKPzWGNC3UA6yZ0UZ2cHtpwprjZrm8bvYzpGbKVPJ9PKLORTCBbZ59zc97ud8= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=eaw4auC9; arc=none smtp.client-ip=209.85.214.176 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="eaw4auC9" Received: by mail-pl1-f176.google.com with SMTP id d9443c01a7336-20cd76c513cso50704365ad.3; Wed, 06 Nov 2024 01:01:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1730883690; x=1731488490; darn=vger.kernel.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=eaw4auC9Lit20tq+bXyvY0kSZQoDuSNAoA28JAkBQjU85tlW/jZOjirDxRdP5/o+qY /ZVtytHTIpqOJWRaBMSybhqN6Fpa+a5ltJkFEvVF5vXsJEu16H1y3osqoawXu+MiNp5z KP1zWmvVXUXft1X3DzIAc8riYWfSBcCBbHWO+Gdq6UyGP6kjrLa+Jnxzilpxx3GVz0kj igIVAdzwNgUD/Qsz7OWs8XaZzDNYtI2/FFGB7/00spHz3t1cbmQXakpMmGmdn3urhVlV 2VKAaW0vb/6ajOvgdam7WqpJL9JCUTNWyh3Ona5ABlFa6eutHPZTy8GH8ixRFqmB0xCv Mouw== 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=apUoQdJYP7c7oQUdaqGi96Ki6JjDB3tFwJnuQCwISelDtT8/NZNr+le5bFR9XyAlNm BC55KyR9HYnhoI6SG0irs/xFlguVSVq+ENUCBA3+44b39rLf1QL4d6DoEkjsTa/vOrDj in9bbi81+275J2hv6dvRJynNQRHWhBdCr2jraGSYmceIBMxE+hIGPNv4QyBmGBEaPmtQ rv3Q14ER/TRWhU4sp+m8MzeHr20QwY9rWaiYFIyVDtIpxhpPYZkeCf3o5I8CzO26kP+f qj7RFnd/oA8f2SYmSYRCSsIMW2lAJ18Dk4xjxdLEAbEwVJu+KOSGYKzFQi97Xd1kmhmn vesA== X-Forwarded-Encrypted: i=1; AJvYcCW3qIq5WC+/SVXDaAUb8ypTlo6d3CtGsdXzRTOpfcOIYFEYEYWj/xkYjS9Zj7FSDHw77to+ZsbQL5JcDC0=@vger.kernel.org X-Gm-Message-State: AOJu0YwxMys0sgzw2jQLkfahsL4jmcDC9vIH+KXRLMq9Qaz5rtw3GwD2 cca4SZ3NYT8NHU0pwfsSY5OUEB/BqqU/kQ973xpUaWZG/ERPvoQR 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 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable 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= 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/ar= ch/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 { =20 &i2c3 { status =3D "okay"; + + // HDD CPLD IOEXP 0x10 + io_expander13: gpio@10 { + compatible =3D "nxp,pca9555"; + interrupt-parent =3D <&gpio0>; + interrupts =3D ; + reg =3D <0x10>; + gpio-controller; + #gpio-cells =3D <2>; + }; + + // HDD CPLD IOEXP 0x11 + io_expander14: gpio@11 { + compatible =3D "nxp,pca9555"; + interrupt-parent =3D <&gpio0>; + interrupts =3D ; + reg =3D <0x11>; + gpio-controller; + #gpio-cells =3D <2>; + }; + + // HDD CPLD IOEXP 0x12 + io_expander15: gpio@12 { + compatible =3D "nxp,pca9555"; + interrupt-parent =3D <&gpio0>; + interrupts =3D ; + reg =3D <0x12>; + gpio-controller; + #gpio-cells =3D <2>; + }; }; =20 &i2c4 { @@ -1067,3 +1097,38 @@ &io_expander12 { "PRSNT_CHASSIS1_LEAK_CABLE_R_N","PRSNT_CHASSIS0_LEAK_CABLE_R_N"; }; =20 +&io_expander13 { + gpio-line-names =3D + "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 =3D + "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 =3D + "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"; +}; --=20 2.31.1