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 BFB90C54E67 for ; Thu, 28 Mar 2024 01:33:24 +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=W1lRqAc5N+zsjmQ7oKEIiC+Vl9G+2IXOSl+Xkh+o55w=; b=qm8Z5DLhUGIQPD 1y7+Hn+T0JPGvn5b4cUFSYqONSv4iJnSPnMs+qAlGhs4ULHE8lSp43lLDCpdpY4Xr53ZL3UJYRs11 QBFLtyKEV4XirPfsyTkzKKwbJYQXf3rg/JAOwEdB0DNK5fXUH0Zq5CXouS1ufidcZW9ksMR6hKplo C5LrIAlygJkKbC+qEdhkfQsFF9nZ8LAlR/9Wr6dpOF4IbFs+OIoYsinQ4ix8FmfqKsokAUYclAf9U kfobJf3E60vwzq18Jpkgpumf6dMUxNMoLnRc5l65fo8pQM9Ia9chXlUMUMO4x/B4KZJge1EA0aluD B0EXdU1IS357s+J3Nv4w==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rpedd-0000000BwmJ-2G65; Thu, 28 Mar 2024 01:33:05 +0000 Received: from mail-pl1-x62b.google.com ([2607:f8b0:4864:20::62b]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1rpeda-0000000BwkA-0OG1 for linux-arm-kernel@lists.infradead.org; Thu, 28 Mar 2024 01:33:04 +0000 Received: by mail-pl1-x62b.google.com with SMTP id d9443c01a7336-1e0d6356ce9so3803785ad.3 for ; Wed, 27 Mar 2024 18:32:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1711589575; x=1712194375; 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=RwzVZ+IWpczySSp2ln+6XuuWUjbpq64nflGUKemUacE=; b=KrIJfjEvfazHso1Xm/3AMk7WpdJO9DO2qC8W3BWnN6EWEoXrsajOq2HjT7i0HGXtbX VsFD1bbeUzF7KpZ4nh+j16jQ7uFLs+kM8q+ME1HdeHMN/USaJlVcwPanP1hRc8Iil1vv k42qneIij4rb/Omzt8khie4ZZ9ussuFK79qSrOYrn1EipqNlVcSA5q48xc61Yk7YaSWV reTRaC95oH5YE2aLnjy/m6Vq6OHkPR+HJyQVgtxaJAkVR8li+5gWDCv0+gJj0a5s0aeM d2kky69GK8hYIU9T/Yj99pD3vLfe8iumP69OnUWcVchC8i7KLg9Yw5Y3leKrUnx0yMXo zWqg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1711589575; x=1712194375; 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=RwzVZ+IWpczySSp2ln+6XuuWUjbpq64nflGUKemUacE=; b=A3xnEbfdHlt6m+vgOPCo5t+STbiiWwaFkWoMd4lE/H/eYgmP2FdhNM6SdcONgSggEO C7nOYCenFCsCoHyQPtV6PREij6V03QTAj3fQu/dkIo3vUWwyeIBUulcTGAiTN9CX8Jm9 bdnFDirE3Y7p05W8hqkJPTa2VtZd/DY75GiVi8iUm7ISsw6sbGya2jdCxqG02QXdw2EF 989KRsw6jyzlBTynfJq5tgw7J18ztNr1/iCHCMa9Dl0EpwQl5eHpz7V7irmoR44L6pN+ wf0a8krbY5HzjCB9/KRuWiNUxsLoCwV/+kNaRnj4WJTprOOrJnxTgwaIleOvYgoBFAyU QLxQ== X-Forwarded-Encrypted: i=1; AJvYcCUzX4/ZqJSal/xEBfP8gn8GwI5EMofstU6eTOkj9p0Rd3b7Nwn6pJswdB3/dUGf3LT7R0FGfxnEZ1z//mW+le3qZ/9eJoG1MK2jyVo/6nrABxBwWV4= X-Gm-Message-State: AOJu0YzbdfPlqT8W9Sw3lv5Gjk6zJ9teaWvcIacd2x6E7Qda7eyEBw4m A7LDZP8xzF52BgKl9d8KDupAlbTvKbgrIRaZIk2k2dwPVcgOmHmJ X-Google-Smtp-Source: AGHT+IGJiNm3BXlzN6cmEh56HkRazQmE2ErJ3ixpcojiNRSHT7tBktTULxMZ3pGOAZ0k6cV3jsh6qQ== X-Received: by 2002:a17:903:24d:b0:1e0:f5df:277c with SMTP id j13-20020a170903024d00b001e0f5df277cmr1426217plh.69.1711589574850; Wed, 27 Mar 2024 18:32:54 -0700 (PDT) Received: from peter-bmc.dhcpserver.bu9bmc.local (2001-b400-e355-7eb0-b4d0-66d2-2269-ef6c.emome-ip6.hinet.net. [2001:b400:e355:7eb0:b4d0:66d2:2269:ef6c]) by smtp.gmail.com with ESMTPSA id q6-20020a170902dac600b001e0a2cf62bfsm191904plx.201.2024.03.27.18.32.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 27 Mar 2024 18:32:54 -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 v5 0/4] drivers: watchdog: ast2500 and ast2600 support bootstatus Date: Thu, 28 Mar 2024 09:32:45 +0800 Message-Id: <20240328013249.3609225-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-20240327_183302_271233_2D0F9EAB X-CRM114-Status: GOOD ( 12.08 ) 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. v4 -> v5 - Revert indentation. v3 -> v4 - Add error handling for syscon_regmap_lookup_by_phandle and regmap_read. 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 | 34 ++++++++++++++++--- 4 files changed, 41 insertions(+), 4 deletions(-) -- 2.25.1 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel