From mboxrd@z Thu Jan 1 00:00:00 1970 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 9CB3CC6FD1F for ; Tue, 26 Mar 2024 15:01:11 +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:Message-Id:Date:Subject:To :From:Reply-To:Cc:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=/8/iQa+/ZItg7dtSxsv3G3v624Aok9Y5e6Gebtq8cpo=; b=UL0g3dCEvnYtP8 TB1eAduBbm6fUIebC2MFV8qHHtui4hN6asb8f81wY7NKYdm/FHGXGhw9+mIBiypT2GOhov0bojIjU p2L2oJi30QWH0b0j2z1Ol2QMND83EZYjmIgjX+3GON6DhGVNL8U2nqt9wXrj+IgMdf2jTXp2YsCny Ofl78inQIPHXlGzu65jgbu3UnrNSm83RRE12rMjitvd1W7bUFhXuj70yV+sIAptJ7xIt2khvAElN5 zrkz8djqLr9qsjRmgCIk7RyXirBTCliyK0CC9+1Jjm5eXy3dhUkhU/KJ2GYjBCsAsNB/FtHVVaB/m NPKzQjN9YI4N2qP5CyDQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rp8IH-000000052Vw-2lOj; Tue, 26 Mar 2024 15:00:53 +0000 Received: from mail-oa1-x33.google.com ([2001:4860:4864:20::33]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1rp8I2-000000052MG-3foV for linux-arm-kernel@lists.infradead.org; Tue, 26 Mar 2024 15:00:40 +0000 Received: by mail-oa1-x33.google.com with SMTP id 586e51a60fabf-22a353217c3so1118557fac.1 for ; Tue, 26 Mar 2024 08:00:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1711465236; x=1712070036; darn=lists.infradead.org; h=content-transfer-encoding:mime-version:message-id:date:subject:to :from:from:to:cc:subject:date:message-id:reply-to; bh=ep9QVOB8/YOpGWyRSjZf2H1PYHwu34pwGLtmpze6dGw=; b=Szd3C8SI5ct4YUhH4Jn2VqIQ3JVDomDwKlqHq+LI9EQ6flY9ZEJYNp4g01tfOwBi3w 92SnNPsB7uIcssfVEGyfkuDcoMCzoIXUN4aZH0/3J8G82H0ZOnA8P2VGQJrMKyiJmrLC o7cmN12A23GZcTnKErEKCUbp10sqKimy19bPaGbPwvYaPkNcBydXhFhaYA/IBwMQpdRS gVVilm9qMKUk3SKUBv0i+nfXjA24kKsi+OVXJNJKgmpJ8HBDpz6JjZP8gLRWynSLOKty 9U08A+xUNFP3DXaFgGPH1xqAEhJ/0K8OIzOpPfZ+IFbNCBsDRg+6gFSNIQ3ciY3VoSPV uzgg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1711465236; x=1712070036; h=content-transfer-encoding:mime-version:message-id:date:subject:to :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=ep9QVOB8/YOpGWyRSjZf2H1PYHwu34pwGLtmpze6dGw=; b=To1pziB3uPHXQNDVRhAncMN3iLHdVIn098hI9d7AXaa3+rQbtzvZInvRKstLNI8Pj9 dQEfgrltc5ydi7QOYpUxs0F7zHu7nGTP9dthhA/0XEGeK+3sG7vNGMrRGMvg6AGLWSXb cKKecuV/o3xHP5pHV3E0LLRUpyxPqU3KvJ9K98o+yRVZ6+uhziMY5SsNiwIbZr9/Na38 ceVpwREPZprzxepxJ5pB3B1MWG4mId4L/183X1EK3xHktgQtblhFA4lXSU9wk36yi+qV j6W4zP8oFSpD8tXeJSeb9O2ZgO9MLtCQCKdScZNhUhH+U9PTW5zhYQNZGJzUoebsUsOB 2xlA== X-Forwarded-Encrypted: i=1; AJvYcCVyCE30aYZAPI3wBvflE/2Pp5PqkpBWBEvDPVzaeGoyFEcAaSCCjtCxfQxqGDSHWSjjBkAHPx9TqRI6B6hJYunIOdq2vHMpVQs31N9tiNb/hWqiXpw= X-Gm-Message-State: AOJu0YyMRCttinfsr+u1G6HxdQoUfkC7ncNp1yiL6VRCmMWgxzGlFR5t g19EkZ1a1yYWOisx4irKEoyJ6+Escd4NfiAqfLZiaVzHLAVY+HPumc5pLo1N X-Google-Smtp-Source: AGHT+IE9lJtqRc0RFeoGBEWVBCzB5/BipthG8IbTBUUZW2xqn5DBa3mtgCMrQYxtY/j1pt86sk3CAg== X-Received: by 2002:a05:6870:50:b0:229:f1be:c73e with SMTP id 16-20020a056870005000b00229f1bec73emr10049326oaz.25.1711465236132; Tue, 26 Mar 2024 08:00:36 -0700 (PDT) Received: from peter-bmc.dhcpserver.bu9bmc.local (1-34-21-66.hinet-ip.hinet.net. [1.34.21.66]) by smtp.gmail.com with ESMTPSA id l27-20020a635b5b000000b005dcbb855530sm7658404pgm.76.2024.03.26.08.00.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 26 Mar 2024 08:00:35 -0700 (PDT) From: Peter Yin To: patrick@stwcx.xyz, Wim Van Sebroeck , Guenter Roeck , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Joel Stanley , Andrew Jeffery , linux-watchdog@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-aspeed@lists.ozlabs.org, linux-kernel@vger.kernel.org Subject: [PATCH v3 0/4] drivers: watchdog: ast2500 and ast2600 support bootstatus Date: Tue, 26 Mar 2024 23:00:23 +0800 Message-Id: <20240326150027.3015958-1-peteryin.openbmc@gmail.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240326_080038_945078_4AFE195A X-CRM114-Status: GOOD ( 11.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: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Add WDIOF_EXTERN1 and WDIOF_CARDRESET bootstatus in ast2500/ast2600 Regarding the AST2600 specification, the WDTn Timeout Status Register (WDT10) has bit 1 reserved. Bit 1 of the status register indicates on ast2500 if the boot was from the second boot source. It does not indicate that the most recent reset was triggered by the watchdog. The code should just be changed to set WDIOF_CARDRESET if bit 0 of the status register is set. Include SCU register to veriy WDIOF_EXTERN1 in ast2600 SCU74 or ast2500 SCU3C when bit1 is set. v2 -> v3 - Fixed WDIOF_CARDRESET status bit check and added support for WDIOF_EXTERN1 on ast2500 and ast2600. v1 -> v2 - Add comment and support WDIOF_CARDRESET in ast2600 v1 - Patch 0001 - Add WDIOF_EXTERN1 bootstatus --- Peter Yin (4): ARM: dts: aspeed: Add the AST2500 WDT with SCU register ARM: dts: aspeed: Add the AST2600 WDT with SCU register dt-bindings: watchdog: aspeed-wdt: Add aspeed,scu drivers: watchdog: ast2500 and ast2600 support bootstatus .../bindings/watchdog/aspeed-wdt.txt | 4 ++ arch/arm/boot/dts/aspeed/aspeed-g5.dtsi | 3 ++ arch/arm/boot/dts/aspeed/aspeed-g6.dtsi | 4 ++ drivers/watchdog/aspeed_wdt.c | 53 +++++++++++++------ 4 files changed, 48 insertions(+), 16 deletions(-) -- 2.25.1 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel