Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp1488358ybv; Thu, 20 Feb 2020 21:39:42 -0800 (PST) X-Google-Smtp-Source: APXvYqy+k4klBsBmS+FXqWtj8PpxeNRu9tEGfWlL9mNfjtSJQJ54CP9mdr+IKe7L6U6gQ9HxU+rk X-Received: by 2002:a05:6808:b13:: with SMTP id s19mr585468oij.119.1582263582591; Thu, 20 Feb 2020 21:39:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582263582; cv=none; d=google.com; s=arc-20160816; b=bWbbgPhsotm+fSNtoH9m4y5PbFq7uQjyd6hMd1Dyt7WVnjWpKRauh8DdbgtNMmO3Pt T8tzfzgRFLbI+DCh9a55obcJz0inwQt/gqufnLBDJRL6dzlw9onC5m7F5Chbx+V31x7i AcvzhQS4niqwdStrXanPQ+KqGJ/TYqULQXt2MHHSluUM3w0ZzvRspiMH4qhlBd1LWZfP 7wHwv6XpWkYETZen3UMJC+9aC7ZDMtQijWUejUe5yZWF9JJXSHRnQwULYyfw6m2rI48y FK1vV9hkPpGCAh9yA1ci3UVOKtmKi2eLgieSX/k4KXpHd9w00Op60RJ9kolDyFBNur7c 4h7Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=xR1GRxFdUV2TwDvxuNR/pK3VYzRWJYZmKivDEUcKc5w=; b=r1jhDRkpc65rbryNviV7VOrVvaH9VDn8K7Qhpc813w7C9Hfu4/H0HMDgbxj56i/EJw vhhnkQKGO1xboqHfovjt91v8F2mMksOPBv185lLFfVlAf4hyXz0DLKjTOD66X9+zU8BS +X4OFvsJyWZRz7xSs/khVGQMGeOB0E/lQIFL3Abbh/cH9zDBoCPRoQ46i+OnIJlB4POz XjIMYgXljdRlaTbYDHd9bwlksxi8mAkgO5ulFTFL6rZfrfyd1BN8tnvtimDRvXReW0HV I9w/qp0umAs5xGwvlSUwOX/0cgZXV/pTMgLurhhvon2IoMTpkWKQKPuwXR/XKBHTUd08 HW2w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b="QVp/FC2N"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y9si942629otk.136.2020.02.20.21.39.30; Thu, 20 Feb 2020 21:39:42 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b="QVp/FC2N"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726369AbgBUFiU (ORCPT + 99 others); Fri, 21 Feb 2020 00:38:20 -0500 Received: from mail-pf1-f195.google.com ([209.85.210.195]:35727 "EHLO mail-pf1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726201AbgBUFiU (ORCPT ); Fri, 21 Feb 2020 00:38:20 -0500 Received: by mail-pf1-f195.google.com with SMTP id i19so623413pfa.2 for ; Thu, 20 Feb 2020 21:38:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=xR1GRxFdUV2TwDvxuNR/pK3VYzRWJYZmKivDEUcKc5w=; b=QVp/FC2NiAc3rBycqqqlyoa0rlWBGhP8nW8nvvVd1pRXp9Io6ugF1YFhOrlCramk4m maGakRF1l77Fn3JdI/QLF3uqnkV56NYnLn0ct7McCl8jjFS/RuIzCVK4rKwS0eMsanTp JJZ6xUxzRnD685IHKwcVyvWnx6ogkbaou6bhU= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=xR1GRxFdUV2TwDvxuNR/pK3VYzRWJYZmKivDEUcKc5w=; b=raNCCWwU/65UhAlLl4YVwt8wxPgS5kT0NX91TcxKyoBSLT1kTAV9DEY4pXxL3S44bw pgLkb99EvI/SQSVakk+brQDD7GWy9jAiyn6XxbGj7Qg6bksZNLp+WBMjBkkMU7HD49xc KOnaJGGlweVekegIHMs9eAQNEzN5IgpL2eWdxyw0k6TbcwHFljAuvUXzbshoRxs6YV9K PlwIAcHNXFwQ2jFzaMuKz6aFl4maOWZUO/dY2HnUO4+/QiOgoLrckfw6B7U4ry1I91lW W+GfNQnDrdoilDNIJd6tTrAvpYam/EFA/4Yms2+hJtqfMzIxzygZU165zLQPLwghlcTd M1eQ== X-Gm-Message-State: APjAAAWM7gea3Ps/6pnLZrmdlzRK9xpHn72ZuT5BZkR6BW4NdGkC5zz+ 1oNIOFbZ6cJ0cuC9GlsWDFkIUfZEJOWaRA== X-Received: by 2002:a62:486:: with SMTP id 128mr36207829pfe.236.1582263499298; Thu, 20 Feb 2020 21:38:19 -0800 (PST) Received: from localhost ([2401:fa00:9:14:1105:3e8a:838d:e326]) by smtp.gmail.com with ESMTPSA id b25sm1329060pfo.38.2020.02.20.21.38.11 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 20 Feb 2020 21:38:18 -0800 (PST) From: Evan Benn To: LKML Cc: jwerner@chromium.org, Evan Benn , Anson Huang , Catalin Marinas , =?UTF-8?q?Cl=C3=A9ment=20P=C3=A9ron?= , "David S. Miller" , Dinh Nguyen , Greg Kroah-Hartman , Guenter Roeck , Jonathan Cameron , Leonard Crestez , Marcin Juszkiewicz , Mark Rutland , Matthias Brugger , Mauro Carvalho Chehab , Olof Johansson , Rob Herring , Rob Herring , Shawn Guo , Will Deacon , Wim Van Sebroeck , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, linux-watchdog@vger.kernel.org Subject: [PATCH v2 0/2] Add a watchdog driver that uses ARM Secure Monitor Calls. Date: Fri, 21 Feb 2020 16:38:00 +1100 Message-Id: <20200221053802.70716-1-evanbenn@chromium.org> X-Mailer: git-send-email 2.25.0.265.gbab2e86ba0-goog MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This is currently supported in firmware deployed on oak, hana and elm mt8173 chromebook devices. The kernel driver is written to be a generic SMC watchdog driver. Arm Trusted Firmware upstreaming review: https://review.trustedfirmware.org/c/TF-A/trusted-firmware-a/+/3405 Patch to add oak, hana, elm device tree: https://lore.kernel.org/linux-arm-kernel/20200110073730.213789-1-hsinyi@chromium.org/ I would like to add the device tree support after the above patch is accepted. Changes in v2: - Change name arm > mt8173 - use watchdog_stop_on_reboot - use watchdog_stop_on_unregister - use devm_watchdog_register_device - remove smcwd_shutdown, smcwd_remove - change error codes Evan Benn (1): dt-bindings: watchdog: Add mt8173,smc-wdt watchdog Julius Werner (1): watchdog: Add new mt8173_smc_wdt watchdog driver .../bindings/watchdog/mt8173,smc-wdt.yaml | 30 ++++ MAINTAINERS | 7 + arch/arm64/configs/defconfig | 1 + drivers/watchdog/Kconfig | 13 ++ drivers/watchdog/Makefile | 1 + drivers/watchdog/mt8173_smc_wdt.c | 160 ++++++++++++++++++ 6 files changed, 212 insertions(+) create mode 100644 Documentation/devicetree/bindings/watchdog/mt8173,smc-wdt.yaml create mode 100644 drivers/watchdog/mt8173_smc_wdt.c -- 2.25.0.265.gbab2e86ba0-goog