From patchwork Fri Feb 24 00:03:58 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Zev Weiss X-Patchwork-Id: 13150838 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 01D66C64ED8 for ; Fri, 24 Feb 2023 00:05:21 +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=GkEeW7BjXITdGxry3To5uByk5WUxNKnmpR+zuxHzS4s=; b=g9XSvL+Ski1vak JUPGR1UYxSEbeH5sFEgEUcv1cntoph5cY/7bj930x8FDtTNkQs+TUNKbXDBvcv5QatZpy/SavrlHa 2PdIuPvPtW7bK1acTK9WFcBObFidAqDRjmklisQOjlnJt1rwtMIADkG/pk+J3sMPajcgCdQSSXRzH efi1LbqR+HuDvveynpGLcFXIeIccUoFvVg4agsY/2HMjHfzLXlT1cvnVFH2T3mALOv08hcBCRY/M6 ZpAJ13JNltMvbiDvoViGEMYTjRueHZVV4LjgFE2CPQcTNpWTeiJADdpJXtzWRuBgAYjJq3H2U4XqL P0xr8KtWnc7GY/Co3+CA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1pVLZj-000iPD-NA; Fri, 24 Feb 2023 00:04:35 +0000 Received: from thorn.bewilderbeest.net ([2605:2700:0:5::4713:9cab]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1pVLZO-000iIk-K4 for linux-arm-kernel@lists.infradead.org; Fri, 24 Feb 2023 00:04:21 +0000 Received: from hatter.bewilderbeest.net (174-21-161-58.tukw.qwest.net [174.21.161.58]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: zev) by thorn.bewilderbeest.net (Postfix) with ESMTPSA id E9E93CAE; Thu, 23 Feb 2023 16:04:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bewilderbeest.net; s=thorn; t=1677197050; bh=gRYaEWxrREgx6KMntMXBZr/EsJLOP16uAqC1L3sz4+s=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ThWNEh0io/rycZB8xU355nc0MJ9fEg8QE54Km/9eZ+W68u+37ckbld77NE/kk1tYn tNnCNr73T/qtPwinjTfDJV+UGaar+xJdAGJmSNO8h1wLWzdqqU3S2tQyecRJ47XQFX ulAbi7QBHLGP7MZcU8ZBFZ9egK8Ljh3z80HjXTgA= From: Zev Weiss To: Andrew Jeffery , Joel Stanley Cc: Zev Weiss , Krzysztof Kozlowski , Rob Herring , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-aspeed@lists.ozlabs.org, linux-kernel@vger.kernel.org, openbmc@lists.ozlabs.org, stable@vger.kernel.org Subject: [PATCH v2 1/3] ARM: dts: aspeed: romed8hm3: Fix GPIO polarity of system-fault LED Date: Thu, 23 Feb 2023 16:03:58 -0800 Message-Id: <20230224000400.12226-2-zev@bewilderbeest.net> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230224000400.12226-1-zev@bewilderbeest.net> References: <20230224000400.12226-1-zev@bewilderbeest.net> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230223_160414_675022_12C041ED X-CRM114-Status: GOOD ( 10.41 ) 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 Turns out it's in fact not the same as the heartbeat LED. Signed-off-by: Zev Weiss Cc: stable@vger.kernel.org # v5.18+ Fixes: a9a3d60b937a ("ARM: dts: aspeed: Add ASRock ROMED8HM3 BMC") --- arch/arm/boot/dts/aspeed-bmc-asrock-romed8hm3.dts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/aspeed-bmc-asrock-romed8hm3.dts b/arch/arm/boot/dts/aspeed-bmc-asrock-romed8hm3.dts index ff4c07c69af1..00efe1a93a69 100644 --- a/arch/arm/boot/dts/aspeed-bmc-asrock-romed8hm3.dts +++ b/arch/arm/boot/dts/aspeed-bmc-asrock-romed8hm3.dts @@ -31,7 +31,7 @@ heartbeat { }; system-fault { - gpios = <&gpio ASPEED_GPIO(Z, 2) GPIO_ACTIVE_LOW>; + gpios = <&gpio ASPEED_GPIO(Z, 2) GPIO_ACTIVE_HIGH>; panic-indicator; }; }; From patchwork Fri Feb 24 00:03:59 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Zev Weiss X-Patchwork-Id: 13150836 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 88355C64ED6 for ; Fri, 24 Feb 2023 00:05:13 +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=oEcr07ar5wwo5/B+2SbfFc9bD2cnbFysSO2+aZ0hGOI=; b=QXrFPx37y7MNm6 tfBIRVbEfoztFrOCNG8ftOYDQ4CY+tBVd6X4BVkcVH38H/1j028srwI7NHxWQvLScsCebxWFT04zV 9kgOHGeest+XOgHvZ1Pgeydn8GtegESggIEN68vbZcZUXyCBinAAVttwGgHB1wUR3Iqv72CfV3ys9 +5YE0BExWd7goEJ45l0sQq1AkE6JDsSwiqVZH6c4yJRVeiMlB7thbMP/HBzINs53Z1Jg54VOHDa4V GgDQUpMBmxOG3pIMOO7mo/UzcYyu+tmUIJt/hz1TXSVwPdq78R1Ha3zaOqrC87TvR660L4aen8ah0 DYbZnTWOva+53Z75ccsg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1pVLZU-000iLJ-AT; Fri, 24 Feb 2023 00:04:20 +0000 Received: from thorn.bewilderbeest.net ([2605:2700:0:5::4713:9cab]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1pVLZO-000iIh-JO for linux-arm-kernel@lists.infradead.org; Fri, 24 Feb 2023 00:04:18 +0000 Received: from hatter.bewilderbeest.net (174-21-161-58.tukw.qwest.net [174.21.161.58]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: zev) by thorn.bewilderbeest.net (Postfix) with ESMTPSA id 5556CCCC; Thu, 23 Feb 2023 16:04:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bewilderbeest.net; s=thorn; t=1677197050; bh=Pm1D4f7CsJnVG1XwxLLcPWyXDVyt19wuaKgTF7ZJED0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ARrzVnDhVHXeVJF9yaD5VqG9QQzEWYzjm04xwPhXc6QwSY04hk0sK2lFSgAvwQNDV NbYpjL0ixou95Ly7XB4+L9Llf7b0LPAWtm55GERYkolV00xfKOaMkpsb/2fid1iHGV JHeYLzSVRyYyH3T50UHiQYHDSjWzZLH/4fcvxX/A= From: Zev Weiss To: Andrew Jeffery , Joel Stanley Cc: Zev Weiss , Krzysztof Kozlowski , Rob Herring , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-aspeed@lists.ozlabs.org, linux-kernel@vger.kernel.org, openbmc@lists.ozlabs.org Subject: [PATCH v2 2/3] ARM: dts: aspeed: e3c246d4i: Add PECI device Date: Thu, 23 Feb 2023 16:03:59 -0800 Message-Id: <20230224000400.12226-3-zev@bewilderbeest.net> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230224000400.12226-1-zev@bewilderbeest.net> References: <20230224000400.12226-1-zev@bewilderbeest.net> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230223_160414_663969_2AD3429B X-CRM114-Status: UNSURE ( 8.92 ) 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 Now that we've got driver support for it, we might as well enable and use it. Signed-off-by: Zev Weiss --- arch/arm/boot/dts/aspeed-bmc-asrock-e3c246d4i.dts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/arch/arm/boot/dts/aspeed-bmc-asrock-e3c246d4i.dts b/arch/arm/boot/dts/aspeed-bmc-asrock-e3c246d4i.dts index 9b4cf5ebe6d5..67a75aeafc2b 100644 --- a/arch/arm/boot/dts/aspeed-bmc-asrock-e3c246d4i.dts +++ b/arch/arm/boot/dts/aspeed-bmc-asrock-e3c246d4i.dts @@ -202,3 +202,7 @@ &kcs3 { status = "okay"; aspeed,lpc-io-reg = <0xca2>; }; + +&peci0 { + status = "okay"; +}; From patchwork Fri Feb 24 00:04:00 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Zev Weiss X-Patchwork-Id: 13150839 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 880B9C64ED6 for ; Fri, 24 Feb 2023 00:05:34 +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=8vQEd5MFFVJP31tuKRmsruKJK3y5I7QO++lNbHIprns=; b=gSNm1VXewa6x3V znTBJvzvFXOb8B5if9Zw37Qdg/fxcxTOUaDYWmYyjFrTqLn+cGF7YfXRikJz6tLDfZIqnzm1wNTxv 24Nafq4q7JHEnX5tCh6rT6p8WlB1WnabJG8F3ttsPxqucXSox29vDF4+DJwCqDKdFhHYmEvjiUK70 e/gsHx9vCGT9yVwBZ4f1VgeG3mbDsj6vjzgCTVSykJWQMDOQeOBnC/szKMuVyTIv3oe2TJAQ5cvN2 SjYklpQmfk8OWuz2J2etl/J5ZEZGxDsdJ8SNdAZu1iWGn82JLGIu2Sbx2+bN4JobA90ENCVhPD+kx JkNydrWmAOr5+JQ9V5pA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1pVLZr-000iRX-MG; Fri, 24 Feb 2023 00:04:43 +0000 Received: from thorn.bewilderbeest.net ([71.19.156.171]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1pVLZP-000iIj-EJ for linux-arm-kernel@lists.infradead.org; Fri, 24 Feb 2023 00:04:22 +0000 Received: from hatter.bewilderbeest.net (174-21-161-58.tukw.qwest.net [174.21.161.58]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: zev) by thorn.bewilderbeest.net (Postfix) with ESMTPSA id ADB684228; Thu, 23 Feb 2023 16:04:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bewilderbeest.net; s=thorn; t=1677197051; bh=SVvuc4nE5AlFPl8sNCRV4mTme19ET0laznkxlRxM+Wc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=QD9X4h7zNd8khM2nvt6c3AjBC/gs7VCbGTNIANnCs+IxnaVroeCZ9rd+6wrFR4vdm bfUg70n8UCqhVMJriV6k+6i7SCWHsQFqT7Cl6NdQ19a9aD6hM3vEv9SuEE4MZSrzsQ xbCNC4a3Puta97EcnRYnFSyAvj5rrAqKBl7AohjU= From: Zev Weiss To: Andrew Jeffery , Joel Stanley Cc: Zev Weiss , Krzysztof Kozlowski , Rob Herring , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-aspeed@lists.ozlabs.org, linux-kernel@vger.kernel.org, openbmc@lists.ozlabs.org, stable@vger.kernel.org Subject: [PATCH v2 3/3] ARM: dts: aspeed: asrock: Correct firmware flash SPI clocks Date: Thu, 23 Feb 2023 16:04:00 -0800 Message-Id: <20230224000400.12226-4-zev@bewilderbeest.net> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230224000400.12226-1-zev@bewilderbeest.net> References: <20230224000400.12226-1-zev@bewilderbeest.net> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230223_160415_498131_AB7EE10D X-CRM114-Status: GOOD ( 10.80 ) 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 While I'm not aware of any problems that have occurred running these at 100 MHz, the official word from ASRock is that 50 MHz is the correct speed to use, so let's be safe and use that instead. Signed-off-by: Zev Weiss Cc: stable@vger.kernel.org Fixes: 2b81613ce417 ("ARM: dts: aspeed: Add ASRock E3C246D4I BMC") Fixes: a9a3d60b937a ("ARM: dts: aspeed: Add ASRock ROMED8HM3 BMC") --- arch/arm/boot/dts/aspeed-bmc-asrock-e3c246d4i.dts | 2 +- arch/arm/boot/dts/aspeed-bmc-asrock-romed8hm3.dts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm/boot/dts/aspeed-bmc-asrock-e3c246d4i.dts b/arch/arm/boot/dts/aspeed-bmc-asrock-e3c246d4i.dts index 67a75aeafc2b..c4b2efbfdf56 100644 --- a/arch/arm/boot/dts/aspeed-bmc-asrock-e3c246d4i.dts +++ b/arch/arm/boot/dts/aspeed-bmc-asrock-e3c246d4i.dts @@ -63,7 +63,7 @@ flash@0 { status = "okay"; m25p,fast-read; label = "bmc"; - spi-max-frequency = <100000000>; /* 100 MHz */ + spi-max-frequency = <50000000>; /* 50 MHz */ #include "openbmc-flash-layout.dtsi" }; }; diff --git a/arch/arm/boot/dts/aspeed-bmc-asrock-romed8hm3.dts b/arch/arm/boot/dts/aspeed-bmc-asrock-romed8hm3.dts index 00efe1a93a69..4554abf0c7cd 100644 --- a/arch/arm/boot/dts/aspeed-bmc-asrock-romed8hm3.dts +++ b/arch/arm/boot/dts/aspeed-bmc-asrock-romed8hm3.dts @@ -51,7 +51,7 @@ flash@0 { status = "okay"; m25p,fast-read; label = "bmc"; - spi-max-frequency = <100000000>; /* 100 MHz */ + spi-max-frequency = <50000000>; /* 50 MHz */ #include "openbmc-flash-layout-64.dtsi" }; };