Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp29571ybz; Tue, 21 Apr 2020 04:07:20 -0700 (PDT) X-Google-Smtp-Source: APiQypKAULU7HA7PiVVo9TzmO2LlQveWCtfwdj6dMpexmZ8qHAXmJKsTGsmaXThQlDxZfaomPZBo X-Received: by 2002:a17:906:49d0:: with SMTP id w16mr6227088ejv.364.1587467240249; Tue, 21 Apr 2020 04:07:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1587467240; cv=none; d=google.com; s=arc-20160816; b=lcbypJNZdZfRg6nBuZkTOV/k801PNEL1EQug4OnfGZJ9kYBGbl0k0+Exs/TlvcclQq i6xuv/HOsNofOgWJ6NOd/nmWVvInyHmvroyqW8c8KA+7XMYtzbp/NjXxlQKB/iIit1Ix BnB1vMxXLsRNEnNhvRWn4mJTdxpFdyyMwffPFp1BMvnTRfJ6VumVxsUMtfFau9D36qCB dLWnyFKLsftnAwrDFuE2cnZj+LLWWjmB5eDwCC3BVPEr7mgRxFVQavLsFKMakudK7f9n 8J7G2kbaHQTLNY9v1PSdsEw5NpvggEN3bu6R0Ydv8iCmAqaqQPEMVwquwTqEQmvSWW+5 CCig== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=YQowLReDtrDqWyEJqghrzNfGRqjMiBQBGzRSAxJByhg=; b=PsArPIWoS4t82Ac7qeDpksvGPkXMuEwRGBzK5XWITztcpp6iFC4hI23qStUAvxfj2W kznrUl9zbo2CWRKQgTotKlFW2APgE80GfNTlRdsuGtLPAAy/VmldrR4IQHgdkAskEzGd I9tO1Vcq7feSDpbMEqtqiKYFOV/yfLpaiB2iS5J7OqqE6cBVjCDrwZlSSDOC0q7fnMzV RDRYROQTRzKU/yGOiGPta52cGfNp8le37Mwd49KRJrlP5RsCbZwpqwhcNakz5lnNvC1m WE1QIcUzOXTWg7jwlipA3Snu8gbU82gfqpRDpv6fuwEFk6kxb1hs7kNqH+uIe5YFCJhm P1EA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b="SbdGbC/I"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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. [23.128.96.18]) by mx.google.com with ESMTP id f10si1430520ejb.466.2020.04.21.04.06.57; Tue, 21 Apr 2020 04:07:20 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b="SbdGbC/I"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S1728610AbgDULFv (ORCPT + 99 others); Tue, 21 Apr 2020 07:05:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45300 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728285AbgDULFu (ORCPT ); Tue, 21 Apr 2020 07:05:50 -0400 Received: from mail-pf1-x443.google.com (mail-pf1-x443.google.com [IPv6:2607:f8b0:4864:20::443]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7C1D0C061A41 for ; Tue, 21 Apr 2020 04:05:50 -0700 (PDT) Received: by mail-pf1-x443.google.com with SMTP id v63so33804pfb.10 for ; Tue, 21 Apr 2020 04:05:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=YQowLReDtrDqWyEJqghrzNfGRqjMiBQBGzRSAxJByhg=; b=SbdGbC/IZ+waY6GcW1FEvdinhHukPVmS1p6/7X2InvP61zjhI4qpd7hLtKztakfwBW K/WjnxqclzbwymHpj7ms7y45VRWSoPlhGP1GQNDXoz4U/3RUj4IGyl74e3+eK1/slIgX VzvDNsEsz+ucIetAZgKyCrnP39XwSe2Myt7Z0= 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:in-reply-to :references:mime-version:content-transfer-encoding; bh=YQowLReDtrDqWyEJqghrzNfGRqjMiBQBGzRSAxJByhg=; b=tDZQe5eeZF/r7hIQ9Hh+uYuZEamhbXNBWutOrYAEcF67pEyBDNLKljjABXKzPse4DO FOiP8OC7pBkubul0ImezIFi5l56H2i6wB8bR0advt8LHHpHVwOLpDN8yAA8OQdVGqJu2 cHLuVfCoUIgADXWHNZrVx+A8IakE4vIA1Lup+zxbTCrOypdxE6TGkmTZuy5MgkeOlffD jB4ZCp/MZuGTtSM4I+IxdOT7PP8z1ndKh/fVevs/WWDmTx11I+JVKQk//BQFjVd4Lk0+ 9z/2GEh8MkF/mEdUx9OW3+v4PwQgBj1N0fUDkVgMn7sAM8avaK0Kfg7qexpACGeImjL1 bvTg== X-Gm-Message-State: AGi0Pub4ZyYmRG0/hVNHC4lkTBXKAQiuYQI9iUkmOAwtUenGRqpjcwbJ z04ZxuZnjMshnVSQ3Jagn4hiCsdgb38= X-Received: by 2002:a63:6f4c:: with SMTP id k73mr1751689pgc.241.1587467149882; Tue, 21 Apr 2020 04:05:49 -0700 (PDT) Received: from localhost ([2401:fa00:9:14:1105:3e8a:838d:e326]) by smtp.gmail.com with ESMTPSA id c84sm2258841pfb.153.2020.04.21.04.05.45 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 21 Apr 2020 04:05:49 -0700 (PDT) From: Evan Benn To: LKML Cc: xingyu.chen@amlogic.com, jwerner@chromium.org, Evan Benn , "David S. Miller" , Greg Kroah-Hartman , Guenter Roeck , Matthias Brugger , Mauro Carvalho Chehab , Rob Herring , 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 1/2] dt-bindings: watchdog: Add ARM smc wdt for mt8173 watchdog Date: Tue, 21 Apr 2020 21:05:19 +1000 Message-Id: <20200421210403.v2.1.Id96574f1f52479d7a2f3b866b8a0552ab8c03d7f@changeid> X-Mailer: git-send-email 2.26.1.301.g55bc3eb7cb9-goog In-Reply-To: <20200421110520.197930-1-evanbenn@chromium.org> References: <20200421110520.197930-1-evanbenn@chromium.org> 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 watchdog can be used on ARM systems with a Secure Monitor firmware to forward watchdog operations to firmware via a Secure Monitor Call. Signed-off-by: Evan Benn --- Changes in v4: - Add arm,smc-id property Changes in v3: - Change name back to arm Changes in v2: - Change name arm > mt8173 .../bindings/watchdog/arm-smc-wdt.yaml | 36 +++++++++++++++++++ MAINTAINERS | 6 ++++ 2 files changed, 42 insertions(+) create mode 100644 Documentation/devicetree/bindings/watchdog/arm-smc-wdt.yaml diff --git a/Documentation/devicetree/bindings/watchdog/arm-smc-wdt.yaml b/Documentation/devicetree/bindings/watchdog/arm-smc-wdt.yaml new file mode 100644 index 0000000000000..5379d9f798d84 --- /dev/null +++ b/Documentation/devicetree/bindings/watchdog/arm-smc-wdt.yaml @@ -0,0 +1,36 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/watchdog/arm-smc-wdt.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: ARM Secure Monitor Call based watchdog + +allOf: + - $ref: "watchdog.yaml#" + +maintainers: + - Julius Werner + +properties: + compatible: + enum: + - mediatek,mt8173-smc-wdt + arm,smc-id: + allOf: + - $ref: /schemas/types.yaml#/definitions/uint32 + - default: 0x82003D06 + description: + The ATF smc function id used by the firmware. + +required: + - compatible + +examples: + - | + watchdog { + compatible = "mediatek,mt8173-smc-wdt"; + timeout-sec = <15>; + }; + +... diff --git a/MAINTAINERS b/MAINTAINERS index b816a453b10eb..0f2b39767bfa9 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -1457,6 +1457,12 @@ S: Maintained F: Documentation/devicetree/bindings/interrupt-controller/arm,vic.txt F: drivers/irqchip/irq-vic.c +ARM SMC WATCHDOG DRIVER +M: Julius Werner +R: Evan Benn +S: Maintained +F: devicetree/bindings/watchdog/arm-smc-wdt.yaml + ARM SMMU DRIVERS M: Will Deacon R: Robin Murphy -- 2.26.1.301.g55bc3eb7cb9-goog