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 phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id AD875C433F5 for ; Wed, 12 Jan 2022 18:55:30 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 0DD2E832DC; Wed, 12 Jan 2022 19:55:28 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=openbsd.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (1024-bit key; secure) header.d=kpnmail.nl header.i=@kpnmail.nl header.b="eEXj5UVT"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 1E99C82F89; Wed, 12 Jan 2022 19:55:26 +0100 (CET) Received: from ewsoutbound.kpnmail.nl (ewsoutbound.kpnmail.nl [195.121.94.170]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id E7AF5831EF for ; Wed, 12 Jan 2022 19:55:22 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=openbsd.org Authentication-Results: phobos.denx.de; spf=fail smtp.mailfrom=kettenis@openbsd.org X-KPN-MessageId: 03b6ce58-73d9-11ec-8a6e-005056ab378f Received: from smtp.kpnmail.nl (unknown [10.31.155.38]) by ewsoutbound.so.kpn.org (Halon) with ESMTPS id 03b6ce58-73d9-11ec-8a6e-005056ab378f; Wed, 12 Jan 2022 19:54:04 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kpnmail.nl; s=kpnmail01; h=mime-version:message-id:date:subject:to:from; bh=C0bXAbbqoqV+ZGow1fCm/bK5YnynZWZY0dttYbIpbDA=; b=eEXj5UVT0xj09X8aONwYqwJe0RATFOIDKhFlGXKKNCEqH7/we1G17dpJLcbwr6dJZkNeIoQdli5Zy roacKRrYHLZ30rvSroTgdF/TwBocR6Yqc63fRk4q2mIlzzQXl0u0u3zBofzeRMsisETUdh1/fC8oqN 12rPYJf2Rm6/7t80= X-KPN-VerifiedSender: No X-CMASSUN: 33|Ic7g6nwSCINbn01Qg565uxL+tmO3LF+e+Qveziink4YCA2DTzFd5/UUXHjGyf5m KHJOV1lCUVDiV2KJuBrWUxg== X-Originating-IP: 83.163.83.176 Received: from copland.sibelius.xs4all.nl (sibelius.xs4all.nl [83.163.83.176]) by smtp.xs4all.nl (Halon) with ESMTPSA id 318e4540-73d9-11ec-94d2-005056abf0db; Wed, 12 Jan 2022 19:55:22 +0100 (CET) From: Mark Kettenis To: u-boot@lists.denx.de Cc: sjg@chromium.org, sven@svenpeter.dev, sr@denx.de, Mark Kettenis Subject: [PATCH v2 0/3] Apple M1 watchdog timer Date: Wed, 12 Jan 2022 19:55:14 +0100 Message-Id: <20220112185517.38799-1-kettenis@openbsd.org> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.2 at phobos.denx.de X-Virus-Status: Clean This series adds a driver for the watchdog timer found on Apple's M1 SoC and replaces the reset_cpu() function in the board file with sysreset. The driver is based on the Linux binding proposed in [1]. [1] https://patchwork.ozlabs.org/project/devicetree-bindings/patch/20211113094732.73889-1-sven@svenpeter.dev/ ChangeLog: v2: - Adjust delay and add comment - Explain dropped device tree node in commit message Mark Kettenis (3): watchdog: Add a driver for the Apple watchdog arm: dts: apple: Add watchdog timer node arm: apple: Use watchdog timer for system reset MAINTAINERS | 1 + arch/arm/Kconfig | 3 + arch/arm/dts/t8103.dtsi | 13 ++-- arch/arm/mach-apple/board.c | 24 -------- drivers/watchdog/Kconfig | 9 +++ drivers/watchdog/Makefile | 1 + drivers/watchdog/apple_wdt.c | 115 +++++++++++++++++++++++++++++++++++ 7 files changed, 137 insertions(+), 29 deletions(-) create mode 100644 drivers/watchdog/apple_wdt.c -- 2.34.1