Received: by 2002:a25:c205:0:0:0:0:0 with SMTP id s5csp2609316ybf; Mon, 2 Mar 2020 12:06:31 -0800 (PST) X-Google-Smtp-Source: ADFU+vuMFYyfiP8SoBf6PynYDrTjD33Nw1KLsUPo1dJNuwd5e35rSwKnj8wBYL9o+b9dvI7Y2c1v X-Received: by 2002:a54:4396:: with SMTP id u22mr100429oiv.128.1583179590896; Mon, 02 Mar 2020 12:06:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1583179590; cv=none; d=google.com; s=arc-20160816; b=ct8zvaUaN+BV5REGBAlOPi2w6iUu42Dlk/eYT1gkQiJB+VuKkgipH2vElW/yPWZlRz bU4p2F1hUDDwwGxQVdDBL7I0DQUufjEPGjD86sWY9ZVYKqoGAPt/43A1c+K76MzM9/kJ rdOLiA/eBG9mRodMPbK5Ic9n/1vIKzroLtCTyNYkPJVJ4lH9/iowSeYdPudJZniqbnjC s17ohWg+oumqZKhU+dzFKcjjifqKDEaSHO9R2GXaW0nThbIEhDVGjM9Cm2tL6LbSvq4C C/y1KZyb+D79GgQWMJiv2iIHMRmkmErquDhEv6+duNvTwKEXqdnfvPKjwvYFg77hgYHw DowQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=QpJEH4WZMRrWIDHS2nhaRKdfdtwL/3UibZ6zrK3AhVc=; b=ymtkhKI0ZknY8FBF4oC3ruBH1OKRIBavkKMDLVJvjG81SorMSwCC2pr51LxcPCVVRn rOYztGT4E14gg8tuB3qFMYKQRSo0FPr3NF8Ks56rbxn9Wv9B3o3XmUqNcjemxyDBUbr7 6EZx7wKmOmK4WlGKW/yvM0/dfF2muISLmq50e9hzjhPu2ia0B2Kh8VxXIqxzf4wF/pvf yYn4/0n9kDx/TBgi9BJgDy2CTb3ACLc02koIYBchhxMMNkl/L4XldHHmpM5AJqrOx0d5 c4e0hYQ/yMfpNMYNRPkAH/GN4VDx+N7pkIpwSPVwGsFJ/PZAHvglpZDMpcTpUQ9xs2+g Z4cA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=U6nBtKqI; 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=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m22si4182288otf.63.2020.03.02.12.06.16; Mon, 02 Mar 2020 12:06:30 -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=@ti.com header.s=ti-com-17Q1 header.b=U6nBtKqI; 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=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726918AbgCBUEz (ORCPT + 99 others); Mon, 2 Mar 2020 15:04:55 -0500 Received: from lelv0143.ext.ti.com ([198.47.23.248]:44130 "EHLO lelv0143.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725781AbgCBUEz (ORCPT ); Mon, 2 Mar 2020 15:04:55 -0500 Received: from lelv0265.itg.ti.com ([10.180.67.224]) by lelv0143.ext.ti.com (8.15.2/8.15.2) with ESMTP id 022K4YgG061160; Mon, 2 Mar 2020 14:04:34 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1583179474; bh=QpJEH4WZMRrWIDHS2nhaRKdfdtwL/3UibZ6zrK3AhVc=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=U6nBtKqIAqd84xCi6moWDMklu5+NrQ+zElaQ8ZEQAf7YfogGt3Z+P0rKTe48Fm80I dtthUc8OX9B8Rv0K97uZxeMbbYDQBROzURcfcb3MqGo9XWR3dJPalsWOm/MUjf/V1N 6OUJZ/YVmNm/UYp4kdDSa000BpXtlgBoFdsrbc2g= Received: from DLEE105.ent.ti.com (dlee105.ent.ti.com [157.170.170.35]) by lelv0265.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 022K4Y1O012949 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Mon, 2 Mar 2020 14:04:34 -0600 Received: from DLEE103.ent.ti.com (157.170.170.33) by DLEE105.ent.ti.com (157.170.170.35) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1847.3; Mon, 2 Mar 2020 14:04:33 -0600 Received: from lelv0326.itg.ti.com (10.180.67.84) by DLEE103.ent.ti.com (157.170.170.33) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1847.3 via Frontend Transport; Mon, 2 Mar 2020 14:04:33 -0600 Received: from sokoban.bb.dnainternet.fi (ileax41-snat.itg.ti.com [10.172.224.153]) by lelv0326.itg.ti.com (8.15.2/8.15.2) with ESMTP id 022K4UtB074555; Mon, 2 Mar 2020 14:04:32 -0600 From: Tero Kristo To: , , CC: , Rob Herring , Subject: [PATCHv2 1/4] dt-bindings: watchdog: Add support for TI K3 RTI watchdog Date: Mon, 2 Mar 2020 22:04:23 +0200 Message-ID: <20200302200426.6492-2-t-kristo@ti.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200302200426.6492-1-t-kristo@ti.com> References: <20200302200426.6492-1-t-kristo@ti.com> MIME-Version: 1.0 Content-Type: text/plain X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org TI K3 SoCs contain an RTI (Real Time Interrupt) module which can be used to implement a windowed watchdog functionality. Windowed watchdog will generate an error if it is petted outside the time window, either too early or too late. Cc: Rob Herring Cc: devicetree@vger.kernel.org Signed-off-by: Tero Kristo --- .../bindings/watchdog/ti,rti-wdt.yaml | 52 +++++++++++++++++++ 1 file changed, 52 insertions(+) create mode 100644 Documentation/devicetree/bindings/watchdog/ti,rti-wdt.yaml diff --git a/Documentation/devicetree/bindings/watchdog/ti,rti-wdt.yaml b/Documentation/devicetree/bindings/watchdog/ti,rti-wdt.yaml new file mode 100644 index 000000000000..3813f59fb6c3 --- /dev/null +++ b/Documentation/devicetree/bindings/watchdog/ti,rti-wdt.yaml @@ -0,0 +1,52 @@ +# SPDX-License-Identifier: GPL-2.0 +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/watchdog/ti,rti-wdt.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Texas Instruments K3 SoC Watchdog Timer + +maintainers: + - Tero Kristo + +description: |+ + The TI K3 SoC watchdog timer is implemented via the RTI (Real Time + Interrupt) IP module. This timer adds a support for windowed watchdog + mode, which will signal an error if it is pinged outside the watchdog + time window, meaning either too early or too late. The error signal + generated can be routed to either interrupt a safety controller or + to directly reset the SoC. + +properties: + compatible: + enum: + - ti,rti-wdt + + reg: + maxItems: 1 + + clocks: + maxItems: 1 + +required: + - compatible + - reg + - clocks + +examples: + - | + /* + * RTI WDT in main domain on J721e SoC. Assigned clocks are used to + * select the source clock for the watchdog, forcing it to tick with + * a 32kHz clock in this case. + */ + #include + + main_rti0: rti@2200000 { + compatible = "ti,rti-wdt"; + reg = <0x0 0x2200000 0x0 0x100>; + clocks = <&k3_clks 252 1>; + power-domains = <&k3_pds 252 TI_SCI_PD_EXCLUSIVE>; + assigned-clocks = <&k3_clks 252 1>; + assigned-clock-parents = <&k3_clks 252 5>; + }; -- 2.17.1 -- Texas Instruments Finland Oy, Porkkalankatu 22, 00180 Helsinki. Y-tunnus/Business ID: 0615521-4. Kotipaikka/Domicile: Helsinki