Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp1392072ybv; Thu, 13 Feb 2020 22:27:10 -0800 (PST) X-Google-Smtp-Source: APXvYqyHUIkp+Yk05UyCM5KfNDbs7NtMsCly6OSGYc/w5LxeXUJLJUqIXjbKNBeyd+gDuJxJfw1n X-Received: by 2002:a9d:4f02:: with SMTP id d2mr991739otl.368.1581661629873; Thu, 13 Feb 2020 22:27:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1581661629; cv=none; d=google.com; s=arc-20160816; b=ggVCBaInh6TSW72zijwXe7w0nYajaCzZ+pCDradsYMu/fXRo02LK1zsePCr28SHoQR fkgr7DbYtHgLGq5Lmgc+Oi83HaRxSXBqL2FmigS3HDdn1ZJvAmPh3HhIbRGxfM47CZ0w S3r/y0JE8ndRCUZUuyfubOJ74lwsT+LHHmF4+WVfHPNjSMfjVdzwFauRI9yVpp643wVY bbYio+ONXk4BXvf+1eok+zt7cv2xE4FZph6OFLfNnlLhkYKmA816rKzXBKIRCu/B8/xh aK5BAgQXpRu4QGIt2mC2lxbNPvnFznL/S8qD+n0DrtsBmvei6DeSmTbmGAcndFHIKQWh DoLg== 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=eCrhZ74+BntL1ASmsZknwx81NOpQkF74lLsvD9sBub0=; b=ABR9gIGkv4q0/zuw/FaCUEwC+MxbD6G6stc+CacFL6JrsV7mpv8sDyNJj2+nFU7KBy j/5IUetHziKwVbz+4I7A7U29lFqKrXz4wKTfsr1PQdxJxenB7j3+4Ex5EK9qFsiT3RLm 6UhMnH9oCEdyUtcF2H5HAxTSa21vFovgP69ugLaH95TX1Fn4xsQq1YLfZg8RVN8ttHXh zMGazFx7uBeH7jmxz2yAvAPJwO9+1QCVF/bCdWHE48RAm66GUYbit6J+GF5BDUtBdiM8 w3ScvNYdSekyIE0r5EN18+RoLir5v8NnSP1YDrJyriFJq+onwt0UicmyfQixNecxJ/vU Aevg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=f3T6NdVH; 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 69si2299949otv.190.2020.02.13.22.26.57; Thu, 13 Feb 2020 22:27:09 -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=f3T6NdVH; 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 S1726181AbgBNG0v (ORCPT + 99 others); Fri, 14 Feb 2020 01:26:51 -0500 Received: from mail-pj1-f68.google.com ([209.85.216.68]:35760 "EHLO mail-pj1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728807AbgBNG0u (ORCPT ); Fri, 14 Feb 2020 01:26:50 -0500 Received: by mail-pj1-f68.google.com with SMTP id q39so3507462pjc.0 for ; Thu, 13 Feb 2020 22:26:50 -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=eCrhZ74+BntL1ASmsZknwx81NOpQkF74lLsvD9sBub0=; b=f3T6NdVHZxNDFtYQX+iekyEp0Bj2gxg4PzjB4yrO524wQr2gUIHTtFAGcvT0x+wfxY xgHw8Oc7tgN48emrBRNtwlfgTheC5sPIifAvxhb1VHFp42qc5buBVrLVuqMTscO3BeVg gMN5M9wfjGBaooPpixSwRakGOYGWDa2gtcbaE= 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=eCrhZ74+BntL1ASmsZknwx81NOpQkF74lLsvD9sBub0=; b=bRZrMr7hbOm6B8mnWbXQZINiQjU9TPzNwAFy14mBs+SPdSBdDKG6iS+CA0xfErAMSA A9o2jWA8XISzX/rHX2WwHY9NZYSDCm+uhi59wtDsIr3D1NnM5ihg/CHMc9/DXHY4qjGq KbA9BXX1v1xvYMIsf90ApQWSD5fqUyMcGR2aRKbLHlhda+Xy3klrFVxl3yLkzWoOOe9R f3UV0XQQRBJQ5stNEKPjelOZdZjCzCfzG8MDvv3XjmYUuvlE3cFyxuiHuV36p2BMlHdX +ur2L9hs8tkniR+WARTB+zx+2t8K3C1kN0FszYjKuIoKI07xTlrxM/4f8WGOdapeq7WG TehQ== X-Gm-Message-State: APjAAAVlQfMESryDRMWjsUCfn9mhhJLuH3vLpQVW7ienxxSokLi8Jjdm VydmqpMqJG9/bfqVmFGCrGQDEPpsqEdGFw== X-Received: by 2002:a17:90a:9dc3:: with SMTP id x3mr1620345pjv.45.1581661609563; Thu, 13 Feb 2020 22:26:49 -0800 (PST) Received: from localhost ([2401:fa00:9:14:1105:3e8a:838d:e326]) by smtp.gmail.com with ESMTPSA id o73sm4636778pje.7.2020.02.13.22.26.41 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 13 Feb 2020 22:26:48 -0800 (PST) From: Evan Benn To: LKML Cc: jwerner@chromium.org, Evan Benn , Bjorn Andersson , Guenter Roeck , Mauro Carvalho Chehab , Rob Herring , Marcin Juszkiewicz , Catalin Marinas , Olof Johansson , Leonard Crestez , Jonathan Cameron , Dinh Nguyen , Shawn Guo , Greg Kroah-Hartman , devicetree@vger.kernel.org, Will Deacon , linux-watchdog@vger.kernel.org, Rob Herring , Wim Van Sebroeck , =?UTF-8?q?Cl=C3=A9ment=20P=C3=A9ron?= , linux-arm-kernel@lists.infradead.org, "David S. Miller" , Mark Rutland , Anson Huang Subject: [PATCH 0/2] Add a watchdog driver that uses ARM Secure Monitor Calls. Date: Fri, 14 Feb 2020 17:26:35 +1100 Message-Id: <20200214062637.216209-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. Evan Benn (1): dt-bindings: watchdog: Add arm,smc-wdt watchdog arm,smc-wdt compatible Julius Werner (1): watchdog: Add new arm_smc_wdt watchdog driver .../bindings/watchdog/arm,smc-wdt.yaml | 30 +++ MAINTAINERS | 7 + arch/arm64/configs/defconfig | 1 + drivers/watchdog/Kconfig | 12 ++ drivers/watchdog/Makefile | 1 + drivers/watchdog/arm_smc_wdt.c | 191 ++++++++++++++++++ 6 files changed, 242 insertions(+) create mode 100644 Documentation/devicetree/bindings/watchdog/arm,smc-wdt.yaml create mode 100644 drivers/watchdog/arm_smc_wdt.c -- 2.25.0.265.gbab2e86ba0-goog